I need to build a patch with the following specs:
I have a few wav mono files I need to playback (1 time with note on midi message - no loop). each file is different for each note of my midi controller (a usb keyboard with 4 octaves of range).
Files are short (almost 1 1.5 seconds each). I need to play max 6 files at the same time.
Is it possible to preload in ram the wav files (almost 48 files more or less) when the patch loads. Do I have to use a loadbang for that?
Now using the buffer command is it possible to generate (through a list or message) the specific buffer command for the specific file relevant to the midi pitch note on message?
Let's say midi note on pitch = 48
I want to play a file with the buffer command and the file is named sample48.wav
Is it buffer a suitable object for this. Should I look to other objects as well?