Sysex implemented

pull/287/head
BeZo 3 years ago
parent b13c1f2705
commit bbd3db359c
  1. 2
      Synth_Dexed
  2. 48
      build.sh
  3. 2
      src/mididevice.cpp

@ -1 +1 @@
Subproject commit 8c677ceb4b3fb73f8643e30ff6cf4158dc8b9e53 Subproject commit 28ef0da952b5c3b20204f14a56724290235b154d

@ -22,32 +22,32 @@ if [ "${RPI}" -gt "1" ]; then
fi fi
# Build circle-stdlib library # Build circle-stdlib library
#cd circle-stdlib/ cd circle-stdlib/
#if [ ! -z "${CLEAN}" ] ; then if [ ! -z "${CLEAN}" ] ; then
#make mrproper || true make mrproper || true
#fi fi
#./configure -r ${RPI} --prefix "${TOOLCHAIN_PREFIX}" ${OPTIONS} -o KERNEL_MAX_SIZE=0x400000 ./configure -r ${RPI} --prefix "${TOOLCHAIN_PREFIX}" ${OPTIONS} -o KERNEL_MAX_SIZE=0x400000
#make -j make -j
# Build additional libraries # Build additional libraries
#cd libs/circle/addon/display/ cd libs/circle/addon/display/
#if [ ! -z "${CLEAN}" ] ; then if [ ! -z "${CLEAN}" ] ; then
#make clean || true make clean || true
#fi fi
#make -j make -j
#cd ../sensor/ cd ../sensor/
#if [ ! -z "${CLEAN}" ] ; then if [ ! -z "${CLEAN}" ] ; then
#make clean || true make clean || true
#fi fi
#make -j make -j
#cd ../Properties/ cd ../Properties/
#if [ ! -z "${CLEAN}" ] ; then if [ ! -z "${CLEAN}" ] ; then
#make clean || true make clean || true
#fi fi
#make -j make -j
#cd ../../../.. cd ../../../..
#cd .. cd ..
# Build MiniDexed # Build MiniDexed
echo "Build MiniDexed" echo "Build MiniDexed"

@ -187,6 +187,7 @@ void CMIDIDevice::MIDIMessageHandler (const u8 *pMessage, size_t nLength, unsign
if (m_ChannelMap[nTG] == ucSysExChannel || m_ChannelMap[nTG] == OmniMode) if (m_ChannelMap[nTG] == ucSysExChannel || m_ChannelMap[nTG] == OmniMode)
{ {
LOGNOTE("MIDI-SYSEX: channel: %u, len: %u, TG: %u",m_ChannelMap[nTG],nLength,nTG); LOGNOTE("MIDI-SYSEX: channel: %u, len: %u, TG: %u",m_ChannelMap[nTG],nLength,nTG);
printf("MIDI-SYSEX: channel: %u, len: %lu, TG: %u",m_ChannelMap[nTG],nLength,nTG);
HandleSystemExclusive(pMessage, nLength, nCable, nTG); HandleSystemExclusive(pMessage, nLength, nCable, nTG);
} }
} }
@ -490,6 +491,7 @@ void CMIDIDevice::HandleSystemExclusive(const uint8_t* pMessage, const size_t nL
else if(sysex_return >= 500 && sysex_return < 600) else if(sysex_return >= 500 && sysex_return < 600)
{ {
LOGDBG("SysEx send voice %u request",sysex_return-500); LOGDBG("SysEx send voice %u request",sysex_return-500);
printf("SysEx send voice %u request",sysex_return-500);
SendSystemExclusiveVoice(sysex_return-500, nCable, nTG); SendSystemExclusiveVoice(sysex_return-500, nCable, nTG);
} }
break; break;

Loading…
Cancel
Save