implementing frequency divider in Max
hi All
I'm trying to implement a frequency divider in Max 5. Something along the lines of
I was wondering what the easiest way is to produce shifted down copies (e.g F/2, F/4...) of a signal?
Thanks,
Bert
A frequency divider is a bit harder to implement in the digital domain than in the analog.
One trick to get a sub-octave signal is to invert every other cycle of a waveform. I think that's what those octaver guitar pedals do.
You basically have a comparator, which produces a pulse wave.
This pulse wave gets fed into an divide-by-2 counter to get a pulse with half the frequency, which is then used to invert the original signal.
As this method relies on zero-crossings it will only work well for monophonic signals with a strong fundamental.
If you have the csound book by boulanger handy, have a look at chapter 29 "Efficient Implementation of Analog Waveshaping". There's a description of the process with nice diagrams.
If you're completely lost, I have a patch lying round somewhere, I could share.
cheers,
jan.
I’d like to see the example
that doepfer is freq generator, means it does not output
any trace of original signal but creates square wave.
Procedure is to distort and low pass input signal
to create possibly clean square wave, which then switches flip flops
or freq counters, and result is again square wave with divided pulse.
then again low pass filter, and vca from original input.
There is no inverting of the input in there.
halfwave generator != clock divider != frequency divider.
but does it matter? just abuse all of them and press record.