Add keyboard / sample edit view with piano widget

This commit is contained in:
2026-03-04 01:52:04 -05:00
parent 8891dcffb8
commit 6f95c60381
4 changed files with 239 additions and 33 deletions

View File

@@ -25,3 +25,8 @@ void midi_open_all_inputs(MidiEngine *engine);
void midi_close_all_inputs(MidiEngine *engine);
void midi_update(MidiEngine *engine, float dt);
bool midi_is_input_active(MidiEngine *engine, int32_t device_index);
// Per-note state: returns true if note (0-127) is currently held on any input device
bool midi_is_note_held(MidiEngine *engine, int32_t note);
// Returns the last note-on velocity (0-127) for a given note, or 0 if not held
int32_t midi_get_note_velocity(MidiEngine *engine, int32_t note);