Juce Array of float array


#1

Hi,
I have this code:

Array<Array<float>> presets = { crsPanVerb, liquidShift, crsDelayVerb };

Array<float> crsPanVerb = { 0.0, // Configuration
    0.0, 0.0, // Pitch LA
    0.0, 0.0, // Pitch RA
    0.0, 0.0, // Pitch LB
    0.0, 0.0, // Pitch RB
    500.0, 0.4, 0.15, 0.5, // Chorus
    0.0, 0.0, 0.0, 0.0, // Delay
    1.0, 0.18, 0.5, 0.5 }; // Reverb

Array<float> liquidShift = { 1.0, // Configuration
    -0.7, 0.75, // Pitch LA
    0.5, 0.25, // Pitch RA
    -0.3, 0.75, // Pitch LB
    0.5, 0.25, // Pitch RB
    0.0, 0.0, 0.0, 0.0, // Chorus
    0.0, 0.0, 0.0, 0.0, // Delay
    0.0, 0.0, 0.0, 0.0 }; // Reverb

Array<float> crsDelayVerb = { 0.0, // Configuration
    0.0, 0.0, // Pitch LA
    0.0, 0.0, // Pitch RA
    0.0, 0.0, // Pitch LB
    0.0, 0.0, // Pitch RB
    500.0, 0.6, 0.3, 0.5, // Chorus
    9261.0, 1.0, 9261.0, 0.5, // Delay
    1.0, 0.2, 0.8, 0.5 }; // Reverb

But in xcode VST2.x wrapper, it make a crash as I initialize the VST in Cubase…
Why? (I promise that I’ll study C++ but that seems to be an error in juice… not of C++).


#2

I’ve found that the line Array <Array > copy the array instead of being an array of arrays…