Comments (6)
I don't speak for @tambien, so I have no idea if this is somewhere he's interested in taking it. I will say that PRs are more likely to be addressed than feature requests. 😃
from midi.
@Topograph I figured out how to build using the commits from that thread in the end and the output result does match your version so I guess they both are the same. Thanks anyway! :)
from midi.
I also have problems with tracks including tempochanges...not sure how i can solve those
Edit: Nevermind. I found the duplicate thread of this one. And took the modified version from there....did the trick for me
from midi.
I also have problems with tracks including tempochanges...not sure how i can solve those
Edit: Nevermind. I found the duplicate thread of this one. And took the modified version from there....did the trick for me
@Topograph Hey, do you mind sharing the relevant bits of code? Feels cluttered in that thread with all the commits.
from midi.
Hi,
It's been a while. I only found this one on my hard drive:
MidiConvertTime.js.txt
(rename the txt file to .js, GitHub seems to only allow certain file types in here ;). )
This seems to be a minified version. Sorry I found no other.
If I remember correctly this version considers the tempo changes when calculating the durations and starting timings in milliseconds of the notes.
from midi.
should be fixed in the latest release. i compare all of the tempo changed timings against output i generated from pretty_midi, so i'm pretty sure they're accurate. the tempos are stored in an array of tempo events in the header file. if this array is modified, you have to update all of the note and cc time values by calling midi.header.update()
.
from midi.
Related Issues (20)
- error TS2305: Module 'midi-file' has no exported member 'MidiTrackData' HOT 1
- How can I execute a function when the MIDI file has ended? HOT 1
- no "PPQ" key in midi header in node.js HOT 3
- Cannot use ES6 import syntax in node HOT 1
- Converto Json to Midi HOT 2
- I am not able to add silences in a track HOT 2
- Changing note name in original midi
- Downloading midi file without Node HOT 2
- Encoding key signatur with wrong mapping of major & minor scales HOT 1
- Notes with Velocity of 0 is not always equivalent to Note off HOT 2
- Microtones HOT 1
- duration is calculated incorrectly...do not use end of last note to calculate duration of clip... HOT 1
- Adding control changes does not work
- Add a option to parse midi tracks without spliting It by channel / instrument
- Ability to edit `track.instrument` info (read-only for now)
- Timeout on midi.header.ticksToSeconds, when using a midi made by MuseScore. midi.tracks[0].endOfTrackTicks undefined. HOT 1
- NPM package outdated, causing MIDI lyric parsing issue
- Convert Midi into JSON HOT 2
- How to generate Piano sound with slight delay and how to play next midi file when user in play mode
- Quarter tones
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 midi.