2/ Sorry I made a mistake. if your Antescofo message is called “soundfile”, then use a “receive soundfile” Max Object. Just replace “receive sound” by “receive soundfile” in the patch.
1/ The idea is that Antescofo just send the index of the sound file you want to play with sfread~. It does not make anything else.
Check sfplay~ help patch for further explanation about preload.
“preload 2 fileA.wav” just assigns fileA.wav to the index 2 in the “playlist” within the sfread~ object. Use a “preload …” message for each piece you want, with a different index number. So:
- if you use one file, the right message is “preload 2 fileA.wav”
- if you use two files, the message is “preload 2 fileA.wav, preload 3 fileB.wav”
- if you use three files, the message is “preload 2 fileA.wav, preload 3 fileB.wav, preload 3 fileC.wav”
OK?
For instance, in the full patch you send me:
- you use only one file, so you do not have to send “, preload 3 fileB.wav 0”.
- you must use full file paths if the folder that contains the audio file is not on the “Options/File preferences” list. Add your folder in that list if you do not want to type the full path (all sub-folders will be added). This purely depends on your Max configuration, not on Antescofo.
Here is the correct part of patch:
----------begin_max5_patcher----------
571.3ocyV1zaZCCFG+bxmBKuqLvNow.cmlzNuKU6zT0jShg51D6HaCEVU6m8
4WRTg1BkhRi1AbhsexyK+x+7XdHNBlK2vzPvkfeChhdHNJxujagn14QvZ5lh
Jp1aFLekwHEvQgsDqpkqLULieSb6pMTSwMbwx+nXElfyuHCOFMBfmM0cIA0M
Btt8Y3kd2Kyu8qy2w6bwKcdHdlsMrfmg4TwRH3Z2tOFG6FFch0hfcuMdcQyv
13SVXkjV5c5GsHSHYiyFAHDW0QNZMhm148ERgQPq8UC76JNsZ2cz7+52AmX8
1vPkZlVSWxdEVZTLGY.IfI+RyT5IMUT0RlRJl7Cl9NirYxUz5lJldxUH736o
qOW.hQId1MedPyb.DR5GDlbHD1qhpEJYsdactr5CSkzKH67syzzipqR+j0U8
JTJoEOAvfj2FIn2EIoXORxldTjf6IcR+U21BgwWy.Z4JQ4BdE6r0DYy7WP3i
R.T+P.zfHJzKrMV19zgTEouKTRx78MBiGhIYexMOz7kBmq18t1dxsOhltty3
u7SuggB2cq8Wh80ZBZNwVCnvJvusOm8dBVwEu7DbOZbquO7spMUQWH6zEfmo
SISa3BpgaOe+YilumM2vKKYhcECkbMMuh4IK5MUA8Z53ZvMP4S1ojN3AMcvm
R5fGl2Vom.dxFNwC4+qzY5oHdHmY9D9xm1zr19+vZ8oOUrMXuUpbSIi7S4hv
T+QI1ycVy6r22GERU1lnFaGzUpPGvMyHvXWbdL9eqJMytC
-----------end_max5_patcher-----------
Afterwards, when you want to trigger the sound file whose preloaded index is N, just type the action “soundfile N” in the Antescofo score.
P.S. : to share a part of a Max patch, do not post an image of it. Just select the part you want to share, then make a right-click then click on “Copy Compressed”. Then, you can directly paste your clipboard in a message in this forum.