Difference between revisions of "The Perceptual Tuning Primer"

From 8BitDev.org - Atari 7800 Development Wiki
Jump to: navigation, search
Line 16: Line 16:
 
When we play 2 or more notes that are normally consonant on an instrument that is slightly out of tune, our brains easily pick out the loss of consonance; waves that should line up drift in and out of alignment. When we play 2 or more notes together that are normally dissonant on the same out-of-tune instrument, the result is still dissonance; waves that take a long time to line up, still take a long time to line up. Our brains use the relative consonance/dissonance as part of the note relationship identification strategy.<ref>[http://www.jneurosci.org/content/29/42/13165.full The Journal of Neuroscience, 21 October 2009, 29(42): 13165-13171; doi: 10.1523/JNEUROSCI.3900-09.2009]</ref>
 
When we play 2 or more notes that are normally consonant on an instrument that is slightly out of tune, our brains easily pick out the loss of consonance; waves that should line up drift in and out of alignment. When we play 2 or more notes together that are normally dissonant on the same out-of-tune instrument, the result is still dissonance; waves that take a long time to line up, still take a long time to line up. Our brains use the relative consonance/dissonance as part of the note relationship identification strategy.<ref>[http://www.jneurosci.org/content/29/42/13165.full The Journal of Neuroscience, 21 October 2009, 29(42): 13165-13171; doi: 10.1523/JNEUROSCI.3900-09.2009]</ref>
  
The last bit of theory we need to understand is that almost all music is written in a particular key, which can be thought of as a foundation note - the notes played in the song are interpreted by our brains in relation to the key, just as if they had been played at the same time as the key. As the music unfolds, the different notes being played vary in pitch, but they also vary the level of consonance and dissonance relative to the key. As you might expect, if any given note is consonant to the key, our brains are more sensitive to that note being out of tune.
+
The last bit of theory we need to understand is that almost all music is written in a particular key, which can be thought of as a foundation note. The notes played in the song are interpreted by our brains in relation to the key. As notes are played that are dissonant in relation to the key, tension builds. When the key or notes that are consonant to the key are played, tension is relaxed.
  
While TIA is incapable of creating music that is in absolutely in tune, we can pick a key for creating TIA music that will ensure that consonant notes are closer to being in tune, leaving the out-of-tune notes to dissonant notes. This is what we call Perceptual Tuning.
+
While TIA is incapable of creating music that is in absolutely in tune, we can pick a key for creating TIA music that will ensure that the consonant notes are closer to being in tune, while worrying less about the dissonant notes. This is the idea behind Perceptual Tuning.
  
 
To find the key that had the best TIA Perceptual Tuning properties, a program was created that ran through all of the available frequencies and scored them according to how in-tune the following notes were. The score for any given note was weighted according to the relationship of the note to it's key, with much larger weights being assigned to relationships with strong consonance - namely the major third, perfect fourth, perfect fifth, and octave intervals.
 
To find the key that had the best TIA Perceptual Tuning properties, a program was created that ran through all of the available frequencies and scored them according to how in-tune the following notes were. The score for any given note was weighted according to the relationship of the note to it's key, with much larger weights being assigned to relationships with strong consonance - namely the major third, perfect fourth, perfect fifth, and octave intervals.
Line 28: Line 28:
 
The musical key with the best TIA Perceptual Tuning for any 12 consecutive notes is A3@218.3Hz, and the next higher 12 notes is good as well if you can avoid the major third at C#5@561.4Hz. Write your songs in the key of A3, and you'll take advantage of Perceptual Tuning.
 
The musical key with the best TIA Perceptual Tuning for any 12 consecutive notes is A3@218.3Hz, and the next higher 12 notes is good as well if you can avoid the major third at C#5@561.4Hz. Write your songs in the key of A3, and you'll take advantage of Perceptual Tuning.
  
There's a lot of theory behind it, but in practice Perceptual Tuning is very simple to implement. Check out the samples below to hear the difference between regular tuning, tune2600 selected tuning, and perceptual tuning. The sample represent a worst case example: a familiar song that makes extensive use of sustained chords.
+
There's a lot of theory behind it, but in practice Perceptual Tuning is very simple to implement. Check out the samples below to hear the difference between regular tuning, tune2600 selected tuning, and perceptual tuning. The sample represent a worst case example: a familiar song that makes extensive use of sustained chords, and covers more than an octave.
  
 
===O Tannenbaum, in D4===
 
===O Tannenbaum, in D4===

Revision as of 17:15, 2 November 2015

Overview

Perceptual Tuning refers to arranging TIA music in the key of A (specifically A3) with the intent to shift any poorly tuned notes to ones to ones aren't as easily detected as being poorly tuned.

Perceptual Tuning differs from using the Tune2600 utility. Tune2600 will transpose your selected notes to make them as in-tune as possible, with the algorithm considering your selected notes as having equal importance.

Theory

This section is rather heavy, while using Perceptual Tuning is rather simple in practice. If you find yourself overwhelmed by the theory, feel free to skip ahead to the Practical Application section.

When a note sounds "off" to a listener, it isn't because the listener hears that the note is 262 Hz rather than 261.626Hz. It's because the frequency relationship of the note sounds off in relation to other notes in the music. If you speed up the playback of a recording of Beethoven's 5th symphony, the pitch of the notes being played are shifted upwards, but overall the recording will still sound in tune because the relationships between those notes are remain the same.

Our brains are better at picking out bad tuning for some note relationships better than others. When 2 or more note frequencies line up with regular periodicity, our brains detect that. There's even have a musical name for the effect - it's called consonance[1]. When the frequencies don't line up regularly, we call that dissonance[1].

2 sine waves, a perfect fifth interval apart. Note how one wave beginning quickly lines up with the other, resulting in consonance.
2 sine waves, a minor sixth interval apart. It will be a long while before the waves coincide, resulting in dissonance.

When we play 2 or more notes that are normally consonant on an instrument that is slightly out of tune, our brains easily pick out the loss of consonance; waves that should line up drift in and out of alignment. When we play 2 or more notes together that are normally dissonant on the same out-of-tune instrument, the result is still dissonance; waves that take a long time to line up, still take a long time to line up. Our brains use the relative consonance/dissonance as part of the note relationship identification strategy.[2]

The last bit of theory we need to understand is that almost all music is written in a particular key, which can be thought of as a foundation note. The notes played in the song are interpreted by our brains in relation to the key. As notes are played that are dissonant in relation to the key, tension builds. When the key or notes that are consonant to the key are played, tension is relaxed.

While TIA is incapable of creating music that is in absolutely in tune, we can pick a key for creating TIA music that will ensure that the consonant notes are closer to being in tune, while worrying less about the dissonant notes. This is the idea behind Perceptual Tuning.

To find the key that had the best TIA Perceptual Tuning properties, a program was created that ran through all of the available frequencies and scored them according to how in-tune the following notes were. The score for any given note was weighted according to the relationship of the note to it's key, with much larger weights being assigned to relationships with strong consonance - namely the major third, perfect fourth, perfect fifth, and octave intervals.

The program found that A3@218.3Hz had the best Perceptual Tuning score, with the first 12 semitones having good perceptual tuning, with the next 12 semitones being decent except for an out-of-tune major third at C#5@561.4Hz.

Practical Application

The musical key with the best TIA Perceptual Tuning for any 12 consecutive notes is A3@218.3Hz, and the next higher 12 notes is good as well if you can avoid the major third at C#5@561.4Hz. Write your songs in the key of A3, and you'll take advantage of Perceptual Tuning.

There's a lot of theory behind it, but in practice Perceptual Tuning is very simple to implement. Check out the samples below to hear the difference between regular tuning, tune2600 selected tuning, and perceptual tuning. The sample represent a worst case example: a familiar song that makes extensive use of sustained chords, and covers more than an octave.

O Tannenbaum, in D4

Download

O Tannenbaum, in C3, as selected by tune2600

Download

O Tannenbaum, in A3 for Perceptual Tuning

Download

References

  1. 1.0 1.1 https://en.wikipedia.org/wiki/Consonance_and_dissonance
  2. The Journal of Neuroscience, 21 October 2009, 29(42): 13165-13171; doi: 10.1523/JNEUROSCI.3900-09.2009