I just received my first AxoCore and started to dive into custom objects right away. I struggle with very simple things but the web and forum search doesn't bring up a lot of info. So... here are some questions:
- I'm trying to create an object that has a buffer of configurable size. I figured, an attribute might be the right thing to use for the buffersize. Looking at other objects, I see that they use "attr_xyz" in the code, but once it's compiled, that is replaced with the actual value. I also see attributes used in preprocessor statements, so my assumption is that attributes are like a pre-preprocessor, right?
When I add an attribute "buffsize" (min: 1, max: 100) and add this line into my objects local data sectionint16_t delayline[attr_buffsize];
I get an error sayingxpatch.cpp:43:16: error: 'attr_buffsize' was not declared in this scope
. So, why is my attribute not replaced with its corresponding value? - I created my object as a object/object in a blank patch. How can I save it to my library? The XML-tab doesn't update, so I can't just copy that. I can copy it from the *.axp file, but is that the preferred way?
- What do I choose for the uuid of a new object?
- Is there a difference between datatypes like
frac32.bipolar
andfrac32
apart from the different logo in the patcher?
Sorry for those dumb questions... I really didn't find answers via the forum search...