This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(ns sound.core | |
(:import (java.io File) | |
(javax.sound.sampled AudioFormat AudioInputStream AudioSystem DataLine DataLine$Info LineUnavailableException SourceDataLine))) | |
(defn play-sound [filename] | |
(let | |
[ | |
sfile (new File filename) | |
ainput (AudioSystem/getAudioInputStream sfile) | |
aformat (.getFormat ainput) | |
info (DataLine$Info. SourceDataLine aformat) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var intervalId = setInterval(function teaseMina(){document.getElementsByClassName("ad3")[0].value=document.getElementsByClassName("ad3")[0].value+"\nMina"},100); | |
//To stop: clearInterval(intervalId); |
NewerOlder