Microtuner

What is Microtuner?

First, this app is not to be confused with Ableton's MicroTuner which is a MIDI device that lets you import, edit, and generate microtonal scales.

Microtuner is a standalone Windows synthesizer for playing with interval-based microtuning. The idea is to custom tune select intervals and easily switch between the custom tuning and the default tuning. You can for example tune the major third and the fifth to just intonation and then temporarily switch to that tuning when playing a major triad while otherwise playing in well tempered tuning. The temporary just tuning will then affect any triads, major thirds or fifths played, in any key.

The current version, Microtuner IV, is a native application written in C++ with JUCE. It is a migration of the earlier Max MSP version (Microtuner III) to a standalone application, so it needs no other software: connect a MIDI keyboard (or use the on-screen keyboard or your computer keyboard), pick an audio output, and play.

The Microtuner IV window

Tuning

You can tune the intervals in the chromatic scale, one at the time. The tuning of each interval is remembered and reflected in all octaves. The tuning process can be executed in any ”key” once and for all. When playing, the tuned interval always refers to the lowest played note, the ”bass” note, which itself always keeps its well tempered pitch.


  1. Check the Tune radiobutton.
  2. Press and hold the source note on the keyboard. The source note is the lowest note (”bass” note or fundamental).
  3. Hold the source note and press the target note (the interval you want to tune). The target note must be higher than the source note but can be in any octave.
  4. Use the three tuning sliders to adjust the pitch of the target note: coarse (100 cents), medium (50 cents) and fine (5 cents).
  5. Release both notes.
  6. Repeat from 2. to tune another interval.
  7. Uncheck the Tune radiobutton.

With the mouse, a click on a key of the on-screen keyboard in Tune mode makes the key sound until it is clicked again, so both notes can be held while you reach for the sliders.

Three buttons sit under the sliders:

The tuning of each interval is shown in the table. A positive value shows sharpening of the note in cents relative to well tempered tuning. A negative value shows lowering the note in the same way. A value of zero gives well tempered tuning.

The picture above shows a custom tuning where the minor third, the third and the fourth have been adjusted (and the fifth slightly raised). When the notes of a chord are played with Microtuning on the chord sounds perfectly just, with no beats whatsoever. Without Microtuning on the same chord sounds with well-tempered tuning.


Spectroscope / Scope

This section has two states:

Spectroscope Scope in Tune mode

Playing

