Author Topic: SCI1.1 Tempo Change commands?  (Read 4349 times)

0 Members and 1 Guest are viewing this topic.

Offline MusicallyInspired

SCI1.1 Tempo Change commands?
« on: June 20, 2015, 12:06:35 AM »
I just tried importing a custom MIDI to convert to a sound and my tempo information was lost. I made a few tempo changes during the piece. Are tempo changes not allowed in the sound format?


Brass Lantern Prop Competition

Offline troflip

Re: SCI1.1 Tempo Change commands?
« Reply #1 on: June 20, 2015, 12:28:59 AM »
I believe they aren't supported in the SCI sound resources. But I have functionality to handle tempo changes in the imported MIDI files and "normalize" them. i.e. I remove the tempo changes and just adjust the ticks for the midi events. It's possible I have some bugs in that code. Can you send me a MIDI file that repros this bug?
Check out my website: http://icefallgames.com
Groundhog Day Competition

Offline OmerMor

Re: SCI1.1 Tempo Change commands?
« Reply #2 on: June 20, 2015, 12:46:34 AM »
Maybe it's the same issue as the pan and volume initialization, i.e. that you have to initialize them by setting them at the start of the midi in a strict order.
Try changing the tempo at the start, and also see if this also reproduce in ScummVm which is not as strict as Sierra's SCI.

Offline MusicallyInspired

Re: SCI1.1 Tempo Change commands?
« Reply #3 on: June 20, 2015, 01:11:43 AM »
Ah, I had one but I overwrote it with a version without tempo changes. Hang on.

Here you go.

I've also run into some problems with sound import/playback. After I removed all the tempo information and imported the MIDI in, the song still plays back very slowly compared to how it should. In fact when playing back the imported MIDI as a sound resource the midi information I'm seeing doesn't sync up with what I'm hearing (which is too slow) and so I have to set cue points by eye instead of by ear because it's not reliable. This doesn't happen all the time, it was in sync before. In-game it plays at the proper speed so it seems like a problem with playback in Companion alone.

EDIT: I just tested again and the tempo changes definitely aren't getting carried over and "normalized". But it's not playing as slow in-game as it does in the sound editor. I assume by "normalize" you mean that when importing a MIDI your code "fakes" tempo changes by keeping the overall tempo static while the notes sound like the tempo is changing?
« Last Edit: June 20, 2015, 02:13:54 AM by MusicallyInspired »
Brass Lantern Prop Competition

Offline troflip

Re: SCI1.1 Tempo Change commands?
« Reply #4 on: June 20, 2015, 03:16:34 AM »
I've also run into some problems with sound import/playback. After I removed all the tempo information and imported the MIDI in, the song still plays back very slowly compared to how it should. In fact when playing back the imported MIDI as a sound resource the midi information I'm seeing doesn't sync up with what I'm hearing (which is too slow) and so I have to set cue points by eye instead of by ear because it's not reliable. This doesn't happen all the time, it was in sync before. In-game it plays at the proper speed so it seems like a problem with playback in Companion alone.

Hmm..... worrisome...

EDIT: I just tested again and the tempo changes definitely aren't getting carried over and "normalized". But it's not playing as slow in-game as it does in the sound editor. I assume by "normalize" you mean that when importing a MIDI your code "fakes" tempo changes by keeping the overall tempo static while the notes sound like the tempo is changing?

That's correct.

Honestly, your midi track sounds similar everywhere to me... playing it in WMP, or in SCI Companion. The tempo changes are very subtle, so I can't tell if anything's wrong. Do you have a file with more extreme tempo changes? That will make it much easier to debug this.
Check out my website: http://icefallgames.com
Groundhog Day Competition

Offline MusicallyInspired

Re: SCI1.1 Tempo Change commands?
« Reply #5 on: June 20, 2015, 03:44:45 AM »
I'll see if I have some time to do a simple one up with noticeable tempo changes tomorrow.
Brass Lantern Prop Competition

Offline troflip

Re: SCI1.1 Tempo Change commands?
« Reply #6 on: June 20, 2015, 12:32:39 PM »
It's ok, I've managed to "fake add" some tempo change while importing a midi - so I should be able to figure this out.
Check out my website: http://icefallgames.com
Groundhog Day Competition


SMF 2.0.19 | SMF © 2021, Simple Machines
Simple Audio Video Embedder

Page created in 0.044 seconds with 23 queries.