Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
import * as MIDI from 'midi.js'
import './style.css'
import * as Vue from 'vue'
import { onsuccess } from './keyBinding'
MIDI.loadPlugin({
instrument: 'acoustic_grand_piano',
soundfontUrl: 'static/soundfont/',
onsuccess
})
initPlayer() {
const this_ = this;
MIDI.loadPlugin({
soundfontUrl: '/assets/soundfont/',
onsuccess() {
this_.player = MIDI.Player;
this_.initPlayerSrc();
}
});
},