Thursday, June 27, 2013

DJTube Design Concepts

Design Concepts

  1. A series of images for animation
  2. Animation playback speed
  3. Synchronizing two audio loop - master loop determines loop of slave loop video and audio
  4. graphics interaction - to determine if mouse hits a record

Implementation Techniques

  1. Where to get images -- Internet Archive, access to huge array of copyright free video
  2. Search for VJ Loops
  3. Split video into individual frames using ImageSaver
  4. .png files are transparent
  5. current frame selects the frame
Synchronizing two audio loops - player 1 is master, player 2 is slave
player2.speed(player2.getLengthMs()/
              player1.getLengthMs());

Using speedAdjust variable to change speed of audio and video:
player1.speed(speedAdjust);
player2.speed(player2.getLengthMs()/
              player1.getLengthMs()*speedAdjust);
currentFrame = currentFrame + 1 * speedAdjust
// mouse interaction changes speedAdjust

No comments:

Post a Comment