this is only marginally a juce question, I’m aware that really the issue is that i don’t know c++ well at all.
I want to make a juce Array from a C array
i see the constructor definition here:
https://www.juce.com/doc/classArray#aaa426011ebe1d6a9d32302f92ead8b98
but I don’t understand how to use that to actually write the code.
I have a C array
`std::array<int, 50> padToNoteMap;`
and I want to wrap it up as a juce Array so I can save it in a value tree and then save that to a file.
I came up with:
Array<int, DummyCriticalSection, 50> padNoteWrap (array<int, 50> padToNoteMap);
which i then want to add to a datatree llike this:
dataTree.setProperty(String("padNoteWrap"), padNoteWrap, 0);
but although this doesn’t give an error it represents the array just as “1” in the resulting xml file
could someone give me an example just of the correct way to create a juce array from a C array?
also - where should I read how to parse the function descriptions in the documentation, can anyone recommend a resource?
all the C++ resources I have give actual code examples and i’m struggling with the formal type/function definitions in the juce api
