Browse Source

Fix muted dexed

tags/2018-04-16
falkTX 9 years ago
parent
commit
4cdaf6b363
1 changed files with 2 additions and 6 deletions
  1. +2
    -6
      ports/dexed/source/PluginProcessor.cpp

+ 2
- 6
ports/dexed/source/PluginProcessor.cpp View File

@@ -75,10 +75,6 @@ DexedAudioProcessor::DexedAudioProcessor() {
midiMsg = NULL;
clipboardContent = -1;
// make sure parameters are initialized
for (int i=getNumParameters(); --i >= 0;)
setParameter(i, 0.0f);
}
DexedAudioProcessor::~DexedAudioProcessor() {
@@ -155,7 +151,7 @@ void DexedAudioProcessor::processBlock(AudioSampleBuffer& buffer, MidiBuffer& mi
MidiBuffer::Iterator it(midiMessages);
hasMidiMessage = it.getNextEvent(*nextMidi,midiEventPos);
float *channelData = buffer.getSampleData(0);
float *channelData = buffer.getWritePointer(0);
// flush first events
for (i=0; i < numSamples && i < extra_buf_size; i++) {
@@ -237,7 +233,7 @@ void DexedAudioProcessor::processBlock(AudioSampleBuffer& buffer, MidiBuffer& mi
}
// DX7 is a mono synth
for (int channel = 1; channel < getNumInputChannels(); ++channel) {
for (int channel = 1; channel < getNumOutputChannels(); ++channel) {
buffer.copyFrom(channel, 0, channelData, numSamples, 1);
}
}


Loading…
Cancel
Save