sergi / jsmidi Goto Github PK
View Code? Open in Web Editor NEWLibrary for reading/writing midi files in JavaScript
Home Page: http://sergimansilla.com/blog/dinamically-generating-midi-in-javascript/
Library for reading/writing midi files in JavaScript
Home Page: http://sergimansilla.com/blog/dinamically-generating-midi-in-javascript/
Hi,
is there any way to do multiple notes for each time slot. i.e. a polyphonic output?
Currently the event timings are relative, making it hard (impossible?) to use my absolute timings. The author of Perl MIDI has made a case of using absolute timings for scores (see http://search.cpan.org/~sburke/MIDI-Perl-0.81/lib/MIDI/Score.pm). Would be great if jsmidi would also support something like this.
this would make my life really easy!
Hi,
Is there any way to change the tempo?
For instance with:
var note = MidiEvent.createNote({
time: 0,
duration: 1000,
pitch: 60,
channel: 0,
volume: 90
});
I believe this is caused by the function MidiEvent.noteOn that takes the duration parameter:
time: note.duration || duration || 0
instead of setting the start time to 0.
Hi There, looking into using your library for a project. Is it still an active project? Thanks,
-Garrett
The version I referenced from this link stopped working. I will try to find out if something changed in my code, or if my code uses AJAX, and that's wiping it out.
https://raw.github.com/sergi/jsmidi/master/midi.js
May have something to do with the same origin policy. I will download the code.
I am using this utility to convert my sequence of notes. MIDI file generated has very low volume so it is just impossible to test if generated MIDI is correct or not.
Any suggestions to solve this issue.
how do i go about setting channel 0 for piano and channel 1 for guitar and kind of stuff..
I can run notes such such as "G5, A#4" etc through your code and output it as midi. However how do I go about adding a rest. If i have a sequence in 4/4 that goes "A5,A5, rest, A5" how would I implement it so your code understand.
Thanks
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.