A program for determining the bpm and key of a track. Determining tonality is for the laziest. Online sentiment databases

At the moment, I know of two specialized software products that solve the problem of tonality determination. The first one is Mixed In Key, which, thanks to clever marketing, made a lot of noise in the DJ community. A copy of this program, which has earned favorable reviews from stars such as Pete Tong, costs $58 at the time of writing.

At the moment it is the most popular program, but this is actually a very controversial issue.

The second product, in the shadow of Mixed In Key, but no less interesting for that reason, is the same Rapid Evolution, with which we are already familiar. In terms of functionality, it is not inferior, if not superior, to MIK, and at the same time it is completely free.

Automatic key detection in Rapid Evolution is very simple. First you need to add the compositions you are interested in to the program library. To do this, in the main window, click on the add songs button. In the dialog box that appears, click browse and select a track or folder on the disk. Finally, click add all to add all the tracks in the folder to the library.

Then, in the search table, select the tracks whose keys you want to determine. Click on the right mouse button and in the context menu that appears, select detect, and then key to start the sentiment detection process. Be patient, because... this will take some time. Finally, in the key column next to the track names, their keys, determined by Rapid Evolution, will appear.

By the way, RE can determine the tonality of not only music files on your computer, but also the “live” signal coming from the linear input of the sound card! This is extremely useful, for example, for determining the keys of tracks in your vinyl collection.

As I said, Rapid Evolution and Mixed In Key are specialized programs for determining keys. At the same time, the growing popularity of harmonic mixing leads to the fact that this function appears in computer emulators of a DJ setup. What has been said above all concerns the well-known Virtual DJ And MixMeister.

To automatically detect the key of a track in Virtual DJ, you need to do two things. First, right-click on the title of the track table at the bottom of the screen and in the menu that appears, check the box next to Key. A Key column will appear in the table, which will later display the keys of the tracks.

Finally, much like in Rapid Evolution, select the desired tracks in the table, right-click and select Scan for BPMs. After a short analysis of the tracks, Virtual DJ will display their keys in the corresponding column.

A few words about accuracy. I haven’t tried Mixed In Key in action, but I can say about Rapid Evolution that it is quite reliable, but not always. The creators of RE claim that the program correctly determines the key in 67-71% of cases, which, in general, is not so bad. However, RE has identified the key of Martin Solveig – Rejection (Ian Carey Remix) above as D# instead of D#m.

I cannot vouch for the quality of the Virtual DJ definition, but overall I found it satisfactory. By the way, to determine the keys of the compositions in your collection, it is better to use the same program. Experience shows that even if a product “lies” from time to time, the tones it defines as compatible often turn out to be so in reality.


Keys: Basics

If you look at a synthesizer or piano keyboard, you will see that it is made up of repeating groups of seven white keys plus five black keys. Each such group is called an octave (see below). The white keys within the octave correspond to the notes C, D, E, F, G, A and B, or C, D, E, F, G, A and B in letter notation. After B, it comes again to the next octave.
What is tonality? To put it very simply, a key is a set of notes on which a melody is built. Each such set is built according to certain rules from the tonic (the main note of the key) and can be major or minor. Major keys sound cheerful and life-affirming, while minor keys sound sad and melancholy.
Because Since there are only 12 notes in an octave, there are 24 keys - a minor and a major for each possible tonic. The tonality is indicated by the name of the main note and the scale built from it - major or minor. For example: D major (D, D major), D minor (Dm, D minor), B-flat major (B♭, B♭ major, B-flat major).
It’s not for nothing that the tonic is called the main note of the key. Whatever key the melody sounds in, it always gravitates towards its tonic. The main note always sounds appropriate and harmonizes with any melody that is in the key of its name. As you'll see later, this property of the tonic is very useful in determining the key of a track.

Determining tone by ear

In order to build a set in accordance with the rules of harmonic mixing, you need to know the keys of your tracks in advance. There are three ways to determine the key of a composition: by ear, using special programs and, finally, using key databases on the Internet. I'll start by determining the tonality by ear, and for good reason.
Modern accountants have been using computers for a long time, but, you must admit, they still need to know the multiplication tables. So it is with the ability to determine tonality by ear for a DJ. Of course, there are computer programs that do this automatically, and the key of the desired track can often be found on special websites. At the same time, the accuracy of the software definition is not one hundred percent, and not all compositions are present in Internet databases. Therefore, you need to at least have an idea of ​​​​how to determine the key yourself.

