Comments (5)
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.
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.
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.
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.
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)
- Where is the code to generate this format? HOT 4
- I can not play full song HOT 1
- Using instruments in DAW apps (Reaper) HOT 1
- How to implement a metronome? HOT 1
- Clicks at the start of sound. HOT 1
- Click at the start of sound - continued. HOT 1
- Add minified version HOT 1
- Stop or pause event for WebAudioFontPlayer to listen to HOT 3
- How to stop or pause audio HOT 1
- a way of querying it for the current audio context time HOT 1
- Reverberator in TS and React HOT 1
- how to play tremolo effect? HOT 1
- Velocity and round robnin support HOT 3
- Continue playing even if the browser tab is not in focus HOT 4
- How to play the song only once? HOT 1
- Add comments or fix adjustments of loudness and delays
- Author attribution for commit d3d2959
- Dead link HOT 1
- Question on sound font generation HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from webaudiofont.