I've just started working on a new object. Trying to remember some of the C I learnt many years ago.
First question:
how do I declare and then initialise an array of signed 32bit integers?
I currently have:
<code.declaration>
<![CDATA[
int32_t pattern[32];
int counter;
int ntrig;
int rtrig;
]]>
</code.declaration>
<code.init>
<![CDATA[
pattern[] = {-57, -55, -42, -40, -39, -30, -28, -25, -24, -22, -21, -20, -17, -15, -8, -3, -2, 3, 5, 7, 8, 11, 18, 20, 36, 39, 44, 47, 48, 49, 60, 63};
counter = 0;
ntrig = 0;
rtrig = 0;
]]>
</code.init>
but get these errors:
/Users/alx/Documents/axoloti/build/xpatch.cpp:81:13: error: 'int32' does not name a type
int32 pattern[32];
^
/Users/alx/Documents/axoloti/build/xpatch.cpp: In member function 'void rootc::instancetbnmpgen__1::Init(rootc*)':
/Users/alx/Documents/axoloti/build/xpatch.cpp:91:13: error: 'pattern' was not declared in this scope
pattern[32] = {-57, -55, -42, -40, -39, -30, -28, -25, -24, -22, -21, -20, -17, -15, -8, -3, -2, 3, 5, 7, 8, 11, 18, 20, 36, 39, 44, 47, 48, 49, 60, 63};
^
/Users/alx/Documents/axoloti/build/xpatch.cpp: In member function 'void rootc::instancetbnmpgen__1::dsp(int32_t, int32_t, int32_t&)':
/Users/alx/Documents/axoloti/build/xpatch.cpp:111:30: error: 'pattern' was not declared in this scope
outlet_out = pattern[counter];
^
make: *** [/Users/alx/Documents/axoloti/build/xpatch.bin] Error 1
shell task failed, exit value: 2
Compiling patch failed ( untitled )
a|x