struct Pairs
{
float skew = 0.5;
float squeeze = 0;
};
Pairs kick[12] =
{
{0.5, 0.5}, // pitch
{0.5, 0.7}, // tone
{0.3, 0.7}, // decay
{0.6, 0.6}, // release
{0.6, 0.6}, // freq
{0.5, 0.5}, // curve
{0.3, 0.5}, // square
{0.7, 0.4}, // lowpass
{0.2, 0.5}, // overdrive
{0.8, 0.6}, // noise
{0.3, 0.7}, // warb_speed
{0.1, 0.8}, // warb_depth
};
sorry, more a general C++ question perhaps, but am interested to hear any advice on the best way to do this in JUCE.
in the above code, i have an array of structs named kick, with 12 structs inside. This number of 12 is hardcoded, and will 100% definitely never be changed.
my issue now is how to make one more bigger container to hold several of these struct arrays (for kick, snare, hihat, etc). Am thinking of just putting them all in a std::vector, but perhaps there is a better way to deal with all this?
also, if i do put them in a std::vector, what syntax do i use to initialize the vector? Here's what i sorta guessed, but it seems unlikely to me that i have this right:
std::vector <Pairs[]> allInstruments = { kick, snare, hihat ... (etc) };
Maybe i am just barking up completely the wrong tree here, and would be better served to use some Juce containers?
