Sponsored by

  • Intel
  • HP

AdobeTutorial

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.

Advertisement

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

Subscription offer

Log in to Creative Bloq with your preferred social network to comment

OR

Log in with your Creative Bloq account

site stat collection