probonopd 3 years ago
parent b6d1372ec4
commit 186c6f4e1b
  1. 7
      src/dexedadapter.h
  2. 1
      src/mididevice.cpp
  3. 3
      src/minidexed.cpp

@ -63,6 +63,13 @@ public:
m_SpinLock.Release (); m_SpinLock.Release ();
} }
void ControllersRefresh (void)
{
m_SpinLock.Acquire ();
Dexed::ControllersRefresh ();
m_SpinLock.Release ();
}
private: private:
CSpinLock m_SpinLock; CSpinLock m_SpinLock;
}; };

@ -134,6 +134,7 @@ void CMIDIDevice::MIDIMessageHandler (const u8 *pMessage, size_t nLength, unsign
{ {
case MIDI_CC_MODULATION: case MIDI_CC_MODULATION:
m_pSynthesizer->setModWheel (pMessage[2]); m_pSynthesizer->setModWheel (pMessage[2]);
m_pSynthesizer->ControllersRefresh ();
break; break;
case MIDI_CC_VOLUME: case MIDI_CC_VOLUME:

@ -102,6 +102,9 @@ bool CMiniDexed::Initialize (void)
ProgramChange (0); ProgramChange (0);
setTranspose (24); setTranspose (24);
setPBController (12, 1);
setMWController (99, 7, 0);
// setup and start the sound device // setup and start the sound device
if (!m_pSoundDevice->AllocateQueueFrames (m_pConfig->GetChunkSize ())) if (!m_pSoundDevice->AllocateQueueFrames (m_pConfig->GetChunkSize ()))
{ {

Loading…
Cancel
Save