Thursday, 20 October 2011

pop

'nother one, this uses the left and right channels to make the Russes' faces pop out of holes. Just what you want.

bug eyes

used the code from my last post to make Russ' face and eyes pop according to the volume in the right and left channels respectively. not a perfect fit but that could be fixed by putting his eyes into two separate movie clips.


In fact I just did that:
i also put the eyes within the movie clip containing the head, so they stay in the right places compared to the face. This meant i had to play the sound channel again within this movie clip, as i don't know if you can access properties defined outside of the object you're writing the code in. help with that?

Tuesday, 18 October 2011

useful bits of code

found these in the Sound Programming Video Textbook section of http://www.developphp.com/list_flash_video.php


Define the sound object and the sound channel:


var snd:Sound = new Sound();
var req:URLRequest = new URLRequest("mp3_files/raquel my body.mp3");
snd.load(req);
var channel:SoundChannel;
channel = snd.play();
status_txt.text = "The song is now playing";

This could be useful, as it allows streaming of external mp3 files. The dude doing the tutorial says that having whole songs in your .fla file can greatly increase its size, along with that of its .swf file. However my idea depends heavily on the clips syncing up perfectly, and varying loading/buffering times could affect this.



Enter Frame Event:

addEventListener(Event.ENTER_FRAME, onEnterFrame);
function onEnterFrame(event:Event):void {
    
leftpeak_txt.text = ""+(Math.round(channel.leftPeak * 100));
rightpeak_txt.text = ""+(Math.round(channel.rightPeak * 100));
leftBar.height = (Math.round(channel.leftPeak * 100));
rightBar.height = (Math.round(channel.rightPeak * 100));

}

Initiates a function every time the movie reaches the frame the actionscript is in. In a one-frame clip this will correspond to the framerate.


Sound completion event function and its listener

channel.addEventListener(Event.SOUND_COMPLETE, onPlaybackComplete);
function onPlaybackComplete(event:Event){
    removeEventListener(Event.ENTER_FRAME, onEnterFrame);
status_txt.text = "The song is over";
}

Can be used to start another sound clip immediately after one finishes.

dum dum tish

made a working model of that drum. soz about the dock in the screencaps






Monday, 17 October 2011

zoooooooom

http://zoomquilt2.madmindworx.com/zoomquilt2.swf


well good, might use a zoomy kinda build for the video.


alternatives:


- side scolling, à la Sonic - possibly a video game theme?


- a visualizer, perhaps also 'listening' to the mic input of the viewer.


- some sort of facial morphing.. thing. using the band members' faces, switching different facial features along with which part of the song is on.


- videos of russ singing the lyrics. various costumes/effects depending on current lyrics?


- graphical representations of instruments which resemble theme of current lyrics/song. EG Rohypnol Romance's drum section may trigger a graphic that looks like a drum AND a glass with a pill dropped in it:

other visuals i could use:

- band photos; existing pics from gigs/practice/photoshoots; new pics taken by me especially for this


- the band's logo - possibly animated




- colour scheme: Black and yellow of logo
                         Purple and green of mascot: