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¶
Name | |
---|---|
enum | AV_LEDS |
enum | AV_KNOBS |
enum | AV_TOGGLE3 |
Public Functions¶
Name | |
---|---|
DaisyVersio() | |
~DaisyVersio() | |
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 | SetAudioBlockSize(size_t size) |
size_t | AudioBlockSize() |
void | SetAudioSampleRate(SaiHandle::Config::SampleRate samplerate) |
float | AudioSampleRate() |
float | AudioCallbackRate() |
void | StartAdc() |
void | StopAdc() |
void | ProcessAnalogControls() |
void | ProcessAllControls() |
bool | SwitchPressed() |
bool | Gate() |
void | SetLed(size_t idx, float red, float green, float blue) |
float | GetKnobValue(int idx) |
void | UpdateLeds() |
void | UpdateExample() |
Public Attributes¶
Name | |
---|---|
DaisySeed | seed |
RgbLed[LED_LAST] | leds |
AnalogControl[KNOB_LAST] | knobs |
Switch | tap |
GateIn | gate |
Switch3[SW_LAST] | sw |
Detailed Description¶
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.
Author: Ankoor Apte, Noise Engineering
Date: October 2020
Public Types Documentation¶
enum AV_LEDS¶
Enumerator | Value | Description |
---|---|---|
LED_0 | ||
LED_1 | ||
LED_2 | ||
LED_3 | ||
LED_LAST |
enum AV_KNOBS¶
Enumerator | Value | Description |
---|---|---|
KNOB_0 | ||
KNOB_1 | ||
KNOB_2 | ||
KNOB_3 | ||
KNOB_4 | ||
KNOB_5 | ||
KNOB_6 | ||
KNOB_LAST |
enum AV_TOGGLE3¶
Enumerator | Value | Description |
---|---|---|
SW_0 | ||
SW_1 | ||
SW_LAST |
Public Functions Documentation¶
function DaisyVersio¶
function ~DaisyVersio¶
function Init¶
Initializes the Versio, and all of its hardware.
function DelayMs¶
Parameters:
- del Delay time in ms.
Wait some ms before going on.
function StartAudio¶
Parameters:
- cb Interleaved callback function
Starts the callback
function StartAudio¶
Parameters:
- cb Non-interleaved callback function
Starts the callback
function ChangeAudioCallback¶
Parameters:
- cb New interleaved callback function.
Switch callback functions
function ChangeAudioCallback¶
Parameters:
- cb New non-interleaved callback function.
Switch callback functions
function StopAudio¶
Stops the audio if it is running.
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 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 AudioCallbackRate¶
Returns the rate in Hz that the Audio callback is called
function StartAdc¶
Start analog to digital conversion.
function StopAdc¶
Stop converting ADCs
function ProcessAnalogControls¶
Normalize ADC CV input. Call this once per main loop update to normalize CV input to range (0.0f, 1.0f)
function ProcessAllControls¶
Does what it says
function SwitchPressed¶
Returns true if momentary switch is pressed
function Gate¶
Returns true if gate in is HIGH
function SetLed¶
Set an LED (idx < 4) to a color
function GetKnobValue¶
Get Knob Value, float from 0.0f to 1.0f
function UpdateLeds¶
Update LED PWM state. Call this once per main loop update to correctly display led colors
function UpdateExample¶
Public Attributes Documentation¶
variable seed¶
variable leds¶
variable knobs¶
variable tap¶
variable gate¶
variable sw¶
Updated on 2024-01-03 at 19:41:01 +0000