From fac5b2b31a056c89cb4e9dad3f2f27aaa4b914ce Mon Sep 17 00:00:00 2001 From: kevin Date: Mon, 23 Dec 2024 15:56:48 -0500 Subject: [PATCH] cwIo.h/cpp : Added midiDeviceAllNotesOff(). --- cwIo.cpp | 24 ++++++++++++++++++++++++ cwIo.h | 1 + 2 files changed, 25 insertions(+) diff --git a/cwIo.cpp b/cwIo.cpp index c3c6147..1ac1da7 100644 --- a/cwIo.cpp +++ b/cwIo.cpp @@ -2883,6 +2883,30 @@ cw::rc_t cw::io::midiDeviceSend( handle_t h, unsigned devIdx, unsigned portIdx, return midi::device::send( p->midiH, devIdx, portIdx, status, d0, d1 ); } +cw::rc_t cw::io::midiDeviceAllNotesOff( handle_t h, unsigned devIdx, unsigned portIdx ) +{ + rc_t rc = kOkRC; + unsigned devN = midiDeviceCount(h); + for(unsigned i=0; i