MIDI tuning standard

From testwiki
Jump to navigation Jump to search

Template:Short description Template:One source

MIDI Tuning Standard (MTS) is a specification of precise musical pitch agreed to by the MIDI Manufacturers Association in the MIDI protocol. MTS allows for both a bulk tuning dump message, giving a tuning for each of 128 notes, and a tuning message for individual notes as they are played.

Frequency values

If Template:Mvar is a frequency in hertz, then the corresponding MIDI note number Template:MvarTemplate:Sub is given by the formula

N๐–ฌ๐–จ๐–ฃ๐–จ=69+12โ‹…log2(f 440 Hz )=69+12 log⁡2 log⁡(f 440 Hz ) ,

where "Template:Math" in the second expression is any logarithm (e.g. either the common logarithm Template:Math , the natural logarithm Template:Nobr , or any other).

The quantity Template:Nobr is the number of octaves above the 440 Hz concert A, or A4, or [[Helmholtz pitch notation|Template:Math′]] . Multiplying it by 12 gives the number of semitones above 440 Hz (the value is negative if the frequency Template:Mvar is lower in pitch than 440 Hz). Adding 69 (decimal, or 0x45 hexadecimal) gives the number of semitones above the C five octaves below middle C.

Not only is 440 Hz the standard central pitch for MIDI, it is also widely used as the concert A standard pitch (ATemplate:Sub e.g. USA, UK), and since that is represented in MIDI signals by the integer 69 (nine semitones above middle C (CTemplate:Sub, Template:Math), which is 60 decimal or 0x3C hexadecimal), this gives a real number which expresses pitch in a manner consistent with midi and integer notation, known as the MIDI note number, Template:Nobr

Converting from MIDI note number (Template:MvarTemplate:Sub) to frequency (Template:Mvar) is given by the following formula:

 f=440 ๐–ง๐—“โ‹…2[ ( N๐–ฌ๐–จ๐–ฃ๐–จ โˆ’ 69 )/12 ] =440 ๐–ง๐—“โ‹…exp⁡[  ln⁡2 12( N๐–ฌ๐–จ๐–ฃ๐–จ โˆ’ 69 ) ].

Frequency Data Format

The frequency data format allows for the precise notation of frequencies that differ from equal temperament.

"Frequency data shall be defined in [units] which are fractions of a semitone. The frequency range starts at MIDI note 0, C = 8.1758 Hz, and extends above MIDI note 127, G = 12543.854 Hz. The first byte of the frequency data word specifies the highest equal-tempered semitone not exceeding the frequency. The next two bytes (14 bits) specify the fraction of 100 cents above the semitone at which the frequency lies. Effective resolution = Template:Nowrap = .0061 cents."[1]

This higher resolution allows a logarithmic representation of pitch in which the semitone is divided into Template:Nowrap, which means the octave is divided into Template:Val (logarithmically) equal parts. These parts are exactly Template:Sfrac cents (approximately 0.0061 cents) in size, which is far below the threshold of human pitch perception and which therefore allows a very accurate representation of pitch.

Applications

The precision pitch values may be used in microtonal music, just intonation, meantone temperament, or other alternative tunings.

Software which supports MTS includes Scala, TiMidity++, ZynAddSubFX and FluidSynth.

Software plugin instruments which support MTS include Native Instruments FM8, Synthogy Ivory, and Xen-Arts' various xenharmonic VSTi plugins, including the FMTS FM synthesizer, Ivor virtual analog synthesizer, and XenFont SoundFont sample player.

Hardware instruments in current production which support MTS include: Dave Smith Instruments (DSI) Rev-2, Prophet-12, Prophet-6, Oberheim OB-6, Moog Sub37, Minitaur, Novation Bass Station II, Peak, Sonoclast Plastic Pitch MIDI Microtuner, and the Waldorf Kyra.

See also

References

Template:Reflist

Template:Spoken Wikipedia

  1. โ†‘ Cite error: Invalid <ref> tag; no text was provided for refs named "refname1".