Integer sample tuning only have pitches whose period is exactly an integer number of samples. This can be used as a cheap anti-aliasing for digital synthesizers that doesn't change a pitch after note-on.
On construction, a small integer period is selected as a highest note. Lower pitches are obtained relative to the highest note. Semitone intervals in this table are based on 12 ET, but any other tuning can be used. Below is an example in JavaScript.
var minPeriod = 2; var period = new Array(128); for (var i = 0; i < period.length; ++i) { period[i] = Math.floor(minPeriod * 2**(i / 12)); } console.log(period);
This tuning is used in a synthesizer called GlitchSprinkler which is available as plugin and web synth.
Initializing.
Errors above (not yet computed) cents, and closest pitches that doesn't match the target are highlighted.
The difference between 12 ET and this tuning is (not yet computed) semitones.
The difference between target and actual pitch is (not yet computed) cents.