November 23, 2024, 07:50:56 PM

News:

Got VSA?  Want to use your Prop-SX?  Now you can!  See the VSA section of the Library forum for Prop-SX code that works with VSA.


Adding sound to 'Double Barrel Cannon'

Started by Jadams, November 02, 2010, 08:16:26 AM

Previous topic - Next topic

Jadams

I'm trying to use the final code from the Double Barrel Air Cannon post, topic #1536, and add a sound file (gunshot) using an AP8.  I can't seem to get the shot to synchronize with the valve firing.  I have a 1/2 second gunshot in segment 5. and have tried to change the valve open timing to 500 but the AP8 seems too slow.  I've added a 1 to 5 FOR/NEXT loop but only get 1 gunshot sound for 5 valve openings.  Any suggestions?

Jim Adams

JonnyMac

Going to be really tough, especially if using serial comms (which takes about 25ms to send the command).

I suggest you record a long segment of the shots, timed like your prop, and just start that at the beginning of your cycle.  You can stop the audio short with the "X" command.
Jon McPhalen
EFX-TEK Hollywood Office