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
| (definst rateControl [] (* 0.5 (control-rate:ir))) | |
| (def pitchFrequencies (first (pitch (sin-osc [220])))) | |
| (definst pitchTrigger [] (send-trig (impulse rateControl) uid pitchFrequencies))) | |
| (on-trigger uid #(println %) ::debug) | |
| (pitchTrigger) | |
| (kill pitchTrigger) |
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
| function domainName(url){ | |
| return /(?:https?:\/\/)?(?:(?:[\w-]+\.)(?:(?!co\.)))?([\w-]+)(?:\.[\w-]+)(?:\/[\w-\/]*)?/.exec(url)[1]; | |
| } |