MML (MS Basic) in machine language

Door wimpie3

Champion (277)

afbeelding van wimpie3

25-10-2018, 14:21

Is there a possibility to play MML music in machine code (without using an audio library)? Is the MML interpreter part of MSX Basic? If so, can you call MSX Basic to interprete the MML code in machine language from a ROM?

Aangemeld of registreer om reacties te plaatsen

Van wolf_

Ambassador_ (9789)

afbeelding van wolf_

25-10-2018, 14:52

Well, technically, MSX BASIC is converted to ML on the fly. So I guess it's somehow possible. But ask an ASM expert about this. I'd think that NYYRIKKI is kind of the ultimate master of ceremonies when BASIC and ASM are at the altar. Hannibal
However, this MML is a BASIC concept afaik. I bet that ASM PSG-players are merely writing to PSG registers to create 'high level' note ons, note offs, pitchbends etc.

You can do the same in BASIC with an INTERVAL timer and sound registers. But that requires you to actually make a complete player in BASIC. Wink

Van wimpie3

Champion (277)

afbeelding van wimpie3

25-10-2018, 15:11

Why re-invent the wheel when you could re-use the existing MML interpreter...

Van wolf_

Ambassador_ (9789)

afbeelding van wolf_

25-10-2018, 15:49

Because you could improve the wheel! To name a few examples: there's no MML-command for vibrato, pitchbend and custom volume-envelopes, and convincing PSG-drums in MML are a major PITA as well. So, musically speaking: MML is limited.

Van Meits

Scribe (5717)

afbeelding van Meits

25-10-2018, 15:58

Jan van Valburg used a tool to convert MIDI to an MML dialect and injected it into Vampire Killer. He also released (some/the) needed sources to show how he did it here.