GithubHelp home page GithubHelp logo

Comments (5)

surikov avatar surikov commented on June 10, 2024

https://surikov.github.io/webaudiofont/examples/midiplayer.html - a small example of using WrebAudioFont.
WebAudioFont is an engine for playing music, not for parsing music files.
Write your own MIDI parser if you need to parse a "pitch-bend" event in a special way.

from webaudiofont.

page200 avatar page200 commented on June 10, 2024

Thank you for the quick reply! :)

The example MIDI file parser at https://github.com/surikov/webaudiofont/blob/master/examples/MIDIFile.js#L1020, instead of dividing by 6, should divide by 64 and multiply by the number of semitones of the pitch-bend range (2 per default, or otherwise set via specific RPN messages, usually followed by specific "Data Entry" messages: http://midi.teragonaudio.com/tech/midispec/rpn.htm).

It would be great if you could fix this. Otherwise even the pitch bends in the demo song from "The Good, the Bad and the Ugly" on your page are affected.

from webaudiofont.

surikov avatar surikov commented on June 10, 2024

Author of MIDIFile.js is https://github.com/nfroidure
Ask him to modify his parser.
You can use any other parser.

Again
WebAudioFont is an engine for playing music, not for parsing music files.

from webaudiofont.

page200 avatar page200 commented on June 10, 2024

Neither https://github.com/nfroidure/midifile nor its ahead forks (nor its accompanying repos https://github.com/nfroidure/midievents (which is also part of your MIDIFile.js) and https://github.com/nfroidure/midiplayer) seem to have slides (pitch bends) or parseSong. Maybe you had implemented that. So I made a pull request for your repo rather than for the original MIDIFile.js

from webaudiofont.

page200 avatar page200 commented on June 10, 2024

The author of the original MIDIFile.js repo welcomes a pull request with the updates that are unique to your repo (slides (pitch bends), parseSong(), ...).

You're most qualified for this because you wrote the updates, and because you'll be able to simultaneously turn MIDIFile.js in your repo into an external dependency, so the repos won't get out of sync. But maybe someone else can make the pull request, too.

from webaudiofont.

Related Issues (20)

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.