[jmsl] Work-in-Progress

jmsl at music.columbia.edu jmsl at music.columbia.edu
Sun Mar 22 00:34:40 EDT 2009


Hello JMSL List,

I've been working on a Flash SWF to JMSL/Jsyn Applet project for a while
now.  I've finally got the communication working from AS3 to JavaScript to
Java!  I am essentially sending variables that occur in a SWF game to the
applet to change the soundtrack interactively with the game.  I'm currently
doing a very basic change of the lengths and holds of notes in MusicShapes
when an enemy is killed,  but I can't seem to understand why the melody
isn't smoothly adjusting to the variable changes.  I'm not clear if it's the
size of the note lengths (too small) or if there is something I need to
refresh or keep updated in a different manner than I already do (I am using
"musicShape.set(variable, element, dimension)".  I have been able to test
that Flash is only sending it's variable specifically when I ask it to, so
there isn't an issue of over-sending the same variables to a crash point.

The game is titled "PAC-Type" (a play on Pac-Man vs. R-Type):
http://jengrier.com/PAC-Type/game.html

My code across all three platforms lives in
http://jengrier.com/PAC-Type/<http://jengrier.com/PAC-Type/game.html>,
with the source code for the applet itself specifically at
http://jengrier.com/PAC-Type/src/PACType/AudioEngineApplet.java if you would
like to peruse it.

I have plans to expand this core applet significantly, but don't feel safe
doing so until I better understand what is breaking at the moment.  I know
that this is a Java-centric community, so I would be happy to explain any of
the JavaScript or ActionScript 3 (Flash code) that you believe may be
involved.


Many thanks,
Jen G.

- - - - - - - - - - - - - -
http://jengrier.com


More information about the jmsl mailing list