I orignially start to program with the Minim sound library in Processing. However, the volume level numbers were really unstable and didn't seem to follow anything that I could measure. If that wasn't difficult enough to work with, after about 20 seconds of running the program, Processing would freeze and I would have to restart my whole computer. I tried to restrict the number using the map function, but it still didn't help much and my computer still would freeze after a short time.
Looking through the "Learning Processing" book, I decided to try the other sound library they mentioned. Sonia seemed to restrict the sound more and it was easier to read the numbers I need and have actions triggered by them than with Minim (I computer also didn't freeze, which was VERY helpful).
The only issue I have run into is that Sonia only plays .wav sound files and all the recording I did was in .mp3 format. I went online to find alien speech samples in .wav format so I could make sure that the code works properly before going through the process of converting the sound files.
Thankfully, everything is working now. Since the prototype is due today (Nov. 1) and today is also the day I managed to figure out all the code so that it responds properly, I am still using the sample files from online.
For the final piece, I will have my original recordings as well as more options when interacting with Leroy.
No comments:
Post a Comment