InstrumentFunctions: fix base note playback in chords

As of 6650dd356d base notes are not played
anymore when chords are enabled. Therefore create a separate NotePlayHandle
for the base note like we do for all other notes in the chord.
This commit is contained in:
Tobias Doerffel
2014-05-20 23:07:28 +02:00
parent 1decf5d6ea
commit bfe2f0cf11

View File

@@ -243,11 +243,9 @@ void InstrumentFunctionNoteStacking::processNote( NotePlayHandle * _n )
for( int octave_cnt = 0; octave_cnt < m_chordRangeModel.value(); ++octave_cnt )
{
const int sub_note_key_base = base_note_key + octave_cnt * KeysPerOctave;
// if octave_cnt == 1 we're in the first octave and
// the base-note is already done, so we don't have to
// create it in the following loop, then we loop until
// there's a -1 in the interval-array
for( int i = ( octave_cnt == 0 ) ? 1 : 0; i < chord_table[selected_chord].size(); ++i )
// process all notes in the chord
for( int i = 0; i < chord_table[selected_chord].size(); ++i )
{
// add interval to sub-note-key
const int sub_note_key = sub_note_key_base + (int) chord_table[selected_chord][i];