Old 18th December 2007, 14:29   #1
drscott
Junior Member
 
Join Date: Dec 2007
Location: New York
Posts: 10
Lightbulb Milkdrop in Flash - flashoid.com

Hey guys,

In September I started to hack a version of MilkDrop in Flash as an entertaining "stunt." What started as a personal side project has mushroomed into this beast that needs to be fed. Hack me, it demands, hack me some more.

Like Frankenstein in the lab, its nearly alive. It could use some performance tweaking, and a few items are in need of repair (of course). The preset compiler, interpreter, mesh, triple buffering, custom shapes, custom waves, gradients, decay, 7 wave forms, etc are all Flash. I'm impressed by Flash's ability to keep up.

See flashoid.com for a 12x12 mesh widget at 24fps, pulling presets from the v1 distro to the tune of Pink Floyd's "Time." My Mac works great, but my aging Thinkpad overheats.

I was wondering if this is something of interest to others, a potential open source project. Thoughts?

Cheers,
Scott
drscott is offline   Reply With Quote
Old 2nd January 2008, 12:16   #2
CraigF
Passionately Apathetic
Administrator
 
CraigF's Avatar
 
Join Date: May 2000
Location: Hell
Posts: 5,435
holy crap!

also, for ease of clicky around the spam filter:

www.flashoid.com

[edit]
I do get an exception when shutting it down (Latest flash debug version in Firefox2):

Error #2044: Unhandled IOErrorEvent:. text=Error #2032: Stream Error.
at com.doodlebeat::Spectrum/playMP3()
at milkdrop_fla::MainTimeline/frame1()

CraigF is offline   Reply With Quote
Old 2nd January 2008, 16:13   #3
Rocker
Hiding in plain sight (mod)
 
Join Date: Jun 2000
Location: Melbourne, Australia
Posts: 9,908
wow. I want this on my wii to go with winamp remote lol.
Rocker is offline   Reply With Quote
Old 2nd January 2008, 16:33   #4
drscott
Junior Member
 
Join Date: Dec 2007
Location: New York
Posts: 10
Thanks for my first bug report, Craig :-)

If the Wii runs flash, I bet we could run MilkDrop on the Wii. With a widget we could put Milkdrop on our facebook / myspace pages to showoff your favorite preset w/ a piece of music.

I'm going to add fullscreen support for those computers that can handle the load. That should be fun.
drscott is offline   Reply With Quote
Old 2nd January 2008, 16:41   #5
drscott
Junior Member
 
Join Date: Dec 2007
Location: New York
Posts: 10
Unhappy Wii Milkdrop

Check out en.wikipedia.org/wiki/Internet_Channel

Apparently the Wii uses Flash Player 7 via the Opera Browser. We need Flash Player 9 to read the music spectrum data in real time. Hopefully Adobe will work with Opera and get Flash 9 out the door.
drscott is offline   Reply With Quote
Old 2nd February 2008, 15:15   #6
drscott
Junior Member
 
Join Date: Dec 2007
Location: New York
Posts: 10
Post Milkdrop - with a WebCam

I recently upgraded the Flash version of Milkdrop at flashoid.com, fixing a few bugs.

The new features include a webcam interface, full screen mode, and playlists. Here's a link showing what the Milkdrop preset "Picture of Nectar" did to my smiling face thru the webcam:

http://i31.tinypic.com/25p5qnq.jpg

Scott
drscott is offline   Reply With Quote
Old 27th March 2008, 05:01   #7
ryan
not fucked, not quite.
(Forum King)
 
ryan's Avatar
 
Join Date: Feb 2002
Location: Tn
Posts: 8,798
Send a message via AIM to ryan
You should add a function to let use select presets.

Also, this is probably one of the coolest uses of the MD source I've seen yet. (The Wiimote one is cool also).
ryan is offline   Reply With Quote
Old 17th November 2008, 15:43   #8
ShadowHarlequin
Senior Member
 
ShadowHarlequin's Avatar
 
Join Date: Sep 2004
Posts: 171
is this going to be released at all? it would be awesome to showcase some presets using flash

"human is the music, natural is the static..." - john updike
[Set Zero] [themilkFACTORY]
ShadowHarlequin is offline   Reply With Quote
Old 23rd December 2008, 21:02   #9
drscott
Junior Member
 
Join Date: Dec 2007
Location: New York
Posts: 10
Milkdrop in Flash 9

Now that Flash 9 has > 95% penetration, it may be time to polish and release a port of Milkdrop to Flash. I'm thinking about adding a simple version of sprites. This way, you could add pictures from an RSS feed and have them dance, morph to the music. I'll also add a rudimentary way to edit sprites.

What do you guys think? Is it worth the effort? All suggestions are welcome!
drscott is offline   Reply With Quote
Old 25th December 2008, 14:23   #10
redi jedi
Will code for food
 
Join Date: Mar 2005
Location: orlando
Posts: 521
do you have a preset editor?

maybe set it up so you can point it at an internet radio station and play there music? don't you have a selection of songs hard coded?


I think you should try and find a way to make use of the interactiveness of flash and make like a collaborative editor.. not sure how that would work but it could be cool to have a bunch of people working on a preset


Also have you tried to do it in an adobe AIR app? not sure if you can grab audio from the sound card with it but its worth a shot, then you'd have standalone cross-platform(i think) milkdrop running off what your computer plays... and that IS worth releasing.

Blah!
redi jedi is offline   Reply With Quote
Old 25th December 2008, 18:45   #11
drscott
Junior Member
 
Join Date: Dec 2007
Location: New York
Posts: 10
Pixel shaders in Flash!

