hey, im sending midinotes from the DAW to SC and would like to convert the incoming MIDI Data into mictrotonal values. i was trying to use the microtuning function from this thread MIDI and Tuning (microtuning) - #4 by jamshark70 together with the MidiSynth Class.
Any ideas how i can implement it? thanks
f = { |midinote, root(0), tuning|
midinote = midinote - root;
tuning.wrapAt(midinote) // look up, without considering octave
+ midinote.trunc(tuning.stepsPerOctave)
+ root
};
f.(64, 2, Tuning.at(\werckmeister))
// how can i apply it to the note argument?
MidiSynth(\m1).note(noteChan:2, note: f.(64, 2, Tuning.at(\werckmeister)));