mirror of
https://github.com/vsariola/sointu.git
synced 2025-07-19 21:44:38 -04:00
feat(tracker): add F1-F8 shortcut keys for changing editmode / playing
Related to #14
This commit is contained in:
@ -144,15 +144,10 @@ func (t *Tracker) Close() {
|
||||
t.closer <- struct{}{}
|
||||
}
|
||||
|
||||
func (t *Tracker) TogglePlay() {
|
||||
func (t *Tracker) SetPlaying(value bool) {
|
||||
t.songPlayMutex.Lock()
|
||||
defer t.songPlayMutex.Unlock()
|
||||
t.Playing = !t.Playing
|
||||
if t.Playing {
|
||||
t.NoteTracking = true
|
||||
t.PlayPosition = t.Cursor.SongRow
|
||||
t.PlayPosition.Row-- // TODO: we advance soon to make up for this -1, but this is not very elegant way to do it
|
||||
}
|
||||
t.Playing = value
|
||||
}
|
||||
|
||||
func (t *Tracker) ChangeOctave(delta int) bool {
|
||||
|
Reference in New Issue
Block a user