Gehring wrote: > > Hey I got another question for you. > In that midi program you sent me is there a way to make it loop? > That's all I need to know. > Yes, this should loop in the background, until you issue midistop. ; ; This routine will allow you to play a MIDI (.MID) file ; The :arg is the midi file you wish to play. ; It plays it asynchronously and you can stop it any time ; by issuing the command midistop. ; ; To run: ; ; load "midi.lgo ; Call midi file ; ; Example: ; midi "c:/windows/media/canyon.mid ; ; System requirements: ; ; You must have Windows 3.1 (or 3.0 with Multi-Media Extentions) ; You must have the correct driver loaded in Windows for video ; (MCI avivideo). ; end to midi :a print sentence [opened sequencer on channel] mci (sentence [open] (word "sequencer! :a) [alias music]) print sentence [playing the music] :a make "midi.stopped "false midiplay end to midiplay if not :midi.stopped ~ [ (mci [seek music to start]) (mci [play music notify] [midiplay]) ] end to midistop make "midi.stopped "true mci [stop music wait] mci [close music wait] print [Midi stopped] end > If you haven't realized it yet I am really bad with all the MCI commands! > I'm learning them as I go here from the MCI help file. > Oh yeah one other thing. Is there something out there that I can download that will compile my files into *.exe. That way I can have it run a main procedure when they click on it. Also so that people wouldn't have to download MSWLOGO to play it. > Sorry, no can do. However if your going to release a "game" for Windows you will probably want to write and installation package. That installation package could install MSWLogo, along with your game and setup an Icon that loaded the program and set the program to start on load. The program can hide the commander etc. > Well thanx again, > Justin > JJ DOUGHBOY > Pgehring@mmmpcc.org > Jjdb210@hotmail.com > http://members.tripod.com/~GrapoDoughboy/index.html -- =============================================================== George Mills email: mills@softronix.com http://www.softronix.com The www page contains some very powerful educational software. Our single most important investment is our kids. --------------------------------------------------------------- Please post messages to the Logo forum to logo-l@gsn.org. Mail questions about the list administration to logofdn@gsn.org. To unsubscribe send unsubscribe logo-l to majordomo@gsn.org.
Global SchoolNet Foundation -
Linking Kids Around the World!
Copyright GSN - All Rights Reserved
- Comments
& Questions
Visit GSN's
Global
Schoolhouse for more exciting learning resources!
Search our Site
-
Home