Skip to content

Commit

Permalink
Remove old leftover MML comments
Browse files Browse the repository at this point in the history
Re #273
  • Loading branch information
werneta committed Dec 1, 2023
1 parent 41de416 commit c615ed3
Showing 1 changed file with 1 addition and 11 deletions.
12 changes: 1 addition & 11 deletions smw_music/data/mml.txt
Original file line number Diff line number Diff line change
Expand Up @@ -84,28 +84,23 @@ w${song.volume}
unpitched_sz = max(list(len(unpitched_defn(k)) for k, v in inst_samples.items() if v.percussion), default=0)
%>\
; Instrument voice definitions
; Only change the instrument octave numbers on the right of the equals signs
%for name, sample in inst_samples.items():
"${f'{voice(name):{voice_sz}}'} = ${f'{sample.instrument_idx:3} o{sample.default_octave}'}"
%endfor

; Instrument dynamics definitions
; Yes, this is ugly. But it lets you tie dynamic levels to instruments and
; crescendos. Only change the hex (00-FF) volumes right after each equals sign.
; crescendos.
%for name, sample in inst_samples.items():
"${f'{dyn(name):{dyn_sz}}'} = ${dyn_str(sample)}"
%endfor

; Instrument articulation definitions
; Just like dynamics, only touch numbers after the 'q' after each equals sign.
%for name, sample in inst_samples.items():
"${f'{artic(name):{artic_sz}}'} = ${artic_str(sample)}"
%endfor

; Instrument pan definitions
; Set these to PAN_LEFT, PAN_MID_LEFT, PAN_CENTER, PAN_MID_RIGHT, PAN_RIGHT, or
; pick your own using a y command. These are blank by default because not
; everyone uses them and it ; saves space to leave them out.
%for name, sample in inst_samples.items():
"${f'{pan(name):{pan_sz}} = {pan_str(sample)}'}"
%endfor
Expand Down Expand Up @@ -153,11 +148,6 @@ ${f'"v{str(dyn): <4} = $E7$_{dyn} \\"vCUR = v{dyn}\\""'}
"GLOBAL_LEGATO = $F4$02"
"CRESC = $E8"
"DIM = $E8"
"PAN_LEFT = y20"
"PAN_MID_LEFT = y12"
"PAN_CENTER = y10"
"PAN_MID_RIGHT = y08"
"PAN_RIGHT = y00"
"VIB_OFF = $DF"
%for n, channel in enumerate(channels):

Expand Down

0 comments on commit c615ed3

Please sign in to comment.