[PD] flip flop, pulse divider...

Miller Puckette msp at ucsd.edu
Mon Oct 31 15:13:59 CET 2016


Here's one wy (in vanilla) -

Narrow the pulse to one sample wide (by clipping it and subtracting
a one-sample-delayed copy).  Multiply by something huge and clip~ it
so that te pulse is exactly (sample rate)/2 high.
Feed this to a phasor~.  The output will then toggle between 0 and
0.5.

Differentiate and clip~ again to pick off the rising edges of the
resulting square wave.

cheers
Miller

On Mon, Oct 31, 2016 at 03:09:17PM +0100, Simon Iten wrote:
> 
> > On 31 Oct 2016, at 14:20, fjkraan <fjkraan at xs4all.nl> wrote:
> > 
> > On 2016-10-31 13:05, Simon Iten wrote:
> >> hi list,
> >> in the “real” circuit world it is really easy to divide a pulse by 2
> >> with a flip flop circuit.
> >> is there a flip flop implementation for puredata somewhere?
> > 
> > There might be one in the mrpeach cmos package. Otherwise you can build one using the basic AND, OR and NOT gates :-).
> this would be in mrpeach as well? i would prefer a vanilla solution but will give it a try!
> >> i would like to divide an incoming audio pulse by 2 without much delay
> >> (avoiding fiddle~ and the like)
> >> the pw of the original wave does not have to be preserved, square
> >> output is ok. (as in real world)
> >> cheers
> >> simon
> > 
> > Greetings,
> > 
> > Fred Jan
> cheers
> >> _______________________________________________
> >> Pd-list at lists.iem.at mailing list
> >> UNSUBSCRIBE and account-management ->
> >> https://lists.puredata.info/listinfo/pd-list
> > 
> 
> 
> _______________________________________________
> Pd-list at lists.iem.at mailing list
> UNSUBSCRIBE and account-management -> https://lists.puredata.info/listinfo/pd-list



More information about the Pd-list mailing list