Note Tracks

From Audacity Development Manual
Jump to: navigation, search
Other languages
Note Tracks contain data from MIDI (and Allegro) files - these can be imported with the File > Import > MIDI... command.
  • Note Tracks can be useful to visually compare a given MIDI (or Allegro) file with a sampled audio file (such as WAV) of the same music.
  • They can be cut-and-paste edited.
  • They can then be exported using the File > Export > Export MIDI... command. When exporting so as to overwrite an existing GRO, MID or MIDI file, the original file is renamed with ".bak" suffix, for example "keyboards.mid.bak".

Contents

  1. Sample Note track
  2. Playing and editing Note tracks
  3. Track Control Panel
  4. Vertical Scale
  5. Note Track Dropdown Menu
  6. Note Display
  7. Track Focus
Peter 19Aug17: Stretching has been removed for 2.2.0 (marked experimental) - so commented-out here:
  1. Stretching


A Note Track

Note tracks can be created by importing MIDI (or Allegro) files with File > Import > MIDI....

When a MIDI or Allegro is imported you will see all of the notes that are in the track, you may wish to use Vertical Zooming to zoom in to observe more detail. The image shown below is one where such vertical zooming has been used. Alternatively you can expand the Note Track vertically by clicking and dragging down on its bottom border.

Observe carefully the little black marks at the bottom right of the image. These indicate that there are additional notes in the Note Track below them. More notes can me made visible by using Vertical Zooming.

Note Track with Velocity slider.png


Playing and editing Note tracks

Steve 10Aug17: We should have something about playback via hardware. This "should" work out-of-the-box on all platforms by simply selecting the appropriate device in Audacity MIDI Prefs. I've briefly tested on Linux (Ubuntu 16.04) and Mac (Sierra), and it has worked as expected.

MIDI and Allegro playback

Note tracks containing MIDI data (or Allegro data) can now be played in Audacity. Loop Play and Play Cut Preview also work with Note tracks. But note that there will no use of the Playback meter while Note tracks are played.

In order to achieve MIDI playback on Mac and Linux you will need to install, and run, additional software, a software synthesizer

Please see these pages in the Audacity Wiki:

Editing Note Tracks

Only limited editing can be performed on Note tracks such as cutting, pasting and deleting.

Peter 19Aug17: Stretching has been removed for 2.2.0 (marked experimental) - so commented-out here:


Track Control Panel

NoteTrackPanel.png
The Track Control Panel at the left of the note track has controls for this track. Left-clicking other than on a control performs track selection and move as follows.
  • Clicking selects all this track's audio, deselecting all other tracks.
  • Holding Shift while clicking selects all this track's audio, keeping already selected tracks selected.
    • (keyboard: use Up or Down to give the track focus, then Enter to select it; hold Shift then use Up or Down to extend selection into another track. Read keyboard selection for more).
  • Click-and-drag moves this track up or down when there are other tracks (keyboard: choose one of the "Move Track" commands in Note Track Dropdown Menu, opened by Shift + M on the currently focused track ).

Controls

Close Button:

Track Close button.png Clicking this button will close the track, removing it from the project.

Note Track Dropdown Menu:

Note Track dropdown.png Clicking the track name or using Shift + M on the currently focused track opens the Note Track Dropdown Menu giving options that affect this track only. Newly created tracks are named "Note Track".

Mute Button:

Track Mute button.png Click to silence this track when playing. Click again to unsilence.
Advice Tracks on which the Mute button is pressed are never exported.

Solo Button:

Track Solo button.png Click to play just this track. Click again to release the button. Whenever playing audio, Solo takes precedence over Mute by default - the Mute buttons have no effect whilst any Solo button is down. There are two other options for Solo button behavior in the Tracks Preferences. One of these is to remove the Solo button, leaving only a Mute button.

Channel toggles:

NoteTrackChannelToggle.png Shows enabled channels, color coded to match the actual notes in the channels. Individual channels may be toggled by left-clicking, or all other channels can be muted/unmuted by right-clicking. Channel numbers start at 1; channel 10 reserved for percussion by the General MIDI specification.
Peter 28Jun17: When I was playing with it (and I do mean play, I'm a real MIDI know-nothing) these seemed to be controls, you could mute and unmute by clicking on them. Question: do they really correspond to notes it seemed to me as a MIDI-dummy that they were switching instruments in and out :-//
  • Poke 28Jun17: They correspond to MIDI channels. It is a bit complicated to explain exactly what a channel is (that is definitely something that I'll be adding here later), but in most cases each channel corresponds to a single instrument (there is a way to swap the instrument on a channel, but you cannot have 2 different instruments at the same time on a single channel). Each channel also has multiple notes, but saying "it toggles notes" is a bit confusing. One case where this might be useful: some games have multiple versions of the same song in a single file (eg, the underwater and main versions of it), and toggle one set of channels for another to maintain synchronization depending on where the player is.

Velocity Slider:

Track Gain slider.png Set the velocity offset for this track. Hold down the shift key while dragging to adjust the slider in finer increments. Double-click the slider to bring up a window where you can make precise adjustments or enter a velocity value.
Velocity is in units of MIDI velocity, ranging from 1 (lowest) to 127 (highest). The offset from this slider (ranging from -50 to +50) is combined with each note's individual velocity to produce the resultant velocity.

Track Collapse and Select Buttons:

Collapse-Select-buttons.png Click on the black triangle to make the track 'fold up' into a smaller size. Click again, or drag the lower edge of the track to restore the size.
Click on the Select button to select the whole track.


Status Indicators

  • Sync-Lock Indicator:
TrackSync.png When present (at bottom-right of the Track Control Panel, adjacent to the Track Collapse button), indicates that this track is part of a Sync-Locked Track Group.
Poke 27Jun17: Does sync-lock actually do anything for note tracks? The icon does appear, but I don't know enough about sync locking to say if it does anything
  • Peter 28Jun17: Now Sync-lock is something I know about. I'll do some testing later today.
    • Peter 28Jun later: Yes sync-lock does appear to work as intended with Note Tracks (Delete, Cut&Paste) - but there is a bug I spotted whereby the Note Track does not show the clocks in you make a selection in a Sync-locked audio track. I will log this on Bugzilla. Done: Bug #1671


Vertical Scale

Note Track VScale.png
  • The vertical scale displays note pitches like a piano's keys, ranging from the lowest to the highest possible MIDI notes (C -1 to G 9). Each octave is labeled at C (and the notes above are in that octave).
Poke 30Jun17: Yes, C -1; per this page if you treat middle C (MIDI 60) as C 4, the lowest value is C -1 and the highest is G 9. That is the convention audacity seems to follow; perhaps this should be explained further in the article.
Observe carefully the little black marks above and below the colored notes. These indicate that there are additional notes in the Note Track above and below them. More notes can me made visible by using Vertical Zooming.


Note Track Dropdown Menu

Clicking the note track's name by the downward-pointing triangle (or using shortcut Shift + M or the keyboard Menu key when the note track has focus) opens the Note Track Dropdown Menu:

NoteTrackDropdownMenu.png
  • Name
Displays the "Track Name" dialog where you can give the track a new name. Useful in multi-track projects to provide a visual indication of the content of each track.
  • Up Octave and Down Octave
Moves the vertical scale up or down one octave.

Moving Tracks

Tracks can be moved up and down using the menu items.

  • Move Track Up: Moves track up.
  • Move Track Down: Moves track down.
  • Move Track to Top: Moves track to become the topmost track in the project.
  • Move Track to Bottom: Moves track to become the bottom track in the project.

Note tracks can also be moved up or down by clicking between the controls in the track's Track Control Panel then dragging upwards or downwards.


Note display

Poke 19Jul17: This section header is not ideal, but I don't have a better name for it. Suggestions?

The notes from the MIDI sequence are displayed within the track.

Colors indicate the MIDI channels that the given note is in, and match those seen in the channel toggles. Each channel has an instrument assigned to it (not currently shown), although channels can change instruments partway through. Channel 10 (gray) is reserved by most MIDI devices for percussion. Some allegro files and MIDI files have more than 16 channels, in that case they will be displayed as a different gray.

Notes that are above or below the visible area will be drawn in black in the top or bottom rows (no matter how far above or below they are), to indicate that there is something to be scrolled to.

Blue vertical lines indicate measures. Note that some MIDI files do not have accurate tempo information, in which case the lines may not match actual measures in the song.


Track focus

You may have noticed in the images on this page that the tracks have a yellow border around them. This border indicates that this track has focus.

The track that has focus is the track that accepts any command whose name includes "focused track". These commands include commands such as "Close focused track" (Shift + C), "Mute/Unmute focused track" (Shift + U) and "Toggle focused track" (RETURN or Enter, which toggles whether the focused track is selected or not).

The complete list of "focused track" commands can be seen by searching for "focused track" (without quotes) in Keyboard Preferences or by viewing the description of these commands in Keyboard Shortcut Reference.

Advice Note carefully that a track having focus does not necessarily mean that the current selection is in that track. It is quite possible to have a selection in one track and for another track to have the focus.


Peter 19Aug17: Stretching has been removed for 2.2.0 (marked experimental) - so commented-out here:

Stretching

Stretching is one of the ways audacity allows editing MIDI files. Stretching is performed by clicking and dragging near the vertical center of a note track inside of the selection. There are 3 types of stretching:

  • Stretching from the left has a left crosshair icon StretchLeftCursor.png. This can be used to shift audio and make it longer/shorter, with the same change in speed for all content inside. The new length is the length that is dragged to.
  • Stretching from the right has a right crosshair icon StretchRightCursor.png. This behaves similarly to stretching from the left.
  • Stretching from the middle has a full crosshair icon StretchCursor.png. This speeds up and slows down audio before and after the pivot that is selected, while still maintaining the same overall length for the selection.

Stretching updates MIDI tempo information, so that the measure indicating lines remain in the correct place.


Links

>  Track Control Panel and Vertical Scale

>  Label Tracks

|< Audio Tracks