XML Feeds

.

[maxmsp] Re: PLL Phase Locked Loop

volker böhm vboehm at gmx.ch
Sat May 24 08:59:43 MDT 2008


On 23 May 2008, at 21:06, Nicholas C. Raftis III wrote:
> Still researching this bit, cant seem to figure out how to track  
> pitch based on zero crossings, but Im sure theres something out  
> there.  Im still wondering if fiddle uses a technique like this or  
> if its spectral based.

fiddle~ uses a spectral approach.

here is a simple zerocrossing counter that works reasonably well with  
basic input signals like sinusoids and squarewaves etc.
actually i doubt that a pitch tracker like this is used in PLL, but  
maybe this will still get you somewhere.
volker.

#P window setfont "Sans Serif" 9.;
#P window linecount 1;
#N vpatcher 20 74 325 409;
#P window setfont "Sans Serif" 9.;
#P window linecount 1;
#P newex 87 216 34 196617 !/~ 1;
#P newex 175 75 33 196617 >~ 0.;
#P newex 87 183 31 196617 sah~;
#P newex 108 162 30 196617 >~ 0;
#P newex 87 137 38 196617 delta~;
#P newex 87 106 31 196617 sah~;
#P newex 87 69 55 196617 phasor~ 1;
#P inlet 175 55 15 0;
#P outlet 87 262 15 0;
#P connect 2 0 3 0;
#P connect 3 0 4 0;
#P connect 4 0 6 0;
#P connect 6 0 8 0;
#P connect 8 0 0 0;
#P connect 7 0 3 1;
#P connect 4 0 5 0;
#P connect 5 0 6 1;
#P connect 1 0 7 0;
#P pop;
#P newobj 76 136 91 196617 p count0crossings;
#P user ezdac~ 223 131 267 164 0;
#P user number~ 76 195 147 210 9 3 3 2 0. 0. 0 0. 250 0. 0 0 0 221  
221 221 222 222 222 0 0 0;
#P flonum 76 76 52 9 0 0 0 3 0 0 0 221 221 221 222 222 222 0 0 0;
#P newex 76 100 61 196617 cycle~ 440;
#P connect 1 0 0 0;
#P connect 0 0 4 0;
#P connect 4 0 2 0;
#P window clipboard copycount 5;


More information about the maxmsp mailing list