Git Product home page Git Product logo

Comments (2)

petersalomonsen avatar petersalomonsen commented on May 25, 2024

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.

from javascriptmusic.

VRDate avatar VRDate commented on May 25, 2024

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.

from javascriptmusic.

Related Issues (9)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.