markc / midicomp Goto Github PK
View Code? Open in Web Editor NEWA MIDI Compiler - convert SMF MIDI files to and from plain text
A MIDI Compiler - convert SMF MIDI files to and from plain text
I'm trying to convert a directory full of MIDIs using this bash #!/bin/bash FILES=/path/to/MIDIs for i in $FILES;do midicomp ${i} > ${i}_output.txt; done
but I'm getting the error Segmentation fault (core dumped). Am I doing something wrong?
hi there,
Although there's explicit license information in the readme, I guess it would be nice to have a COPYING or LICENSE file in the repo, so we could be quite sure that we could pack and ship it.
I've cloned the repo, created the build dir and ran 'cmake' successfully but no make file is created to run 'make' with. Am I missing something?
I want to preface this by saying I know nothing of the SMF/MIDI format (formats?). The end goal is to be able to play d_e1m1.mid from http://www.theparticle.com/midi/doommidi.html on a device that only supports SMF format 0
.
I used the current git master on a Linux system, and used timidity++ for playback testing locally.
This is what I tried:
$ ./midicomp d_e1m1-orig.mid > d_e1m1.asc
$ cp d_e1m1.asc d_e1m1.asc.orig
$ vi d_e1m1.asc
[make changes]
$ diff -up d_e1m1.asc.orig d_e1m1.asc
--- d_e1m1.asc.orig 2019-03-18 03:53:15.200143986 +0100
+++ d_e1m1.asc 2019-03-18 03:53:22.893528897 +0100
@@ -1,4 +1,4 @@
-MFile 1 5 89
+MFile 0 5 89
MTrk
0 Meta Copyright "QMUS2MID (C) S.BACQUET"
0 KeySig 0 major
$
The resulting file seems broken, and will play no sound and stop after 3 seconds. Would I need to do anything else? Are there inherent incompatibilities between the formats? If so, could midicomp warn about using features that would not work in the defined format when compiling?
Here are the test files and the intermediary files, to compare with your build, just in case:
midicomp-test.zip
Nothing major.
write it's own plain text format
should be its
.
easily parseble text
should be parseable
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.