NotePlayHandle: added property to track origin
Using the origin property we can track where a NotePlayHandle instance originates from (Pattern, MIDI, ...) and build new functions around this.
This commit is contained in:
@@ -50,7 +50,8 @@ notePlayHandle::notePlayHandle( InstrumentTrack * _it,
|
||||
const note & _n,
|
||||
notePlayHandle *parent,
|
||||
const bool _part_of_arp,
|
||||
int midiEventChannel ) :
|
||||
int midiEventChannel,
|
||||
Origin origin ) :
|
||||
playHandle( NotePlayHandle, _offset ),
|
||||
note( _n.length(), _n.pos(), _n.key(),
|
||||
_n.getVolume(), _n.getPanning(), _n.detuning() ),
|
||||
@@ -76,7 +77,8 @@ notePlayHandle::notePlayHandle( InstrumentTrack * _it,
|
||||
m_unpitchedFrequency( 0 ),
|
||||
m_baseDetuning( NULL ),
|
||||
m_songGlobalParentOffset( 0 ),
|
||||
m_midiChannel( midiEventChannel >= 0 ? midiEventChannel : instrumentTrack()->midiPort()->realOutputChannel() )
|
||||
m_midiChannel( midiEventChannel >= 0 ? midiEventChannel : instrumentTrack()->midiPort()->realOutputChannel() ),
|
||||
m_origin( origin )
|
||||
{
|
||||
if( isTopNote() )
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user