TracktionEngine
|
Generates click audio and MIDI and adds them to the provided buffer. More...
#include <tracktion_ClickNode.h>
Public Member Functions | |
ClickGenerator (Edit &, bool isMidi) | |
Creates a click generator for an Edit. | |
void | prepareToPlay (double sampleRate, TimePosition startTime) |
Prepares a ClickGenerator to be played. | |
void | processBlock (choc::buffer::ChannelArrayView< float > *, MidiMessageArray *, TimeRange) |
Adds clicks to a block of audio and MIDI for a given time range. | |
Generates click audio and MIDI and adds them to the provided buffer.
tracktion::engine::ClickGenerator::ClickGenerator | ( | Edit & | , |
bool | isMidi | ||
) |
Creates a click generator for an Edit.
void tracktion::engine::ClickGenerator::prepareToPlay | ( | double | sampleRate, |
TimePosition | startTime | ||
) |
Prepares a ClickGenerator to be played.
Must be called before processBlock
void tracktion::engine::ClickGenerator::processBlock | ( | choc::buffer::ChannelArrayView< float > * | , |
MidiMessageArray * | , | ||
TimeRange | |||
) |
Adds clicks to a block of audio and MIDI for a given time range.