fix(tracker/gioui): changing a hex played the previous value

This commit is contained in:
5684185+vsariola@users.noreply.github.com 2024-10-15 13:07:24 +03:00
parent 08386323ed
commit 04ca0a3f6e
2 changed files with 3 additions and 1 deletions

View File

@ -106,6 +106,8 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/).
x87 stack. x87 stack.
### Fixed ### Fixed
- When changing a nibble of a hexadecimal note, the note played was the note
before changing the nibble
- Loading a preset did not update the IDs of the newly loaded instrument, - Loading a preset did not update the IDs of the newly loaded instrument,
causing ID collisions and sends target wrong units. causing ID collisions and sends target wrong units.
- The x87 native filter unit was denormalizing and eating up a lot of CPU ([#68][i68]) - The x87 native filter unit was denormalizing and eating up a lot of CPU ([#68][i68])

View File

@ -329,8 +329,8 @@ func (te *NoteEditor) command(t *Tracker, e key.Event) {
var n byte var n byte
if t.Model.Notes().Effect(te.scrollTable.Table.Cursor().X) { if t.Model.Notes().Effect(te.scrollTable.Table.Cursor().X) {
if nibbleValue, err := strconv.ParseInt(string(e.Name), 16, 8); err == nil { if nibbleValue, err := strconv.ParseInt(string(e.Name), 16, 8); err == nil {
n = t.Model.Notes().Value(te.scrollTable.Table.Cursor())
t.Model.Notes().FillNibble(byte(nibbleValue), t.Model.Notes().LowNibble()) t.Model.Notes().FillNibble(byte(nibbleValue), t.Model.Notes().LowNibble())
n = t.Model.Notes().Value(te.scrollTable.Table.Cursor())
goto validNote goto validNote
} }
} else { } else {