I like the idea of an interactive editor for presets, as well as the ability to run it locally and play any audio file. The Flash 10 player has basic support for pixel shaders, too, which should be a ton of fun.

I'll start cleaning up the code and soon post it on Google Code as an open source project. Once it's there I'll pass along the link.

Scott
drscott is offline   Reply With Quote
Old 26th December 2008, 16:45   #12
ShadowHarlequin
Senior Member
 
ShadowHarlequin's Avatar
 
Join Date: Sep 2004
Posts: 171
awesome i cant wait
it would be really good to show off presets on sites instead of having preview images!

"human is the music, natural is the static..." - john updike
[Set Zero] [themilkFACTORY]
ShadowHarlequin is offline   Reply With Quote
Old 26th December 2008, 17:16   #13
drscott
Junior Member
 
Join Date: Dec 2007
Location: New York
Posts: 10
Implementation question

I've been trying to calibrate the frequency samples and sound levels to those that come from C & the sound boards. Right now some of them are off, which produces a rapidly changing though miniscule animation at the center of the screen for some presets.

Does anyone have a spec or information on the typical range for mid, treble, bass, and the amplitudes in the sound sample? A trace from a running copy of milkdrop 1.0, showing the input sound values, would be great.

Scott
drscott is offline   Reply With Quote
Old 27th December 2008, 13:02   #14
drscott
Junior Member
 
Join Date: Dec 2007
Location: New York
Posts: 10
Never mind :-)

I found most of what I need by tracing (N) with monitor=bass, etc.

Scott
drscott is offline   Reply With Quote
Old 9th March 2009, 22:17   #15
ShadowHarlequin
Senior Member
 
ShadowHarlequin's Avatar
 
Join Date: Sep 2004
Posts: 171
treb seems to go from around 1.4 to just above 2 most of the time i think

"human is the music, natural is the static..." - john updike
[Set Zero] [themilkFACTORY]
ShadowHarlequin is offline   Reply With Quote
Old 11th March 2009, 23:57   #16
drscott
Junior Member
 
Join Date: Dec 2007
Location: New York
Posts: 10
Thanks for the tip, ShadowHarlequin.

I now have the code in a form to share. Lately I've been optimizing the, um, interesting method that Geiss et.al. used for variable scoping in presets (q vars, t vars, init vars, etc). What I wouldn't give for plain 'ol lexical scoping...

Would any of you be interested in helping me write some new presets? They're basically Winamp 1.0 plus some enhancements to include pictures, video and the webcam.=

See scottpenberthy.com/mesh/player.html to see three presets that combine a small playlist and the "interesting" photo's of the day from Flickr.
drscott is offline   Reply With Quote
Old 13th March 2009, 11:00   #17
Flexi
wellspring of milk
Major Dude
 
Flexi's Avatar
 
Join Date: Apr 2007
Location: 54.089866,12.11168,18.75
Posts: 2,058
Send a message via ICQ to Flexi
I'm up for writing some new preset code and i would like to see what's possible
a built in preset editor would be a huge improvement.
and since i'm mostly listening to shoutcast streams while working on new presets, ehm... i guess you know what i would love to see.

you're doing a great job!
Flexi is offline   Reply With Quote
Old 13th March 2009, 18:17   #18
ShadowHarlequin
Senior Member
 
ShadowHarlequin's Avatar
 
Join Date: Sep 2004
Posts: 171
id be up for lending a hand too

"human is the music, natural is the static..." - john updike
[Set Zero] [themilkFACTORY]
ShadowHarlequin is offline   Reply With Quote
Old 13th March 2009, 20:16   #19
drscott
Junior Member
 
Join Date: Dec 2007
Location: New York
Posts: 10
I'll be sure to take you up on the offer :-)

My favorite hack is the extension to custom shape textures. The "textured" parameter now has multiple values, not just a boolean 1/0:

0 - no texture
1 - use current frame as the texture
2 - use the slide show as a texture
3 - use the webcam as a texture
4 - use the video as a texture

You can change these in frame equations.

Slideshows transition using a random wipe effect taken from SMPTE standards, applied to an RSS feed of images. At some point I'll figure out finer grain control, so you can forward to specific parts of a video or slideshow. Maybe TEXTURED=n.f, where f is a fraction from 0-1.

I hear you about the preset editor. For starters I'm building a simple Web GUI. I need that, um, yesterday.
drscott is offline   Reply With Quote
Old 24th May 2009, 15:01   #20
ShadowHarlequin
Senior Member
 
ShadowHarlequin's Avatar
 
Join Date: Sep 2004
Posts: 171
dude get onto newgrounds, ive never been on their audio portal but MD deserves to be running in there with the other visuals they have

"human is the music, natural is the static..." - john updike
[Set Zero] [themilkFACTORY]
ShadowHarlequin is offline   Reply With Quote
Old 28th April 2011, 03:50   #21
ligiahag7902
Junior Member
 
Join Date: Apr 2011
Posts: 1
Quote:
Originally Posted by CraigF View Post
holy crap!

also, for ease of clicky around the spam filter:

www.flashoid.com

[edit]
I do get an exception when shutting it down (Latest flash debug version in Firefox2):

Error #2044: Unhandled IOErrorEvent:. text=Error #2032: Stream Error.
at com.doodlebeat::Spectrum/playMP3()
at milkdrop_fla::MainTimeline/frame1()

Such a very amazing link!
__________________
watch movies online free
ligiahag7902 is offline   Reply With Quote
Reply
Go Back   Winamp & Shoutcast Forums > Visualizations > MilkDrop > MilkDrop Development

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Forum Jump