Embed audio in a patcher ?
Hi everyone !
I was asking myself if it's possible to embed an audio file directly into a patcher. We can embed an image in fpic, or embed a patcher with the bpatcher.
But can we do the same with an audio file ? Because it's more onerous to give the path each time for audio files to a sfplay and when you put the patch in another computer, you have problems to recover your audio files...
Thanks a lot !
Well, if you simply have the audio and the patcher in the same folder, and you don't specify a folder name, it should work automatically. That's what happens when I send patchers off to someone else.
Thanks for you answer ! I understand. The thing is that I have a lot of sound files and I want to make a specify folder with all the sound files.
this has been asked and answered many times on the forum.
for patch, send path message to thispatcher, and combine
patcher path with folder name placed next to the patch,
to either create search path using filepath search
or populate umenu with audiofiles in that folder, or whatever else you are up to
One could also drop the folder on dropfile to do the same, if you don't want
to be fixed to patcher's location
very small(!) files can be stored in a coll as a list of numbers.
and "utility waveforms" such as windows, envelopes, or wavetables are sometimes generated live on init.
Thanks everyone for this tipps! I will tested them and see what's the best <3
The sampling data can be easily ready into coll using peek. But putting them back into a buffer~ is much less straight forward. As a matter of fact, I'm stumped.