• ANSI music / sound effects

    From Kirkman@VERT/GUARDIAN to All on Mon Jun 22 16:47:47 2015
    I'm playing around with using ANSI music code to make sound effects. Has anyone played around with this? What's the best way to integrated music routines into drawing routines?ããFor example, I'm using frames and .cycle(). After a cycle, if something has happened that should trigger a sound effect, I play the appropriate ANSI music by calling console.write().ããBut it does seem like the game hangs a bit until the (three-note) music is finished playing. Not sure if there's a better way.ãã--Joshãã---ã þ Synchronetã
  • From Kirkman@VERT/GUARDIAN to All on Sat Aug 8 12:46:45 2015
    Re: ANSI music / sound effectsã By: Kirkman to All on Mon Jun 22 2015 04:47 pmãã Ki> I'm playing around with using ANSI music code to make sound effects. Hasã Ki> anyone played around with this? What's the best way to integrated musicã Ki> routines into drawing routines? ãã Ki> For example, I'm using frames and .cycle(). After a cycle, if somethingã Ki> has happened that should trigger a sound effect, I play the appropriateã Ki> ANSI music by calling console.write(). ãã Ki> But it does seem like the game hangs a bit until the (three-note) music isã Ki> finished playing. Not sure if there's a better way. ããJust wanted to bump this topic.ããIn my experiments, if I play a sound effect using console.write(), the gameãwill not respond to player input until the entire sound effect has finishedãplaying.ãããWould this be a problem on the BBS/code side, or is this a SyncTerm issue withãplaying ANSI music?ããã--Joshãã////--------------------------------------------------ãBiC -=- http://breakintochat.com -=- bbs wiki and blogãã---ã þ Synchronetã
  • From Deuce@VERT/SYNCNIX to Kirkman on Mon Aug 10 15:09:25 2015
    Re: ANSI music / sound effectsã By: Kirkman to All on Sat Aug 08 2015 12:46 pmãã > Would this be a problem on the BBS/code side, or is this a SyncTerm issueã > with playing ANSI music?ããUnless the ANSI music is explicitly played in the background, it plays in theãforeground which will prevent anything else from being displayed until theãmusic finishes.ãã---ãhttp://DuckDuckGo.com/ a better search engine that respects your privacy.ãMro is an idiot. Please ignore him, we keep hoping he'll go away.ã þ Synchronet þ My Brand-New BBS (All the cool SysOps run STOCK!)ã
  • From Kirkman@VERT/GUARDIAN to Deuce on Mon Aug 10 21:49:39 2015
    Unless the ANSI music is explicitly played in the background, it plays in theã> foreground which will prevent anything else from being displayed until theã> music finishes.ããHow can I make the ANSI music play in the background?ãã--Joshãã---ã þ Synchronetã
  • From Kirkman@VERT/GUARDIAN to Deuce on Mon Aug 10 21:59:50 2015
    Re: ANSI music / sound effectsã By: Deuce to Kirkman on Mon Aug 10 2015 03:09 pmãã De> Unless the ANSI music is explicitly played in the background, it plays inã De> the foreground which will prevent anything else from being displayed untilã De> the music finishes.ããWait, are you talking about the "MB" / "MF" options? I'm just looking up theãspecs and trying to understand how it works.ãã--Joshãã////--------------------------------------------------ãBiC -=- http://breakintochat.com -=- bbs wiki and blogãã---ã þ Synchronetã
  • From Deuce@VERT/SYNCNIX to Kirkman on Wed Aug 12 01:37:22 2015
    Re: ANSI music / sound effectsã By: Kirkman to Deuce on Mon Aug 10 2015 09:49 pmãã > > Unless the ANSI music is explicitly played in the background, it plays inã > > the foreground which will prevent anything else from being displayed untilã > > the music finishes.ã >ã > How can I make the ANSI music play in the background?ããIt's documented here:ãhttp://cvs.synchro.net/cgi-bin/viewcvs.cgi/*checkout*/src/conio/cterm.txt?revisãion=1.34ããThe last section in the document ``"ANSI" Music''ããSo, if I assume you use the "CSI N" method (ie: ESC[N), it would be "ESC", "[",ã"N", "M", "B", followed by the notes etc.ããAn "MB" in the music string with switch to background music. If the introducerãis CSI M, the initial 'M' can be implied, but it can also be explicit. Itãreally depends on what other terminal programs you want to be compatible with.ãã---ãhttp://DuckDuckGo.com/ a better search engine that respects your privacy.ãMro is an idiot. Please ignore him, we keep hoping he'll go away.ã þ Synchronet þ My Brand-New BBS (All the cool SysOps run STOCK!)ã
  • From Deuce@VERT/SYNCNIX to Kirkman on Wed Aug 12 01:37:38 2015
    Re: ANSI music / sound effectsã By: Kirkman to Deuce on Mon Aug 10 2015 09:59 pmãã > Wait, are you talking about the "MB" / "MF" options? I'm just looking up theã > specs and trying to understand how it works.ããYep, those are the ones.ãã---ãhttp://DuckDuckGo.com/ a better search engine that respects your privacy.ãMro is an idiot. Please ignore him, we keep hoping he'll go away.ã þ Synchronet þ My Brand-New BBS (All the cool SysOps run STOCK!)ã
  • From Deavmi@VERT/TECHQRY to Kirkman on Sat Nov 28 03:23:34 2015
    Re: ANSI music / sound effectsã By: Kirkman to All on Mon Jun 22 2015 04:47 pmãã > I'm playing around with using ANSI music code to make sound effects. Has anyã > ã > For example, I'm using frames and .cycle(). After a cycle, if something has ã > ã > But it does seem like the game hangs a bit until the (three-note) music is fã > ã > --Joshã > ãMulti-threading?ãã---ã þ Synchronet þ TechnoQuarry BBSã
  • From Nightfox@VERT/DIGDIST to Deavmi on Sat Nov 28 13:04:18 2015
    Re: ANSI music / sound effectsã By: Deavmi to Kirkman on Sat Nov 28 2015 03:23:34ãã >> But it does seem like the game hangs a bit until the (three-note)ã >> music is f ãã De> Multi-threading?ããI don't think JavaScript supports multi-threading - At least, not unlessãsomeone has a library that can be called from JavaScript that supportsãmulti-threading.ããNightfoxãã---ã þ Synchronet þ Digital Distortion: digitaldistortionbbs.comã
  • From tracker1@VERT/TRNTEST to Nightfox on Sat Nov 28 18:01:55 2015
    But it does seem like the game hangs a bit until the (three-note)ã >>> music is f ãã > De> Multi-threading?ãã > I don't think JavaScript supports multi-threading - At least, not unlessã > someone has a library that can be called from JavaScript that supportsã > multi-threading.ããThe JS in SBBS is definitely linear execution... short of implementing anãevent-ãloop with callback system, similar to node.js, I don't know it's going toãimprove. Also, it may be a limitation of how ansi-music works on the client.ã-- ãMichael J. Ryanãtracker1(at)gmail.comã+o Roughneck BBSãã---ã þ Synchronet þ RoughneckBBS - http://www.roughneckbbs.com/ã
  • From Digital Man@VERT to tracker1 on Sat Nov 28 21:21:31 2015
    Re: Re: ANSI music / sound effectsã By: tracker1 to Nightfox on Sat Nov 28 2015 06:01 pmãã > >>> But it does seem like the game hangs a bit until the (three-note)ã > >>> music is fã >ã > > De> Multi-threading?ã >ã > > I don't think JavaScript supports multi-threading - At least, not unlessã > > someone has a library that can be called from JavaScript that supportsã > > multi-threading.ã >ã > The JS in SBBS is definitely linear execution... short of implementing anã > event-ã > loop with callback system, similar to node.js, I don't know it's going toã > improve. Also, it may be a limitation of how ansi-music works on theã > client. --ããSynchronet does support multi-threaded JavaScript (background load'ed scriptsãwith inter-thread communication via message queue) and has for many years.ãã digital manããSynchronet "Real Fact" #75:ãMichael Swindell still has the "Synchronet Blimp" in his possession.ãNorco, CA WX: 52.1øF, 30.0% humidity, 4 mph W wind, 0.00 inches rain/24hrsã---ã þ Synchronet þ Vertrauen þ Home of Synchronet þ [vert/cvs/bbs].synchro.netã