In Package that Im using in Ionic Capacitor project, I have changed SoundFont player, It works great in that package, loads sf2 file and executes play action as well, when Im running that package on local host by npm start.
How ever, when I run my main project, there is no sound, I can see in console log that soundFont was successfully loaded by package Im using in my project, also excately the same SoundFont Im referencing from my main project and loading it successfully into it as well, and playing it too, Im also seeing all the console logs logged in package up to a point play action is used, but console logs immediately after that I can't see in my console log, so I presume, there is some error thrown or something, that stops executing code at that stage. but I don't know how to catch it. Also these errors probably aren't critical, as everything else works normally, including cursor that moves with every play call in package code. Otherwise, if soundFont isn't successfully loaded, both my main and package local servers crash on calling the play function.
https://github.com/enjikaka/sf2-player. --sf2 player im using in that package, package im using isn't public, so I can't share it.
console.log("key");
console.log(key);
console.log("sf2.noteOn(key)");
console.log(sf2.noteOn(key));
Upper 4 console logs I see in my console, bottom two console logs I can't see (though I see all of them when running package in local server, just that then everything works as expected, no errors thrown).
sf2.noteOn(sf2.noteOn(key));
setTimeout(() => sf2.noteOff(key), 500);
console.log("sf2.noteOn(key 22222)");
console.log(sf2.noteOn(key));
Is there a way to see what's happening with last four lines of code in my main project console log?
Also my main project is written in react, package is written in TypeScript