#include <daisy_field.h>
|
enum | { SW_1
, SW_2
, SW_LAST
} |
|
enum | {
KNOB_1
, KNOB_2
, KNOB_3
, KNOB_4
,
KNOB_5
, KNOB_6
, KNOB_7
, KNOB_8
,
KNOB_LAST
} |
|
enum | {
CV_1
, CV_2
, CV_3
, CV_4
,
CV_LAST
} |
|
enum | {
LED_KEY_B1
, LED_KEY_B2
, LED_KEY_B3
, LED_KEY_B4
,
LED_KEY_B5
, LED_KEY_B6
, LED_KEY_B7
, LED_KEY_B8
,
LED_KEY_A8
, LED_KEY_A7
, LED_KEY_A6
, LED_KEY_A5
,
LED_KEY_A4
, LED_KEY_A3
, LED_KEY_A2
, LED_KEY_A1
,
LED_KNOB_1
, LED_KNOB_2
, LED_KNOB_3
, LED_KNOB_4
,
LED_KNOB_5
, LED_KNOB_6
, LED_KNOB_7
, LED_KNOB_8
,
LED_SW_1
, LED_SW_2
, LED_LAST
} |
|
◆ anonymous enum
enums for controls, etc.
Enumerator |
---|
SW_1 | tactile switch
|
SW_2 | tactile switch
|
SW_LAST | &
|
◆ anonymous enum
All knobs connect to Daisy Seed's ADC1 pin via CD4051 mux Knobs are in order that they are laid out on hardware.
Enumerator |
---|
KNOB_1 | &
|
KNOB_2 | &
|
KNOB_3 | &
|
KNOB_4 | &
|
KNOB_5 | &
|
KNOB_6 | &
|
KNOB_7 | &
|
KNOB_8 | &
|
KNOB_LAST | &
|
◆ anonymous enum
Enumerator |
---|
CV_1 | |
CV_2 | Connected to ADC1_INP17
|
CV_3 | Connected to ADC1_INP15
|
CV_4 | Connected to ADC1_INP4
|
CV_LAST | Connected to ADC1_INP11 &
|
◆ anonymous enum
Enumerator |
---|
LED_KEY_B1 | &
|
LED_KEY_B2 | &
|
LED_KEY_B3 | &
|
LED_KEY_B4 | &
|
LED_KEY_B5 | &
|
LED_KEY_B6 | &
|
LED_KEY_B7 | &
|
LED_KEY_B8 | &
|
LED_KEY_A8 | &
|
LED_KEY_A7 | &
|
LED_KEY_A6 | &
|
LED_KEY_A5 | &
|
LED_KEY_A4 | &
|
LED_KEY_A3 | &
|
LED_KEY_A2 | &
|
LED_KEY_A1 | &
|
LED_KNOB_1 | &
|
LED_KNOB_2 | &
|
LED_KNOB_3 | &
|
LED_KNOB_4 | &
|
LED_KNOB_5 | &
|
LED_KNOB_6 | &
|
LED_KNOB_7 | &
|
LED_KNOB_8 | &
|
LED_SW_1 | &
|
LED_SW_2 | &
|
LED_LAST | &
|
◆ DaisyField()
daisy::DaisyField::DaisyField |
( |
| ) |
|
|
inline |
◆ ~DaisyField()
daisy::DaisyField::~DaisyField |
( |
| ) |
|
|
inline |
◆ AudioBlockSize()
size_t daisy::DaisyField::AudioBlockSize |
( |
| ) |
|
Returns the number of samples per channel in a block of audio.
◆ AudioCallbackRate()
float daisy::DaisyField::AudioCallbackRate |
( |
| ) |
|
Returns the rate in Hz that the Audio callback is called
◆ AudioSampleRate()
float daisy::DaisyField::AudioSampleRate |
( |
| ) |
|
Returns the audio sample rate in Hz as a floating point number.
◆ ChangeAudioCallback() [1/2]
Switch callback functions
- Parameters
-
cb | New multichannel callback function. |
◆ ChangeAudioCallback() [2/2]
Switch callback functions
- Parameters
-
cb | New interleaved callback function. |
◆ DelayMs()
Wait some ms before going on.
- Parameters
-
◆ GetCv()
Getter for CV objects.
- Parameters
-
idx | The CV input of interest. |
◆ GetCvValue()
float daisy::DaisyField::GetCvValue |
( |
size_t |
idx | ) |
const |
Returns the CV input's value
- Parameters
-
idx | The CV input of interest. |
◆ GetKnob()
Getter for knob objects
- Parameters
-
idx | The knob input of interest. |
◆ GetKnobValue()
float daisy::DaisyField::GetKnobValue |
( |
size_t |
idx | ) |
const |
Returns the knob's value
- Parameters
-
◆ GetSwitch()
Getter for switch objects
- Parameters
-
idx | The switch of interest. |
◆ Init()
Initializes the Daisy Field, and all of its hardware.
◆ KeyboardFallingEdge()
bool daisy::DaisyField::KeyboardFallingEdge |
( |
size_t |
idx | ) |
const |
Returns true if the key has just been released
- Parameters
-
◆ KeyboardRisingEdge()
bool daisy::DaisyField::KeyboardRisingEdge |
( |
size_t |
idx | ) |
const |
Returns true if the key has just been pressed
- Parameters
-
◆ KeyboardState()
bool daisy::DaisyField::KeyboardState |
( |
size_t |
idx | ) |
const |
Returns true if the key has not been pressed recently
- Parameters
-
◆ ProcessAllControls()
void daisy::DaisyField::ProcessAllControls |
( |
| ) |
|
|
inline |
Process Analog and Digital Controls
◆ ProcessAnalogControls()
void daisy::DaisyField::ProcessAnalogControls |
( |
| ) |
|
Processes the ADC inputs, updating their values
◆ ProcessDigitalControls()
void daisy::DaisyField::ProcessDigitalControls |
( |
| ) |
|
Process tactile switches and keyboard states
◆ SetAudioBlockSize()
void daisy::DaisyField::SetAudioBlockSize |
( |
size_t |
blocksize | ) |
|
Sets the number of samples processed per channel by the audio callback.
◆ SetAudioSampleRate()
Updates the Audio Sample Rate, and reinitializes. Audio must be stopped for this to work.
◆ SetCvOut1()
Sets the output of CV out 1 to a value between 0-4095 that corresponds to 0-5V
◆ SetCvOut2()
Sets the output of CV out 2 to a value between 0-4095 that corresponds to 0-5V
◆ StartAdc()
void daisy::DaisyField::StartAdc |
( |
| ) |
|
Starts Transfering data from the ADC
◆ StartAudio() [1/2]
Starts the callback
- Parameters
-
cb | multichannel callback function |
◆ StartAudio() [2/2]
Starts the callback
- Parameters
-
cb | Interleaved callback function |
◆ StartDac()
void daisy::DaisyField::StartDac |
( |
| ) |
|
Turns on the built-in 12-bit DAC on the Daisy Seed This is now deprecated and does nothing. The polling use of the DACs now handles starting the tranmission.
◆ StopAdc()
void daisy::DaisyField::StopAdc |
( |
| ) |
|
Stops Transfering data from the ADC
◆ StopAudio()
void daisy::DaisyField::StopAudio |
( |
| ) |
|
Stops the audio if it is running.
◆ VegasMode()
void daisy::DaisyField::VegasMode |
( |
| ) |
|
Light show, cycling through all LEDs, and OLED
◆ cv
◆ display
◆ gate_in
GateIn daisy::DaisyField::gate_in |
◆ gate_out
GPIO daisy::DaisyField::gate_out |
◆ knob
◆ led_driver
◆ midi
◆ seed
◆ sw
The documentation for this class was generated from the following file: