Audio Production

Extracting MIDI Data From Audio In Cubase 6


The ability to extract melodies from audio is bound to be welcomed by any producer. There are of course third party applications and plug-ins that are up to the task and the best are probably produced by Celemony. Luckily though, if you are a Cubase 6 user you can do this right within your project.

Republished Tutorial

Every few weeks, we revisit some of our reader's favorite posts from throughout the history of the site. This tutorial was first published in May of 2011.

In this tutorial we'll take a look at this relatively straightforward process from identifying the melody you want to extract, right through to using the new MIDI file with a software instrument. It really goes without saying but unfortunately the techniques demonstrated here do require the user to have Cubase 6.

Step 1: Your Original Audio

First up you’ll need to choose the audio you want to convert to MIDI data. In this case we are using a basic monophonic synth line. Whatever instrument you choose to process here it really should be simple and monophonic in nature. The pitch detection system in Cubase is good but doesn’t get on well with complex or harmonically rich content.

Here I had a synth loop that contained the perfect melody for the project I was working on but the sound itself was not right. I needed something a little more epic in nature. Having the MIDI for this melody line would be the perfect solution.

Once you have your audio file in place, perform all the usual checks you would with any other audio. So look for overs, clips, distortion, clicks and pops. It’s also worth mentioning that your audio should be dry and not over processed. Once you are happy we can move on to the next stage and start to detect the pitch in our melody.

The original audio is in place.

The very plain, original synth melody in pure audio form.

Step 2: VariAudio Analysis

The next step is to analyse the pitch in our synth line and to do this we’ll need to utilise the VariAudio feature of Cubase 6. To access this system you simply need to double click on the audio part and you’ll be presented with a dedicated audio editor. It's in this editor that we’ll do our pitch detection.

Once inside the editor window you’ll notice a number of options on the left hand side. One of these areas is labelled ‘VariAudio’ and this is the one your are after. With this clicked further menus will become available.

Now hit the first entry in the list, which is ‘Pitch and Warp’. Once activated this option will analyse your audio and generate a pitch signature for it. The pitch display is overlaid over that of the audio, with both note and pitch variation clearly visible.

The pitch is detected and displayed.

We are now ready to generate our MIDI information.

Step 3: Extracting the MIDI

At the bottom of the list of options in the VariAudio window you should see a button labelled ‘Extract MIDI’. Hit this and a new window will pop up giving you... Yes you guessed it, more options!!

Here we can choose what data is included in our extracted MIDI file. You can opt for a few different flavours of pitch bend data to be thrown into the mix, this is especially useful if your audio has a lot bends in it. In this case everything is nice and static so I left this unchecked.

The static pitch bend option is used here.

You can also choose between a fixed and dynamic velocity. I went for the dynamic option to try and create a more realistic copy of the audio part. You can also specify the destination of the MIDI data.

The MIDI is brought into a temporary track for editing.

I instructed my new MIDI to go straight to the next available MIDI track and hooked it straight up to a simple synth patch in Cubase’s Prologue synth, so you could hear the playback. As you can hear from the clip below things were a little out and needed a quick tweak.

At this point the MIDI part is not on point and sounds a bit messy.

The new MIDI data’s timing is not exactly tight!

Step 4: Edit and Quantise

The easiest thing to do here is quantise the hell out of your new MIDI part. Of course this will only really work if the original pattern was heavily quantised and didn’t contain much of a groove.

I find that in most cases moving the parts manually will give you more success. In this case I just shuffled things about until they were the same as the original audio. You can flick back to the audio and even play it over your MIDI for a point of reference.

The pattern is tightened up using some manual editing.

The new tighter edited MIDI.

Step 5: Using Your MIDI with New Instruments

Finally I wanted to place my new MIDI into the project I originally had in mind. To do this the new MIDI was first exported from the basic working project. The target project was then loaded and a new MIDI track instantiated, before the MIDI file was re-imported.

The MIDI is imported into our target project.

All of Cubase’s MIDI file Import and Export functions are in the file menu and the whole operation is very similar to importing an audio file.

The part in place in the new project.

The next move was to load up a new instrument and pick the patch I wanted our new melody to playback. I opted for an instance of Spectrasonics' Omnisphere and picked a pretty epic synth patch. You can hear what this sounded like here.

The MIDI plays back using the Omnisphere patch.

The Omnisphere patch used.

The sound is then mixed with the whole project. As you can hear the melody has taken on a whole new style and this would not of been possible without the Audio to MIDI function that Cubase 6 includes.

The project plays back with it’s new part.

The final result is mixed with our target project for a much more epic effect.

Related Posts
  • Music & Audio
    Music Theory
    Writing for Orchestral InstrumentsOrchestralpreview
    Some composers still enjoy the amazing privilege of working with a live orchestra to record their work. Imagine having a 60-piece string orchestra just sitting in front of you, ready to play your latest composition. A full woodwind and brass section right there, waiting to do your bidding! So how do you create your musical ideas in such a way so that each part sounds perfectly tailor made and ‘just right’ for that instrument? Read More…
  • Music & Audio
    Sound Design
    Sound Design with Charlatan VSTiIntro ch vsti retina
    The Charlatan VSTi synth is top quality, and totally free. In this tutorial I'll show you how to make bass, lead, pad and rhythmic noise sounds with it. We'll also create a basic sampled kick, and create a pumping effect on the bass and kick using sidechain compression.Read More…
  • Music & Audio
    Audio Production
    How to Use External Instruments in your DAWExternalinstrumentpreview400
    Do you have hardware synths? In this tutorial we show you how you can integrate external instruments into your DAW, recording MIDI as if they're soft synths, and handling audio on the same channel. We'll use Logic Pro X, but the same techniques will work in most other DAWs.Read More…
  • Music & Audio
    Beginner's Introduction to Composing on the Computer - SoftwareComposition on computer pt2 400
    When I first started out composing and producing on the computer some 12 years ago, I didn’t have the benefit of having somebody show me all that there was to know about the basic concepts of composing and producing on a computer-based system. In this second part of this two-part series, I will give you a beginners introduction to the software side of composing on the computer.Read More…
  • Music & Audio
    Audio Production
    Celemony Melodyne – The Ultimate Pitch Correction & Quantization ToolMelodynevocals2preview400
    Celemony’s Melodyne Editor is one of the major tools used for vocal editing and pitch correction. It has revolutionised the vocal editing process, enabling you to manipulate the notes of the vocals in ways you never thought was possible. It's more flexibility than similar products, and is available in standalone and plugin formats.Read More…
  • Music & Audio
    Audio Production
    Practical MIDIIcon
    MIDI surrounds us all, or at least is very present anyways. At best we never really realize what MIDI is doing and we happily go about our audio lives ignorant to its existence. At worst it causes us more headaches, aggravation, and pain then it seems worth. Okay maybe that is a little over dramatic, but not all is lost my friends! MIDI has many practical uses that everyone should know about that can make mixing, composing, etc. easier and more musical.Read More…