Jump to content

Playing many different .mp3's on my website


Søren Prom

Recommended Posts

Hello everybody. Some years ago I made a website about music (www.guitarguide.dk - it's in danish). On one of the pages the visitor can get information on how to improvise by choosing the tonality and chord, she is playing, from 2 radiobuttons and 3 pull-down menues. By clicking a button, the app document.write's out the function of the chord and a proposal to how to improvise over the musical combination. There is a huge amount of javascript behind this app's logic.
 
Now - with HTML5 - I want to extend the app with audio. By clicking 3 buttons the user should be able to hear the chosen tonality, the chord and the proposed impro-scale. This requires, that the app is capable of picking out and import 3 destinct - though very small - .mp3 files from among 800 different files.

I know  how to play .mp3's in HTML5/javascript, but I cannot find out how to build the code that can handle and play the set of variables needed to meet my requirements.
Can somebody help - please?
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...