[PD] Rounding counter idiom? Sample and hold?

JF saintidle at yahoo.com
Sun Jun 24 18:51:04 CEST 2012


Sorted it. Patch attached.

Used float to store the metro number and banged it at slower intervals using mod.


----- Original Message -----
> From: JF <saintidle at yahoo.com>
> To: pd list <pd-list at 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.
> 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: CounterSampleHold.pd
Type: application/octet-stream
Size: 1184 bytes
Desc: not available
URL: <http://lists.puredata.info/pipermail/pd-list/attachments/20120624/0dd268b3/attachment.obj>


More information about the Pd-list mailing list