Integer Sample Tuning

Glossary
Explanation

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.

Parameters

Initializing.

Min period [sample]
Sampling rate [Hz]
Lowest frequency [Hz]
A4 frequency [Hz]
Max denominator
Error highlight threshold [cent]

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.


Back to Index

(Tuning table is not yet computed.)