TracktionEngine
Loading...
Searching...
No Matches
Functions
engine::MidiNodeHelpers Namespace Reference

Functions

void clampTimeStamps (MidiMessageArray &midi, int startIndex, double maxTimeStamp)
 Moves any messages from an index on that are timestamped after a time back to it.
 
void createMessagesForTime (MidiMessageArray &destBuffer, juce::MidiMessageSequence &sourceSequence, double time, juce::Range< int > channelNumbers, LiveClipLevel &clipLevel, bool useMPEChannelMode, MPESourceID midiSourceID, juce::Array< juce::MidiMessage > &controllerMessagesScratchBuffer)
 
void createNoteOffs (MidiMessageArray &destination, const juce::MidiMessageSequence &sourceSequence, MPESourceID midiSourceID, double time, double midiTimeOffset, bool isPlaying)
 
void sanityCheckMidiBuffer (const MidiMessageArray &midi, double maxTimeStamp)
 Asserts if any MIDI messages are timestamped outside the given range.
 
void createNoteOffs (ActiveNoteList &activeNoteList, MidiMessageArray &destination, MPESourceID midiSourceID, double midiTimeOffset, bool isPlaying)
 

Function Documentation

◆ clampTimeStamps()

void engine::MidiNodeHelpers::clampTimeStamps ( MidiMessageArray &  midi,
int  startIndex,
double  maxTimeStamp 
)

Moves any messages from an index on that are timestamped after a time back to it.

Notes struck just after a jump (see createMessagesForTime) are dropped if they're after the end of the section, which can be shorter than their offset, e.g. just after a loop's wrapped.

References clampTimeStamps(), and engine::midi.

Referenced by clampTimeStamps().

◆ createMessagesForTime()

void engine::MidiNodeHelpers::createMessagesForTime ( MidiMessageArray &  destBuffer,
juce::MidiMessageSequence &  sourceSequence,
double  time,
juce::Range< int >  channelNumbers,
LiveClipLevel &  clipLevel,
bool  useMPEChannelMode,
MPESourceID  midiSourceID,
juce::Array< juce::MidiMessage > &  controllerMessagesScratchBuffer 
)

◆ createNoteOffs() [1/2]

void engine::MidiNodeHelpers::createNoteOffs ( MidiMessageArray &  destination,
const juce::MidiMessageSequence &  sourceSequence,
MPESourceID  midiSourceID,
double  time,
double  midiTimeOffset,
bool  isPlaying 
)

◆ sanityCheckMidiBuffer()

void engine::MidiNodeHelpers::sanityCheckMidiBuffer ( const MidiMessageArray &  midi,
double  maxTimeStamp 
)

Asserts if any MIDI messages are timestamped outside the given range.

References engine::midi, and sanityCheckMidiBuffer().

Referenced by sanityCheckMidiBuffer().

◆ createNoteOffs() [2/2]

void engine::MidiNodeHelpers::createNoteOffs ( ActiveNoteList &  activeNoteList,
MidiMessageArray &  destination,
MPESourceID  midiSourceID,
double  midiTimeOffset,
bool  isPlaying 
)