Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

New example file for the midi-player with 2 players #14

Open
wants to merge 2 commits into
base: gh-pages
Choose a base branch
from

Conversation

efreja
Copy link
Contributor

@efreja efreja commented Jun 26, 2019

A new song file was added (example-song2.js)
There are 2 separate divs for the 2 players.
Two separate instances of the MidiPlayerClass are created, each of them getting the div id as parameter + an additional list of options allowing to change the progress bar color for example.
Although this interface is not compatible with the previous code, it was kept as close as possible to the former one.
BR

efreja added 2 commits June 26, 2019 11:08
Second song for second player
Interface changed:
- No need for having an extra link for loading the song when it's time to play it
- This function (loadScore) is passed to MyPlayerClass constructor
- It's the 'play' button of the player that starts the MyPlayerClass play method
@efreja
Copy link
Contributor Author

efreja commented Oct 15, 2019

Interface changed:

  • No need for having an extra link for loading the song when it's time to play it: This function (loadScore) is passed to MyPlayerClass constructor
  • It's the 'play' button of the player that starts the MyPlayerClass play method

@efreja
Copy link
Contributor Author

efreja commented Oct 16, 2019

Note that the example must now be run from a web server, as browsers don't accept that local resources (here wildwebmidi.data) are pulled with file protocol (only HTTP) : CORS error

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant