Hello,
Processing library:
Once you add that check out the examples:
Integrate it with the sound library of your choice; they also have examples.
I was able to do this from examples and without looking at posted solutions.
I am confident that you can also.