I want to trigger an event when an incoming audio signal (which i know is a ramp between 0 and 1), crosses some threshold.
basically i want something like
[adc~] | [last sample <= x && cur sample >x] | [a drum or something is triggered]
any ideas how i can do that? I don't see how I'd do it with just the built in objects. I realize that the bang will probably only happen at control rate..
I have another app creating this ramp, and I want to be able to sync to it in pd [probably just to trigger drum samples]
-Alex
This sounds like a case where [threshold~] would be exactly what you want. It is block based, but for triggering drums it might be accurate enough (play with blocksize).
On Sat, 23 Jun 2007 14:24:36 -0700 Alex x37v.alex@gmail.com wrote:
I want to trigger an event when an incoming audio signal (which i know is a ramp between 0 and 1), crosses some threshold.
basically i want something like
[adc~] | [last sample <= x && cur sample >x] | [a drum or something is triggered]
any ideas how i can do that? I don't see how I'd do it with just the built in objects. I realize that the bang will probably only happen at control rate..
I have another app creating this ramp, and I want to be able to sync to it in pd [probably just to trigger drum samples]
-Alex
PD-list@iem.at mailing list UNSUBSCRIBE and account-management -> http://lists.puredata.info/listinfo/pd-list
ahh, nice, that looks great!
-Alex
On 6/24/07, Andy Farnell padawan12@obiwannabe.co.uk wrote:
This sounds like a case where [threshold~] would be exactly what you want. It is block based, but for triggering drums it might be accurate enough (play with blocksize).
On Sat, 23 Jun 2007 14:24:36 -0700 Alex x37v.alex@gmail.com wrote:
I want to trigger an event when an incoming audio signal (which i know is a ramp between 0 and 1), crosses some threshold.
basically i want something like
[adc~] | [last sample <= x && cur sample >x] | [a drum or something is triggered]
any ideas how i can do that? I don't see how I'd do it with just the built in objects. I realize that the bang will probably only happen at control rate..
I have another app creating this ramp, and I want to be able to sync to it in pd [probably just to trigger drum samples]
-Alex
PD-list@iem.at mailing list UNSUBSCRIBE and account-management -> http://lists.puredata.info/listinfo/pd-list
-- Use the source
PD-list@iem.at mailing list UNSUBSCRIBE and account-management -> http://lists.puredata.info/listinfo/pd-list