feat(tracker): make + and - adjust the note pitch also

This commit is contained in:
vsariola 2021-02-10 18:51:03 +02:00
parent 8f89bf7361
commit 33bf5ebd49

View File

@ -225,6 +225,26 @@ func (t *Tracker) KeyEvent(e key.Event) bool {
t.Unselect()
}
return true
case "+":
switch t.EditMode {
case EditTracks:
if e.Modifiers.Contain(key.ModCtrl) {
t.AdjustSelectionPitch(12)
} else {
t.AdjustSelectionPitch(1)
}
return true
}
case "-":
switch t.EditMode {
case EditTracks:
if e.Modifiers.Contain(key.ModCtrl) {
t.AdjustSelectionPitch(-12)
} else {
t.AdjustSelectionPitch(-1)
}
return true
}
}
switch t.EditMode {
case EditPatterns: