Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 1 of 1
  1. #1
    New Coder
    Join Date
    Jun 2009
    Posts
    81
    Thanks
    0
    Thanked 8 Times in 8 Posts

    Generated Melody TAB Lines with audio for firefox

    Generated Music in the browser.

    This app creates melody lines on the fly, lists it in guitar TAB form, and plays the melody in firefox.

    The app shows one way to offer different functionality based on the browsers capabilites. Specifically, the app targets proprietary firefox html5 audio for playback. Any browser that utilizes the mozSetup method of the audio object will have a chance to hear the audio as well.

    The descriminatin test is:
    if(typeof(Audio)=="undefined" || typeof(Float32Array)=="undefined" ||(new Audio())["mozSetup"]==undefined)

    The app generates wild and almost jazz-worthy melody lines on the fly.

    The app is self contained in one page including images and audio.

    Code:
    ... code is in the attached zip file ...
    tested in ie,ff,chrome,safari,opera

    Almost forgot - there are data underflows in firefox audio on some runs. Just refresh the browser, or you can do the math and align the data to the array.
    Attached Files Attached Files
    Last edited by rdspoons; 02-29-2012 at 10:36 PM. Reason: data underflow, spellin


 

Tags for this Thread

Posting Permissions

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