Setting MIDI notes to specific frequency values
Hi all,
First, pardon me if this is a total n00b question - I'm just learning Max, have done several of the tutorials & am trying to work out this project for my own education. :)
I'm working on adapting the basic poly synth patch to play a non-standard scale. It is a scale derived by a mathematician friend of mine, and he has a table of frequency values to distill it down to 12 tones/octave. I've done some searching but haven't found a method yet - I'm wondering how I might set C4 to play 264 Hz rather than 261, for example. I need to set these alternate values for each of the 12 tones, and then subsequent octaves would double (or halve) these values.
If anyone can point me in the right direction, to the relevant tutorials/objects at least, I'll be extremely grateful - and when I get this knocked out I'll post the results. :) Thanks!
Something like this, with a correct scale?
There's an object called mtof that people use when translating MIDI note numbers to frequency values to feed oscillators or manage retuning for sample playback. Instead of using that, you can use the coll object to store a table of MIDI note numbers and frequencies associated with that MIDI note (from your friend's scale). Hit the tutorials on using the coll object, and the tutorial stuff on creating abstractions. The rest is stupid simple: take any synth patch out there that uses an mtof object, replace it with your abstraction, and hey presto. Not sure that's enough to count as a "project," even. :-)