---
description: >-
  This explains how the note sequence is mapped to each tracks with
  MidiTrackMapping
---

# Track Mapping

## Midi Mapping

The screen below is the midi editor in Ableton Live (DAW), if you have prior knowledge or experience with digital music production, then it will be easier for you to understand.

![An exmaple of midi editing in Ableton Live](https://32629026-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2Frhythm-game-starter%2F-M77mUOMVMimR0SwIx0Y%2F-M77pUy_-nLi0zYDyrWR%2F14.png?generation=1589286143605845\&alt=media)

Simply put, we have to map the notes from midi to the tracks in-game.

![](https://32629026-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2Frhythm-game-starter%2F-M77mUOMVMimR0SwIx0Y%2F-M77pUyZmjpuCSoRyWyc%2F13.png?generation=1589286143599554\&alt=media)

This is handled by the `MidiTrackMapping` `ScriptableObject`

![](https://32629026-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2Frhythm-game-starter%2F-M77mUOMVMimR0SwIx0Y%2F-M77pUyhVIa0jaDJIUBD%2F22.png?generation=1589286143602861\&alt=media)

### How it works

From the default mapping above, you can see Track 1 is mapped to C note, therefore all the C note will be mapped to the first track, same principle for other track.![](https://32629026-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2Frhythm-game-starter%2F-M77mUOMVMimR0SwIx0Y%2F-M77pUyfVDwwGZLZJV96%2F20.png?generation=1589286143600551\&alt=media)

![](https://32629026-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2Frhythm-game-starter%2F-M77mUOMVMimR0SwIx0Y%2F-M77pUygiQUveeyylxvJ%2F21.png?generation=1589286143603693\&alt=media)
