mirror of
https://github.com/vsariola/sointu.git
synced 2025-07-18 21:14:31 -04:00
feat(tracker): add simple BPM & octave buttons
This commit is contained in:
@ -70,16 +70,9 @@ func (t *Tracker) KeyEvent(e key.Event) bool {
|
||||
return true
|
||||
case `\`:
|
||||
if e.Modifiers.Contain(key.ModShift) {
|
||||
if t.CurrentOctave < 9 {
|
||||
t.CurrentOctave++
|
||||
return true
|
||||
}
|
||||
} else {
|
||||
if t.CurrentOctave > 0 {
|
||||
t.CurrentOctave--
|
||||
return true
|
||||
}
|
||||
return t.ChangeBPM(1)
|
||||
}
|
||||
return t.ChangeBPM(-1)
|
||||
case key.NameUpArrow:
|
||||
delta := -1
|
||||
if e.Modifiers.Contain(key.ModCtrl) {
|
||||
|
Reference in New Issue
Block a user