dcsimg
A Flash Developer Resource Site

Results 1 to 9 of 9

Thread: Music Visualizer

  1. #1
    file not found Captain_404's Avatar
    Join Date
    Apr 2006
    Posts
    457

    Music Visualizer

    I'm working on a somewhat unusual game right now that requires a sort of music visualizer for the gameplay. I've googled a bit and found some stuff on computeSpectrum, but my problem is the latest version of Flash that I have is mx04, which doesn't support such commands.

    So, does anyone know any workarounds for this? I seem to remember that in the Sound Loops/FX resource section of FK they had flash visualizers for the sound that would do just this. (that is, break up the music into different parts)

    So is there any way to do this with mx04, or will I finally have a good excuse to upgrade? (the reason I haven't upgraded yet is that I don't have the money btw, so if anyone knows a workaround I'll be very very thankful)


    For those interested, the game I'm working on is taking the idea of a Guitar Hero game and trying to make it simple enough to where Alzheimer's patients can play it. (my grandmother was recently diagnosed with the disease) I'm trying to make a game where they can exercise their mind in a simple way by reacting to the music played. I also want a given caretaker to be able to upload any music the patient wants into the game, hence the need for dynamic visualizer-like scripting.

  2. #2
    Senior Member Orkahm52's Avatar
    Join Date
    Jan 2006
    Location
    Perth, Australia
    Posts
    335
    I've tested a few things out and I've found no way to do it even in flash 8. ( though I could be missing something ) You could always use an array and enter the values that you need for the game into it but that would be quite tedious. But remember Guitar Hero isn't automatic either

    ~Ork.

  3. #3
    Senior Member fil_razorback's Avatar
    Join Date
    Jul 2005
    Location
    Paris, France
    Posts
    607
    I cant help you but I just want to tell you that I think it's great that some people, like you, try to make games that anyone can play.
    And it's even better if it may help Alzheimer patients to keep ground against the disease.

    Good luck.

  4. #4
    Senior Member Sietjp's Avatar
    Join Date
    Jan 2005
    Location
    Paris, France
    Posts
    709
    I've looked around here ( http://lab.andre-michelle.com/tag/audio/ ) and didn't see anything possible in MX2004. In FP8 it looks like you can analyse the spectrum ( http://lab.andre-michelle.com/music-...-bitmapfilters ).
    If you upgrade to CS4/FP10, then you can analyse the waveform and generate waveforms/sounds dynamically.

  5. #5
    Senior Member tonypa's Avatar
    Join Date
    Jul 2001
    Location
    Estonia
    Posts
    8,227
    Just pointing out that you can make F9/10 games with completely free Flex SDK, you dont have to buy Flash CS3/4 for it.

  6. #6
    file not found Captain_404's Avatar
    Join Date
    Apr 2006
    Posts
    457
    I never actually looked into Flex before. I'm researching it right now, but I was wondering if you had any links you've found particularly helpful?

  7. #7
    Senior Member tonypa's Avatar
    Join Date
    Jul 2001
    Location
    Estonia
    Posts
    8,227
    I used this tutorial to set up Flex SDK:
    http://www.senocular.com/flash/tutorials/as3withmxmlc/
    But its getting old and some things may have changed. First, you need to get Flex SDK
    http://www.adobe.com/products/flex/f...ads/index.html
    (not Flex Builder). Then, Im pretty sure you need some sort of Java runtime.

    Most people wont bother writing code in Notepad, they use something like FlashDevelop (which need .NET). Of course you can in theory write code using whatever text editor and just use FlexSDK to compile it.

    Or you could even use HaXe (http://haxe.org/), it does not use Adobe compiler and is free too.

  8. #8
    Member
    Join Date
    Dec 2007
    Posts
    38
    an old tool converts MP3 into swf files with spectrum data:
    http://www.swift-tools.net/
    (check SwiftMP3)

    (warning) about as3: Because of a short lag, it seems that in as3 there are problems synchronizing sounds, eg. 2 music loops perfectly synchronized seems impossible. May have been fixed in FP10.
    Last edited by gludion; 02-14-2009 at 04:53 PM.

  9. #9
    Student
    Join Date
    Apr 2001
    Location
    -
    Posts
    4,756
    I just scratched this thread but there is a video tutorial on
    http://www.gotoandlearn.com/
    using sound specturms
    http://www.gotoandlearn.com/play?id=62
    and how to manage sounds in as3
    http://www.gotoandlearn.com/play?id=61

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  




Click Here to Expand Forum to Full Width

HTML5 Development Center