uapmd Tl Get Clip Midi Notes
abstract fun uapmdTlGetClipMidiNotes(tl: Int, trackIndex: Int, clipId: Int, outNotes: Int, maxNotes: Int, outMinNote: Int, outMaxNote: Int): Int
Count-then-fill: call with out=0/max=0 for the count, then again with a buffer. uapmd_midi_note_t is 24 bytes (verified against emscripten clang): start_seconds f64 @0, duration_seconds f64 @8, velocity f32 @16, note u8 @20.