MIDI tuning standard

Last updated

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.

Contents

Frequency values

If f is a frequency in Hertz (Hz), then the corresponding MIDI note number NMIDI is given by the formula

where "log" in the second expression is any logarithm (e.g. either the common logarithm log10 , the natural logarithm ln ≡ loge , or any other).

The quantity log2(f/ 440 Hz ) is the number of octaves above the 440 Hz concert A, or A4, or a  . Multiplying it by 12 gives the number of semitones above 440 Hz (the value is negative if the frequency f 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 (A4 e.g. USA, UK), and since that is represented in MIDI signals by the integer 69 (nine semitones above middle C (C4, c), 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, NMIDI .

Converting from MIDI note number (NMIDI) to frequency (f) is given by the following formula:

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 = 100 cents / 214 = .0061 cents." [1]

This higher resolution allows a logarithmic representation of pitch in which the semitone is divided into 1282 = 214 = 16384 parts, which means the octave is divided into 196608 (logarithmically) equal parts. These parts are exactly 100/16384 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 Plus, and the Waldorf Kyra.

See also

Related Research Articles

<span class="mw-page-title-main">Equal temperament</span> Musical tuning system with constant ratios between notes

An equal temperament is a musical temperament or tuning system that approximates just intervals by dividing an octave into steps such that the ratio of the frequencies of any adjacent pair of notes is the same. This system yields pitch steps perceived as equal in size, due to the logarithmic changes in pitch frequency.

<span class="mw-page-title-main">Logarithm</span> Mathematical function, inverse of an exponential function

In mathematics, the logarithm is the inverse function to exponentiation. That means that the logarithm of a number x to the base b is the exponent to which b must be raised to produce x. For example, since 1000 = 103, the logarithm base 10 of 1000 is 3, or log10 (1000) = 3. The logarithm of x to base b is denoted as logb (x), or without parentheses, logbx, or even without the explicit base, log x, when no confusion is possible, or when the base does not matter such as in big O notation.

In music, notes are distinct and isolatable sounds that act as the most basic building blocks for nearly all of music. This discretization facilitates performance, comprehension, and analysis. Notes may be visually communicated by writing them in musical notation.

In music, an octave or perfect octave is a series of eight notes occupying the interval between two notes, one having twice the frequency of vibration of the other. The octave relationship is a natural phenomenon that has been referred to as the "basic miracle of music", the use of which is "common in most musical systems". The interval between the first and second harmonics of the harmonic series is an octave. In Western music notation, notes separated by an octave have the same name and are of the same pitch class.

C or Do is the first note of the C major scale, the third note of the A minor scale, and the fourth note of the Guidonian hand, commonly pitched around 261.63 Hz. The actual frequency has depended on historical pitch standards, and for transposing instruments a distinction is made between written and sounding or concert pitch. It has enharmonic equivalents of B and D.

<span class="mw-page-title-main">Pitch (music)</span> Perceptual property in music ordering sounds from low to high

Pitch is a perceptual property that allows sounds to be ordered on a frequency-related scale, or more commonly, pitch is the quality that makes it possible to judge sounds as "higher" and "lower" in the sense associated with musical melodies. Pitch is a major auditory attribute of musical tones, along with duration, loudness, and timbre.

In music, two written notes have enharmonic equivalence if they produce the same pitch but are notated differently. Similarly, written intervals, chords, or key signatures are considered enharmonic if they represent identical pitches that are notated differently. The term derives from Latin enharmonicus, in turn from Late Latin enarmonius, from Ancient Greek ἐναρμόνιος, from ἐν ('in') and ἁρμονία ('harmony').

In musical tuning, the Pythagorean comma (or ditonic comma), named after the ancient mathematician and philosopher Pythagoras, is the small interval (or comma) existing in Pythagorean tuning between two enharmonically equivalent notes such as C and B, or D and C. It is equal to the frequency ratio (1.5)1227 = 531441524288 ≈ 1.01364, or about 23.46 cents, roughly a quarter of a semitone (in between 75:74 and 74:73). The comma that musical temperaments often "temper" is the Pythagorean comma.

<span class="mw-page-title-main">Binary logarithm</span> Exponent of a power of two

In mathematics, the binary logarithm is the power to which the number 2 must be raised to obtain the value n. That is, for any real number x,

The cent is a logarithmic unit of measure used for musical intervals. Twelve-tone equal temperament divides the octave into 12 semitones of 100 cents each. Typically, cents are used to express small intervals, to check intonation, or to compare the sizes of comparable intervals in different tuning systems. For humans, a single cent is too small to be perceived between successive notes.

<span class="mw-page-title-main">Pitch space</span> Model for relationships between pitches

In music theory, pitch spaces model relationships between pitches. These models typically use distance to model the degree of relatedness, with closely related pitches placed near one another, and less closely related pitches placed farther apart. Depending on the complexity of the relationships under consideration, the models may be multidimensional. Models of pitch space are often graphs, groups, lattices, or geometrical figures such as helixes. Pitch spaces distinguish octave-related pitches. When octave-related pitches are not distinguished, we have instead pitch class spaces, which represent relationships between pitch classes. Chordal spaces model relationships between chords.

<span class="mw-page-title-main">Scientific pitch notation</span> Musical notation system to describe pitch and relative frequency

Scientific pitch notation (SPN), also known as American standard pitch notation (ASPN) and international pitch notation (IPN), is a method of specifying musical pitch by combining a musical note name and a number identifying the pitch's octave.

The twelfth root of two or is an algebraic irrational number, approximately equal to 1.0594631. It is most important in Western music theory, where it represents the frequency ratio of a semitone in twelve-tone equal temperament. This number was proposed for the first time in relationship to musical tuning in the sixteenth and seventeenth centuries. It allows measurement and comparison of different intervals as consisting of different numbers of a single interval, the equal tempered semitone. A semitone itself is divided into 100 cents.

This is a list of the fundamental frequencies in hertz (cycles per second) of the keys of a modern 88-key standard or 108-key extended piano in twelve-tone equal temperament, with the 49th key, the fifth A (called A4), tuned to 440 Hz (referred to as A440). Every octave is made of twelve steps called semitones. A jump from the lowest semitone to the highest semitone in one octave doubles the frequency (for example, the fifth A is 440 Hz and the sixth A is 880 Hz). The frequency of a pitch is derived by multiplying (ascending) or dividing (descending) the frequency of the previous pitch by the twelfth root of two (approximately 1.059463). For example, to get the frequency one semitone up from A4 (A4), multiply 440 Hz by the twelfth root of two. To go from A4 up two semitones (one whole tone) to B4, multiply 440 twice by the twelfth root of two (or once by the sixth root of two, approximately 1.122462). To go from A4 up three semitones to C5 (a minor third), multiply 440 Hz three times by the twelfth root of two (or once by the fourth root of two, approximately 1.189207). For other tuning schemes, refer to musical tuning.

Quarter-comma meantone, or  1 / 4 -comma meantone, was the most common meantone temperament in the sixteenth and seventeenth centuries, and was sometimes used later. In this system the perfect fifth is flattened by one quarter of a syntonic comma ( 81 : 80 ), with respect to its just intonation used in Pythagorean tuning ; the result is  3 / 2 × [ 80 / 81 ] 1 / 4 = 45 ≈ 1.49535, or a fifth of 696.578 cents. This fifth is then iterated to generate the diatonic scale and other notes of the temperament. The purpose is to obtain justly intoned major thirds. It was described by Pietro Aron in his Toscanello de la Musica of 1523, by saying the major thirds should be tuned to be "sonorous and just, as united as possible." Later theorists Gioseffo Zarlino and Francisco de Salinas described the tuning with mathematical exactitude.

12 equal temperament (12-ET) is the musical system that divides the octave into 12 parts, all of which are equally tempered on a logarithmic scale, with a ratio equal to the 12th root of 2. That resulting smallest interval, 112 the width of an octave, is called a semitone or half step.

<span class="mw-page-title-main">Savart</span> Unit of measurement for musical pitch intervals

The savart is a unit of measurement for musical pitch intervals. One savart is equal to one thousandth of a decade : 3.9863 cents. Musically, in just intonation, the interval of a decade is precisely a just major twenty-fourth, or, in other words, three octaves and a just major third. Today, musical use of the savart has largely been replaced by the cent and the millioctave. The savart is practically the same as the earlier heptameride (eptameride), one seventh of a meride. One tenth of an heptameride is a decameride and a hundredth of an heptameride is approximately one jot.

In electronics, an octave is a logarithmic unit for ratios between frequencies, with one octave corresponding to a doubling of frequency. For example, the frequency one octave above 40 Hz is 80 Hz. The term is derived from the Western musical scale where an octave is a doubling in frequency. Specification in terms of octaves is therefore common in audio electronics.

<span class="mw-page-title-main">Five-limit tuning</span>

Five-limit tuning, 5-limit tuning, or 5-prime-limit tuning (not to be confused with 5-odd-limit tuning), is any system for tuning a musical instrument that obtains the frequency of each note by multiplying the frequency of a given reference note (the base note) by products of integer powers of 2, 3, or 5 (prime numbers limited to 5 or lower), such as 2−3·31·51 = 15/8.

In science and engineering, a power level and a field level are logarithmic magnitudes of certain quantities referenced to a standard reference value of the same type.

References

  1. MIDI Manufacturers Association, MIDI Tuning Specification ( https://midi.org/midi-tuning-updated-specification/ )
Listen to this article (5 minutes)
Sound-icon.svg
This audio file was created from a revision of this article dated 25 April 2016 (2016-04-25), and does not reflect subsequent edits.

MTS specification

Microtonal music software supporting MTS