sample and hold - blue equivalent

For general discussion related FlowStone
Post Reply
tester
Posts: 1786
Joined: Wed Jan 18, 2012 10:52 pm
Location: Poland, internet

sample and hold - blue equivalent

Post by tester »

Having little break from some areas of FS, I'm stuck with one thing. I need simple "sample and hold" module, but blue (stream based) equivalent, i.e. one that sends out a snapshot of incoming stream when "trigger" is received. As for triggering, I guess this latching should be reaction to simple boolean (i.e. between two values) switch (will this work for both - streamy and green switching?). Can someone help?
Need to take a break? I have something right for you.
Feel free to donate. Thank you for your contribution.
User avatar
chackl
Posts: 233
Joined: Tue Aug 17, 2010 8:46 pm
Location: Austria / Salzburg

Re: sample and hold - blue equivalent

Post by chackl »

I think there is not such a module - and it is not possible because streams are not trigger-based.

What about using the stream-to-float or stream to array module - and then puting this float falue back to stream.

Regards
100% accuracy is the guarantee to your success. The value alters if you combine it with musical creativity.
tester
Posts: 1786
Joined: Wed Jan 18, 2012 10:52 pm
Location: Poland, internet

Re: sample and hold - blue equivalent

Post by tester »

I'm sure @chackl you are wrong. It's doable in code/ASM, but my head is empty for codework (I'm stuck with green data right now) and this one is beyond my skills I guess. But from what I can tell - there will be probably some sort of conversion from a->b switch into 1-sample impulse, and during that impulse (short "on" so to speak) - input value would be copied and latched on the output. I guess MyCo should know such sort of stuff.

I don't want to convert blue to green and back, because this will require green tick, and these things don't work too well when rendering in DAW (besides they would create too much unnecessary triggers wandering around, and this would interfere with other green parts).
Need to take a break? I have something right for you.
Feel free to donate. Thank you for your contribution.
User avatar
chackl
Posts: 233
Joined: Tue Aug 17, 2010 8:46 pm
Location: Austria / Salzburg

Re: sample and hold - blue equivalent

Post by chackl »

Well ok just tell :D
A Stream hase no trigger - you just are able to emulate a trigger by getting somethin from 0 to 1 or from ture to false or something other ;) (as you told)

But i also can write those codes :D - well it is some time ago that i have done it bit here we are :D
i would do that like that:

Code: Select all

streamin in;
streamin check;
streamout out;

out = in & (check==1) + out & (check==0);
check = 0;


If the value "check" is 1 it will take the aktual sample from "in" to "out"
check will get resetet after getting the sample - so you do not need to set it back manual.

Regards :D
100% accuracy is the guarantee to your success. The value alters if you combine it with musical creativity.
User avatar
MyCo
Posts: 718
Joined: Tue Jul 13, 2010 12:33 pm
Location: Germany
Contact:

Re: sample and hold - blue equivalent

Post by MyCo »

But you shouldn't use it on accurate streams, especially don't use it for rendering.

Edit: wasn't fast enough
Attachments
Blue S&H (MyCo).fsm
(1.19 KiB) Downloaded 951 times
tester
Posts: 1786
Joined: Wed Jan 18, 2012 10:52 pm
Location: Poland, internet

Re: sample and hold - blue equivalent

Post by tester »

Thanks for quick responses. You were faster than my dinner :-)

Generally the concept here is not thought to be "sample accurate", but "just renderable" (plus live jamming on first place). From the past I remember, that DAWs don't render things if green triggers are involved in syncing, thus - a lot of modules (SM age) I had to convert into blue modes in order to make them work.

The old jamming module I used is attached below if someone needs it. You provide "offline" values (randomized or manual) and trigger the transition if needed. With blue S&H - it can be arranged in new ways.
Attachments
jamming-old.fsm
(505 Bytes) Downloaded 975 times
Need to take a break? I have something right for you.
Feel free to donate. Thank you for your contribution.
Post Reply