Bewelge / MIDIano

:musical_note: A JavaScript MIDI-Player/ Piano-learning webapp
https://midiano.com
118 stars 22 forks source link

Is it possible to load application with provided url for midi that should be played? #25

Closed pedjas closed 11 months ago

pedjas commented 1 year ago

Is it possible to run application and pass midi that should be played as parameter, like url to midi file?

Bewelge commented 1 year ago

It's not possible unless the linked site explicitly allows it or I serve the files through my own server. Not currently planning on realizing this.

pedjas commented 1 year ago

I thought to use it as support application for learning site, but, of course installed on my server to avoid using your resources. In meanwhile, I learned that it is not possible to install it to other sites, so I have to give up that idea.

Bewelge commented 1 year ago

It would technically be possible but not legal, since I haven't published the Midiano source code under an open license (or any license). So please do not use the code without my authorisation.

pedjas commented 1 year ago

Of course I would not use code. I already said I have to give up an idea. Pitty.

Bewelge commented 11 months ago

You can now start up midiano by passing an URL to a midi file as URL param:

https://midiano.com/?songUrl=https://github.com/Bewelge/piano-midi.de-Files/raw/master/midi/elise.mid

The server serving the file needs to enable CORS for that to work though.