Why not use the user interface of LMMS to create your mmp files?

On Fri, Apr 24, 2009 at 1:10 PM, xtrium <xtrium@gmail.com> wrote:
Hi,

I am currently developing a software synthesizer designed for
small-sized executables (such as executable music or intros - so,
quite demoscene-oriented) and plan to use LMMS to compose my tunes
because it is far more comfortable to use than, say, hard-coding the
song in a .c file's arrays :)

So I set off reading the (small amount of) documentation about .mmpz
files available on the internet, made a really simple project,
uncompressed it using lmms -d, and read the file itself.

So far, I've been able to read the song's signature and tempo, list
instruments and "rhythm/bass line" (in french "Rythme/Ligne de basse")
(what is called "pattern" in fl studio), read the patterns inside the
instruments, ignore the empty ones and list notes of the other ones.


But then I am a bit lost when it comes to put a pattern a some
position in the song (the "pos" attribute of patterns seems not to be
linked to the pattern's position in the song...). From reading the
source code, it seems what I want is referred in "bb_tracks" (by the
way, what the hell does "bb" mean here ?) and I found some "bbtco"s in
the mmp file (same thing here... tco seems to mean "track controller
object", but what is it really ?).

In fact, i realized that all notes are stored in the first
"rhythm/bass line" (Rhythm/bass line 0) and there is only bbtco's in
the other "rhythm/bass lines" but those bbtco's do not refer in any
way to any instrument, pattern, or note... I must admit I got a bit
lost :)


Thanks for your help,

--
xtrium

------------------------------------------------------------------------------
Crystal Reports &#45; New Free Runtime and 30 Day Trial
Check out the new simplified licensign option that enables unlimited
royalty&#45;free distribution of the report engine for externally facing
server and web deployment.
http://p.sf.net/sfu/businessobjects
_______________________________________________
LMMS-devel mailing list
LMMS-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/lmms-devel