Skip to content

UCLeuvenLimburg/midihelper

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 

Repository files navigation

MIDI Helper

Installation

$ pip install --upgrade git+https://github.com/UCLeuvenLimburg/midihelper.git

Install local version in development mode (not meant for students):

$ git clone https://github.com/UCLeuvenLimburg/midihelper.git
$ cd midihelper
$ pip install -e .

Usage

Viewing MIDI file contents

$ midihelper dump FILENAME [--format FORMAT] [--filter FILTER]

FORMAT determines the format for events.

  • %b bytes in decimal
  • %x bytes in hexadecimal
  • %T delta time
  • %t event type
  • %d associated data

FILTER determines which events are shown.

$ midihelper notes FILENAME [--format FORMAT]

FORMAT placeholders:

  • %c channel
  • %n note
  • %s start
  • %e end
  • %d duration
  • %i instrument

Playing a MIDI File

$ midihelper play FILENAME

Convert

Converts notes to midi file.

$ midihelper convert FILENAME NOTES [--beat BEAT] [--velocity VELOCITY]

Example:

$ midihelper convert test.mid "E8 Eb8 E8 Eb8 E8 b8 D8 C8 a"

About

Script to help process MIDI files

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages