Education Prize Logo
Science SPORE Prize
November 2011

NSF Logo
The Open Source Physics Project is supported by NSF DUE-0442581.

Sounds on EJS post and replies

Return to the Sounds on EJS thread
Login to post to this thread

Sounds on EJS - Mar 14 at 2:15PM
German Blesio
1 Posts

Hi, I'm new with EJS. To be honest, I haven't created a simulation (yet), I'm just adapting (and translating to Spanish) one I have found. I'm trying to add a sound to the simulation. My real aim is to create a sound of one frecuency and play it. To start I've tried to just play a sound (a wav file) with the SoundSelector button but I couldn't do it either. It is possible to create a sound and play it?Is there any documentation about using sound with EJS so I can learn?

Thank you very much


Replies to Sounds on EJS

Re: Sounds on EJS - Mar 17 4:11PM
Francisco Esquembre
121 Posts

German,

Attached is an old example that uses the SoundSelector. (It is old because it uses the old 2D elements, but the use of the SoundSelector is fine.)

Run the model and use the sliders to change the balance...

Paco

Attached File: ejs_src_SeeSaw.zip



The OSP Network:
Open Source Physics - Tracker - EJS Modeling
Physlet Physics
Physlet Quantum Physics