"If... then..." switch in Synthedit?
-
- KVRer
- Topic Starter
- 23 posts since 16 Jul, 2008
Hi, I have a project that switches voltages from 0 to 10 and back again at random intervals. However, the output is smoothed so it glides between the two values rather than changing instantaneously. How can I add to this so that the value only changes from 0 to 10 (or 10 to 0) when the output is 0 or 10? This way, the 'glide' is complete before the value changes again. Something like this:
If x = 0 or x = 10
then change value
else ignore
Thanks!
If x = 0 or x = 10
then change value
else ignore
Thanks!
-
- KVRAF
- 2041 posts since 22 Nov, 2003 from Mars, Solar System
-
- KVRer
- Topic Starter
- 23 posts since 16 Jul, 2008
Thanks, although I'm a bit lost. I've uploaded a pic here:
http://www.freeimagehosting.net/image.p ... 6cdf54.jpg
If the value of A is not 0 or 10 (ie, somewhere in between), I want the 'drift' input to not accept any changes until the pitch at output has reached its destination.
I looked at the comparator module, but I didn't really understand it.
Does this make any sense now my pic hopefully makes it clearer?
Thanks again!
http://www.freeimagehosting.net/image.p ... 6cdf54.jpg
If the value of A is not 0 or 10 (ie, somewhere in between), I want the 'drift' input to not accept any changes until the pitch at output has reached its destination.
I looked at the comparator module, but I didn't really understand it.
Does this make any sense now my pic hopefully makes it clearer?
Thanks again!
- GRRRRRRR!
- 15939 posts since 14 Jun, 2001 from Somewhere else, on principle
You could also maybe use a FLOOR or CEIL module to keep the output value at either 0 or 10.
NOVAkILL : Asus RoG Flow Z13, Core i9, 16GB RAM, Win11 | EVO 16 | Studio One | bx_oberhausen, GR-8, JP6K, Union, Hexeract, Olga, TRK-01, SEM, BA-1, Thorn, Prestige, Spire, Legend-HZ, ANA-2, VG Iron 2 | Uno Pro, Rocket.
-
- KVRer
- Topic Starter
- 23 posts since 16 Jul, 2008
Sorted it, thanks guys!
-
Mineralhillsworkshop Mineralhillsworkshop https://www.kvraudio.com/forum/memberlist.php?mode=viewprofile&u=422528
- KVRist
- 54 posts since 13 Jul, 2018
How did you sort it out? Please consider the people searching for help 10 years later.