InstrumentFunction/Arpeggiator: fixed upper loop boundary

The upper loop boundary was wrong as the size of a single chord was
taken instead of the whole chord table.
This commit is contained in:
Tobias Doerffel
2012-02-01 17:22:27 +01:00
parent 39010a12a3
commit 50bb56da05

View File

@@ -315,7 +315,7 @@ Arpeggiator::Arpeggiator( Model * _parent ) :
m_arpModeModel( this, tr( "Arpeggio mode" ) )
{
const ChordCreator::ChordTable & chord_table = ChordCreator::ChordTable::getInstance();
for( int i = 0; i < chord_table[i].size(); ++i )
for( int i = 0; i < chord_table.size(); ++i )
{
m_arpModel.addItem( chord_table[i].getName() );
}