[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Electric Duet
Hey Marc,
On Wed, 20 Jun 2012, Marc S Ressl wrote:
Hello Vlad: excellent work :-)
Thank you.
Check the source, I resisted the temptation to pack it into an
IOCCC-alike entry, given the extreme small size.
My two cents: do you think you can make it output MIDI? With this library
for example: http://www.krizka.net/projects/libmidi/ ?
Yes and no. :-)
No, because I don't speak C++.
Yes, because I dealt with MIDI parsing at a time and there is no problem
outputting MIDI stream. What do you have in mind? Time is my real limiting
factor for some time now.
BTW, you could probably do it in less than an hour with that said library.
Electric Duet format is simple:
1) three byte records
2) byte0 is duration, except if equal to 0 or 1
3) byte1 is note1 and byte2 is note2
4) byte0=0 is end of tune
5) byte0=1 is "voice" command, which changes timbre (by changing duty
ratio)
6) tables for duration and note periods are included in Electric Duet
itself