Class daisy::DaisyLegio¶
ClassList > daisy > DaisyLegio
Class that handles initializing all of the hardware specific to the Virt Iter Legio hardware. Helper funtions are also in place to provide easy access to built-in controls and peripherals.More...
#include <daisy_legio.h>
Public Types¶
Type | Name |
---|---|
enum | LEGIO_CONTROLS |
enum | LEGIO_LEDS |
enum | LEGIO_TOGGLE3 |
Public Attributes¶
Type | Name |
---|---|
AnalogControl | controls |
Encoder | encoder |
GateIn | gate |
RgbLed | leds |
DaisySeed | seed |
Switch3 | sw |
Public Functions¶
Type | Name |
---|---|
size_t | AudioBlockSize () |
float | AudioCallbackRate () |
float | AudioSampleRate () |
void | ChangeAudioCallback (AudioHandle::InterleavingAudioCallback cb) |
void | ChangeAudioCallback (AudioHandle::AudioCallback cb) |
DaisyLegio () |
|
void | DelayMs (size_t del) |
bool | Gate () |
float | GetKnobValue (int idx) |
void | Init (bool boost=false) |
void | ProcessAllControls () |
void | ProcessAnalogControls () |
void | ProcessDigitalControls () |
void | SetAudioBlockSize (size_t size) |
void | SetAudioSampleRate (SaiHandle::Config::SampleRate samplerate) |
void | SetLed (size_t idx, float red, float green, float blue) |
void | StartAdc () |
void | StartAudio (AudioHandle::InterleavingAudioCallback cb) |
void | StartAudio (AudioHandle::AudioCallback cb) |
void | StopAdc () |
void | StopAudio () |
void | UpdateExample () |
void | UpdateLeds () |
~DaisyLegio () |
Detailed Description¶
Author:
Eris Fairbanks, Olivia Artz Modular + Noise Engineering
Date:
June 2022
Public Types Documentation¶
enum LEGIO_CONTROLS¶
enum daisy::DaisyLegio::LEGIO_CONTROLS {
CONTROL_PITCH,
CONTROL_KNOB_TOP,
CONTROL_KNOB_BOTTOM,
CONTROL_LAST
};
enum LEGIO_LEDS¶
enum LEGIO_TOGGLE3¶
Public Attributes Documentation¶
variable controls¶
variable encoder¶
variable gate¶
variable leds¶
variable seed¶
variable sw¶
Public Functions Documentation¶
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 AudioSampleRate¶
Returns the audio sample rate in Hz as a floating point number.
function ChangeAudioCallback [½]¶
Switch callback functions
Parameters:
cb
New interleaved callback function.
function ChangeAudioCallback [2/2]¶
Switch callback functions
Parameters:
cb
New non-interleaved callback function.
function DaisyLegio¶
function DelayMs¶
Wait some ms before going on.
Parameters:
del
Delay time in ms.
function Gate¶
Returns true if gate in is HIGH
function GetKnobValue¶
Get Knob Value, float from 0.0f to 1.0f
function Init¶
Initializes the Legio, and all of its hardware.
function ProcessAllControls¶
Does what it says
function ProcessAnalogControls¶
Normalize ADC CV input. Call this once per main loop update to normalize CV input to range (0.0f, 1.0f)
function ProcessDigitalControls¶
Process digital controls
function SetAudioBlockSize¶
Sets the number of samples processed per channel by the audio callback.
function SetAudioSampleRate¶
Updates the Audio Sample Rate, and reinitializes. Audio must be stopped for this to work.
function SetLed¶
Set an LED (idx < 4) to a color
function StartAdc¶
Start analog to digital conversion.
function StartAudio [½]¶
Starts the callback
Parameters:
cb
Interleaved callback function
function StartAudio [2/2]¶
Starts the callback
Parameters:
cb
Non-interleaved callback function
function StopAdc¶
Stop converting ADCs
function StopAudio¶
Stops the audio if it is running.
function UpdateExample¶
function UpdateLeds¶
Update LED PWM state. Call this once per main loop update to correctly display led colors
function ~DaisyLegio¶
The documentation for this class was generated from the following file external-docs/libDaisy/src/daisy_legio.h