Giter Club home page Giter Club logo

Comments (8)

tambien avatar tambien commented on September 10, 2024 1

@ctrl-alt-d no need to apologize. this is actually really helpful, it seems like my assumptions were wrong and at least some Format 1 files include notes on the first track. this is probably a pretty easy fix, so i'll look into accommodating these files and use these MIDI files in a test.

from midi.

tambien avatar tambien commented on September 10, 2024

In format 1 MIDI files, the first track is usually tempo and song info, all of that is put into the header output. Then the second track is the beginning of the note data. Could this be what is happening here?

from midi.

ctrl-alt-d avatar ctrl-alt-d commented on September 10, 2024

Hi Mr @tambien,

thanks about your fast reply.

Maybe I'm doing something wrong, but I'n not able to see notes on header (1), and I only see one track (2) with notes (3).

selection_437

from midi.

tambien avatar tambien commented on September 10, 2024

I'm looking at your MIDI file a little more and it's kind of a weird file. Every Format 1 midi file i've seen reserves the first track for just meta events (tempo time signature) and then the notes start on the second track. Your midi file seems to be Format 1, but includes notes on that first track. Is this a MIDI file that you made? From everything that i've read, this is not-standard. for example

from midi.

ctrl-alt-d avatar ctrl-alt-d commented on September 10, 2024

Hi @tambien , I really apologize for wasting your time. This file is download from musescore with no changes. I will look for a well-formed midi file. Congrats about your JS libraries.

from midi.

ctrl-alt-d avatar ctrl-alt-d commented on September 10, 2024

Just for your information. I've upgraded to "@tonejs/midi": "^1.2.1" and still only one track.

You can check it at: https://github.com/ctrl-alt-d/A_F_NO7_01_viz/tree/feature/skeleton with ( npm run dev and seeing log)

from midi.

tambien avatar tambien commented on September 10, 2024

i checked with TheEntertainer track that you referenced, and it seems to parse two tracks. Would you try dropping that MIDI file in here to see if it's able to get the right number of tracks?

from midi.

ctrl-alt-d avatar ctrl-alt-d commented on September 10, 2024

After upgrade to "@tonejs/midi": "^1.2.2" I get the both tracks. Good Work!

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.