any solution to this? I am trying to use this json:
{
"name": "terrarium",
"som": "seed",
},
"audio": {
"channels": 1
},
"components": {
"sw1": {
"component": "Switch",
"pin": 8
},
"sw2": {
"component": "Switch",
"pin": 9
},
"sw3": {
"component": "Switch",
"pin": 10
},
"sw4": {
"component": "Switch",
"pin": 13
},
"sw5": {
"component": "Switch",
"pin": 25
},
"sw6": {
"component": "Switch",
"pin": 26
},
"sw7": {
"component": "Switch",
"pin": 7
},
"knob1": {
"component": "AnalogControl",
"pin": 16
},
"knob2": {
"component": "AnalogControl",
"pin": 19
},
"knob3": {
"component": "AnalogControl",
"pin": 17
},
"knob4": {
"component": "AnalogControl",
"pin": 20
},
"knob5": {
"component": "AnalogControl",
"pin": 18
},
"knob6": {
"component": "AnalogControl",
"pin": 21
},
"led1": {
"component": "Led",
"pin": 22
},
"led2": {
"component": "Led",
"pin": 23
}
},
"aliases": {
"switch": "sw1",
"switch1": "sw1",
"switch2": "sw2",
"switch3": "sw3",
"switch4": "sw4",
"switch5": "sw5",
"switch6": "sw6",
"switch7": "sw7",
"encswitch": "encoder_rise",
"enp": "encoder_press",
"press": "encoder_press",
"knob": "knob1",
"ctrl": "knob1",
"ctrl1": "knob1",
"ctrl2": "knob2",
"ctrl3": "knob3",
"ctrl4": "knob4",
"ctrl5": "knob5",
"ctrl6": "knob6"
}
}
but I get an an “eror in the compiler” message.
Oopsy works with the standard templates from the menu just fine. But Max console says I have to declare which hardware I’m using, which it doesn’t say when I use “Patch” or Petal" from the menu, or any of the other options.
Here’s the message I’m getting:
oopsy-verbose: "oopsy compiler error"
oopsy-verbose: "Error: Command failed: export PATH=$PATH:/opt/homebrew/bin && make clean && make"
oopsy-verbose: "In file included from oopsy_terrarium_oopsy_terrarium.cpp:26:"
oopsy-verbose: "../genlib_daisy.h:151:3: error: 'Daisy' does not name a type; did you mean 'daisy'?"
oopsy-verbose: " 151 | Daisy hardware;"
oopsy-verbose: " | ^~~~~"
oopsy-verbose: " | daisy"
oopsy-verbose: "../genlib_daisy.h:155:34: error: 'hardware' was not declared in this scope"
oopsy-verbose: " 155 | daisy::DaisySeed *sub_board = &hardware.seed;"
oopsy-verbose: " | ^~~~~~~~"
oopsy-verbose: "../genlib_daisy.h: In member function 'void oopsy::GenDaisy::reset(A&)':"
oopsy-verbose: "../genlib_daisy.h:432:4: error: 'hardware' was not declared in this scope"
oopsy-verbose: " 432 | hardware.menu_rotate = 0;"
oopsy-verbose: " | ^~~~~~~~"
oopsy-verbose: "In file included from oopsy_terrarium_oopsy_terrarium.cpp:26:"
oopsy-verbose: "../genlib_daisy.h: In member function 'void oopsy::GenDaisy::audio_preperform(size_t)':"
oopsy-verbose: "../genlib_daisy.h:863:4: error: 'hardware' was not declared in this scope"
oopsy-verbose: " 863 | hardware.ProcessAllControls();"
oopsy-verbose: " | ^~~~~~~~"
oopsy-verbose: "oopsy_terrarium_oopsy_terrarium.cpp: In member function 'void App_oopsy_terrarium::init(oopsy::GenDaisy&)':"
oopsy-verbose: "oopsy_terrarium_oopsy_terrarium.cpp:58:45: error: 'struct oopsy::GenDaisy' has no member named 'hardware'"
oopsy-verbose: " 58 | daisy.gen = oopsy_terrarium::create(daisy.hardware.seed.AudioSampleRate(), daisy.hardware.seed.AudioBlockSize());"
oopsy-verbose: " | ^~~~~~~~"
oopsy-verbose: "oopsy_terrarium_oopsy_terrarium.cpp:58:84: error: 'struct oopsy::GenDaisy' has no member named 'hardware'"
oopsy-verbose: " 58 | daisy.gen = oopsy_terrarium::create(daisy.hardware.seed.AudioSampleRate(), daisy.hardware.seed.AudioBlockSize());"
oopsy-verbose: " | ^~~~~~~~"
oopsy-verbose: "oopsy_terrarium_oopsy_terrarium.cpp: In member function 'void App_oopsy_terrarium::audioCallback(oopsy::GenDaisy&, daisy::AudioHandle::InputBuffer, daisy::AudioHandle::OutputBuffer, size_t)':"
oopsy-verbose: "oopsy_terrarium_oopsy_terrarium.cpp:84:3: error: 'Daisy' was not declared in this scope; did you mean 'daisy'?"
oopsy-verbose: " 84 | Daisy& hardware = daisy.hardware;"
oopsy-verbose: " | ^~~~~"
oopsy-verbose: " | daisy"
oopsy-verbose: "oopsy_terrarium_oopsy_terrarium.cpp:84:10: error: 'hardware' was not declared in this scope; did you mean 'hardware_ins'?"
oopsy-verbose: " 84 | Daisy& hardware = daisy.hardware;"
oopsy-verbose: " | ^~~~~~~~"
oopsy-verbose: " | hardware_ins"
oopsy-verbose: "oopsy_terrarium_oopsy_terrarium.cpp:84:27: error: 'struct oopsy::GenDaisy' has no member named 'hardware'"
oopsy-verbose: " 84 | Daisy& hardware = daisy.hardware;"
oopsy-verbose: " | ^~~~~~~~"
oopsy-verbose: "oopsy_terrarium_oopsy_terrarium.cpp: In member function 'void App_oopsy_terrarium::mainloopCallback(oopsy::GenDaisy&, uint32_t, uint32_t)':"
oopsy-verbose: "oopsy_terrarium_oopsy_terrarium.cpp:130:3: error: 'Daisy' was not declared in this scope; did you mean 'daisy'?"
oopsy-verbose: " 130 | Daisy& hardware = daisy.hardware;"
oopsy-verbose: " | ^~~~~"
oopsy-verbose: " | daisy"
oopsy-verbose: "oopsy_terrarium_oopsy_terrarium.cpp:130:10: error: 'hardware' was not declared in this scope"
oopsy-verbose: " 130 | Daisy& hardware = daisy.hardware;"
oopsy-verbose: " | ^~~~~~~~"
oopsy-verbose: "oopsy_terrarium_oopsy_terrarium.cpp:130:27: error: 'struct oopsy::GenDaisy' has no member named 'hardware'"
oopsy-verbose: " 130 | Daisy& hardware = daisy.hardware;"
oopsy-verbose: " | ^~~~~~~~"
oopsy-verbose: "oopsy_terrarium_oopsy_terrarium.cpp: In member function 'void App_oopsy_terrarium::displayCallback(oopsy::GenDaisy&, uint32_t, uint32_t)':"
oopsy-verbose: "oopsy_terrarium_oopsy_terrarium.cpp:139:3: error: 'Daisy' was not declared in this scope; did you mean 'daisy'?"
oopsy-verbose: " 139 | Daisy& hardware = daisy.hardware;"
oopsy-verbose: " | ^~~~~"
oopsy-verbose: " | daisy"
oopsy-verbose: "oopsy_terrarium_oopsy_terrarium.cpp:139:10: error: 'hardware' was not declared in this scope"
oopsy-verbose: " 139 | Daisy& hardware = daisy.hardware;"
oopsy-verbose: " | ^~~~~~~~"
oopsy-verbose: "oopsy_terrarium_oopsy_terrarium.cpp:139:27: error: 'struct oopsy::GenDaisy' has no member named 'hardware'"
oopsy-verbose: " 139 | Daisy& hardware = daisy.hardware;"
oopsy-verbose: " | ^~~~~~~~"
oopsy-verbose: "oopsy_terrarium_oopsy_terrarium.cpp: In function 'int main()':"
oopsy-verbose: "oopsy_terrarium_oopsy_terrarium.cpp:163:16: error: 'struct oopsy::GenDaisy' has no member named 'hardware'"
oopsy-verbose: " 163 | oopsy::daisy.hardware.Init(1);"
oopsy-verbose: " | ^~~~~~~~"
oopsy-verbose: "oopsy_terrarium_oopsy_terrarium.cpp:165:15: error: 'struct oopsy::GenDaisy' has no member named 'hardware'"
oopsy-verbose: " 165 | oopsy::daisy.hardware.SetAudioSampleRate(daisy::SaiHandle::Config::SampleRate::SAI_48KHZ);"
oopsy-verbose: " | ^~~~~~~~"
oopsy-verbose: "oopsy_terrarium_oopsy_terrarium.cpp:166:15: error: 'struct oopsy::GenDaisy' has no member named 'hardware'"
oopsy-verbose: " 166 | oopsy::daisy.hardware.SetAudioBlockSize(48);"
oopsy-verbose: " | ^~~~~~~~"
oopsy-verbose: "make: *** [build/oopsy_terrarium_oopsy_terrarium.o] Error 1"
oopsy-verbose:
oopsy-verbose: " at ChildProcess.exithandler (node:child_process:422:12)"
oopsy-verbose: " at ChildProcess.emit (node:events:514:28)"
oopsy-verbose: " at maybeClose (node:internal/child_process:1105:16)"
oopsy-verbose: " at Socket.<anonymous> (node:internal/child_process:457:11)"
oopsy-verbose: " at Socket.emit (node:events:514:28)"
oopsy-verbose: " at Pipe.<anonymous> (node:net:337:12) {"
oopsy-verbose: " code: 2,"
oopsy-verbose: " killed: false,"
oopsy-verbose: " signal: null,"
oopsy-verbose: " cmd: 'export PATH=$PATH:/opt/homebrew/bin && make clean && make'"
oopsy-verbose: }
oopsy-verbose: "In file included from oopsy_terrarium_oopsy_terrarium.cpp:26:"
oopsy-verbose: "../genlib_daisy.h:151:3: error: 'Daisy' does not name a type; did you mean 'daisy'?"
oopsy-verbose: " 151 | Daisy hardware;"
oopsy-verbose: " | ^~~~~"
oopsy-verbose: " | daisy"
oopsy-verbose: "../genlib_daisy.h:155:34: error: 'hardware' was not declared in this scope"
oopsy-verbose: " 155 | daisy::DaisySeed *sub_board = &hardware.seed;"
oopsy-verbose: " | ^~~~~~~~"
oopsy-verbose: "../genlib_daisy.h: In member function 'void oopsy::GenDaisy::reset(A&)':"
oopsy-verbose: "../genlib_daisy.h:432:4: error: 'hardware' was not declared in this scope"
oopsy-verbose: " 432 | hardware.menu_rotate = 0;"
oopsy-verbose: " | ^~~~~~~~"
oopsy-verbose: "In file included from oopsy_terrarium_oopsy_terrarium.cpp:26:"
oopsy-verbose: "../genlib_daisy.h: In member function 'void oopsy::GenDaisy::audio_preperform(size_t)':"
oopsy-verbose: "../genlib_daisy.h:863:4: error: 'hardware' was not declared in this scope"
oopsy-verbose: " 863 | hardware.ProcessAllControls();"
oopsy-verbose: " | ^~~~~~~~"
oopsy-verbose: "oopsy_terrarium_oopsy_terrarium.cpp: In member function 'void App_oopsy_terrarium::init(oopsy::GenDaisy&)':"
oopsy-verbose: "oopsy_terrarium_oopsy_terrarium.cpp:58:45: error: 'struct oopsy::GenDaisy' has no member named 'hardware'"
oopsy-verbose: " 58 | daisy.gen = oopsy_terrarium::create(daisy.hardware.seed.AudioSampleRate(), daisy.hardware.seed.AudioBlockSize());"
oopsy-verbose: " | ^~~~~~~~"
oopsy-verbose: "oopsy_terrarium_oopsy_terrarium.cpp:58:84: error: 'struct oopsy::GenDaisy' has no member named 'hardware'"
oopsy-verbose: " 58 | daisy.gen = oopsy_terrarium::create(daisy.hardware.seed.AudioSampleRate(), daisy.hardware.seed.AudioBlockSize());"
oopsy-verbose: " | ^~~~~~~~"
oopsy-verbose: "oopsy_terrarium_oopsy_terrarium.cpp: In member function 'void App_oopsy_terrarium::audioCallback(oopsy::GenDaisy&, daisy::AudioHandle::InputBuffer, daisy::AudioHandle::OutputBuffer, size_t)':"
oopsy-verbose: "oopsy_terrarium_oopsy_terrarium.cpp:84:3: error: 'Daisy' was not declared in this scope; did you mean 'daisy'?"
oopsy-verbose: " 84 | Daisy& hardware = daisy.hardware;"
oopsy-verbose: " | ^~~~~"
oopsy-verbose: " | daisy"
oopsy-verbose: "oopsy_terrarium_oopsy_terrarium.cpp:84:10: error: 'hardware' was not declared in this scope; did you mean 'hardware_ins'?"
oopsy-verbose: " 84 | Daisy& hardware = daisy.hardware;"
oopsy-verbose: " | ^~~~~~~~"
oopsy-verbose: " | hardware_ins"
oopsy-verbose: "oopsy_terrarium_oopsy_terrarium.cpp:84:27: error: 'struct oopsy::GenDaisy' has no member named 'hardware'"
oopsy-verbose: " 84 | Daisy& hardware = daisy.hardware;"
oopsy-verbose: " | ^~~~~~~~"
oopsy-verbose: "oopsy_terrarium_oopsy_terrarium.cpp: In member function 'void App_oopsy_terrarium::mainloopCallback(oopsy::GenDaisy&, uint32_t, uint32_t)':"
oopsy-verbose: "oopsy_terrarium_oopsy_terrarium.cpp:130:3: error: 'Daisy' was not declared in this scope; did you mean 'daisy'?"
oopsy-verbose: " 130 | Daisy& hardware = daisy.hardware;"
oopsy-verbose: " | ^~~~~"
oopsy-verbose: " | daisy"
oopsy-verbose: "oopsy_terrarium_oopsy_terrarium.cpp:130:10: error: 'hardware' was not declared in this scope"
oopsy-verbose: " 130 | Daisy& hardware = daisy.hardware;"
oopsy-verbose: " | ^~~~~~~~"
oopsy-verbose: "oopsy_terrarium_oopsy_terrarium.cpp:130:27: error: 'struct oopsy::GenDaisy' has no member named 'hardware'"
oopsy-verbose: " 130 | Daisy& hardware = daisy.hardware;"
oopsy-verbose: " | ^~~~~~~~"
oopsy-verbose: "oopsy_terrarium_oopsy_terrarium.cpp: In member function 'void App_oopsy_terrarium::displayCallback(oopsy::GenDaisy&, uint32_t, uint32_t)':"
oopsy-verbose: "oopsy_terrarium_oopsy_terrarium.cpp:139:3: error: 'Daisy' was not declared in this scope; did you mean 'daisy'?"
oopsy-verbose: " 139 | Daisy& hardware = daisy.hardware;"
oopsy-verbose: " | ^~~~~"
oopsy-verbose: " | daisy"
oopsy-verbose: "oopsy_terrarium_oopsy_terrarium.cpp:139:10: error: 'hardware' was not declared in this scope"
oopsy-verbose: " 139 | Daisy& hardware = daisy.hardware;"
oopsy-verbose: " | ^~~~~~~~"
oopsy-verbose: "oopsy_terrarium_oopsy_terrarium.cpp:139:27: error: 'struct oopsy::GenDaisy' has no member named 'hardware'"
oopsy-verbose: " 139 | Daisy& hardware = daisy.hardware;"
oopsy-verbose: " | ^~~~~~~~"
oopsy-verbose: "oopsy_terrarium_oopsy_terrarium.cpp: In function 'int main()':"
oopsy-verbose: "oopsy_terrarium_oopsy_terrarium.cpp:163:16: error: 'struct oopsy::GenDaisy' has no member named 'hardware'"
oopsy-verbose: " 163 | oopsy::daisy.hardware.Init(1);"
oopsy-verbose: " | ^~~~~~~~"
oopsy-verbose: "oopsy_terrarium_oopsy_terrarium.cpp:165:15: error: 'struct oopsy::GenDaisy' has no member named 'hardware'"
oopsy-verbose: " 165 | oopsy::daisy.hardware.SetAudioSampleRate(daisy::SaiHandle::Config::SampleRate::SAI_48KHZ);"
oopsy-verbose: " | ^~~~~~~~"
oopsy-verbose: "oopsy_terrarium_oopsy_terrarium.cpp:166:15: error: 'struct oopsy::GenDaisy' has no member named 'hardware'"
oopsy-verbose: " 166 | oopsy::daisy.hardware.SetAudioBlockSize(48);"
oopsy-verbose: " | ^~~~~~~~"
oopsy-verbose: "make: *** [build/oopsy_terrarium_oopsy_terrarium.o] Error 1"
oopsy-verbose:
oopsy-verbose: "compiler error"
@Takumi_Ogata do you perhaps have an idea what’s going on?