using harmonics to trigger event
Hi, I want to create an event that will randomly trigger an audio sound file from a selection of 7 samples (mp3 files). I’m playing a classical guitar through a microphone and am hoping to use the overtones to trigger this event. Am I correct in saying that the object ‘fffb~’ is the way to go? Can I connect this to the ‘audio input’ object directly? How to convert the numeric values it outputs into useful data, which I can then filter with a ‘select’ object to trigger the playing of an audio file. Is there a simple way of doing this?
Finally can I preload my audio files using ‘loadbang’? Can I reference the path to these files in this or some other object?
Thanks in advance!
Yes it can be done, but you *may* need to have a look at the
The fiddle~ and Pitch~ objects may help as well. Have a look at
maxobjects.com. You can have a search on the forum as well for "audio
to midi" or such. I’m sure you’ll find a lot of answers since it has
been discussed may times.
This task is not necessarily an easy one, so you’ll really have to
make the tutorial and learn thru the docs first. You have to anyway.
i found sflist~ confusing. it may not be the most efficient, but i used
coll to store the command that opens the new file in sfplay (said command
includes the filepath) and a umenu to select which file i wanted to play.
To tell the truth, I also found sflist confusing the first time I wanted to use it, but then saw what the idea was and am using it happily since then. The element which was missing was a way of loading files one after another and having them be assigned a "preload" number automatically. This was easy enough with a couple of sprintf objects and counters. Still missing in my patch is a readout of what number is assigned to what soundfile; I think I’ll spend a bit of time this morning to get that taken care of.