mirror of
https://github.com/vsariola/sointu.git
synced 2025-06-03 17:18:20 -04:00
feat(tracker): make + and - adjust the note pitch also
This commit is contained in:
parent
8f89bf7361
commit
33bf5ebd49
@ -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:
|
||||
|
Loading…
x
Reference in New Issue
Block a user