Chapter 3

Playing Instruments from a MIDI Keyboard

Connect a MIDI keyboard and play the instruments loaded into tracks. Then come examples of layering two instruments and of splitting the keyboard.

In this chapter

  • Play instruments from a MIDI keyboard
  • Choose which instruments the notes go to, with MIDI lanes
  • Layer instruments and split the keyboard

What you need

  • A MIDI keyboard (USB or Bluetooth)
  • The session with the instrument loaded in Chapter 1

What MIDI lanes are

In KQ AU Host, MIDI reaches the tracks through lanes. Each lane has these parts, from top to bottom:

  1. MIDI Input: where the MIDI comes from (MIDI keyboards, a MIDI file and so on)
  2. The channel filter: which of the 16 MIDI channels pass
  3. MIDI Effects: MIDI effects such as arpeggiators (optional)
  4. Output: which tracks it goes to

There are 20 lanes. In a new session, lane 1 (MIDI 1) takes every MIDI device connected and the MIDI file, and sends them to every track. Lanes 2 to 20 are empty.

1. Connect the MIDI keyboard

USB
Connect it to the Mac, iPhone or iPad with a cable.
Bluetooth
Mac: connect it in macOS’s Audio MIDI Setup app.
iPhone and iPad: choose Connect to… from the Bluetooth button in the title bar of the MIDI Routing window.

In a new session, it plays as soon as it is connected. Play the instrument you loaded in Chapter 1 from the MIDI keyboard.

2. Open the MIDI Routing window

Which keyboard plays which tracks is set in the MIDI Routing window. Press the MIDI Routing button in the top bar to open it (on the Mac, ⇧⌘R also opens it).

The MIDI Routing window
  1. The lane’s name (MIDI 1) and its light, which lights when MIDI arrives
  2. The MIDI Input box
  3. The channel filter (Ch:)
  4. The MIDI Effects slots
  5. The Output box
  6. The lanes shown (1–5, 6–10 …)
The MIDI Routing window, five lanes at a time
  1. Play the MIDI keyboard and check that the light 1 next to the lane’s name lights.
  2. Press lane 1’s MIDI Input box 2 to see what it can take. The ones with a check mark are taken.
  3. Press the Output box 5 to see the tracks it can send to.
The MIDI Input list All MIDI In is every MIDI device connected (including devices connected later). You can also choose devices one by one. KQ AU Host is the way in for MIDI from other apps. MIDI files are covered in Chapter 5.

Example 1: Play one track only

The examples from here use Apple’s instruments. Load the instrument from Chapter 1 into track A (DLSMusicDevice on the Mac, AUMIDISynth on iPhone and iPad), and AUSampler into track B (all under Apple in the plug-in menu; with nothing loaded, AUSampler plays a sine wave). As a new session is set up, the keyboard plays both. Let’s make it play track A only.

  1. Press lane 1’s Output box.
  2. Choose Clear All Outputs, then press the box again and choose track A.
  3. plays A appears under the Output box. The keyboard now plays track A only.

Example 2: Layer two instruments

Two instruments playing together give a fuller sound.

  1. Press lane 1’s Output box and check both tracks A and B.
  2. The keyboard now plays A and B together. Balance them with each track’s fader.
Changing the sound of a GM instrument DLSMusicDevice, and AUMIDISynth with a GM SoundFont loaded, have the 128 General MIDI (GM) sounds. They start with a piano. A program change sent from the MIDI keyboard changes the sound (for example, GM 49 is strings and 33 is acoustic bass; some keyboards count from 0, one number lower).

Example 3: Split the keyboard

An example for playing different sounds with the left and right hands. It uses two lanes, each sending to a different track.

With two keyboards

  1. Press lane 1’s MIDI Input box, uncheck All MIDI In and check the first keyboard only. Set Output to track A.
  2. In lane 2’s MIDI Input, choose the second keyboard, and set Output to track B.

One keyboard, split by channel

For a keyboard that can send its left and right halves on different MIDI channels (a split). Say the left half is on channel 1 and the right half on channel 2.

  1. Press lane 1’s channel filter (Ch:) and check Channel 1 only. Set Output to track A.
  2. In lane 2’s MIDI Input, choose the same keyboard. Set its channel filter to Channel 2 only, and Output to track B.
  3. The left half plays track A, and the right half plays track B.
Playing another lane from the on-screen keyboard Click (tap) a lane’s name in the MIDI Routing window, and the keys of the keyboard window play that lane. You can also choose it in Input to in the keyboard window.
If there is no sound
  • If the lane’s light does not light when you play, the MIDI keyboard is not connected, or it is not chosen in MIDI Input.
  • If the light lights but nothing plays, check that the channel filter lets the keyboard’s channel through, and that Output has a track with an instrument. When Output’s power button is off, the lane sends nothing.
  • A lane with no input is shown a little dimmer.

MoreReference Chapter 4 MIDI

Read next

Chapter 4 shows how to bring a microphone, a guitar or the like into a track and put effects on it.