Skip to content

Commit

Permalink
testing ...
Browse files Browse the repository at this point in the history
  • Loading branch information
zonkmachine committed Feb 24, 2016
1 parent b625b2e commit 85193bc
Showing 1 changed file with 4 additions and 8 deletions.
12 changes: 4 additions & 8 deletions src/core/InstrumentFunctions.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -412,11 +412,6 @@ void InstrumentFunctionArpeggio::processNote( NotePlayHandle * _n )

int dir = m_arpDirectionModel.value();

/* TODO: Muting the notes, as it's done nown (see further down)
the code is a bit wasteful. Skipped notes should be
handled early in the while loop by actually skipping over
notes and not by muting them.*/
/*
// Skip notes randomly
if( m_arpSkipModel.value() )
{
Expand All @@ -428,7 +423,7 @@ void InstrumentFunctionArpeggio::processNote( NotePlayHandle * _n )
continue;
}
}
*/


// Miss notes randomly. We intercept int dir and abuse it
// after need. :)
Expand Down Expand Up @@ -517,14 +512,15 @@ void InstrumentFunctionArpeggio::processNote( NotePlayHandle * _n )
vol_level = _n->volumeLevel( cur_frame + gated_frames );
}

// Alternative fix for skip note issues.
// Skip notes randomly by muting.
if( m_arpSkipModel.value() )
/* if( m_arpSkipModel.value() )
{
if( 101 * ( (float) rand() / (float) RAND_MAX ) < m_arpSkipModel.value() )
{
vol_level = 0.0f;
}
}
}*/

// create new arp-note

Expand Down

0 comments on commit 85193bc

Please sign in to comment.