To determine the key by ear, you will need a piano, a synthesizer, or a computer piano keyboard emulator. Looking ahead a little, I recommend installing Rapid Evolution: the virtual keyboard of this program has a chord construction function, which makes it much easier for a beginner to determine the key. (Rapid Evolution requires the Java Virtual Machine to be installed on your computer).

Making sure that single note is selected in the drop-down list to the left of the OK button, move through the keys on the virtual keyboard one by one (you may need to experiment in different octaves). Sooner or later, you'll find one note that sounds better than the others - no matter where the melody is going. The note that stands out the least, almost disappearing into the background of the melody, is most likely to be the tonic.
Having found a possible tonic, try its dominant (7 semitones higher) and subdominant (5 semitones higher). (A semitone is the distance between the two closest keys, black and white, or two white ones like E and F). If you guessed the tonic correctly, then its dominant and subdominant should also suit the melody well.
After you are sure that you are dealing with the main note of the key, it remains to determine its mode - major or minor. In the already familiar drop-down list, instead of single note, select major and press the tonic key. Listen to whether the resulting major chord is in harmony with the melody. Then try minor - select minor and press the main note key again. You can infer the key scale based on which of these two chords fits best with the melody of the track.

Clue. Most modern dance compositions are written in minor keys. Some say that this is due to the wider range of emotional shades that the minor conveys. Others say that it's all about the music of the black slaves of America, where sad melodies predominated and in which electronic music has its roots. One way or another, this observation is worth taking note!

Example 1. Let's try to determine the tonality of the composition Todd Terry All Stars – Get Down (Kenny Dope Original Mix), which is well known to you from the article “Track Structure”:
We start the track, rewind to the place where the melody begins, and start playing notes - C, then C#, D, D# and so on. From the very beginning we are lucky: C goes very well with the melody. We go further and find that G also sounds good in the context of the track. If C is the tonic, then its dominant and subdominant, G and F, respectively, should go well with the track. G we have already “opened”; Let's try F, which seems to have been missed at first. That’s right, F also sounds good against the background of the composition. We need to be more careful!
So, the tonic is most likely C. Let's determine the mode of tonality. The major chord, starting from C, clearly sounds out of place, but the minor chord seems to be “soldered” into the composition, sounds like a native one in it. This means that the key of Get Down is Cm, which is also C minor.

Example 2. Next test subject: Martin Solveig – Rejection (Ian Carey Remix):
For variety, let's start playing notes starting with F. Moving up, we notice that A♭ and B♭ harmonize well with the track; this is interesting because they can be a subdominant and a dominant respectively (since the distance between them is exactly two semitones). If so, then the root note should be 7 semitones below B♭, namely E♭. And indeed, E♭ fits perfectly into the composition, sounding appropriate at any point.
We determine the fret using the usual method. The major chord in the background of the track is out of tune again, but the minor chord is just what the doctor ordered. We conclude that the key of the track is E♭m, or E-flat minor. By the way, since E♭ and D# are the same note, then (here I’m simplifying a little) E♭m can also be designated as D#m, or D sharp minor. Do not forget about it.
Well, haven’t you lost the desire to learn harmonic mixing yet? Don't worry, it will get easier. In the next part of the series, I will talk about programs that automatically determine sentiment, as well as ready-made databases on the Internet. A little patience, we are moving on!

Tonality determination for the lazy

At the moment, I know of two specialized software products that solve the problem of tonality determination. The first of them is Mixed In Key, which, thanks to thoughtful marketing, created a lot of noise in the DJ community. A copy of this program, which has earned favorable reviews from stars such as Pete Tong, costs $58 at the time of writing.
The second product, in the shadow of Mixed In Key, but no less interesting, is the same Rapid Evolution with which we are already familiar. In terms of functionality, it is not inferior, if not superior, to MIK, and at the same time it is completely free.

Then, in the search table, select the tracks whose keys you want to determine. Click on the right mouse button and in the context menu that appears, select detect, and then key (see below on the right) to start the process of detecting sentiments. Be patient, because... this will take some time. Finally, in the key column next to the track names, their keys, determined by Rapid Evolution, will appear.

specialized programs fordefinitions of tonality. At the same time, the growing popularity of harmonic mixing leads to the fact that this function appears in computer emulators of a DJ setup. What has been said above all concerns the well-known Virtual DJ and MixMeister. To automatically detect the key of a track in Virtual DJ, you need to do two things. First, right-click on the title of the track table at the bottom of the screen and in the menu that appears, check the box next to Key. A Key column will appear in the table, which will later display the keys of the tracks.

