SF2 player: fix playback issues

Changing the velocity after noteon doesn't really seem to work on fluidsynth (may be dependent on soundfont file) - seems like the panning changes when velocity is changed.
So I disabled that, after which everything works fine.
This commit is contained in:
Vesa
2014-06-14 20:36:21 +03:00
parent c7f29c19c8
commit 87c4f9c7f2
2 changed files with 5 additions and 5 deletions

View File

@@ -542,7 +542,7 @@ void sf2Instrument::playNote( NotePlayHandle * _n, sampleFrame * )
{
SF2PluginData * pluginData = new SF2PluginData;
pluginData->midiNote = midiNote;
pluginData->lastPanning = -1;
pluginData->lastPanning = 0;
pluginData->lastVelocity = 127;
pluginData->fluidVoice = NULL;
@@ -588,7 +588,7 @@ void sf2Instrument::playNote( NotePlayHandle * _n, sampleFrame * )
m_notesRunningMutex.unlock();
}
SF2PluginData * pluginData = static_cast<SF2PluginData *>(
/* SF2PluginData * pluginData = static_cast<SF2PluginData *>(
_n->m_pluginData );
#ifdef SOMEONE_FIXED_PER_NOTE_PANNING
if( pluginData->fluidVoice &&
@@ -620,7 +620,7 @@ void sf2Instrument::playNote( NotePlayHandle * _n, sampleFrame * )
m_synthMutex.unlock();
pluginData->lastVelocity = currentVelocity;
}
}*/
}

View File

@@ -24,8 +24,8 @@
*/
#ifndef _SF2_PLAYER_H
#define _SF2_PLAYER_H
#ifndef SF2_PLAYER_H
#define SF2_PLAYER_H
#include <QtCore/QMutex>