mirror of
https://github.com/vsariola/sointu.git
synced 2026-02-13 11:43:19 -05:00
feat(tracker): ability to bind MIDI controllers to parameters
Closes #152
This commit is contained in:
parent
6e8acc8f9b
commit
f2ef57a845
@ -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}
|
||||
|
||||
Reference in New Issue
Block a user