Hi everyone,
I’m having trouble with the macros in Cabbage. I’m probably just using them incorrectly. I’m on macOS Mojave. Two questions:
- According to the Docs, the macros defined in the Cabbage section should be able to be accessed in the Csound orchestra. However, when I test this out with the prints opcode in the orchestra I get this error:
Undefined macro: ‘$TEST_STRING’.
error: syntax error, unexpected ERROR_TOKEN, expecting NEWLINE or ‘,’ (token “$”) from file /Users/jhallen/Desktop/Csound/drums_v2_cabbage.csd (1)
Here’s an example csd. (718 Bytes)
- Can I define a macro in the Cabbage section that is only an integer? (e.g. #define TEST_NUMBER 123, in my example csd). Later in the Csound orchestra I try to convert this macro into a number with strtod/strtol, but I get the same “Undefined macro” error.
My goal is to set some numeric values as macros in the Cabbage section, use those macros to generate widgets in the Cabbage section, and then access those macros later in the Csound orchestra in order to set the position of those widgets. However, I can’t figure out how to make the macros do this.
Thank you,
Jason