From “Desigining Sound” by Andy Farnell
download
https://github.com/tkzic/max-projects
folder: car-engine
patch: car-engine.maxpat
abstractions:
- engine-overtone.maxpat
pd abstractions:
- delread~.maxpat
- delwrite~.maxpat
- hip~.maxpat
- vd~.maxpat
From “Desigining Sound” by Andy Farnell
https://github.com/tkzic/max-projects
folder: car-engine
patch: car-engine.maxpat
abstractions:
pd abstractions:
From “Desigining Sound” by Andy Farnell
https://github.com/tkzic/max-projects
folder: jet-engine
patch: jetengine-wrapper.maxpat
pd abstractions:
https://github.com/tkzic/max-projects
folder: synth-basics
patch: synth-341.maxpat
Examples of editing Max help files to build Csound M4L devices
A formant based Midi synth using Csound FOF – from the Max help file for [csound~]
from “The Csound Book” by Dr. Richard Boulanger
https://github.com/tkzic/max-for-live-projects
folder: csound
device: csound-fof3-tz.amxd
Sample playback using a state variable filter using Csound SVFILTER – from the Max help file for [csound~]
from “The Csound Book” by Dr. Richard Boulanger
https://github.com/tkzic/max-for-live-projects
folder: csound
device: svfilter-tz.amxd
for converting Max help files to M4L devices:
Edit Max help files to build M4L devices
An audio pitch transposer made from [gizmo~]
https://github.com/tkzic/max-for-live-projects
folder: gizmo
device: gizmo-mod-example.amxd
If you have access to a leap motion sensor, here is the same device using hand gestures to control the pitch.
device: gizmo-thing-700.amxd
Uses the aka.leapmotion external – which needs to be in your Max file path. Download from here: http://akamatsu.org/aka/max/objects/
for converting Max help files to Max for Live devices:
https://github.com/tkzic/max-projects
folder: sampler
patch: sampler-341a.maxpat
[degrader~] eliminates audio data by reducing sample rate and word size.
https://github.com/tkzic/max-projects
folder: downsampling
patch: nothingness.maxpat
Adaptation of Andy Farnell’s Pd granular timestretch patch
Adjustable chunk-size, pitch, and speed – as well as manual scrubbing.
The original Pd patch (timestretch.pd) is available here: http://aspress.co.uk/sd/index.php
https://github.com/tkzic/max-projects
folder: granular-timestretch
patches
An index pointer (file phasor) scans from the beginning to the end of the file. For example, at 44.1KHz, a 1 second file of audio would have 44,100 samples. Each sample is 022676 ms. Another phasor (grain phasor) scans small chunks (grains) of audio. If audio is playing back at the normal rate and pitch, this grain phasor runs at zero. the file phasor just moves sequentially from one grain to the next.
To stretch the time, the file phasor is slowed down, but the grain phasor speeds up, scanning grains of audio, that start at the current file phasor index. In this way, in listening to the file from beginning to end, you are actually listening to a series of overlapping grains.
As the chunk (grain) size increases the grain phasor frequency decreases.
To raise the pitch, the grain phasor frequency would be increased. To lower the pitch, the phasor frequency goes negative and increases in a negative direction to reduce pitch further.
As you can see, while running this patch, the chunk size, pitch, and speed are all related by a single equation.
phasor frequency = ((pitch / 120)**2 – speed) / chunksize
So the input values interact with each other.
In addition, the grain player uses a technique called PSOLA. Pitch synchronous overlap and add. There are actually two grain players playing simultaneously 180 degrees out of phase. Each is windowed using a positive cosine function. This helps to reduce clicks by crossfading from one grain to the next.
There is some comb-filtering and ringing present on the audio. There are various techniques to reduce this, including:
There is also an option to manually scrub the file. This way you can listen to the texture of grains of various sizes from various points in the file.
You can also set random automatic scrubbing to branch to various points in the file.