Now: Sampler is tuned for 12 Tone Equal Temperament (12TET), defined in #define NOTE_HZ(midiNoteNumber) ( 440.0f * pow(2.0f, ((midiNoteNumber) - 69.0f)/12.0f) ) in CoreSampler.cpp
Maybe full feature set of Tuning Table is not needed. Could limit it like SynthOne does:
Tunings are stored in a tuning table of size 128 (a mapping from midi note number to frequency)
Tunings are octave-based, so there is always a well-defined notion of "notes-per-octave" used (to scale samples). However, AudioKit TuningTable is generalized and has no limitation on whether a tuning is octave-based or not.
The "pitch wheel" is a log2(frequency) modulo 1 representation of the frequencies of one octave of the tuning table with middle C (note number 60) as 12 o'clock
Description
Now:
Sampler
is tuned for 12 Tone Equal Temperament (12TET), defined in#define NOTE_HZ(midiNoteNumber) ( 440.0f * pow(2.0f, ((midiNoteNumber) - 69.0f)/12.0f) )
in CoreSampler.cppNew: Add possibilty to load tunings from AudioKit/Microtonality:TuningTable.
Proposed Solution
Maybe full feature set of Tuning Table is not needed. Could limit it like SynthOne does:
Additional Context