Git Product home page Git Product logo

midi2data's Introduction

midi2data

0078-la_peregrinacion

This small program creates assembly data dump from a specified track of a MIDI file, extracting the Note On pitch values to a list of bytes.

Requires Python3 and mido module.

CLI arguments:

  • midi file name (mandatory)
  • output style: midi/const (mandatorys)
  • number of columns (mandatory)
  • note offset (optional, default: 0)
  • track number (optional, default: 1)

Launch example.sh for demonstration, it will print:

MIDI pitch values:
	;---- Boesendorfer Grand Piano ----
	db 67,74,79,86,82,91
	db 60,67,75,82,79,87
	db 65,72,77,84,81,89
	db 58,65,74,81,77,86
	db 55,62,67,74,70,79
	db 60,67,75,82,79,87
	db 62,69,74,81,78,86
	db 55,62,71,79,74,83

Const notes, shifted octave up:
	;---- Boesendorfer Grand Piano ----
	db G_6,D_7,G_7,D_8,As7,G_8
	db C_6,G_6,Ds7,As7,G_7,Ds8
	db F_6,C_7,F_7,C_8,A_7,F_8
	db As5,F_6,D_7,A_7,F_7,D_8
	db G_5,D_6,G_6,D_7,As6,G_7
	db C_6,G_6,Ds7,As7,G_7,Ds8
	db D_6,A_6,D_7,A_7,Fs7,D_8
	db G_5,D_6,H_6,G_7,D_7,H_7

0079 Tango

Special script for the Tango bytebeat project. MIDI to data converter, with compression.

midi2data's People

Contributors

ern0 avatar

Watchers

 avatar  avatar  avatar

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.