daisy::DaisyPod¶
Class that handles initializing all of the hardware specific to the Daisy Patch Board. Helper funtions are also in place to provide easy access to built-in controls and peripherals. More...
#include <daisy_pod.h>
Public Types¶
Public Functions¶
Name | |
---|---|
DaisyPod() | |
~DaisyPod() | |
void | Init(bool boost =false) |
void | DelayMs(size_t del) |
void | StartAudio(AudioHandle::InterleavingAudioCallback cb) |
void | StartAudio(AudioHandle::AudioCallback cb) |
void | ChangeAudioCallback(AudioHandle::InterleavingAudioCallback cb) |
void | ChangeAudioCallback(AudioHandle::AudioCallback cb) |
void | StopAudio() |
void | SetAudioSampleRate(SaiHandle::Config::SampleRate samplerate) |
float | AudioSampleRate() |
void | SetAudioBlockSize(size_t blocksize) |
size_t | AudioBlockSize() |
float | AudioCallbackRate() |
void | StartAdc() |
void | StopAdc() |
void | ProcessAnalogControls() |
void | ProcessAllControls() |
float | GetKnobValue(Knob k) |
void | ProcessDigitalControls() |
void | ClearLeds() |
void | UpdateLeds() |
Public Attributes¶
Detailed Description¶
Class that handles initializing all of the hardware specific to the Daisy Patch Board. Helper funtions are also in place to provide easy access to built-in controls and peripherals.
Author: Stephen Hensley
Date: November 2019
Public Types Documentation¶
enum Sw¶
Enumerator | Value | Description |
---|---|---|
BUTTON_1 | ||
BUTTON_2 | & | |
BUTTON_LAST | & |
Switches
enum Knob¶
Enumerator | Value | Description |
---|---|---|
KNOB_1 | ||
KNOB_2 | & | |
KNOB_LAST | & |
Knobs
Public Functions Documentation¶
function DaisyPod¶
function ~DaisyPod¶
function Init¶
Init related stuff.
function DelayMs¶
Parameters:
- del Time to wait in ms.
Wait for a bit
function StartAudio¶
Parameters:
- cb Interleaved callback function
Starts the callback
function StartAudio¶
Parameters:
- cb multichannel callback function
Starts the callback
function ChangeAudioCallback¶
Parameters:
- cb New interleaved callback function.
Switch callback functions
function ChangeAudioCallback¶
Parameters:
- cb New multichannel callback function.
Switch callback functions
function StopAudio¶
Stops the audio if it is running.
function SetAudioSampleRate¶
Updates the Audio Sample Rate, and reinitializes. Audio must be stopped for this to work.
function AudioSampleRate¶
Returns the audio sample rate in Hz as a floating point number.
function SetAudioBlockSize¶
Sets the number of samples processed per channel by the audio callback.
function AudioBlockSize¶
Returns the number of samples per channel in a block of audio.
function AudioCallbackRate¶
Returns the rate in Hz that the Audio callback is called
function StartAdc¶
Start analog to digital conversion.
function StopAdc¶
Stops Transfering data from the ADC
function ProcessAnalogControls¶
Call at same rate as analog reads for smooth reading.
function ProcessAllControls¶
Process Analog and Digital Controls
function GetKnobValue¶
&
function ProcessDigitalControls¶
Process digital controls
function ClearLeds¶
Reset Leds
function UpdateLeds¶
Update Leds to set colors
Public Attributes Documentation¶
variable seed¶
Public Members
autotoc_md0¶
variable encoder¶
&
variable knob1¶
&
variable knob2¶
&
variable knobs¶
&
variable button1¶
&
variable button2¶
&
variable buttons¶
&
variable led1¶
&
variable led2¶
&
variable midi¶
Updated on 2024-01-03 at 19:41:01 +0000