Skip to content

Commit

Permalink
sounder: sci0: always clean_stops
Browse files Browse the repository at this point in the history
that fixes the following bug:
when saving EQ1CD 903.snd to PQ2, MT32 plays it for too long
  • Loading branch information
ZvikaZ committed Apr 20, 2023
1 parent e31a2ec commit db68022
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions tools/sci/sounder/sci0.py
Original file line number Diff line number Diff line change
Expand Up @@ -159,12 +159,12 @@ def save_sci0(midi_wave, input_file, save_file, is_early):
# prepare midi data first
with io.BytesIO() as f:
messages = mido.merge_tracks(midifile.tracks)
if digital:
messages = clean_stops(messages)
messages = clean_stops(messages)
for msg in messages:
if not msg.is_meta:
logger.debug('delay: ' + get_sierra_delay_bytes(msg.time).hex())
logger.debug('msg:' + msg.bin().hex())
logger.debug('save_sci0: ' + str(msg))
logger.debug('save_sci0:\t delay: ' + get_sierra_delay_bytes(msg.time).hex())
logger.debug('save_sci0:\t msg : ' + msg.bin().hex())
f.write(get_sierra_delay_bytes(msg.time))
f.write(msg.bin())
midi_data = f.getvalue()
Expand Down

0 comments on commit db68022

Please sign in to comment.