Giter Club home page Giter Club logo

midi_parser's Introduction

C++ Midi Parser/API

Functions:

  1. Import midi file into internal data structure;
  2. Export Internal data structure to XML file;
  3. Export Internal data structure to midi file;
  4. Functions to edit Midi and Meta events.
  5. APIs to do conversions between: midi event number, piano key number and music note notation;
  6. Helper functions to import/export midi event from/to txt file. txt format: "time" "on/off" "note number" "note velocity"

Hierarchical Midi Data Structures (The hierarchical Midi data structures are designed in Midi.hpp)

  1. MidiFile class
  2. HeadChunk class
  3. TrackChunk class
  4. MetaEvent class
  5. MidiEvent class

Only need to use APIs defined in MidiFile class for Midi file importing and exporting. The other classes and functions are encapsulated.

  1. void importMidiFile(const std::string& fileName);
  2. void exportMidiFile(const std::string& fileName);
  3. void exportXMLFile(const std::string& fileName);

Example see main.cpp In Linux, run command below to play midi file: timidity close1.mid

midi_parser's People

Contributors

ncu571633 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

Forkers

niuniu502

midi_parser's Issues

New operations needed!

Can it delete events?
I'd appreciate it if the function is added to the MIDI Parser!:D

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.