Len Shustek
5d5acb2e84
fix bug that eliminated duplicate notes unintentionally; add -noduplicates option
4 years ago
Len Shustek
3a0d14ce12
add minor new features
4 years ago
Ben Combee
5ae7e82599
Allow .mid/.MID extension on basename
...
This changes the command line handling so if the user
specifies the full name of the MIDI file, the code will silently
drop the extension and use that as the base name. This makes
the tool friendlier for people using filename completion, as they
don't have to remember to remove the ".mid" manually.
4 years ago
SparklingFire2
5aa3353202
Added #include <limits.h> to remove compiler error
6 years ago
Len Shustek
ee76ad2d1f
Major rewrite: queue out-of-order events to allow release/sustain note timing
6 years ago
Len Shustek
2384d7b295
Fix bug: no delays were generated until tempo was set
6 years ago
Len Shustek
ee05606a6e
Fix for Linux compile; point to Playtune_synth for PJRC audio library
6 years ago
PaulStoffregen
5c102c0743
Fix compile errors on Linux (gcc run in default mode)
6 years ago
Len Shustek
3d036f6749
Don't generate zero-length delays
7 years ago
László ÁSHIN
33aff896a0
Only generate stopnotes if delay actually happens
7 years ago
László ÁSHIN
18656188be
Do not include zero-length delays in output
...
This would cause lockup in ATtiny-playtune and output can be significantly
shorter without zero-length delays.
See http://www.mariopiano.com/Mario-Sheet-Music-Overworld-Main-Theme.mid
7 years ago
Earle F. Philhower, III
5883cb239b
Fix meta length parsing for >127 byte entries
...
In find_note, the meta_len was hardcoded as a single byte encoding, but per
the spec and some files with long comments and copyrights, it is actually
encoded as a varlen. Use the varlen parser (which defaults to the old
behavior of 1-byte for <128 len fields) instead.
7 years ago
Len Shustek
8c47ddfd12
Suppress unnecessary "stop note" commands so the byestream file is smaller
8 years ago
Len Shustek
8a4b9c8fc3
Suppress unnecessary "stop note" commands so the byestream file is smaller
8 years ago
Len Shustek
40a0aaa286
Add -r; allow -c to be in hex
8 years ago
Len Shustek
0889964bd9
update change log and version number
8 years ago
Len Shustek
ecbebc6188
update change log and version number
8 years ago
Scott Allen
d24171ed01
Include header and terminator in score byte count
8 years ago
Scott Allen
e026b19c22
Give proper error message for missing base name
8 years ago
Scott Allen
80bd2eaafa
Fix -nx option
...
-nx was trying to put "x"+1, instead of "x", items per line
8 years ago
Scott Allen
45246a6c9a
Fix -p option parsing and handling
8 years ago
Scott Allen
c8a8175990
Fix spelling and minor formatting errors
8 years ago
Len Shustek
9a394d5a0b
fix "running status" bug; add volume, instruments, percussion, file header, etc.
8 years ago
Len Shustek
44e5b2de3b
Fix 32-bit overflow for long delays
8 years ago
Dean Blackketter
0051f25fd7
Len noticed a bug in binary velocity output
9 years ago
Dean Blackketter
8a9403e368
Merge changes from miditones used in the Arduino/Teensy library (PaulStoffregen/Audio),
...
which includes a velocity output option
9 years ago
Dean Blackketter
e0940116df
Bump version number and log
9 years ago
Dean Blackketter
33e5fce907
Make build on Mac with "gcc miditones.c -o miditones" without warning or errors.
9 years ago
Len Shustek
e4479978db
Made the source code friendlier to more compilers
10 years ago
Len Shustek
4ae720025d
Copy files from code.google.org
10 years ago