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.
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.
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.
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?
Wait, are you talking about the "MB" / "MF" options? I'm just looking up the specs and trying to understand how it works.
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
But it does seem like the game hangs a bit until the (three-note)
music is f
Multi-threading?
But it does seem like the game hangs a bit until the (three-note)
music is f
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.
But it does seem like the game hangs a bit until the (three-note)
music is f
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. --
Sysop: | Ree |
---|---|
Location: | Toronto, ON |
Users: | 2 |
Nodes: | 10 (0 / 10) |
Uptime: | 107:50:33 |
Calls: | 374 |
Calls today: | 1 |
Files: | 2 |
Messages: | 38,873 |