[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[sc-users] Re: two separate triggers > single counter value



Thanks!

This works better:

   amp = Amplitude.kr(in);
   counter_one = Stepper.kr(amp-thresh, max: 100);

   counter_two = Stepper.kr(Impulse.kr(0.5), reset: amp-thresh, max: 100) *
-1;

   sum_counter = Mix.kr([counter_one, counter_two]);

...but, as I have now added a reset argument to counter_two, I miss a reset
argument for counter_one, otherwise sum_counter's value will 'jumps'
sometimes (increase sum_counter in more then +1).

Also, even though Stepper's max is now 100, I am still limited.

To clarify: I would like the sum_counter to increase / decrease always
gradually, +1 or -1.
Is there another way to achieve this, not with Stepper?

cheers
Ilya



-----
- - - 
ilya ziblat shay
--
View this message in context: http://new-supercollider-mailing-lists-forums-use-these.2681727.n2.nabble.com/two-separate-triggers-single-counter-value-tp7622265p7622269.html
Sent from the SuperCollider Users New (Use this!!!!) mailing list archive at Nabble.com.

_______________________________________________
sc-users mailing list

info (subscription, etc.): http://www.birmingham.ac.uk/facilities/ea-studios/research/supercollider/mailinglist.aspx
archive: https://listarc.bham.ac.uk/marchives/sc-users/
search: https://listarc.bham.ac.uk/lists/sc-users/search/