memory storeage modes
This commit is contained in:
parent
b8a7a6a9a1
commit
706a969cdc
2 changed files with 7 additions and 6 deletions
|
|
@ -27,8 +27,8 @@
|
||||||
//hook up the memlnaut mode
|
//hook up the memlnaut mode
|
||||||
|
|
||||||
// #define MEMLNAUT_MODE_TYPE MEMLNautModeSoundAnalysisMIDI
|
// #define MEMLNAUT_MODE_TYPE MEMLNautModeSoundAnalysisMIDI
|
||||||
// #define MEMLNAUT_MODE_TYPE MEMLNautModeXIASRI
|
#define MEMLNAUT_MODE_TYPE MEMLNautModeXIASRI
|
||||||
#define MEMLNAUT_MODE_TYPE MEMLNautModeChannelStrip
|
// #define MEMLNAUT_MODE_TYPE MEMLNautModeChannelStrip
|
||||||
// #define MEMLNAUT_MODE_TYPE MEMLNautModePAFSynth
|
// #define MEMLNAUT_MODE_TYPE MEMLNautModePAFSynth
|
||||||
|
|
||||||
MEMLNAUT_MODE_TYPE AUDIO_MEM MEMLNautModeHub;
|
MEMLNAUT_MODE_TYPE AUDIO_MEM MEMLNautModeHub;
|
||||||
|
|
@ -86,6 +86,9 @@ void setup() {
|
||||||
uint32_t seed = get_rosc_entropy_seed(32);
|
uint32_t seed = get_rosc_entropy_seed(32);
|
||||||
srand(seed);
|
srand(seed);
|
||||||
|
|
||||||
|
midi_interf = std::make_shared<MIDIInOut>();
|
||||||
|
// Serial.println("MIDI setup complete.");
|
||||||
|
|
||||||
Serial.begin(115200);
|
Serial.begin(115200);
|
||||||
// while (!Serial) {}
|
// while (!Serial) {}
|
||||||
Serial.println("Serial initialised.");
|
Serial.println("Serial initialised.");
|
||||||
|
|
@ -101,8 +104,6 @@ void setup() {
|
||||||
WRITE_VOLATILE(interface_ready, true);
|
WRITE_VOLATILE(interface_ready, true);
|
||||||
Serial.println("Bound interface to MEMLNaut.");
|
Serial.println("Bound interface to MEMLNaut.");
|
||||||
|
|
||||||
midi_interf = std::make_shared<MIDIInOut>();
|
|
||||||
Serial.println("MIDI setup complete.");
|
|
||||||
if (midi_interf) {
|
if (midi_interf) {
|
||||||
currentMode->setupMIDI(midi_interf);
|
currentMode->setupMIDI(midi_interf);
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -12,7 +12,7 @@
|
||||||
|
|
||||||
class MEMLNautModePAFSynth {
|
class MEMLNautModePAFSynth {
|
||||||
public:
|
public:
|
||||||
constexpr static size_t kN_InputParams = 3; // joystick x, y, rotate
|
constexpr static size_t kN_InputParams = 4; // joystick x, y, rotate
|
||||||
|
|
||||||
inline static PAFSynthAudioApp<> audioAppPAFSynth;
|
inline static PAFSynthAudioApp<> audioAppPAFSynth;
|
||||||
std::array<String, PAFSynthAudioApp<>::nVoiceSpaces> voiceSpaceList;
|
std::array<String, PAFSynthAudioApp<>::nVoiceSpaces> voiceSpaceList;
|
||||||
|
|
@ -22,7 +22,7 @@ public:
|
||||||
|
|
||||||
void setupInterface() {
|
void setupInterface() {
|
||||||
interface.setup(kN_InputParams, PAFSynthAudioApp<>::kN_Params);
|
interface.setup(kN_InputParams, PAFSynthAudioApp<>::kN_Params);
|
||||||
interface.bindInterface(InterfaceRL::INPUT_MODES::JOYSTICK);
|
interface.bindInterface(InterfaceRL::INPUT_MODES::JOYSTICK, true);
|
||||||
interfacePtr = make_non_owning(interface);
|
interfacePtr = make_non_owning(interface);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue