NTNUJAVA Virtual Physics Laboratory
Enjoy the fun of physics with simulations!
Backup site http://enjoy.phy.ntnu.edu.tw/ntnujava/
October 18, 2017, 05:17:24 am *
Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length
 
   Home   Help Search Login Register  
Wisdom is to bring the best out of our students. ...Wisdom
Google Bookmarks Yahoo My Web MSN Live Netscape Del.icio.us FURL Stumble Upon Delirious Ask FaceBook

Pages: [1]   Go Down
  Print  
Author Topic: EJS version of Fourier Synthesis (You can hear the sound,too)  (Read 6037 times)
0 Members and 1 Guest are viewing this topic. Click to toggle author information(expand message area).
ahmedelshfie
Ahmed
Hero Member
*
Offline Offline

Posts: 954



«
Embed this message
on: June 22, 2010, 08:41:50 pm » posted from:SAO PAULO,SAO PAULO,BRAZIL

Hello prof,,,little help  Huh
I have problem with project Fourier Synthesis,is buttons when i run simulation and try stop again sound not stop
Stay running I'm talk about when i run by HTML so how i solve this problem i check code of buttons i think no have wrong
But really don't know where is wrong that make simulation not stop sounds when run by HTML
Thanks

Embed a running copy of this simulation

Embed a running copy link(show simulation in a popuped window)
Full screen applet or Problem viewing java?Add http://www.phy.ntnu.edu.tw/ to exception site list
Press the Alt key and the left mouse button to drag the applet off the browser and onto the desktop. This work is licensed under a Creative Commons Attribution 2.5 Taiwan License
  • Please feel free to post your ideas about how to use the simulation for better teaching and learning.
  • Post questions to be asked to help students to think, to explore.
  • Upload worksheets as attached files to share with more users.
Let's work together. We can help more users understand physics conceptually and enjoy the fun of learning physics!


* Fourier Synthesis.gif (30.71 KB, 855x591 - viewed 337 times.)
« Last Edit: June 22, 2010, 08:43:45 pm by ahmedelshfie » Logged
Fu-Kwun Hwang
Administrator
Hero Member
*****
Offline Offline

Posts: 3080



WWW
«
Embed this message
Reply #1 on: June 22, 2010, 09:58:30 pm » posted from:Taipei,T\'ai-pei,Taiwan

I did try to look at your code, however, I can not find the problem. Sorry!
Logged
ahmedelshfie
Ahmed
Hero Member
*
Offline Offline

Posts: 954



«
Embed this message
Reply #2 on: June 22, 2010, 11:12:09 pm » posted from:SAO PAULO,SAO PAULO,BRAZIL

I'm sure no have wrong in code i think may have relationship between jar file and HTML
For example when i run jar file and after use button reset sounds no stop but when i close EJS and close site your prof
Sounds stop so i think because jar file have like relationship between source code in EJS and jar sound that i save in _data
And jar file in your site because upload in site but about project code is all right no have any problem and run by EJS very well.
However is not problem i can post by language portages .
Thanks prof
Logged
Fu-Kwun Hwang
Administrator
Hero Member
*****
Offline Offline

Posts: 3080



WWW
«
Embed this message
Reply #3 on: June 22, 2010, 11:50:42 pm » posted from:Taipei,T\'ai-pei,Taiwan

I was guessing:
It might due to some restriction browser communicate with operating system.
Normally, browser is not suppose to communicate with operating system directly.
The sound device is a hardware, so it need operating system to control the hardware.

However, I am not sure about it. And the code I used to generate sound was adopted from very old java version.
I did not study how it can be done with latest java version.
 
Logged
ahmedelshfie
Ahmed
Hero Member
*
Offline Offline

Posts: 954



«
Embed this message
Reply #4 on: June 23, 2010, 12:03:12 am » posted from:SAO PAULO,SAO PAULO,BRAZIL

Thanks prof I'm sure like i said in last post not have any problem in code
And simulation work very well.
You the best  Cheesy
Logged
Pages: [1]   Go Up
  Print  
Wisdom is to bring the best out of our students. ...Wisdom
 
Jump to:  


Related Topics
Subject Started by Replies Views Last post
Fourier Synthesis
Wave
Fu-Kwun Hwang 19 367336 Last post September 22, 2009, 01:16:07 pm
by dannydesiliva
Anyone can help with Fourier synthesis?
Wave
Alliance 4 20532 Last post November 24, 2005, 03:19:27 am
by Alliance
EJS version of Doppler effect (You can hear sound)
Wave and Fluid
Fu-Kwun Hwang 8 35737 Last post December 04, 2013, 12:01:56 pm
by Fu-Kwun Hwang
EJS version of Fourier Synthesis (You can hear the sound,too!)
Wave and Fluid
Fu-Kwun Hwang 11 61576 Last post February 01, 2013, 12:12:16 pm
by sajidtoor
EJS version of Fourier Synthesis (You can hear the sound,too!)
wave and fluid
ahmedelshfie 6 10280 Last post September 24, 2010, 08:44:25 pm
by ahmedelshfie
Powered by MySQL Powered by PHP Powered by SMF 1.1.13 | SMF © 2006-2011, Simple Machines LLC Valid XHTML 1.0! Valid CSS!
Page created in 0.059 seconds with 23 queries.since 2011/06/15