""" midi_volume.py - Scale volume of a MIDI file while preserving relative balance. Usage: python midi_volume.py input.mid # scale by percentage python midi_volume.py input.mid --max # hard-set everything to 127 python midi_volume.py input.mid --full # hard-set everything to 100 (GM default) Examples: python midi_volume.py song.mid 200 # twice as loud python midi_volume.py song.mid 50 # half as loud python midi_volume.py song.mid --max # absolute maximum (127) python midi_volume.py song.mid --full # GM default ceiling (100) Output: input_