SuperCollider Forum
May 23, 2013, 11:22:58 AM *
Welcome, Guest. Please login or register.

Login with username, password and session length
News: The SuperCollider forum is currently experiencing a rash of spambot registrations. New user requests may not be approved quickly as a result -- and if your email address looks like spam, it might not be approved at all. We are working to improve the security of the registration process, and to provide alternate means to contact the administrators to get a new account. Thanks for your patience.
 
   Home   Help Search Calendar Login Register  
Pages: [1]
  Print  
Author Topic: Looking for a ugen: Trigger on value change?  (Read 2478 times)
0 Members and 1 Guest are viewing this topic.
bitbutter
Newbie
*

Karma: 0
Posts: 20


View Profile
« on: October 03, 2008, 08:01:34 AM »

I think i might be overlooking something, but so far I've not been able to find a ugen that can be asked to monitor a signal, and generate a trigger any time that signal's value changes (In my case the signal will have integer values from 0 to 7). Is there a Ugen, or combination of ugens, that i can use to achieve this?
Logged
joshp
AdminGroup
Full Member
*

Karma: 5
Posts: 121



View Profile WWW
« Reply #1 on: October 03, 2008, 10:10:44 PM »

Something like:
Code:
{Trig1.kr(HPZ1.kr(MouseX.kr(0, 1)).abs).poll}.play(s)

Hope that helps!

Josh
Logged
bitbutter
Newbie
*

Karma: 0
Posts: 20


View Profile
« Reply #2 on: October 04, 2008, 12:04:25 PM »

Thanks, that's perfect!
Logged
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.4 | SMF © 2006-2007, Simple Machines LLC Valid XHTML 1.0! Valid CSS!