I'm trying to run a metro based counter that will drive a sequencer with live quantise abilities. But I'm stuck because I can't seem to create a counter that will count not only up in ones but if I change the quantise value I need it to count up in 12.5s, 25s, 50s etc. etc. (The sequencer runs at 100 pulses per quarter note when in 'Free Time' mode so the 12.5, 25 & 50 refers to 32nd, 16th & 8th notes respectively.)
I've tried changing the increment value in the counter but there's the problem of extra counts carrying over into the mode change knocking things out of sync.
I think I'm looking for a sample and hold idiom?
I'm probably missing something very silly...
Thanks in advance, John.
Sorted it. Patch attached.
Used float to store the metro number and banged it at slower intervals using mod.
----- Original Message -----
From: JF saintidle@yahoo.com To: pd list pd-list@iem.at Cc: Sent: Sunday, 24 June 2012, 12:37 Subject: Rounding counter idiom? Sample and hold?
I'm trying to run a metro based counter that will drive a sequencer with live quantise abilities. But I'm stuck because I can't seem to create a counter that will count not only up in ones but if I change the quantise value I need it to count up in 12.5s, 25s, 50s etc. etc. (The sequencer runs at 100 pulses per quarter note when in 'Free Time' mode so the 12.5, 25 & 50 refers to 32nd, 16th & 8th notes respectively.)
I've tried changing the increment value in the counter but there's the problem of extra counts carrying over into the mode change knocking things out of sync.
I think I'm looking for a sample and hold idiom?
I'm probably missing something very silly...
Thanks in advance, John.