MML (MS Basic) in machine language

Por wimpie3

Champion (435)

imagem de 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?

Entrar ou registrar-se para comentar

Por wolf_

Ambassador_ (10088)

imagem de 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

Por wimpie3

Champion (435)

imagem de wimpie3

25-10-2018, 15:11

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

Por wolf_

Ambassador_ (10088)

imagem de 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.

Por meits

Scribe (6530)

imagem de 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.