> For the complete documentation index, see [llms.txt](https://bennykok.gitbook.io/rhythm-game-starter/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://bennykok.gitbook.io/rhythm-game-starter/note-sequences/midi-import/midi-prefab-mapping.md).

# Note Type Mapping

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

For the system to know which note prefab to use (tap, long press, swipe), we have to define a mapping for them.

1. **Note prefab**

A list of prefabs definition and size of the pool need to pre-spawn for each of the note objects, however you can disable object pooling in the TrackManager

1. **Mapping**

In this example, we distinguish different types of note by its octave, so we can define different types of note in one single midi file.

### P.S.

It's interesting that different DAW handles the root octave differently

The same midi file

#### In Fl Studio

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

#### In Ableton Live&#x20;

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

There are options for you to set the reference root octave,

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

so that the mapping matches what you see in your midi editing software![](https://32629026-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2Frhythm-game-starter%2F-M77mUOMVMimR0SwIx0Y%2F-M77pUyngeOq8kF2s1J3%2F28.png?generation=1589286143574665\&alt=media)

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