The Dink Network

Reply to Re: Midi Question

If you don't have an account, just leave the password field blank.
Username:
Password:
Subject:
Antispam: Enter Dink Smallwood's last name (surname) below.
Formatting: :) :( ;( :P ;) :D >( : :s :O evil cat blood
Bold font Italic font hyperlink Code tags
Message:
 
 
December 27th 2005, 07:37 PM
dinkdead.gif
millimeter
Peasant He/Him Canada
Millimeter is Wee-Lamm, Recording Artist. :-) 
I think your original answer was right, and I am trying to prove to myself that I can read it in the code. so my guess is...

If we want a fresh midi to play on a new screen, we make sure that turn_midi_on() happens before we enter the screen. Then the fresh midi is started in the base script's main function.

If this is true then we shouldn't need to use turn_midi_on() or turn_midi_off(). We could simply test (&story perhaps) to see if we should start the base midi, or just allow the current one to continue.

e.g.
if (&story = 2)
{ ignore }
else
{ playmidi("insper.mid"); }

Perhaps turm_midi_off() prior to exiting screen 2 would keep it from starting a fresh midi, then we would have to turn_midi_on() prior to exiting to screen 3, if it had a base midi.

Fortunately if 2 screens have the same base_midi, it should simply continue playing rather than restarting the same one as per
if (nothing_playing).

If I am out to lunch, please lambaste me as it will help me learn.

tyia,
mm.