I have seen another post where somebody asked about using the library in browser, so i added this to my code
<script type="text/javascript">
var MidiPlayer = MidiPlayer
// Initialize player and register event handler
var Player = new MidiPlayer.Player(function(event) {
console.log(event);
});
// Load a MIDI file
{% load static %}
Player.loadFile('/media/{{cancion.midi}}');
Player.play();
</script>
It throws me this error:
TypeError: MidiPlayer is undefined
I'm a little bit lost on this, so I ask you if i have to load the script or something else to make it work correctly, because I just need to play a midi file
I have seen another post where somebody asked about using the library in browser, so i added this to my code
It throws me this error:
TypeError: MidiPlayer is undefined
I'm a little bit lost on this, so I ask you if i have to load the script or something else to make it work correctly, because I just need to play a midi file