Class daisy::DaisyVersio¶
ClassList > daisy > DaisyVersio
Class that handles initializing all of the hardware specific to the Desmodus Versio hardware. Helper funtions are also in place to provide easy access to built-in controls and peripherals.More...
#include <daisy_versio.h>
Public Types¶
Type | Name |
---|---|
enum | AV_KNOBS |
enum | AV_LEDS |
enum | AV_TOGGLE3 |
Public Attributes¶
Type | Name |
---|---|
GateIn | gate |
AnalogControl | knobs |
RgbLed | leds |
DaisySeed | seed |
Switch3 | sw |
Switch | tap |
Public Functions¶
Type | Name |
---|---|
size_t | AudioBlockSize () |
float | AudioCallbackRate () |
float | AudioSampleRate () |
void | ChangeAudioCallback (AudioHandle::InterleavingAudioCallback cb) |
void | ChangeAudioCallback (AudioHandle::AudioCallback cb) |
DaisyVersio () |
|
void | DelayMs (size_t del) |
bool | Gate () |
float | GetKnobValue (int idx) |
void | Init (bool boost=false) |
void | ProcessAllControls () |
void | ProcessAnalogControls () |
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 () |
bool | SwitchPressed () |
void | UpdateExample () |
void | UpdateLeds () |
~DaisyVersio () |
Detailed Description¶
Author:
Ankoor Apte, Noise Engineering
Date:
October 2020
Public Types Documentation¶
enum AV_KNOBS¶
enum daisy::DaisyVersio::AV_KNOBS {
KNOB_0,
KNOB_1,
KNOB_2,
KNOB_3,
KNOB_4,
KNOB_5,
KNOB_6,
KNOB_LAST
};
enum AV_LEDS¶
enum AV_TOGGLE3¶
Public Attributes Documentation¶
variable gate¶
variable knobs¶
variable leds¶
variable seed¶
variable sw¶
variable tap¶
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 DaisyVersio¶
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 Versio, 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 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 SwitchPressed¶
Returns true if momentary switch is pressed
function UpdateExample¶
function UpdateLeds¶
Update LED PWM state. Call this once per main loop update to correctly display led colors
function ~DaisyVersio¶
The documentation for this class was generated from the following file external-docs/libDaisy/src/daisy_versio.h