Microtuning is switched on with the Microtuning on radio button (don't confuse it with the Tune radio button), or with the sustain pedal. The Pedal options are independent and can be combined:

With microtuning on, the instrument plays your tuning with the lowest (bass) note as reference. The bass note must be pressed before the other notes in the chord — be it a fraction of a second. With microtuning off the instrument plays well tempered tuning.

The on-screen wooden keyboard covers G1 to B6 and can be played with the mouse or the computer keyboard; keys light up for all input. When Plucked is on, a green compass bar above the keyboard shows the range of the loaded instrument.


Waveforms

The Waveforms section contains knobs that control the volume and envelope of different sound sources. All the sources can be used at the same time. From the top we have:


Each oscillator has an on/off button, a volume knob (Vol) and an ADSR envelope (A, D, S, R). A sawtooth is a good source to tune by ear, since it is rich in overtones.


Filters

Filters are available for three of the four waveforms. There is no point in having a filter for the sine wave since it is void of overtones. Each filter is off by default; the radio buttons to the left switch them on and off. There are eight filter types to choose from in the drop-down above each graph:



The cutoff frequency is set by dragging in the response graph, which shows the frequency response of the filter. The Q knob sets the resonance and the Gain knob (for the peak and shelf types only) sets the boost or cut.


Partials

The Partials section contains ten sliders (adjustable vertical bars) that add partials to the sound, from 1/4 (32') up to 9x (1 9/8'). The whole set of partials is assigned one of the waveforms Saw, Tri, Rect or Sin at a time. The partials are separate from the waveforms in the Waveforms section and are microtuned like everything else. They are not run through the filters unless Include partials in filtering is checked. Mute silences all partials.

The partials have their own ADSR that comes in two modes, Common and Individual, chosen in the ADSR drop-down. The ADSR setting of any of the waveforms can be copied to the partials with Copy ADSR from.

Common ADSR

One slider per partial controls the volume of that partial. The “P” control to the left of the ADSR delays the sound of all active partials together by up to one second.

Individual ADSR

In this mode each of the partials has its own P and ADSR settings. The thin colored sliders in each bar set P, A, D, S and R according to the legend at the top right. The legend also shows two small buttons: the blue one copies the common ADSR to the partials and the red one resets all the P/ADSR sliders. To set the volume in this mode, click and drag in the left strip of the bar.


Plucked

A physically modelled harpsichord. Every key has its own simulated string, and the strings follow the microtuning, so the plucked sound is tuned just like the other sources. The sound is computed from an instrument file (.json) that you load with Load.... The file name is shown below the knobs together with the number of keys.

The strings come from the HarpsichordString project, a separate program of mine for building and listening to physically modelled harpsichord strings. Microtuner uses the same string engine as HarpsichordString (one shared code base, so improvements to the engine reach Microtuner with its next release), and the instrument files are designed in the HarpsichordString workbench. Microtuner only plays them: when you save a changed instrument in the workbench, the file that is loaded in Microtuner is re-read automatically. The compass of the instrument (lowest to highest string) decides which keys sound and sets the green bar above the keyboard.

There is no velocity response, as on a real harpsichord. Filters and expression do not apply to the plucked sound.


Attack

A short transient added at the start of every note, at the microtuned pitch. Choose a mode in the drop-down:

The knobs are Level (at its lowest, -70 dB, the attack is off), Decay and Tone. Harder playing makes the attack brighter. Mute turns the section off.


Reverb

An early-reflection reverb with a feedback delay network. The Space drop-down offers Room, Theatre and Cathedral, each with its own reverb time, early reflections, pre-delay, colour and stereo width. Mix sets the amount (at zero the reverb is off, which is the default), Decay the length of the tail and Damp how quickly the high frequencies die away. Mute stops new sound from entering the reverb while the tail rings out.


Expression

The volume of each waveform and of each partial can be controlled separately by MIDI controllers: CC1 (modulation) controls the waveforms and CC11 (expression) controls the partials. How a controller responds is shaped by a curve for each waveform and each partial, drawn in the panel that opens beside the window when you click Set curves. The horizontal axis is the controller value 0–127, the vertical axis is the volume, and the default is a straight line from zero to full. The last value received stays in force until the next one, and the volume knobs and bars follow it.

Checking Couple all CC to volume makes CC1 drive both waveforms and partials, and CC11 is ignored. The curves are saved with the settings and with presets.

The volume curves panel

Presets

A preset stores everything that shapes the sound: waveforms, filters, partials, plucked strings, attack, reverb and the expression curves. The tuning, the main output and the audio and MIDI devices belong to your machine and are not changed by a preset.

Each preset is a small file (.mtpreset) in the Microtuner folder under your user application data.


Output and settings

Gain sets the main volume and Mute all silences everything. The Audio and MIDI buttons open the selection of audio output and MIDI input; the choices are saved and restored the next time you start the app. The status line under the keyboard shows the current buffer size.


Layout editor

The download also contains MicroTunerLayout.exe, a separate small app for moving and resizing every control, text label and panel of Microtuner. Pick a panel on the left and drag items (or use the arrow keys). Save, and a running Microtuner reloads the layout within a second.


Questions or comments? Send an e-mail to: thomas@ahlstroem.net

Download Microtuner IV here: MicroTuner_IV_0.1.zip.

Unzip to any folder and run MicroTuner.exe.