Open VRDate opened 3 years ago
good suggestions!
first, regarding protracker mod support I already have this. I'm using libxmp (ported to webassembly), and there's an example of creating an amiga protracker module here:
https://petersalomonsen.com/webassemblymusic/livecodev2/?gist=6ba8fd149e8bee48a37281ba02cfca45
MusicXML / MusicJSON should be quite possible to support for the mode that uses midi ( https://petersalomonsen.com/articles/javascriptmidiprogramming/jsmidiprogramming.html ), both importing and exporting. That would improve interaction with other tools for sure., and I guess by supporting those one could also make use of verovio to render the scores.
Exactly and if you replace whatever Verovio is doing that cannot handle complex scores with your web assembly synth, it will be more responsive and handle complex scores better than https://verovio.humdrum.org/. libxmp (ported to webassembly) will sound better yet if you want to convert (mod, xm, s3m, it) to MusicXML https://github.com/martincameron/micromod has 2 C++ implementations for mod & xm files playing and converting to wave https://github.com/martincameron/micromod/tree/master/micromod-c https://github.com/martincameron/micromod/blob/master/micromod-c/mod2wav.c the hint is to use static int key_to_freq( int key, int c2rate) the ( int key, int c2rate ) is the data for the midi channel. & https://github.com/martincameron/micromod/tree/master/ibxm-ac https://github.com/martincameron/micromod/blob/master/ibxm-ac/xm2wav.c To solve the problem of manual association of each track to a midi channel which is not as standard as midi files like in https://github.com/musescore/MuseScore/blob/master/tools/miditools/smf2xml.cpp look at https://github.com/przem360/score2tracker Python3 script to understand the roundtrip from MusicXML to 4-channels MOD https://github.com/craigsapp/humextra/tree/master/cli is very useful for CLI tools converting between formats. Using https://developer.mozilla.org/en-US/docs/WebAssembly/C_to_wasm you can use all of the converters above and call them from your implementation. I would love to do this meself if you can walk me thru your implementation.