A few words about accuracy. I haven’t tried Mixed In Key in action, but I can say about Rapid Evolution that it is quite reliable, but not always. The creators of RE claim that the program correctly determines the key in 67-71% of cases, which, in general, is not so bad. However, RE identified the key of Martin Solveig – Rejection (Ian Carey Remix) from the previous article as D# instead of D#m.

I cannot vouch for the quality of the Virtual DJ definition, but overall I found it satisfactory. By the way, to determine the keys of the compositions in your collection, it is better to use the same program. Experience shows that even if a product “lies” from time to time, the tones it defines as compatible (more on this in the next article) often turn out to be so in reality.

Online sentiment databases

MixShare. The MixShare website, where Rapid Evolution comes from, has its own database of track information. It is located in the Music section and, apparently, was compiled using the results of the composition analysis of the above-mentioned program.
To access this section, you will have to register, but it is free and fast. Regarding the database itself, the page is very slow, and in it I could not find any of the dance tracks that interested me. Moreover, after a couple of searches, my account was blocked for “exceeding the traffic limit.” Well, maybe you'll have better luck.

Harmonic Mixing Database. The creator of this site took an interesting path. He builds a database of track information by analyzing tracks on Beatport (an online dance music store) in Mixed In Key. At the time of writing this article, there were about 400 thousand tracks in the site’s database, and finding the composition you were interested in seemed like a very real idea.

I will note that the track data on the Harmonic Mixing Database generally seems to be more accurate than the results of the Rapid Evolution analysis. This may indicate a slight superiority on the part of Mixed In Key.
I suspect that you already dream about determining the keys of tracks at night. It remains to learn about the most interesting things: how to translate quantity into quality, or information about the keys of compositions into the ability to create truly smooth mixes. I will talk about this in the last article of the series on harmonic mixing.

How to mix harmonically

Once you have determined the keys of the tracks in your music collection, the fun begins. In order for your set to be built according to the rules of harmonic mixing, it is necessary that the tonality of each subsequent composition be compatible with the tonality of the previous one. There are certain rules about which keys are compatible with each other, but fortunately you don't have to graduate from a conservatory to use them.

Now your task is simpler: choose the next track after Get Down so that it is in the key of Fm, Gm, E♭ or the same Cm. This almost guarantees that the compositions will fit together well when mixed.
In practice, to mark tracks on CDs or record covers, instead of keys, it is better to use Camelot numbering: 1A, 2A and so on. This will allow you to identify compatible tones without the wheel itself in front of your eyes. The easiest way to demonstrate the rule is with an example: for 11B, 10B, 12B (a number one more or less, the same letter), 11A (the same number, a different letter) or 11B itself will be compatible.
After you try to mix tracks several times taking into account keys, you will have a completely legitimate question. As you know, in the process of beatmatching you select the pitch of a new track so that its tempo matches the tempo of the previous one. But changing the pitch naturally distorts the tonality of the composition, making the sound higher when the pitch is increased and lower when it is decreased. It turns out that if the tempos of the tracks are different, then information about their keys is useless?
Not really. First, to raise or lower the key of a track by one semitone, you need to change the pitch by as much as 6%. This means that if the pitch positions of the tracks being mixed are close to each other, by 1-2%, then compositions in compatible keys will still work well together harmonically.
Secondly, many modern CD and even vinyl players have a Master Tempo function, which, using digital audio processing, preserves the original tonality of the track regardless of the pitch position. This function completely solves the problem of the influence of pitch on tonality. I even suspect that its spread had a direct impact on the growing popularity of the harmonic mixing method itself.

And for dessert: the “energy pumping” method

When the keys of the tracks being mixed are compatible with each other, you can afford to make very long transitions without worrying about the melodies of the compositions conflicting. There is another trick in the harmonic mixing arsenal called “energy pumping.”
In this mixing method, you select the next track not based on the principle of key compatibility, but so that its key is one or two semitones higher than the key of the current track, in the same scale. For example, if Martin Solveig – Rejection (Ian Carey Remix) is playing on the dance floor in the key of E♭m, then the next track should be in the key of Em or Fm. The effect of this method is an ever-increasing energy on the dance floor; the set seems to be going from strength to strength.
If you use Camelot numbering, then to “pump up energy” you need to add 7 or 2 to the key number of the current track. For the example above: the number E♭m (i.e. E-flat minor) is 2A, which means the next track should be in the key of 9A or 4A, and this is just E minor or F minor.
Unlike classical harmonic mixing, “energy pumping” does not lead to lengthy transitions, because The keys of the tracks being mixed are incompatible. So be sure to keep your transitions short when using this method, or use an equalizer to cut out conflicting elements of your compositions.
In conclusion of the story about harmonic mixing, I want to say that everything is good in moderation. Picking your next track based solely on its key can greatly limit your options. Rules are made to be broken; don’t let them stop you from delivering that “bomb” that the dance floor is waiting for here and now. Let harmonic mixing be another weapon in your DJ arsenal, not a handcuff that limits your freedom.

