TracktionEngine
Loading...
Searching...
No Matches
engine::ClickGenerator Class Reference

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.

Detailed Description

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

Constructor & Destructor Documentation

◆ ClickGenerator()

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

Creates a click generator for an Edit.

Member Function Documentation

◆ prepareToPlay()

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

Prepares a ClickGenerator to be played.

Must be called before processBlock

◆ processBlock()

void 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: