Code Monkey home page Code Monkey logo

midi_thyme's Introduction

🎼🌿 midi thyme

calculate absolute seconds for midi notes using midilib in ruby, plus some pretty file summary

output

--------------------
File Summary
SEQ PPQN:192 TRACKS:2
TRACK [00] EVENTS:6
 \CHAN[00] PROGS:  1 <Acoustic Grand Piano>
 \TEMPO   500000 BPM: 120
 \TEMPO  1000000 BPM:  60
 \TEMPO  2000000 BPM:  30
TRACK [01] EVENTS:13
 \CHAN[00] NOTES: 6 (A#4- C5) [  2] <C5,A#4>
--------------------
Tempo to seconds map
TEMPO BPM:120  START:    0/ 0.0000  END:  764/ 1.9896  DURATION:  1.9896
TEMPO BPM: 60  START:  764/ 1.9896  END: 1535/ 6.0052  DURATION:  4.0156
TEMPO BPM: 30  START: 1535/ 6.0052  END: 2302/13.9948  DURATION:  7.9896
NOTE  C5 ( 72) CH:00 TIME:     0/ 0.0000
NOTE A#4 ( 70) CH:00 TIME:   384/ 1.0000
NOTE  C5 ( 72) CH:00 TIME:   768/ 2.0104
NOTE A#4 ( 70) CH:00 TIME:  1152/ 4.0104
NOTE  C5 ( 72) CH:00 TIME:  1536/ 6.0156
NOTE A#4 ( 70) CH:00 TIME:  1920/10.0156

midi_thyme's People

Contributors

discatte avatar

Stargazers

 avatar

Watchers

 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.