Giter Club home page Giter Club logo

Comments (6)

appsforartists avatar appsforartists commented on September 10, 2024 1

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.

pr0jectile avatar pr0jectile commented on September 10, 2024 1

@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.

Topograph avatar Topograph commented on September 10, 2024

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.

pr0jectile avatar pr0jectile commented on September 10, 2024

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.

Topograph avatar Topograph commented on September 10, 2024

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.

tambien avatar tambien commented on September 10, 2024

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)

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.