any ideas for mml language for freebasic?????

For other topics related to the FreeBASIC project or its community.
edexter2
Posts: 6
Joined: Oct 25, 2009 17:05
Contact:

any ideas for mml language for freebasic?????

Postby edexter2 » Oct 26, 2009 2:25

I am thinking about trying to write a command independent language for mml for the various sound commands (why let the 8 bit people and jap game machine makers have all the fun) any ideas about what it should look like or requests for features???? @ for defining macros is about all I have in stone at this point.
AGS
Posts: 1284
Joined: Sep 25, 2007 0:26
Location: the Netherlands

Re: any ideas for mml language for freebasic?????

Postby AGS » Oct 26, 2009 22:40

edexter2 wrote:I am thinking about trying to write a command independent language for mml for the various sound commands (why let the 8 bit people and jap game machine makers have all the fun) any ideas about what it should look like or requests for features???? @ for defining macros is about all I have in stone at this point.


Elaborate, please elaborate. I've looked up mml related stuff and found this:
(an example from Japan)
;---------------------------------------------------------------
#TITLE THE LEGEND OF ZELDA - ending -
#COMPOSER Kouji Kondou
#PROGRAMER Izumi.
#OCTAVE-REV 0
;---------------------------------------------------------------
@v00 = { 8 8 8 7 7 7 6 6 6 5 5 5 4 4 4 3 3 3 2 2 2 1 }
@v01 = { 5 5 5 4 4 4 3 3 3 2 2 2 1 }
@v02 = { 6 6 6 5 5 5 4 4 4 3 3 3 2 2 2 1 }
@v03 = { 4 4 4 3 3 3 2 2 2 1 }
@v04 = { 4 0 }
@00 = { 0 2 }
;---------------------------------------------------------------
;SQUARE 1 PART
;---------------------------------------------------------------
A t100 @1 @v0 o5 l8
A [g<g>ce d+<g>b<b> acea gcde acfa a-cdf e<g>ce d<ab>d]2
A L @@00
A g4.e8d+4b4 a2g2 a4.b8>d4c4< g4.e8d2 g4r16 @v2 e8.d+4r16 @v0 d+16g16b16 a4r16e8.g4r4
A a4r16b8.>d8c4<a8 g4r16e8.d4r4 g4r16 @v2 e8.d+4r16 @v0 d+16g16b16 a4r16e8.g4r4
A a4r16b8.>d8c4d8 e2.e8e8 d4c2<b8a8 g4.e8a4e4 d8e8f8f+8g4e4 c1

;---------------------------------------------------------------
;SQUARE 2 PART
;---------------------------------------------------------------
B t100 @1 @v1 o5 l8
B [D1 r16 g<g>ce d+<g>b<b> acea gcde acfa a-cdf e<g>ce d<ab>d16 D0]2
B L @@0 @v1
B e4.c8<b4>d+4 e2e2 f4.f8f4f4 e4.c8<b2> e4r16 @v3 c8.<b4> @v1 r16r16r16r16 e4r16c8.e4r4
B f4r16f8.f8f4f8 e4r16c8.<b4>r4 e4r16 @v3 c8.<b4> @v1 r16r16r16r16 e4r16c8.e4r4
B f4r16f8.f8f4f8 g+2.g+8g+8 f4f2f8f8 e4.c8c+4c+4< f8g8a8a+8b4g4 e8e16e8f16g16f16e4r4

;---------------------------------------------------------------
;TRIANGLE PART
;---------------------------------------------------------------
C t100 @3 v15 o3 l8 q3
C r1r1r1r2rgab>
C cg<g>g< b>g<g>g cg<g>g ccde f>c<c>c< f>c<c>c< e>c<c>c< g<gab>
C L
C cg<g>g< b>g<g>g cg<g>g ccde f>c<c>c< f>c<c>c< e>c<c>c< g<gab>
C cg<g>g< b>g<g>g cg<g>g ccde f>c<c>c< f>c<c>c< e>c<c>c< g<gab>
C cg<g>g< b>g<g>g cg<g>g ccde f>c<c>c< f>c<c>c< eeg+b>e<r4e
C f>c<c>c< f>c<c>c< e>c<c>c< a<ab>c+ deff+g<gab> cc16cc16e16d16c4r4

;---------------------------------------------------------------
;NOISE PART
;---------------------------------------------------------------
D t100
D l8 @0 @v4 o2
D r1r1r1r1 r1r1r1r1
D L
D [{r f f }8 r8 f16 r16]32


So what you want is an interpreter that turns something like the above into.... what? Beep ;)? Do you want to target a specific sound library? The above gets turned into NES assembly (don't know what that looks like).
Eponasoft
Posts: 264
Joined: Jul 26, 2007 2:40

Postby Eponasoft » Oct 27, 2009 20:02

MML is pretty straightforward so I'm not quite sure what you're asking, edexter2...

Return to “Community Discussion”

Who is online

Users browsing this forum: No registered users and 10 guests