With help from my tutor we found a way to connect the Arduino testing code within pure data to the code I constructed to play the sample sounds i got from my Fruity loops Library.
The piece of code we used was a object called Moses. This meant i could tell the bang for the drum sound to trigger once the Moses received more than a certain amount of resistance.
This is the final code that allowed me to play the drum sample once with every click of the bang. (exactly what i needed)
This use of the moses was to connect the arduino test to the bang of the drum sample. Meaning i could communicate with pure data through each of the analog ports.
No comments:
Post a Comment