-
Notifications
You must be signed in to change notification settings - Fork 1
Interfaces
Joshua edited this page Jul 26, 2015
·
3 revisions
Defined apis for interactions between code modules
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.
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