TracktionEngine
Public Member Functions | List of all members
tracktion::engine::ClickGenerator Class Reference

Generates click audio and MIDI and adds them to the provided buffer. More...

Public Member Functions

 ClickGenerator (Edit &, bool isMidi)
 Creates a click generator for an Edit. More...
 
void prepareToPlay (double sampleRate, TimePosition startTime)
 Prepares a ClickGenerator to be played. More...
 
void processBlock (choc::buffer::ChannelArrayView< float > *, MidiMessageArray *, TimeRange)
 Adds clicks to a block of audio and MIDI for a given time range. More...
 

Detailed Description

Generates click audio and MIDI and adds them to the provided buffer.

Constructor & Destructor Documentation

◆ ClickGenerator()

tracktion::engine::ClickGenerator::ClickGenerator ( Edit ,
bool  isMidi 
)

Creates a click generator for an Edit.

Member Function Documentation

◆ prepareToPlay()

void tracktion::engine::ClickGenerator::prepareToPlay ( double  sampleRate,
TimePosition  startTime 
)

Prepares a ClickGenerator to be played.

Must be called before processBlock

◆ 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.


The documentation for this class was generated from the following file: