folkarc:touch
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
folkarc:touch [2024/06/11 19:44] – discord | folkarc:touch [2024/09/15 19:11] (current) – discord | ||
---|---|---|---|
Line 5: | Line 5: | ||
<file tcl> | <file tcl> | ||
- | # Tablet Touch Handler 9000 - Revamped live at folk0! | + | # Tablet Touch Handler 9000 - Revamped live at folk0 on Jun 11 2024 |
Wish the web server handles route "/ | Wish the web server handles route "/ | ||
html { | html { | ||
Line 150: | Line 150: | ||
} | } | ||
+ | } | ||
+ | </ | ||
+ | |||
+ | If you have [[: | ||
+ | |||
+ | <file tcl> | ||
+ | # Supercollider touch demo | ||
+ | |||
+ | When /thing/ claims /thing2/ has touch number /i/ with x /x/ and y /y/ { | ||
+ | set freq [expr {int($Display:: | ||
+ | |||
+ | Wish Supercollider sound $thing2-touch-noise attr freq is $freq | ||
+ | | ||
+ | Wish $this is labelled "$freq Hz" | ||
+ | |||
+ | Wish Supercollider plays sound $thing2-touch-noise { | ||
+ | arg freq = 0; | ||
+ | var envgen; | ||
+ | envgen = EnvGen.kr(Env.adsr(sustainLevel: | ||
+ | Pan2.ar(SinOsc.ar(freq) * 0.5 * envgen, 1.0); | ||
+ | } | ||
} | } | ||
</ | </ | ||
folkarc/touch.1718135076.txt.gz · Last modified: 2024/06/11 19:44 by discord