diff options
author | Alessio Treglia <alessio@debian.org> | 2010-07-12 11:59:28 +0200 |
---|---|---|
committer | Alessio Treglia <alessio@debian.org> | 2010-07-12 11:59:28 +0200 |
commit | 6d99b2e313fc5878ab1ac115460f0e85595825a0 (patch) | |
tree | 5648167525181e3f15d56c38fd8a343fc6726b7b /examp.fs | |
parent | ff6dcdcac8ef6c6d72725f98410ce3c56b5a621f (diff) |
Imported Upstream version 11.7
Diffstat (limited to 'examp.fs')
-rw-r--r-- | examp.fs | 23 |
1 files changed, 0 insertions, 23 deletions
@@ -89,7 +89,6 @@ \ sound-interp ( func loc -- val ) \ env-sound-interp ( envelope :optional time-scale snd chn -- file-name ) \ granulated-sound-interp ( e :optional tscale grain-len grain-env out-hop snd chn -- file-name ) -\ title-with-data ( -- ) \ filtered-env ( e :optional snd chn -- val ) \ \ switch-to-buffer ( -- val ) @@ -128,8 +127,6 @@ <'> noop alias hide-widget \ ( a -- b ) <'> noop alias widget-size \ ( a -- b ) : set-widget-size ( a b -- c ) drop ; - : window-property ( a b -- c ) drop ; - : set-window-property ( a b c -- d ) 2drop ; [then] \ #( #( snd0 chn0 ) #( snd0 chn1 ) ... ) @@ -1668,26 +1665,6 @@ previous \ #( 0 0 1 1 ) 2.0 granulated-sound-interp \ #( 0 0 1 .1 2 1 ) 1.0 0.2 #( 0 0 1 1 2 0 ) 0.02 granulated-sound-interp -\ ;;; -------- add date and time to title bar -\ ;;; -\ ;;; The window manager's property that holds the Snd window's title is WM_NAME, -\ ;;; we can use the window-property function (used normally for CLM/Snd communication) -\ ;;; to reset this value. The Snd window's identifier is SND_VERSION. -\ ;;; Here we're also using the #t argument to short-file-name to get a list of all current sounds. - -60 1000 * value retitle-time - -: title-with-data ( -- ) - doc" Causes Snd's main window to display the time of day. \ -To turn off this clock, set retitle-time to 0" - #t short-file-name { names } - "SND_VERSION" "WM_NAME" - $" snd (%s) %s" - #( $" %d-%b %H:%M %Z" current-time strftime names nil? if "" else names then ) string-format - set-window-property drop - retitle-time 0> if retitle-time recurse in drop then -; - \ ;;; -------- filtered-env hide |