Skip to content

ImportingMML

LTVA1 edited this page Apr 11, 2023 · 3 revisions

Klystrack-plus has basic FM instrument string import. It will override current instrument settings and produce an instrument which hopefully sounds close enough. Due to klystrack and Yamaha FM soundchips incompatibilities further manual work will be needed, especially with envelope settings.

Harsh sounds like e-guitar riffs are most likely to be imported wrong.

Format

As for 0.10.0-alpha3 version, only PMD dialect is supported. It is recommended to format strings like this before attempting to import them (one-line string will not be parsed correctly for now):

OPN

@  0  4  5  =falsyn?
    31  0  0  0  0  22  0  2  3   0
    18 10  0  6  0   0  0  8  3   0
    31  0  0  0  0  23  0  4 -3   0
    18 10  0  6  0   0  0  4 -3   0

OPM

; NM AG FB  Falcom Synth
@  0  4  5  =falsyn?
;   AR DR SR RR SL  TL KS ML DT DT2 AMS
    31  0  0  0  0  22  0  2  3   0   0
    18 10  0  6  0   0  0  8  3   0   0
    31  0  0  0  0  23  0  4 -3   0   0
    18 10  0  6  0   0  0  4 -3   0   0

OPL (not supported now)

; NM AG FB  E.Bass
@  2  0  5  =E.Bass
;   AR DR RR SL TL KSL ML KSR EGT VIB AM
    11  5  2  2 29   0  0   0   0   1  0
    12  8  6  1  0   0  1   1   1   1  0

AMS and KS parameters are not supported, but you can manually enable operators' tremolo and envelope key scaling functions to mimic them.