Running audio through a Pitch CHOP will return the frequency and the volume. You can use this data to then generate MIDI or other computer generated sounds and music.
Using the Pitch CHOP to get audio frequency.
Date Created:Friday December 29th, 2006 03:41 AM
Date Modified:Friday August 01st, 2008 12:32 PM
This graph shows the audio waveform.

This graph shows frequency of the pitch returned from the Pitch CHOP.

This graph shows note numbers using Logarithm functions to get the value in an Expression CHOP.

27.500 Hz = 1st note of an 88 key piano, A0 (A0 meaning base octave of the A note)
Any frequency can be approximated by:
27.500(1.05946)(distance from A0)
27.500(1.05946)(88-1) = 4184.96
4186.01 = C8 the 88th key of a piano
4186.01 ~ 4184.96
So, with this approximation, if we have the frequency, how can we determine the note number?
Base frequency (A0) = 27.5
Distance from first key = d
Frequency = F
F = 27.500(1.05946)d
divide by 27.500F/27.500 = 1.05946d
use logarithmlog1.05946(F/27.500) = d
convert to log base 10d = log(F/27.500) / log(1.05946)
Here are triggers of each frequency after running the value of the note numbers through a Fan CHOP.
The Fan CHOP will generate a binary trigger on a channel number corresponding to the value of whatever comes in. We had taken the pitch channel, rounded to integers, and fit it to a smaller range before the Fan CHOP.

This is the volume channel returned from the Pitch CHOP.

Here is the volume multiplied by the output from the Fan CHOP.

NOTE: Play the argeg.wav backwards...its sounds really cool.
arpeg.wav
