Hello! I’m working on a guitar synthesiser and I need to load samples for it to work properly. I have sampled each fret on my guitar (6 strings, 24 frets) and I’m currently trying to load these samples at constructor on “PluginProcessor.cpp”.
Anyway I have tried both .csv loading to a std::vector matrix and/or loading the samples directly from .wav files using AudioFile.h (https://github.com/adamstark/AudioFile). When I run the program on debug mode, it takes about 2-3 minutes to load the whole thing in either way. It’s not that much samples I would think? 6 seconds at 48kHz each so that would make 144x288000 matrix.
Using the std::vector, I tried both push.back and pre-allocating 288000 for each std::vector<std::vector<std::vector>> unit, doesn’t make much of a difference.
How do the pro’s handle sample loading, it seems very fast in some programs I’ve used.