Page 1 of 2 12 LastLast
Results 1 to 10 of 16

Thread: A graphics issue

  1. #1
    Join Date
    Apr 2006
    Posts
    41
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default A graphics issue

    I have this question which might be related to web graphics and coding in the same time. I have a friend who is building up a webpage and asked me if I can help him make a "music visualiser" for the page. Basicly what he wants is 5 lines bouncing up and down to the beat of the music on the site, just like in Winamp. It just has to be small and it has to go up and down (trebles and base) to the actual song line. Can that be created in actionscripting or anything. Thanks.

  2. #2
    Join Date
    Mar 2006
    Location
    Illinois, USA
    Posts
    12,164
    Thanks
    265
    Thanked 690 Times in 678 Posts

    Default

    ew. crazy.

    you'd be insane to try to code that for your local computer.

    you need to interpret the song (first get the file working right, second read the formatting, and third interpret what that junk means) then figure out how to make those numbers display scrolling pixels that vary as the music plays.

    It's a challenge to get music to play on a site in a compatible way.


    This is way above what I'd even try.

    Not to be discouraging... but... just... wow.

    If you can, that's awesome... but I don't think it's even close to possible.


    MAYBE with java (or flash? does it have anything built into it?) but you'd still need to interpret the data, as said above.

  3. #3
    Join Date
    Jun 2005
    Location
    英国
    Posts
    11,876
    Thanks
    1
    Thanked 180 Times in 172 Posts
    Blog Entries
    2

    Default

    Yeah, he has a point. It's possible with Java, and it might be possible with Flash (I don't know Flash), but it's certainly going to be a lot of work.
    Twey | I understand English | 日本語が分かります | mi jimpe fi le jbobau | mi esperanton komprenas | je comprends français | entiendo español | tôi ít hiểu tiếng Việt | ich verstehe ein bisschen Deutsch | beware XHTML | common coding mistakes | tutorials | various stuff | argh PHP!

  4. #4
    Join Date
    Apr 2006
    Posts
    41
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    Oki Poki ... another black on the list ...

  5. #5
    Join Date
    Mar 2006
    Location
    Illinois, USA
    Posts
    12,164
    Thanks
    265
    Thanked 690 Times in 678 Posts

    Default

    Sure.

    The problem here isn't even the coding, but dealing with writing an engine for interpreting the format of a sound file.
    A wav might not be too bad (midi might be better), 'cause it's uncompressed, but I can't imagine dealing with an mp3 or something. Ew! You'd have to write an inverse compressor (decompressor) then figure out what to do with the data.

    This would be one heck of an interesting project... but just insane

  6. #6
    Join Date
    Jun 2005
    Location
    英国
    Posts
    11,876
    Thanks
    1
    Thanked 180 Times in 172 Posts
    Blog Entries
    2

    Default

    The problem here isn't even the coding, but dealing with writing an engine for interpreting the format of a sound file.
    A wav might not be too bad (midi might be better), 'cause it's uncompressed, but I can't imagine dealing with an mp3 or something. Ew! You'd have to write an inverse compressor (decompressor) then figure out what to do with the data.
    Or use one that already exists -- I think there's one in the javax.sound package.

    /EDIT: Yes, here we are: http://java.sun.com/j2se/1.4.2/docs/...e-summary.html Supports WAVE, AIFF, AU, and SND out-of-the-box.
    Twey | I understand English | 日本語が分かります | mi jimpe fi le jbobau | mi esperanton komprenas | je comprends français | entiendo español | tôi ít hiểu tiếng Việt | ich verstehe ein bisschen Deutsch | beware XHTML | common coding mistakes | tutorials | various stuff | argh PHP!

  7. #7
    Join Date
    Apr 2006
    Posts
    41
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    WOW ! That goes waaaaaaay over my inexisting coding skills ...
    I'll try to see if it's possible somehow with action scripting ... if it's not I'll just drop the idea and get one of those standard hoping visualisers that have no real connection to the actual beat of the sound.

  8. #8
    Join Date
    Mar 2006
    Location
    Illinois, USA
    Posts
    12,164
    Thanks
    265
    Thanked 690 Times in 678 Posts

    Default

    uh? what?

    link, please.


    generally, you need to make your webpages lower rez compatible (the lowest acceptable rez is generally 800x600, so account for that).

    Basically... don't make your page so wide.

    Or center the image.

    Or use a table/smaller table if you have one now.


    Link? that's what'll determine it.

  9. #9
    Join Date
    Apr 2006
    Posts
    41
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    Never mind ... I thought it would be better not put that one there.
    Anyone knowing a script so the user won't be able to add the page to favorites ?

  10. #10
    Join Date
    Mar 2006
    Location
    Illinois, USA
    Posts
    12,164
    Thanks
    265
    Thanked 690 Times in 678 Posts

    Default

    Anyone knowing a script so the user won't be able to add the page to favorites ?
    What possible reason?

    Use frames, maybe. That would hide the real location of the page.

    And... no. There's no point.

    The user can return using his history (or manually inserting into his favorites), or, worse come to worse, WRITE DOWN the address. Not hard.

    If you're even thinking about that for security, come up with a new plan.

    Use something else to make sure they can't return, like sessions with php or passwords, or something more secure than 'not letting them save the url in favorites'... which just won't work.


    Heh. There ARE scripts TO add to favorites, though

Bookmarks

Posting Permissions

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