sample hold
- KVRAF
- 15313 posts since 8 Mar, 2005 from Utrecht, Holland
You asked the same question well over a year ago. Did you never check for a reply?
viewtopic.php?p=8566264#p8566264
We are the KVR collective. Resistance is futile. You will be assimilated.
My MusicCalc is served over https!!
My MusicCalc is served over https!!
- KVRAF
- 5176 posts since 22 Jul, 2006 from Tasmania, Australia
I think it can be done with a conditional statement and memory
I'm don't have very much aptitude,
but like
a = trigger == 1 & lfostream
write a to memory
memory is held sample value
I'm don't have very much aptitude,
but like
a = trigger == 1 & lfostream
write a to memory
memory is held sample value
- KVRAF
- 7940 posts since 12 Feb, 2006 from Helsinki, Finland
Well.. kinda.. the naive approach is something like:
Code: Select all
init: state = 0
for each sample:
if(trigger) state = input
output = state
- KVRAF
- 5176 posts since 22 Jul, 2006 from Tasmania, Australia
thanks Mystran
In Flowstone, Ruby which doesn't have streams, only buffer blocks of samples,
can interpret 'if',
where DSP audio coding has no if, and the statement would be like that in part at least
As far as anti-aliasing, I am largely at a loss to band-limit such a device,
sample accuracy should be quite do-able though
In Flowstone, Ruby which doesn't have streams, only buffer blocks of samples,
can interpret 'if',
where DSP audio coding has no if, and the statement would be like that in part at least
As far as anti-aliasing, I am largely at a loss to band-limit such a device,
sample accuracy should be quite do-able though