refactor(tracker): move NoteStr and NoteAsValue to gioui package

This commit is contained in:
5684185+vsariola@users.noreply.github.com
2023-10-20 01:40:14 +03:00
parent a60814bab7
commit ff8e662857
3 changed files with 42 additions and 48 deletions

View File

@ -183,7 +183,7 @@ func (t *Tracker) NumberPressed(iv byte) {
func (t *Tracker) JammingPressed(e key.Event) byte {
if val, ok := noteMap[e.Name]; ok {
if _, ok := t.KeyPlaying[e.Name]; !ok {
n := tracker.NoteAsValue(t.OctaveNumberInput.Value, val)
n := noteAsValue(t.OctaveNumberInput.Value, val)
instr := t.InstrIndex()
noteID := tracker.NoteIDInstr(instr, n)
t.NoteOn(noteID)