feat(tracker): Add a matrix showing track sequences

This commit is contained in:
vsariola
2021-01-02 17:40:53 +02:00
parent c68d9d3bf5
commit 06c006086b
6 changed files with 94 additions and 6 deletions

View File

@ -80,9 +80,11 @@ func (t *Tracker) KeyEvent(e key.Event) bool {
}
case key.NameUpArrow:
t.CursorRow = (t.CursorRow + t.song.PatternRows() - 1) % t.song.PatternRows()
t.NoteTracking = false
return true
case key.NameDownArrow:
t.CursorRow = (t.CursorRow + 1) % t.song.PatternRows()
t.NoteTracking = false
return true
case key.NameLeftArrow:
if t.CursorColumn == 0 {