There is such a thing in DJing that beginners don’t always figure out with their own minds. This is harmonic mixing.

What is it for?

This is to make the mix better. I believe that it is better to hear once than to read a hundred times. Let's start with an example:

Like? I doubt it :) Another example:

Now it is clear? :)

How to achieve this?

To achieve the effect and create a truly beautiful and euphonious transition between tracks, you need to know the key of this track (that is, its key), and how to alternate these keys.

Generally speaking, everything has already been invented and done for us, we just need to go and take it.

Mixed In Key and Co.

On the Mixed In Key website you can buy (or find it somewhere on Google for free - it’s a matter of religion) a program of the same name, which scans your music collection and produces a list of songs that can be mixed beautifully.

By the way, the same function is provided by MixMeister Studio and MixMeister Fusion (mixmeister.com), saving the resulting value directly in the library (which is much more convenient, I think).

Traktor DJ Studio, starting from the second branch, can also remember (but not determine!) key in its Track Collection. Can Ableton Live do this? - I don’t remember exactly, I hope for your hint :)

Harmonic circle and Camelot notation

A certain Mark Davis (to whom we all should say a big thank you) invented and wrote down the Camelot notation, grouping the most commonly found tonalities in European culture into a kind of “clock”:

To begin with, it would be a good idea to simply try mixing tracks whose keys are completely the same.

Then you can try moving forward or backward by an hour. That is, if the original track is D-flat Minor (12A), then the next one can be A-Flat Minor (1A) or F-Sharp Minor (11A).

Another experiment is transitions from the inner circle to the outer within the same “hour”, that is, from minor to major and vice versa. Here you need to be careful with the mood of the track: in the middle of a cheerful club house it’s not always possible to throw in some kind of dark electro :)

It can take a long time to explain in words, but the shortest way is direct practice. If the bear does not step on your ear, then it will immediately become clear what is good and what is bad.

Things to remember

On one foreign forum I came across a post where it was said that MixMeister products recognize tonality with an accuracy of up to 70%, in particular, they very rarely distinguish between major and minor. You can blame yourself here - no one canceled the ears, if it “doesn’t sound”, you need to take matters into your own hands. On the website of the same Mixed In Key, many DJs and producers admitted that they had previously used a piano keyboard or a synthesizer (which, by the way, is a much more accurate method, although it requires hearing and time).

Another subtlety is the “tempo-key” dependency. You need to know that if we accelerate or decelerate the track, then every 6% of speed the tone will change according to the direction. If the track was originally 140BPM and in the key of 12A, then slowing it down by 6% will result in 11A.

There is a simple rule: if the difference in speeds is less than three percent, then the tonality of the second track can be taken the same. If there are more than three, one more/less.

And remember Harmonic mixing is not a panacea for creating a high-quality mix, it is just one of the components. The creative component, as well as good taste when choosing music for a set, should never be forgotten.

If you want to make your tracks more musical, but do not have sufficient knowledge about keys, scales and harmonies, then our article is definitely for you. This set of tools and tricks will help you learn how to add melodies and add bass to any of your songs, using the right notes and without much effort.

Step 1: Determine the Pitch of Your Audio

If you already know what key your sample is playing in or, say, you are building a melody from scratches, you can skip this step. Often, when using sound libraries, the key of the sample is indicated in its name (something like "C" or "Am") or if, for example, you buy a track on a service like beatport, then the key data can be written into the meta data track.

But if you don’t know what key your track is in and still want to add a couple of musical parts to it, you should find out so as not to spoil both the music and your nerves. There are quite a few programs that can help you determine the key of a song, including Keyfinder, which we will use in this article. It's free :)

Just open the program, drop your audio into it with the mouse and click “Run Analysis”. The key of the track will be determined and shown on the right. By the way, you can throw many files into the program at once and determine the tone of all of them at once. Convenient if you want to create something from a bunch of samples or simply label them for the convenience of subsequent work. By the way, this is what I’ll do as soon as I finish it...

So, let's say the result is a guitar sample in G-flat minor (Gbm). That's all you need to move on to the next step.

