Sox resampler library

“One-dimensional sample-rate conversion library”

By robs



Installation guide:

How configure CMAKE for 32 bit architecture on Mac OS:

Note: this command allowed building static libs for 32 bit:

<span style="color: #000000;">$ cmake -DCMAKE_OSX_ARCHITECTURES=i386 -DBUILD_SHARED_LIBS:BOOL=OFF ..</span>


local files in: tkzic/soxr-0.1.1-Source/

ep-413 week 8

More voices, granular synthesis, convolution in the frequency domain, phasors…

People acting like computers:

Fictional language dialog by Naila Burney:

Vocoders in Max:

Phasors and granular synthesis


Example Max patches:
  • phasors: cosine, sine, windows: phasor-stuff.maxpat
  • playing an audio file with a phasor: graintest1-phasor-count.maxpat
  • granular synthesis: graintest3.maxpat
  • More granular synthesis: timestretch5.maxpat

Download these patches from folder: granular-timestretch

More phasors

Books mentioned:

  • “Designing Sound” by Andy Farnell
  • “Computer Music Tutorial” By Chris Roads
Assignment: due in class 10/27/2014

Composition: Sound-byte 

  • The sound-byte is a short audio clip of speech.
  • The speech can come from anywhere. Something familiar, something famous, something unusual.
  • Every sound in the composition is derived only from the sound-byte. You can use any tool or method.
  • The sound-byte in its original form should occur somewhere in the piece
  • Duration: roughly 2-3 minutes?  That is up to you.


Engine of time.

from Wikipedia



Traveling along the outer edge of the circle, the distance goes from 0 to 2*PI radians, then starts over again. In degrees it would be 0 to 360. A clock goes from 0 to 12. In Max and Pd the phasor~ objects are normalized to run from 0.0 to 1.0. Think of flattening out the edge of the circle to a straight line.

The phasor as input to a sine or cosine function generates one  cycle of a wave for each revolution – as shown in the above animation. For example, cosine would go from 0 to 1 to 0 to -1 to 0.

If you graph the phasor value, it looks like a sawtooth wave – rising in a ramp from 0.0 to 1.0 then falling straight down to 0.0 to start again.

With waves, the distance around the circle represents time (or phase), the projected cosine value represents amplitude.

In science…

“A phasor can be considered a vector rotating about the origin in a complex plane. The cosine function is the projection of the vector onto the real axis. Its amplitude is the modulus of the vector, and its argument is the total phase \omega t+\theta. The phase constant \thetarepresents the angle that the vector forms with the real axis at t = 0.”


In art…

“And the seasons they go round and round 
And the painted ponies go up and down 
We’re captive on the carousel of time 
We can’t return we can only look 
Behind from where we came 
And go round and round and round 
In the circle game.”

-Joni Mitchell

(These lyrics happen at about 4:40 in the video…)