feat(tracker): ability to bind MIDI controllers to parameters

Closes #152
This commit is contained in:
5684185+vsariola@users.noreply.github.com
2026-01-31 23:18:14 +02:00
parent 6e8acc8f9b
commit f2ef57a845
15 changed files with 311 additions and 55 deletions

View File

@ -69,6 +69,12 @@ type (
playerTimestamp int64 // the timestamp of the event, adjusted to the player's clock, used to sort events
}
ControlChange struct {
Channel int
Control int
Value int
}
)
type (
@ -274,8 +280,8 @@ loop:
}
}
TrySend(p.broker.ToModel, MsgToModel{Reset: true})
case NoteEvent:
p.events = append(p.events, m)
case *NoteEvent:
p.events = append(p.events, *m)
case RecordingMsg:
if m.bool {
p.recording = Recording{State: RecordingWaitingForNote}