With the symbols recognised in this way I have set the symbols up to open, play and stop .aiff sample files. The file is opened and played from a bang from when the symbol is added and a bang to stop the file playing when the symbol is removed. I have also set up the rotation of the symbol to increase and decrease the speed of the sample. This was achieved by adding a 'speed' button that was linked to the rotational angle of the fiducial symbol. This now enables the tempo of the sample to change by simply rotating the symbol.
I added a gamepad controller function which allows me to use an xbox controller to add additional functions to the applet. One of these is the scratch function that enables samples to be manipulated when the symbol passes back and forth through its y-axis. This is only triggered upon a button press from the controller to ensure that it doesn't alter the samples all of the time. This feature allows any of the playback symbols positioned on the deck to be scratched when required.
In addition I plan to add a record function to allow recording of altered samples so they can be added back in playback.
No comments:
Post a Comment