right - that should be http://chemapps.stolaf.edu/jmol/zip


Also, two years ago Ron asked:

*[Jmol-users] Audio?
<https://sourceforge.net/p/jmol/mailman/message/31874573/>*
[Hide message from public view]
<https://sourceforge.net/p/jmol/mailman/message/31883328/#> From: Ron
Mignery <remignery@gm...> - 2014-01-22 18:27:13
*Attachments:* Message as HTML
<https://sourceforge.net/p/jmol/mailman/attachment/CA%2BZLm54uyWq37WQYoCCWZ0_M%3DXMOQFJM6p%3D20Qqx-Kb2BqAs%3DA%40mail.gmail.com/1/>


Could a play <audio.file> command similar to the Java play function be
added to scripting?  This would allow clicks and beeps or even entire
narrations to be added to Jmol animations.  Hopefully it would run in a
separate thread.


And the answer now is, absolutely. Included in the distribution library is

Jmol._playAudio(filename)

which does exactly that and is directly called by

load AUDIO filename

HTML5 makes this extremely easy. All that function  does is this:

  Jmol._playAudio = function(filePath) {
    var audio = document.createElement("audio");
    audio.controls = "true";
    audio.src = filePath;
    audio.play();
  }

So, for example, from a page having this (
http://chemapps.stolaf.edu/jmol/jsmol1/jsmol.htm slowwwwly uploading at
this moment) you could issue this:


Jmol._playAudio("http://www.stolaf.edu/people/hansonr/nmrtalk/ch2cl2/fid.wav
")

or of course just create your own little function like that.

And someone will show us how that can be done in one simple command with
jQuery, I am sure.

Bob
------------------------------------------------------------------------------
Attend Shape: An AT&T Tech Expo July 15-16. Meet us at AT&T Park in San
Francisco, CA to explore cutting-edge tech and listen to tech luminaries
present their vision of the future. This family event has something for
everyone, including kids. Get more information and register today.
http://sdm.link/attshape
_______________________________________________
Jmol-users mailing list
Jmol-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jmol-users

Reply via email to