From taube at uiuc.edu Wed Sep 3 04:47:29 2008 From: taube at uiuc.edu (Heinrich Taube) Date: Wed, 3 Sep 2008 06:47:29 -0500 Subject: [CM] scales.sal : scale doesn't work In-Reply-To: <48BE1760.2010209@cox.net> References: <48B4CC15.5010200@cox.net> <48B77CBF.3040609@cox.net> <48BE1760.2010209@cox.net> Message-ID: <526D82D1-F9D4-4FF2-B40E-EB24FD998012@uiuc.edu> thank you for reporting this, it works here i bet i know what went wrong: there is an example in one of the tutorials that uses the name 'scale', my bet is you did that tutorial and so it redefined the name scale. start a new version of grace and do this: print scale(16, 60, 2, 1, 2, 2, 1, 2, 2) {60 62 63 65 67 68 70 72 74 75 77 79 80 82 84 86} there are a few other nits moving the tutorials and examples from common lisp to scheme that im fixing right now. since im teaching with the app this semseter ill be fixing things quickly: i shouild have another version of the app ready to download no later than next monday with the nits fixed, an also with a couple of big imporovements wrt running processes in non-realtime just like cm2. From bil at ccrma.Stanford.EDU Sat Sep 6 07:04:33 2008 From: bil at ccrma.Stanford.EDU (Bill Schottstaedt) Date: Sat, 6 Sep 2008 07:04:33 -0700 Subject: [CM] Snd 10.0 Message-ID: <20080906140409.M58846@ccrma.Stanford.EDU> Snd 10.0 more rt/faust/stalin improvements from Kjetil. moved sine-bank to snd9.scm 2 more generators in generators.scm (tanhsin, moving-spectrum) tools/numtst.c which generates a Scheme numerics test suite also tools/clisp-number|other-tests.scm (taken from Clisp) A new extension language choice: S7, a TinyScheme derivative. This is a small (ca. 10000 lines), source-level embedded interpreter (like gnulib -- no libraries, no run-time init files) that has full continuations, ratios and complex numbers, generalized set!, applicable objects, hash-tables and keywords (the latter for define*), defmacro, define-macro, and procedure-with-setter. My goal is a simple, multithreadable, possibly even real-time extension language that I can change to suit myself. S7 is not Scheme++ -- I have removed the notion of an "inexact integer", so truncate, floor, and ceiling return (exact) integers, and rationalize (which uses continued fractions) returns (exact) ratios. I've added call-with-exit for light-weight continuations (equivalent to a goto, or return in C). S7 is reasonably fast (it can outperform both Guile and Gauche if I get to choose the benchmark), and is compatible with Snd's run macro, so the only real bottleneck is that macro expansion is slow. It passes Jaffer's r4rs tests, and most of the r6rs number tests mentioned above. I haven't had time yet to implement threads. s7 still hasn't made it through snd-test.scm , so there are still plenty of bugs. Mike Scholz helped me with S7 and improved some of the ruby files. checked: gtk+-2.13.5|6|7 and 2.14.1, sbcl 1.0.19|20 Thanks!: Kjetil, Bret Battey, Hayahiko Moro, Mike. From taube at uiuc.edu Sat Sep 6 08:45:07 2008 From: taube at uiuc.edu (Heinrich Taube) Date: Sat, 6 Sep 2008 10:45:07 -0500 Subject: [CM] Snd 10.0 In-Reply-To: <20080906140409.M58846@ccrma.Stanford.EDU> References: <20080906140409.M58846@ccrma.Stanford.EDU> Message-ID: i cant wait to try this out! a really amazing piece of work, congratulations!! what does 's7' mean, sounds as cryptic as 'ice9' to me > > cant > A new extension language choice: S7, a TinyScheme derivative. > This is a small (ca. 10000 lines), source-level embedded > interpreter (like gnulib -- no libraries, no run-time init files) > that has full continuations, ratios and complex numbers, > generalized set!, applicable objects, hash-tables and keywords > (the latter for define*), defmacro, define-macro, and procedure-with- > setter. yay! what do the keywords look like, #:foo :foo or foo: ?? or could the reader handle them all via parameterization (set-keyword-style! 'cltl) or whatever? > > My goal is a simple, multithreadable, possibly even > real-time extension language that I can change to suit myself. yay! > > S7 is not Scheme++ -- I have removed the notion of an "inexact > integer", yay! > > so truncate, floor, and ceiling return (exact) integers, > and rationalize (which uses continued fractions) returns > (exact) ratios. yay! > I've added call-with-exit for light-weight > continuations (equivalent to a goto, or return in C). yay! > S7 is reasonably fast (it can outperform both Guile > and Gauche if I get to choose the benchmark), yay! > and is compatible with Snd's run macro, so the only real bottleneck > is that macro expansion is slow. It passes Jaffer's r4rs tests, > and most of the r6rs number tests mentioned above. I haven't had > time yet to implement threads. s7 still hasn't made it through > snd-test.scm , so there are still plenty of bugs. now maybe i can finally get cm3 +clm togther in scheme ... From bil at ccrma.Stanford.EDU Sat Sep 6 10:03:50 2008 From: bil at ccrma.Stanford.EDU (Bill Schottstaedt) Date: Sat, 6 Sep 2008 10:03:50 -0700 Subject: [CM] Snd 10.0 In-Reply-To: References: <20080906140409.M58846@ccrma.Stanford.EDU> Message-ID: <20080906165838.M97807@ccrma.Stanford.EDU> > what do the keywords look like, #:foo :foo or foo: ?? or could > the reader handle them all via parameterization (set-keyword-style! > 'cltl) or whatever? Currently it's :foo, but it's easy to do anything you like -- I just had to let out a big happy sigh -- I should have gone down this path 10 years ago. S7, hmmm, I don't want to make anyone mad, so I'll say it's 7 because s2 and s-100 were already taken, and 7 is a lucky number, and it's S because my name starts with S, as does Snd. From taube at uiuc.edu Mon Sep 8 18:14:46 2008 From: taube at uiuc.edu (Heinrich Taube) Date: Mon, 8 Sep 2008 20:14:46 -0500 Subject: [CM] Grace 1.1.0 Message-ID: Grace 1.1.0 is now available at: http://camil.music.uiuc.edu/Software/grace/ Lots of nice stuff in this one, the major new features: support for non-realtime processes, just like CM2; easier interaction with the app: most important menu settings are now stored as preferences so you dont have to reset them when you start the app, you can perform menu actions via send messages like "mp:playseq" "mp:saveseq" etc, COMMAND-K editor command pops up the Console window, and a few more functions added to cm3 release notes and binaries at the above url. --rick ps now that im teaching feel free to take stuff from my course page, in particuar i have the "Stroke 'n Spray" page and code in cm3 and it has examples of using the new "score capture" mode and working with the midi seq. basically grace now supports a very cm2 workflow--generating scores and autoplaying or autosaving them for example http://camil.music.uiuc.edu/Classes/404A1/ From taube at uiuc.edu Tue Sep 9 07:28:17 2008 From: taube at uiuc.edu (Heinrich Taube) Date: Tue, 9 Sep 2008 09:28:17 -0500 Subject: [CM] Grace 1.1.0 load from menu In-Reply-To: References: Message-ID: hi thanks for reporting this, i guess maybe i have to do double \\ in the c++ menu code since i send it to lisp. > when I do this (with backslashes): > > load "C:\Grace\Resources\doc\examples\paint.scm" if you really want to use the windows \ nonsense then you probably have to double it since \ is scheme's escape character. try this an let me know if it works: load "C:\\Grace\\Resources\\doc\\examples\\paint.scm" but i dont think i put paint.scm in that dir! you can download it from my class page: http://camil.music.uiuc.edu/Classes/404A1/paint/paint.scm From rpmohn at waxandwane.org Wed Sep 10 12:14:36 2008 From: rpmohn at waxandwane.org (Ross Mohn) Date: Wed, 10 Sep 2008 15:14:36 -0400 Subject: [CM] Splicing sections Message-ID: <20080910191436.GA25297@fisher.waxandwane.org> I'm trying to do what I think should be a simple task, but I can't seem to get my head around it. I'm probably missing the obvious. I have a piece with a couple of introductory sections, then the main part, and finally the conclusion. Each is defined in a separate function with its own _process_ statement (Lisp, not SAL). How do I easily splice these together end-to-end. Does the absolute time parameter to _now_ help me? I'd rather not have to calculate the elapsed score time manually. Do I have to keep track of it in a global variable? Thanks -Ross From taube at uiuc.edu Wed Sep 10 12:43:57 2008 From: taube at uiuc.edu (Heinrich Taube) Date: Wed, 10 Sep 2008 14:43:57 -0500 Subject: [CM] Splicing sections In-Reply-To: <20080910191436.GA25297@fisher.waxandwane.org> References: <20080910191436.GA25297@fisher.waxandwane.org> Message-ID: it sounds like you are using cm2 so ill assume that in this answer...first, if you know how long the sections are ahead of time then you can simply start them at the appropriate times, say 0 30 90: (events (list (intro) (main) (conclusion)) "foo.mid" '(0 30 90)) if you dont knwo how long they last you can use the 'finally' statment to chain them: (defun intro () (process ... output ... finally (sprout (main) :at (now)))) (defun main () (process ... output finally (sprout (conclusion ) :at (now)))) (events (intro) "foo.mid" 0) hope this helps! On Sep 10, 2008, at 2:14 PM, Ross Mohn wrote: > I'm trying to do what I think should be a simple task, but I can't > seem > to get my head around it. I'm probably missing the obvious. > > I have a piece with a couple of introductory sections, then the main > part, and finally the conclusion. Each is defined in a separate > function > with its own _process_ statement (Lisp, not SAL). How do I easily > splice > these together end-to-end. Does the absolute time parameter to _now_ > help me? I'd rather not have to calculate the elapsed score time > manually. Do I have to keep track of it in a global variable? > > Thanks -Ross > > _______________________________________________ > Cmdist mailing list > Cmdist at ccrma.stanford.edu > http://ccrma-mail.stanford.edu/mailman/listinfo/cmdist From rpmohn at waxandwane.org Wed Sep 10 14:13:06 2008 From: rpmohn at waxandwane.org (Ross Mohn) Date: Wed, 10 Sep 2008 17:13:06 -0400 Subject: [CM] Splicing sections In-Reply-To: References: <20080910191436.GA25297@fisher.waxandwane.org> Message-ID: <20080910211306.GA30674@fisher.waxandwane.org> Yes, both answers are exactly what I needed to know! The daisy-chaining ability of the 'finally' statement is what I need now. Thanks much!! -Ross On Wed, Sep 10, 2008 at 02:43:57PM -0500, Heinrich Taube wrote: > it sounds like you are using cm2 so ill assume that in this answer...first, > if you know how long the sections are ahead of time then you can simply > start them at the appropriate times, say 0 30 90: > > (events (list (intro) (main) (conclusion)) > "foo.mid" > '(0 30 90)) > > if you dont knwo how long they last you can use the 'finally' statment to > chain them: > > (defun intro () > (process ... > output ... > finally (sprout (main) :at (now)))) > > (defun main () > (process ... > output > finally (sprout (conclusion ) :at (now)))) > > (events (intro) > "foo.mid" > 0) > > > hope this helps! > > > On Sep 10, 2008, at 2:14 PM, Ross Mohn wrote: > >> I'm trying to do what I think should be a simple task, but I can't seem >> to get my head around it. I'm probably missing the obvious. >> >> I have a piece with a couple of introductory sections, then the main >> part, and finally the conclusion. Each is defined in a separate function >> with its own _process_ statement (Lisp, not SAL). How do I easily splice >> these together end-to-end. Does the absolute time parameter to _now_ >> help me? I'd rather not have to calculate the elapsed score time >> manually. Do I have to keep track of it in a global variable? >> >> Thanks -Ross >> >> _______________________________________________ >> Cmdist mailing list >> Cmdist at ccrma.stanford.edu >> http://ccrma-mail.stanford.edu/mailman/listinfo/cmdist > From s_boussuge at yahoo.fr Sun Sep 14 01:14:04 2008 From: s_boussuge at yahoo.fr (stephane boussuge) Date: Sun, 14 Sep 2008 08:14:04 +0000 (GMT) Subject: [CM] generator-processor approach Message-ID: <364777.51677.qm@web24407.mail.ird.yahoo.com> Hi , How can i process the output of a process for example filtering them or other processing. For example i can make a process who output pink noise notes (h.taube sal example in grace) How can i for example removes doubles or repetitions from this generation or how to process in general this output. define process pink(smpl,scale,trsp,rate,chnl) ;;pink noise mapped on key run repeat smpl for k = discrete(ranpink(), -1, 1, scale) for r = rate send "mp:midi", key: transpose (k,trsp), chan: chnl , dur: r wait r end define variable dorian = scale(21, 48, 2, 1, 2, 2, 2, 1, 2) Thanks S.boussuge From taube at uiuc.edu Sun Sep 14 06:02:00 2008 From: taube at uiuc.edu (Heinrich Taube) Date: Sun, 14 Sep 2008 08:02:00 -0500 Subject: [CM] generator-processor approach In-Reply-To: <364777.51677.qm@web24407.mail.ird.yahoo.com> References: <364777.51677.qm@web24407.mail.ird.yahoo.com> Message-ID: <2C896A22-2158-4128-9C47-ED48D01B56B3@uiuc.edu> > How can i for example removes doubles or repetitions from this > generation or how to process in general this output. you can process the data as you generate it or after you generate it. to process it while you generate it, use a internal loop to force selecting a non-repeating value: define process pink(smpl,scale,trsp,rate,chnl) run with k , j repeat smpl for r = rate loop while j = k set k = discrete(ranpink(), -1, 1, scale) end send "mp:midi", key: transpose (k,trsp), chan: chnl , dur: r set j = k wait r end to process the data AFTER you generate it do this: 1 turn on score capture 2 generate your data to a seq 3 export the seq as a list of data 4 call functions to "clean up" this data 4 regenerte the piece from the cleaned up lists i do plan to provide a graphic list editor for agorithmially editing vectors of data. i hope to add this and some plotter enhancements later this fall. On Sep 14, 2008, at 3:14 AM, stephane boussuge wrote: > Hi , > How can i process the output of a process for example filtering them > or other processing. > > For example i can make a process who output pink noise notes > (h.taube sal example in grace) > How can i for example removes doubles or repetitions from this > generation or how to process in general this output. > > define process pink(smpl,scale,trsp,rate,chnl) > ;;pink noise mapped on key > run repeat smpl > for k = discrete(ranpink(), -1, 1, scale) > for r = rate send "mp:midi", key: transpose (k,trsp), chan: > chnl , dur: r > wait r > end > > define variable dorian = scale(21, 48, 2, 1, 2, 2, 2, 1, 2) > > Thanks > S.boussuge > > > > > > _______________________________________________ > Cmdist mailing list > Cmdist at ccrma.stanford.edu > http://ccrma-mail.stanford.edu/mailman/listinfo/cmdist From ahcnz at ihug.co.nz Sun Sep 14 16:44:27 2008 From: ahcnz at ihug.co.nz (Adam) Date: Mon, 15 Sep 2008 11:44:27 +1200 Subject: [CM] Grace 1.1.0 fomus and spear Message-ID: <200809151144.28825.ahcnz@ihug.co.nz> Are Fomus or Spear available or implemented within Grace 1.1.0 ? (rev 1653, Common Music 3.0.0) I can't see any mention in; >Help Dictionary, Tutorials or Examples. From taube at uiuc.edu Sun Sep 14 16:55:11 2008 From: taube at uiuc.edu (Heinrich Taube) Date: Sun, 14 Sep 2008 18:55:11 -0500 Subject: [CM] Grace 1.1.0 fomus and spear In-Reply-To: <200809151144.28825.ahcnz@ihug.co.nz> References: <200809151144.28825.ahcnz@ihug.co.nz> Message-ID: you can import Spear data into cm3 using 'import-spear-frames' http://camil.music.uiuc.edu/Software/grace/doc/cm.html#import-spear-spectra i was hoping to add a fomus port in late august but i guess david psenicka is still working on the c++ code. once there is a libfomus ill make a port for it. On Sep 14, 2008, at 6:44 PM, Adam wrote: > > Are Fomus or Spear available or implemented within > Grace 1.1.0 ? (rev 1653, Common Music 3.0.0) > > I can't see any mention in; >Help Dictionary, Tutorials > or Examples. > > _______________________________________________ > Cmdist mailing list > Cmdist at ccrma.stanford.edu > http://ccrma-mail.stanford.edu/mailman/listinfo/cmdist From taube at uiuc.edu Mon Sep 15 04:34:03 2008 From: taube at uiuc.edu (Heinrich Taube) Date: Mon, 15 Sep 2008 06:34:03 -0500 Subject: [CM] generator-processor approach In-Reply-To: <562362.44091.qm@web24405.mail.ird.yahoo.com> References: <562362.44091.qm@web24405.mail.ird.yahoo.com> Message-ID: <0290A76C-9234-499A-ADBB-349F60E59612@uiuc.edu> change > run with k , j repeat smpl to > run with k = 0, j = 0 repeat smpl From johannes.quint at web.de Tue Sep 16 06:14:52 2008 From: johannes.quint at web.de (Johannes Quint) Date: Tue, 16 Sep 2008 15:14:52 +0200 Subject: [CM] grace 1.1.0 Message-ID: <9CEF41A0-9125-4103-958A-441B0D877CA0@web.de> hi rick, gratulation to the new grace! a little question/suggestion: would it be a lot of work to integrate a function for executing unix-cmds? as far as i see, it is not supported by scheme... thanks and best, johannes _________________________ Johannes Quint Rilkestr.55 D-53225 Bonn 0228 468256 johannes.quint at web.de http://www.johannes-quint.de -------------- next part -------------- An HTML attachment was scrubbed... URL: From taube at uiuc.edu Tue Sep 16 17:35:08 2008 From: taube at uiuc.edu (Heinrich Taube) Date: Tue, 16 Sep 2008 19:35:08 -0500 Subject: [CM] grace 1.1.0 In-Reply-To: <9CEF41A0-9125-4103-958A-441B0D877CA0@web.de> References: <9CEF41A0-9125-4103-958A-441B0D877CA0@web.de> Message-ID: i think this could be done simply by passing the string to c++'s system() call, that would be easy enought to add, ie somehting like: system "ls *.*" not sure how portable this would be... From edeleflie at gmail.com Wed Sep 17 05:02:24 2008 From: edeleflie at gmail.com (e deleflie) Date: Wed, 17 Sep 2008 22:02:24 +1000 Subject: [CM] creating new sound with empty channels Message-ID: <9a471d320809170502l2d0561abg5875858265eed07b@mail.gmail.com> Hi everyone, havn't posted for a while... My SND script (guile) creates a 4 channel file (output of a LADSPA plugin) ... but I need to pump in an extra 2 empty channels (empty LFE and empty Centre speaker in a 5.1 type file). I'm trying to do this by creating a new 'sound' then inserting each of my 4 channels into specific channels in that new sound. ... but it aint working! ... my syntax is wrong. (let ((aacFile (new-sound (format #f "~a~a.~a" outpath name "5.1.wav") :channels 6 :header-type mus-riff :data-format mus-l24int :srate 44100 ))) ; pump in 4 full channels and 2 empty ones (for LFE and CF) (insert-sound outsound 0 aacFile 1) (insert-sound outsound 1 aacFile 2) (insert-sound outsound 2 aacFile 3) (insert-sound outsound 3 aacFile 4) (save-sound aacFile) (close-sound aacFile) ) it seems to be 'insert-sound' that is expecting a string (filename?) instead of a sound ... can anyone see a workaround, or a better way of doing what I'm trying to do? etienne From taube at uiuc.edu Wed Sep 17 06:48:07 2008 From: taube at uiuc.edu (Heinrich Taube) Date: Wed, 17 Sep 2008 08:48:07 -0500 Subject: [CM] grace 1.1.0 In-Reply-To: <9CEF41A0-9125-4103-958A-441B0D877CA0@web.de> References: <9CEF41A0-9125-4103-958A-441B0D877CA0@web.de> Message-ID: turns out that the current grace 1.1.0 does have access to chicken's (system ) call, ie this will execute the ls command: (system "ls /Users/hkt/*") the only problem is that any text output by the command is not visible in the console window, im not sure if i can solve this or not i dont know how i could redirect the shells output to the gui window. From k.s.matheussen at notam02.no Wed Sep 17 06:55:23 2008 From: k.s.matheussen at notam02.no (Kjetil S. Matheussen) Date: Wed, 17 Sep 2008 15:55:23 +0200 (CEST) Subject: [CM] grace 1.1.0 In-Reply-To: References: <9CEF41A0-9125-4103-958A-441B0D877CA0@web.de> Message-ID: On Wed, 17 Sep 2008, Heinrich Taube wrote: > turns out that the current grace 1.1.0 does have access to chicken's > (system ) call, ie this will execute the ls command: > > (system "ls /Users/hkt/*") > > the only problem is that any text output by the command is not visible > in the console window, im not sure if i can solve this or not i dont > know how i could redirect the shells output to the gui window. > The following function works for guile: (define (get-system-output command) (let ((logfilename "/tmp/grace-tempfile")) (system (string-append command " > " logfilename)) (let* ((ret "") (fd (open-file logfilename "r")) (line (read-line fd))) (while (not (eof-object? line)) (set! ret (string-append ret line)) (set! line (read-line fd))) (close fd) (system (string-append "rm " logfilename)) ret))) Only minor adjustments should be necessary to make it work in Chicken as well. From taube at uiuc.edu Wed Sep 17 07:44:28 2008 From: taube at uiuc.edu (Heinrich Taube) Date: Wed, 17 Sep 2008 09:44:28 -0500 Subject: [CM] grace 1.1.0 In-Reply-To: References: <9CEF41A0-9125-4103-958A-441B0D877CA0@web.de> Message-ID: > The following function works for guile: > Only minor adjustments should be necessary > to make it work in Chicken as well. indeed! here is the twiddled version: (define (get-system-output command) (let ((logfilename "/tmp/grace-tempfile")) (system (string-append command " > " logfilename)) (let* ((ret "") (eol (list->string (list #\newline))) (fd (open-input-file logfilename )) (line (read-line fd))) (do () ((eof-object? line) #f) (set! ret (string-append ret line eol)) (set! line (read-line fd))) (close-input-port fd) (system (string-append "rm " logfilename)) ret))) so to get a shell command's output to appear as regular printout in the Console window you would do: (print (get-system-output "ls *.*")) ill add this as (shell ...) in the next release, eg something like (define (shell cmd) (print (get-system-output cmd)) (values)) thanks much kjetil! --rick From bil at ccrma.Stanford.EDU Wed Sep 17 10:20:00 2008 From: bil at ccrma.Stanford.EDU (Bill Schottstaedt) Date: Wed, 17 Sep 2008 10:20:00 -0700 Subject: [CM] creating new sound with empty channels In-Reply-To: <9a471d320809170502l2d0561abg5875858265eed07b@mail.gmail.com> References: <9a471d320809170502l2d0561abg5875858265eed07b@mail.gmail.com> Message-ID: <20080917171922.M50125@ccrma.Stanford.EDU> Here's one way that is close to yours: (let ((aacFile (new-sound (format #f "~a~a.~a" outpath name "5.1.wav") :channels 6 :header-type mus-riff :data-format mus-l24int :srate 44100 ))) ;; pump in 4 full channels and 2 empty ones (for LFE and CF) (swap-channels outsound 0 aacFile 1) (swap-channels outsound 1 aacFile 2) (swap-channels outsound 2 aacFile 3) (swap-channels outsound 3 aacFile 4) (save-sound aacFile) (close-sound aacFile) (revert-sound outsound) ) From edeleflie at gmail.com Wed Sep 17 19:12:12 2008 From: edeleflie at gmail.com (e deleflie) Date: Thu, 18 Sep 2008 12:12:12 +1000 Subject: [CM] Mixing scheme script with shell script Message-ID: <9a471d320809171912g2817363y741c2a869e4d7e60@mail.gmail.com> Hi all, Does anyone know if it is possible to mix up an SND scheme script with normal shell script calls? (including sharing/passing parameters between them?) something like this: (note:tried the below and it doesn't work) #!/usr/local/bin/snd -b !# (use-modules (ice-9 format)) (load "dsp.scm") ... (exit) #!/bin/sh echo $HOME Etienne From richardlewis at fastmail.co.uk Fri Sep 19 03:14:34 2008 From: richardlewis at fastmail.co.uk (Richard Lewis) Date: Fri, 19 Sep 2008 11:14:34 +0100 Subject: [CM] Mixing scheme script with shell script In-Reply-To: <9a471d320809171912g2817363y741c2a869e4d7e60@mail.gmail.com> References: <9a471d320809171912g2817363y741c2a869e4d7e60@mail.gmail.com> Message-ID: <200809191114.35499.richardlewis@fastmail.co.uk> On Thursday 18 September 2008 03:12:12 e deleflie wrote: > > Does anyone know if it is possible to mix up an SND scheme script > with normal shell script calls? (including sharing/passing > parameters between them?) > > something like this: (note:tried the below and it doesn't work) > > #!/usr/local/bin/snd -b > !# > (use-modules (ice-9 format)) > (load "dsp.scm") > ... > (exit) > #!/bin/sh > echo $HOME > The lines beginning #! are called shebang lines and they tell the shell which interpreter to invoke to execute the script. At least for Bash on my Linux box (and I except the same is true elsewhere), it's not possible to have the shell switch interpreters during the execution of a script. One possible solution would be to write one sort of master shell script which executes your scheme scripts: foo.scm: #!/usr/local/bin/snd -b (use-modules (ice-9 format)) (load "dsp.scm") master.sh: #!/bin/sh ./foo.scm echo $HOME Then run master.sh to execute the whole lot. -- -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=- Richard Lewis JID: ironchicken at jabber.earth.li http://www.richard-lewis.me.uk/ -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=- +-------------------------------------------------------+ |Please avoid sending me Word or PowerPoint attachments.| |http://www.gnu.org/philosophy/no-word-attachments.html | +-------------------------------------------------------+ From k.s.matheussen at notam02.no Fri Sep 19 03:22:27 2008 From: k.s.matheussen at notam02.no (Kjetil S. Matheussen) Date: Fri, 19 Sep 2008 12:22:27 +0200 (CEST) Subject: [CM] Mixing scheme script with shell script In-Reply-To: <200809191114.35499.richardlewis@fastmail.co.uk> References: <9a471d320809171912g2817363y741c2a869e4d7e60@mail.gmail.com> <200809191114.35499.richardlewis@fastmail.co.uk> Message-ID: On Fri, 19 Sep 2008, Richard Lewis wrote: > On Thursday 18 September 2008 03:12:12 e deleflie wrote: >> >> Does anyone know if it is possible to mix up an SND scheme script >> with normal shell script calls? (including sharing/passing >> parameters between them?) >> >> something like this: (note:tried the below and it doesn't work) >> >> #!/usr/local/bin/snd -b >> !# >> (use-modules (ice-9 format)) >> (load "dsp.scm") >> ... >> (exit) >> #!/bin/sh >> echo $HOME >> > The lines beginning #! are called shebang lines and they tell the > shell which interpreter to invoke to execute the script. At least > for Bash on my Linux box (and I except the same is true elsewhere), > it's not possible to have the shell switch interpreters during the > execution of a script. > > One possible solution would be to write one sort of master shell > script which executes your scheme scripts: > > foo.scm: > #!/usr/local/bin/snd -b > (use-modules (ice-9 format)) > (load "dsp.scm") > > master.sh: > #!/bin/sh > ./foo.scm > echo $HOME > > Then run master.sh to execute the whole lot. Oh, and the other way is to use the "system" function in Guile: master.scm: #!/usr/local/bin/snd -b (use-modules (ice-9 format)) (load "dsp.scm") ... (system "sh foo.sh") (exit) foo.sh: echo $HOME Or simply: master.scm: #!/usr/local/bin/snd -b (use-modules (ice-9 format)) (load "dsp.scm") ... (system "echo $HOME") (exit) From edeleflie at gmail.com Fri Sep 19 03:48:09 2008 From: edeleflie at gmail.com (e deleflie) Date: Fri, 19 Sep 2008 20:48:09 +1000 Subject: [CM] Mixing scheme script with shell script In-Reply-To: References: <9a471d320809171912g2817363y741c2a869e4d7e60@mail.gmail.com> <200809191114.35499.richardlewis@fastmail.co.uk> Message-ID: <9a471d320809190348p5c09c05eqc32c5b9746825cd0@mail.gmail.com> great, thanks Kjetil and Richard... I'm going for the master shell script ... I was trying to avoid having 4 or 5 files each containing different bits of one core logic + a master one to put them together ... but I guess mixing interpreters in one script is not really 'nice' either (let alone doable). Etienne On Fri, Sep 19, 2008 at 8:22 PM, Kjetil S. Matheussen wrote: > > > On Fri, 19 Sep 2008, Richard Lewis wrote: > >> On Thursday 18 September 2008 03:12:12 e deleflie wrote: >>> >>> Does anyone know if it is possible to mix up an SND scheme script >>> with normal shell script calls? (including sharing/passing >>> parameters between them?) >>> >>> something like this: (note:tried the below and it doesn't work) >>> >>> #!/usr/local/bin/snd -b >>> !# >>> (use-modules (ice-9 format)) >>> (load "dsp.scm") >>> ... >>> (exit) >>> #!/bin/sh >>> echo $HOME >>> >> The lines beginning #! are called shebang lines and they tell the >> shell which interpreter to invoke to execute the script. At least >> for Bash on my Linux box (and I except the same is true elsewhere), >> it's not possible to have the shell switch interpreters during the >> execution of a script. >> >> One possible solution would be to write one sort of master shell >> script which executes your scheme scripts: >> >> foo.scm: >> #!/usr/local/bin/snd -b >> (use-modules (ice-9 format)) >> (load "dsp.scm") >> >> master.sh: >> #!/bin/sh >> ./foo.scm >> echo $HOME >> >> Then run master.sh to execute the whole lot. > > > Oh, and the other way is to use the "system" function in Guile: > > master.scm: > #!/usr/local/bin/snd -b > (use-modules (ice-9 format)) > (load "dsp.scm") > ... > (system "sh foo.sh") > (exit) > > foo.sh: > echo $HOME > > > Or simply: > > master.scm: > #!/usr/local/bin/snd -b > (use-modules (ice-9 format)) > (load "dsp.scm") > ... > (system "echo $HOME") > (exit) > > _______________________________________________ > Cmdist mailing list > Cmdist at ccrma.stanford.edu > http://ccrma-mail.stanford.edu/mailman/listinfo/cmdist > From taube at uiuc.edu Wed Sep 24 14:09:46 2008 From: taube at uiuc.edu (Heinrich Taube) Date: Wed, 24 Sep 2008 16:09:46 -0500 Subject: [CM] Announce: Chorale Composer 0.3 Message-ID: <875FC5F3-B0C4-4DCA-9766-E1D4C322C955@uiuc.edu> Chorale Composer 0.3 is available at: http://camil.music.uiuc.edu/Software/cc/index.html Features of the current release include: * Realtime theory analytics provide automatic, on-the-fly analysis of chord quality, inversion, voice-leading, non-harmonic tones, tonal center determination, functional analysis, figured bass symbols and error (condition) detection. * Edit chorales and view changes in the analysis in real time as a pedagogical tool. * Relevant music built-in; nearly all 371 Bach chorales included with the interface for reference. Search by name, number, or key. * Sophisticated MIDI playback with in-audition editing, dynamic tempo changing, playback cursor, and transport control. Take the repeat or not! * Examples of automatic homework generation with instantaneous evaluation; unique problem sets generated for each student. Analysis settings to adapt to specific pedagogical needs; show and hide different aspects of the analysis. * Modern multimedia technology: a meticulously designed, engraver quality, "what-you-see-is-what-you-get" graphic, tactile interface. PDF as the native file format for both saving and opening. High resolution JPEG snapshots of the score via drag-and-drop. * Highly portable: runs on Mac OS X, Windows XP/Vista, and Linux. Does not require installation; usable in restricted network environments. --rick taube, andrew burnson From johannes.quint at web.de Thu Sep 25 05:22:56 2008 From: johannes.quint at web.de (Johannes Quint) Date: Thu, 25 Sep 2008 14:22:56 +0200 Subject: [CM] grace -> spear Message-ID: <7BD1DF03-EDD2-4235-A38C-4C632475FEA6@web.de> is there a way to export spectrums from grace to a text file for spear (the reciprocal way of 'import-spear-frames')? thanks, johannes _________________________ Johannes Quint Rilkestr.55 D-53225 Bonn 0228 468256 johannes.quint at web.de http://www.johannes-quint.de -------------- next part -------------- An HTML attachment was scrubbed... URL: From taube at uiuc.edu Thu Sep 25 06:22:20 2008 From: taube at uiuc.edu (Heinrich Taube) Date: Thu, 25 Sep 2008 08:22:20 -0500 Subject: [CM] grace -> spear In-Reply-To: <7BD1DF03-EDD2-4235-A38C-4C632475FEA6@web.de> References: <7BD1DF03-EDD2-4235-A38C-4C632475FEA6@web.de> Message-ID: <816E5A48-15AE-47DD-AA26-65A31CA3D561@uiuc.edu> there should be but i didnt think about it. im really busy the next 5 days but ill try to post something if i get the chance. On Sep 25, 2008, at 7:22 AM, Johannes Quint wrote: > is there a way to export spectrums from grace to a text file for > spear (the reciprocal way of 'import-spear-frames')? > > thanks, johannes > > _________________________ > > Johannes Quint > Rilkestr.55 > D-53225 Bonn > 0228 468256 > johannes.quint at web.de > http://www.johannes-quint.de > > _______________________________________________ > Cmdist mailing list > Cmdist at ccrma.stanford.edu > http://ccrma-mail.stanford.edu/mailman/listinfo/cmdist From centrobiblico.tx at att.net Fri Sep 26 15:55:18 2008 From: centrobiblico.tx at att.net (Pastor David Cummings) Date: Fri, 26 Sep 2008 15:55:18 -0700 (PDT) Subject: [CM] program to judge Timbre of Canary song Message-ID: <644984.22936.qm@web180003.mail.gq1.yahoo.com> Hi. I am trying to get something going that will let me play live, or recorded canary song that will divide it into measures, judge its timbre, its musicality, the contance of the song's beat and number and kind of notes sung. I know that a good bit of criteria would have to be entered into the program, most likely as an add on in order to make this work but I am trying to find something that will at least have the features in it to some degree. If any of you know how or about this process, I would really appreciate it very much. David Cummings Kanaryman Aviaries and Research Foundation Amarillo Texas -------------- next part -------------- An HTML attachment was scrubbed... URL: