Skip to content
Joshua edited this page Jul 26, 2015 · 3 revisions

Interfaces

Defined apis for interactions between code modules

Input

void SetBlock(juce::AudioSampleBuffer& buffer);

Sets the block to be used by AnalyseBlock() may not be needed

void AnalyseBlock();

Called every time by DAWTestAudioProcessor::processBlock() to analyse most recent audio received.

Key_t GetKey();

Get the current Key. may need to be moved

Chord_t GetChord();

Get the current chord. may need to be moved

float GetFrequency();

Get the current or last frequency played.

Brain (change my name)

Output

void ClockProcess(MidiBuffer& midiMessages);

Called every clock process with the current MidiBuffer midiMessages, this may not be needed.

void PlayNote(float hertz, MidiBuffer& midiMessages, int delay);

Plays a note at frequency given by hertz and the note will start after delay time

Clone this wiki locally