mirror of
https://github.com/vsariola/sointu.git
synced 2025-07-19 05:24:48 -04:00
feat(tracker): make + and - adjust the note pitch also
This commit is contained in:
@ -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:
|
||||
|
Reference in New Issue
Block a user