Hello,
Thanks for the further information.
This virtual piano seems to be using JavaScript, as indicated on the keyboard graphic. JavaScript depends on a substantial Java module that needs to be on your computer already, nowadays JS is almost an accepted part of any browser as so much HTML will use JS, even if just for certain specific functions.
I would guess that JS will include some sound facility. Look up JavaScript and Sound.
While on the page with the keyboard showing, right-click on the page, and select 'View Source'. This will show you the HTML source for this page. The code includes a number of comments that you may find helpful. As well as other info, the comments refer to UDI (?) data modules that the writer is experimenting with. These may contain some of the data for the piano sounds?
Oh, also follow the links within the source to piano.js and audio.js, which will be subsidiary JS modules, which you may also find interesting?
I would need to investigate these things further, but why spoil your fun?
So, this page, because it uses JS, could well be generating some of the sound on your computer, maybe using some data downloaded. This will certainly explain how the delay with this piano is so much less than some other examples, although you do NOT indicate what you think of the sound quality compared to other systems (with longer delays).
Geoff
Oh, I see that you have already seen the source, but you say that when you try to use the source, you just get 'the words'? Which words? Do you mean the HTML code? Which has NOT been interpreted? If that is the case, then the code is not being used properly, and apache (or whatever) on the server is not getting the code correctly. I'd need to see EXACTLY how you've inserted this code into your prog.