Control your tunes visually
By using a video camera and Flash, Matt Booth shows you how to control the volume and pan of an imported song via the movement of two real objects.
Using an external video camera and different coloured objects, you can make Flash track the objects' X and Y positions.
These values can be put to whatever use you like, from navigation of your site to games and video control. In this example we'll be controlling the volume and pan of an imported song.
In this tutorial, I'll show you how to import a song and display the attached camera. I'll then show you how to track specific colours from the camera, which will then control the sound. This is done by clicking on each object to select which is the volume and which is the pan controller. Before you begin and once you've copied the disc files to your computer, you'll need to source your own audio mp3 file, name it song.mp3 and place it in the 'audio' folder.
Click here to download the support files (17KB)
Click here to download the tutorial for free
Get the Creative Bloq Newsletter
Daily design news, reviews, how-tos and more, as picked by the editors.
Thank you for reading 5 articles this month* Join now for unlimited access
Enjoy your first month for just £1 / $1 / €1
*Read 5 free articles per month without a subscription
Join now for unlimited access
Try first month for just £1 / $1 / €1
The Creative Bloq team is made up of a group of design fans, and has changed and evolved since Creative Bloq began back in 2012. The current website team consists of eight full-time members of staff: Editor Georgia Coggan, Deputy Editor Rosie Hilder, Ecommerce Editor Beren Neale, Senior News Editor Daniel Piper, Editor, Digital Art and 3D Ian Dean, Tech Reviews Editor Erlingur Einarsson and Ecommerce Writer Beth Nicholls and Staff Writer Natalie Fear, as well as a roster of freelancers from around the world. The 3D World and ImagineFX magazine teams also pitch in, ensuring that content from 3D World and ImagineFX is represented on Creative Bloq.