Step 2: Choosing the Right Notes

Now it's time to select the notes that we will use for the purposes stated above. Don't panic, no special knowledge of musical literacy is required as long as we have good old Wikipedia! All you need is to download two pictures. Seriously?! Well, the author will not be offended if instead you add this article to your favorites and open it when necessary.

The first picture is for major scales, the second is for minor ones. If your audio corresponds to a key from a minor scale, then a small “m” is added next to its name. (as in the case of Gbm)

If the name has only one capital letter (for example A or D) and there may be symbols # - sharp major and b - flat major, then this, accordingly, refers to major scales.

Of course, there are many more of them, but mostly in electronic music the keys we are considering are used.



Typically each key has 7 notes that you can play that will sound in tune. What you see in the left column are the names of the keys themselves, and the vertical columns show (keyboard style) suitable notes for each of them. At the top are the names of the notes. So basically, the table shows which notes will work in a certain key. The numbers on the notes show their number in a given key and which of them we want to use first :)

If you start with scratches, then in principle you can take any of these keys and play the necessary melodies on it from the provided notes. Or you can just play something first, and then determine the key and work. If you don’t have a MIDI keyboard, you can do this on a regular keyboard, or even with a mouse in piano roll.

If we return to our sample from the first step and try to find its key (Gbm) in the table, then nothing will come of it. But don't panic, let's take a closer look! Looking at the note Gb, we can see that it is the same note as F#. It turns out that Gbm = F#m, although there is no mathematics! Pay attention to this feature so as not to be confused in the future with both this and other keys.

Now is the time to put what you have learned into practice. Take your sample, determine the key and create some amazing melodies. You are completely safe as long as you use the sheet music from the chart!

And if you decide to record a bass line, then now you will have no equal!

But that’s all for now 🙁

In the next article we will talk about chords...

It happens that a melody comes to mind and “you can’t knock it out of there with a stake” - you want to play and play, or even better, write it down so as not to forget. Or at the next band rehearsal you learn a friend’s new song, frantically picking out the chords by ear. In both cases, you are faced with the fact that you need to understand in what key to play, sing or record.

Both a schoolchild, analyzing a musical example in a solfeggio lesson, and an unfortunate accompanist, who was asked to play along with a vocalist who demands that the concert continue two tones lower, are thinking about how to determine the key of a melody.

How to determine the key of a melody: the solution

Without delving into the wilds of music theory, the algorithm for determining the key of a melody is as follows:

  1. determine the tonic;
  2. determine the mode;
  3. tonic + mode = name of key.

He who has ears, let him hear: he will simply determine the tonality by ear!

Tonic is the most stable sounding level, a kind of main support. If you select the key by ear, then try to find a sound on which you can end the melody, put a point. This sound will be the tonic.

Unless the melody is an Indian raga or Turkish mugham, determining the mode is not that difficult. “As we hear,” we have two main modes – major and minor. Major has a light, joyful tone, minor has a dark, sad tone. Usually, even a slightly trained ear allows you to quickly identify the fret. For self-test, you can play a triad or scale of the key being determined and compare it to see if the sound is harmonious with the main melody.

Once the tonic and mode have been found, you can safely call it. Thus, the tonic “F” and the mode “major” make up the key of F major. To find the signs at the key, just refer to the table of the correlation of signs and tonalities.

How to determine the key of a melody in a sheet music text? Reading the key signs!

If you need to determine the key of a melody in a musical text, pay attention to the signs at the key. Only two keys can have the same set of characters in the key. This rule is reflected in the circle of fourths and fifths and the table of relationships between signs and tonalities created on its basis, which we already showed you a little earlier. If, for example, “F sharp” is drawn next to the key, then there are two options - either E minor or G major. So the next step is to find the tonic. As a rule, this is the last note in the melody.

Some nuances when determining tonic:

1) the melody can end on another stable sound (III or V stage). In this case, of the two tonal options, you need to choose the one whose tonic triad includes this stable sound;

2) “modulation” is possible - this is the case when the melody began in one key and ended in another key. Here you need to pay attention to the new, “random” signs of alteration that appear in the melody - they will serve as a hint to the key signs of the new key. Also worth noting is the new tonic support. If this is a solfeggio assignment, the correct answer would be to write the modulation path. For example, modulation from D major to B minor.

There are also more complex cases in which the question of how to determine the key of a melody remains open. These are polytonal or atonal melodies, but this topic requires a separate discussion.



Have questions?

Report a typo

Text that will be sent to our editors: