From k.s.matheussen at notam02.no Tue Jun 1 09:04:48 2004 From: k.s.matheussen at notam02.no (Kjetil Svalastog Matheussen) Date: Tue, 1 Jun 2004 18:04:48 +0200 (CEST) Subject: [CM] Re: Re: Building snd from source (Meino Christian Cramer) In-Reply-To: <20040531190004.27256.50383.Mailman@cm-mail.stanford.edu> References: <20040531190004.27256.50383.Mailman@cm-mail.stanford.edu> Message-ID: > > > > > > I moved my .snd out of the way and copied the snd_conffile.scm of the > > > CVS tree to $HOME/.snd > > > > > > Starting snd then gaves me: > > > > > > [03:13:10] skip_scsh_block_comment: misc-error: unterminated `#! ... !#' comment () #f > > > (while loading "/home/mccramer/.snd") > > > ; (load ~/.snd) > > > > > > No other dotfiles or such are active. > > > > > > > Thats strange. I thought this bug was fixed for about a month ago. > > When did you update your CVS tree? > > > > On the day I wrote my mail, Kjetil... > What does %load-path tells you? -- From Meino.Cramer at gmx.de Tue Jun 1 09:54:38 2004 From: Meino.Cramer at gmx.de (Meino Christian Cramer) Date: Tue, 01 Jun 2004 18:54:38 +0200 (CEST) Subject: [CM] Re: Re: Building snd from source (Meino Christian Cramer) In-Reply-To: References: <20040531190004.27256.50383.Mailman@cm-mail.stanford.edu> Message-ID: <20040601.185438.36919301.Meino.Cramer@gmx.de> From: Kjetil Svalastog Matheussen Subject: [CM] Re: Re: Building snd from source (Meino Christian Cramer) Date: Tue, 1 Jun 2004 18:04:48 +0200 (CEST) > > > > > > > > I moved my .snd out of the way and copied the snd_conffile.scm of the > > > > CVS tree to $HOME/.snd > > > > > > > > Starting snd then gaves me: > > > > > > > > [03:13:10] skip_scsh_block_comment: misc-error: unterminated `#! ... !#' comment () #f > > > > (while loading "/home/mccramer/.snd") > > > > ; (load ~/.snd) > > > > > > > > No other dotfiles or such are active. > > > > > > > > > > Thats strange. I thought this bug was fixed for about a month ago. > > > When did you update your CVS tree? > > > > > > > On the day I wrote my mail, Kjetil... > > > > What does %load-path tells you? > It is set with (set! %load-path (cons "/usr/snd/snd-7" %load-path)) in my $HOME/.snd Is there something wrong with it, Kjetil ? Kind regards, Meino > -- > > _______________________________________________ > Cmdist mailing list > Cmdist at ccrma.stanford.edu > http://ccrma-mail.stanford.edu/mailman/listinfo/cmdist > From Meino.Cramer at gmx.de Tue Jun 1 10:48:18 2004 From: Meino.Cramer at gmx.de (Meino Christian Cramer) Date: Tue, 01 Jun 2004 19:48:18 +0200 (CEST) Subject: [CM] Re: Re: Building snd from source (Meino Christian Cramer) In-Reply-To: <20040601.185438.36919301.Meino.Cramer@gmx.de> Message-ID: <20040601.194818.74750378.Meino.Cramer@gmx.de> From: Meino Christian Cramer Subject: Re: [CM] Re: Re: Building snd from source (Meino Christian Cramer) Date: Tue, 01 Jun 2004 18:54:38 +0200 (CEST) > From: Kjetil Svalastog Matheussen > Subject: [CM] Re: Re: Building snd from source (Meino Christian Cramer) > Date: Tue, 1 Jun 2004 18:04:48 +0200 (CEST) > > > > > > > > > > > I moved my .snd out of the way and copied the snd_conffile.scm of the > > > > > CVS tree to $HOME/.snd > > > > > > > > > > Starting snd then gaves me: > > > > > > > > > > [03:13:10] skip_scsh_block_comment: misc-error: unterminated `#! ... !#' comment () #f > > > > > (while loading "/home/mccramer/.snd") > > > > > ; (load ~/.snd) > > > > > > > > > > No other dotfiles or such are active. > > > > > > > > > > > > > Thats strange. I thought this bug was fixed for about a month ago. > > > > When did you update your CVS tree? > > > > > > > > > > On the day I wrote my mail, Kjetil... > > > > > > > What does %load-path tells you? > > > > It is set with > > (set! %load-path (cons "/usr/snd/snd-7" %load-path)) > > in my $HOME/.snd > > Is there something wrong with it, Kjetil ? > > Kind regards, > Meino Sorry, I am a newbie... ;) I did a (%load-path) in the listener and got: 1: 0* [("/usr/share/guile/1.6/srfi" "/usr/snd/snd-7" "/usr/snd/snd-7/dlp" ...)] misc-error The "misc-error" confuses me a little ... on the other hand, there is a readable printout... Slightly confused (slightly...:) Meino > > -- > > > > _______________________________________________ > > Cmdist mailing list > > Cmdist at ccrma.stanford.edu > > http://ccrma-mail.stanford.edu/mailman/listinfo/cmdist > > > > _______________________________________________ > Cmdist mailing list > Cmdist at ccrma.stanford.edu > http://ccrma-mail.stanford.edu/mailman/listinfo/cmdist > From rm at fabula.de Tue Jun 1 11:04:12 2004 From: rm at fabula.de (rm at fabula.de) Date: Tue, 1 Jun 2004 20:04:12 +0200 Subject: [CM] Re: Re: Building snd from source (Meino Christian Cramer) In-Reply-To: <20040601.194818.74750378.Meino.Cramer@gmx.de> References: <20040601.185438.36919301.Meino.Cramer@gmx.de> <20040601.194818.74750378.Meino.Cramer@gmx.de> Message-ID: <20040601180412.GA12234@www> On Tue, Jun 01, 2004 at 07:48:18PM +0200, Meino Christian Cramer wrote: > Sorry, I am a newbie... ;) > > I did a > > (%load-path) Hmm, you are calling%load-path as a function :-/ How about: > %load-path > in the listener and got: > > 1: 0* [("/usr/share/guile/1.6/srfi" "/usr/snd/snd-7" "/usr/snd/snd-7/dlp" ...)] > > misc-error Strange, there _should_ be a 'Wrong type to apply ...' message as well. Anyway, %load-path is not a function, hence you can't "call" it (which is what you do if you put it into parens). hth Ralf Mattes > The "misc-error" confuses me a little ... on the other hand, there > is a readable printout... > > Slightly confused (slightly...:) > Meino > > > > > > -- > > > > > > _______________________________________________ > > > Cmdist mailing list > > > Cmdist at ccrma.stanford.edu > > > http://ccrma-mail.stanford.edu/mailman/listinfo/cmdist > > > > > > > _______________________________________________ > > Cmdist mailing list > > Cmdist at ccrma.stanford.edu > > http://ccrma-mail.stanford.edu/mailman/listinfo/cmdist > > > > _______________________________________________ > Cmdist mailing list > Cmdist at ccrma.stanford.edu > http://ccrma-mail.stanford.edu/mailman/listinfo/cmdist From andersvi at notam02.no Tue Jun 1 14:08:57 2004 From: andersvi at notam02.no (Anders Vinjar) Date: Tue, 01 Jun 2004 23:08:57 +0200 Subject: [CM] Re: unterminated comment In-Reply-To: <40B9B2B9.7000609@ccrma> (Bill Schottstaedt's message of "Sun, 30 May 2004 03:08:57 -0700") References: <20040524190002.12866.88579.Mailman@cm-mail.stanford.edu> <20040529.031626.74750175.Meino.Cramer@gmx.de> <40B9B2B9.7000609@ccrma> Message-ID: >>>>> "BS" == Bill Schottstaedt writes: >> [03:13:10] skip_scsh_block_comment: misc-error: unterminated >> `#! ... !#' comment () #f (while loading "/home/mccramer/.snd") >> ; (load ~/.snd) BS> This is a Guile bug, fixed in the CVS version. I have a BS> script that changes \r\n to \n, but it's at home -- I'll bring BS> it in Tuesday. In the meantime, you can just delete BS> everything between (and including) #! and !#. At least in this guile, a temporary hack seems to be to load everything with absolute filenames for some reason. Ie: use (load "/path/to/snd-7/snd-file.scm") instead of (load-from-path "snd-file.scm") And make sure to substitute the same inside any necessary files that loads files that use block-comments, for instance in snd_conffile.scm change the call: (load-from-path "gui.scm") to: (load "/path/to/snd-7/gui.scm") From bil at ccrma.Stanford.EDU Wed Jun 2 03:52:40 2004 From: bil at ccrma.Stanford.EDU (Bill Schottstaedt) Date: Wed, 02 Jun 2004 03:52:40 -0700 Subject: [CM] Re: Re: Building snd from source (Meino Christian Cramer) In-Reply-To: <20040601.194818.74750378.Meino.Cramer@gmx.de> References: <20040601.194818.74750378.Meino.Cramer@gmx.de> Message-ID: <40BDB178.3050408@ccrma> On the %load-path business, in the current Snd, you can see what files have been loaded in the 'Help:About Snd' info toward the bottom -- the variable holding this is 'snd-loaded-files'. I think the current version of snd_conffile.scm is ok -- you can check by running od -c snd_conffile.scm and look for \r\n -- it should be just \n. From k.s.matheussen at notam02.no Wed Jun 2 03:59:27 2004 From: k.s.matheussen at notam02.no (Kjetil Svalastog Matheussen) Date: Wed, 2 Jun 2004 12:59:27 +0200 (CEST) Subject: [CM] Re: Re: Re: Building snd from source In-Reply-To: <20040601190003.10997.85444.Mailman@cm-mail.stanford.edu> References: <20040601190003.10997.85444.Mailman@cm-mail.stanford.edu> Message-ID: Meino Christian Cramer: > in the listener and got: > 1: 0* [("/usr/share/guile/1.6/srfi" "/usr/snd/snd-7" "/usr/snd/snd-7/dlp" ...)] > Is your CVS-tree placed in /usr/snd/snd-7 ? If not, add a (set! %load-path (cons "/path/to/my/cvs-tree/" %load-path)) line to your $HOME/.snd file. That should solve the problem. -- From Meino.Cramer at gmx.de Thu Jun 3 21:58:25 2004 From: Meino.Cramer at gmx.de (Meino Christian Cramer) Date: Fri, 04 Jun 2004 06:58:25 +0200 (CEST) Subject: [CM] Re: Re: Re: Building snd from source In-Reply-To: References: <20040601190003.10997.85444.Mailman@cm-mail.stanford.edu> Message-ID: <20040604.065825.74753218.Meino.Cramer@gmx.de> From: Kjetil Svalastog Matheussen Subject: [CM] Re: Re: Re: Building snd from source Date: Wed, 2 Jun 2004 12:59:27 +0200 (CEST) Hi Kjetil, (sorry for the late answer...I had a problem with my mail program...it suddenly began to "eat" mails...) Your question could be answered with clear and understandable "YESNO". Everything ok ? ;))))) only kidding... I wrote a script, which builds snd and do other things while trying not to touch the original cvs tree. The actions done by this script are as follows: Clear CFLAGS and CXXFLAGS copy the whole cvs-tree to /tmp/. cd into the cvs-tree configure snd there make and make install while still being in the cvs-tree under /tmp/. issueing the following commands: cp *.scm *.rb *.html *.png /usr/share/doc/snd-7/. cp -a tutorial dlp /usr/share/doc/snd-7/. cp *.scm *.rb /usr/snd/snd-7/. cp -a dlp /usr/snd/snd-7/. rm -rf /usr/snd/snd-7/dlp/CVS rm -rf /usr/snd/snd-7/tutorial/CVS rm -rf /usr/share/doc/snd-7/dlp/CVS rm -rf /usr/share/doc/snd-7/tutorial/CVS chown root.root /usr/share/doc/snd-7/. chown root.root /usr/snd/snd-7/. The script also do some administrative tasks such as makeing diffs for reconstructing older cvs-trees, inform me if anything has changed, and check for changes of the snd-binary. Kind regards and keep snd'ing ;) Meino > > Meino Christian Cramer: > > > in the listener and got: > > 1: 0* [("/usr/share/guile/1.6/srfi" "/usr/snd/snd-7" "/usr/snd/snd-7/dlp" ...)] > > > > Is your CVS-tree placed in /usr/snd/snd-7 ? > If not, add a > (set! %load-path (cons "/path/to/my/cvs-tree/" %load-path)) > line to your $HOME/.snd file. > > That should solve the problem. > > > > -- > > _______________________________________________ > Cmdist mailing list > Cmdist at ccrma.stanford.edu > http://ccrma-mail.stanford.edu/mailman/listinfo/cmdist > From bil at ccrma.Stanford.EDU Wed Jun 9 09:02:10 2004 From: bil at ccrma.Stanford.EDU (Bill Schottstaedt) Date: Wed, 09 Jun 2004 09:02:10 -0700 Subject: [CM] yet another pitch changer... Message-ID: <40C73482.2090703@ccrma> I found a new way (at least to me) to change the pitch of a sound without affecting the duration, and it seems to be surprisingly robust. It's based on a bank of single sideband amplitude modulation generators being fed by bandpass filters. The ssb-am gens do the pitch shift, and the filters pick out successive harmonics, so each harmonic gets shifted individually (and thus the new spectrum can be harmonic after the shift): (define* (ssb-bank old-freq new-freq pairs #:optional (order 40) (bw 50.0)) (let* ((ssbs (make-vector pairs)) (bands (make-vector pairs)) (factor (/ (- new-freq old-freq) old-freq)) (mx (maxamp))) (do ((i 1 (1+ i))) ((> i pairs)) (let* ((aff (* i old-freq)) (bwf (* bw (+ 1.0 (/ i (* 2 pairs)))))) (vector-set! ssbs (1- i) (make-ssb-am (* i factor old-freq))) (vector-set! bands (1- i) (make-bandpass (hz->2pi (- aff bwf)) (hz->2pi (+ aff bwf)) order)))) (as-one-edit (lambda () (let ((nmx 0.0)) (map-channel (lambda (y) (let ((sum 0.0)) (do ((i 0 (1+ i))) ((= i pairs)) (set! sum (+ sum (ssb-am (vector-ref ssbs i) (bandpass (vector-ref bands i) y))))) (set! nmx (max nmx (abs sum))) sum))) (scale-by (/ mx nmx))))))) For an oboe at 557 Hz, good values are: (ssb-bank 557 new-freq 6 40 50) For a person talking at ca. 150 Hz: (ssb-bank 150 300 30 100 30) (ssb-bank 150 100 40 100 20) The ssb-am and bandpass generators are defined in dsp.scm. hz->2pi is (define (hz->2pi freq) (/ (* 2 pi freq) 22050.0)). To get a duration change without pitch change, use this followed by src: (define (stretch-oboe factor) (ssb-bank 557 (* factor 557) 7 40 40) (src-sound (/ 1.0 factor))) These results were much better than I anticipated -- I've been chortling ever since. From metaperl at urth.org Fri Jun 11 04:56:29 2004 From: metaperl at urth.org (Terrence Brannon) Date: Fri, 11 Jun 2004 07:56:29 -0400 Subject: [CM] customzing *-play-midi-file Message-ID: <40C99DED.5080508@urth.org> Hi, Thanks to Rick Taube, I got Commonmusic up and running under Cygwin. The docs for usage with Xemacs were excellent (as is the Lisp listener itself). So, I have cm-2.4.1 up and running under Xemacs and Cygwin. I have timidity setup with instruments --- it can play midi files generated by cm... however, I do not know how to configure win-play-midi-file so that it makes a shell call to timidity.exe with a filename. Evaluating the forms in intro.cm one-by-one leads to the following error: /\\\ ---\\\--------- ----\\\-------- ----/\\\------- Common Music 2.4.1 ---/--\\\------ --/----\\\----- / \\\/ guile> guile> # guile> "test.midi" guile> guile> C:Program: not found "test.midi" guile> This error occurs when evaluating: (events (sinus 80 4 20 100 .1 .1 .6) "test.midi") -- mathematics: the science of quantity, shape, and arrangement computersci: the science of information description and transformation liberalarts: essential study for adequate education and civic participation. From taube at uiuc.edu Fri Jun 11 19:06:24 2004 From: taube at uiuc.edu (Rick Taube) Date: Fri, 11 Jun 2004 21:06:24 -0500 Subject: [CM] customzing *-play-midi-file In-Reply-To: <40C99DED.5080508@urth.org> References: <40C99DED.5080508@urth.org> Message-ID: <1AFC1FD0-BC15-11D8-992A-000A95CA28FC@uiuc.edu> you can use this -- its part of midi2.scm from the 2.5.0 (CVS head) branch: ;;;--------------------------- midi2,scm (define *linux-midi-file-player* "timidity --quiet=2 ~a &") (define (linux-play-midi-file file . args) args (shell *linux-midi-file-player* file) file) ;;;------------------------------ once you eval these definitions you can do (set-midi-output-hook! #'linux-play-midi-file) and midi files will be auto played by timidity every time you write them via the 'events function ive checked it and it works in cygwin. On Jun 11, 2004, at 6:56 AM, Terrence Brannon wrote: > Hi, > > Thanks to Rick Taube, I got Commonmusic up and running under Cygwin. > The docs for usage with Xemacs were excellent (as is the Lisp listener > itself). So, I have cm-2.4.1 up and running under Xemacs and Cygwin. > > I have timidity setup with instruments --- it can play midi files > generated by cm... however, I do not know how to configure > win-play-midi-file so that it makes a shell call to timidity.exe with > a filename. > > Evaluating the forms in intro.cm one-by-one leads to the following > error: > > /\\\ ---\\\--------- > ----\\\-------- > ----/\\\------- Common Music 2.4.1 > ---/--\\\------ > --/----\\\----- > / \\\/ > guile> guile> # > guile> "test.midi" > guile> guile> C:Program: not found > "test.midi" > guile> > > This error occurs when evaluating: > > (events (sinus 80 4 20 100 .1 .1 .6) "test.midi") > > > -- > mathematics: the science of quantity, shape, and arrangement > computersci: the science of information description and transformation > liberalarts: essential study for adequate education and civic > participation. > _______________________________________________ > Cmdist mailing list > Cmdist at ccrma.stanford.edu > http://ccrma-mail.stanford.edu/mailman/listinfo/cmdist From metaperl at urth.org Sun Jun 13 03:48:27 2004 From: metaperl at urth.org (Terrence Brannon) Date: Sun, 13 Jun 2004 06:48:27 -0400 Subject: [CM] starting up cm under Cygwin 5.1 fails (Cygwin 5.0 expected) Message-ID: <40CC30FB.3040005@urth.org> Using this cmdline: ~/mydocs/Scheme/cm-2.4.1/bin/cm.sh -e xemacs I get the following error in the *inferior-lisp* buffer: [1]> *** - The value of TOK must be one of DARWIN, LINUX, CYGWIN_NT-5.0, FREEBSD The value is: CYGWIN_NT-5.1 *** - UNIX error 13 (EACCES): Permission denied Break 1 [2]> Typing backtrace here did not yield a stack backtrace: Break 1 [2]> (backtrace) ** - Continuable Error EVAL: undefined function BACKTRACE If you continue (by typing 'continue'): Retry The following restarts are also available: STORE-VALUE :R1 You may input a new value for (FDEFINITION 'BACKTRACE). USE-VALUE :R2 You may input a value to be used instead of (FDEFINITION 'BACKTRACE). -- mathematics: the science of quantity, shape, and arrangement computersci: the science of information description and transformation liberalarts: essential study for adequate education and civic participation. From metaperl at urth.org Sun Jun 13 04:00:20 2004 From: metaperl at urth.org (Terrence Brannon) Date: Sun, 13 Jun 2004 07:00:20 -0400 Subject: [CM] starting up cm under Cygwin 5.1 fails (Cygwin 5.0 expected) In-Reply-To: <40CC30FB.3040005@urth.org> References: <40CC30FB.3040005@urth.org> Message-ID: <40CC33C4.8050807@urth.org> Terrence Brannon wrote: > Using this cmdline: > > ~/mydocs/Scheme/cm-2.4.1/bin/cm.sh -e xemacs > > I get the following error in the *inferior-lisp* buffer: > > [1]> > *** - The value of TOK must be one of DARWIN, LINUX, CYGWIN_NT-5.0, > FREEBSD > The value is: CYGWIN_NT-5.1 > *** - UNIX error 13 (EACCES): Permission denied I figured it out: src/make.lisp needs a small change... the problem was I was grepping for "TOK" because that error message had "TOK" in uppercase but the actual source file has "TOK" in lowercase! So, the listener starts up like it was doing before. Now off to get timidity working smoothly. -- mathematics: the science of quantity, shape, and arrangement computersci: the science of information description and transformation liberalarts: essential study for adequate education and civic participation. From andersvi at extern.uio.no Mon Jun 14 04:44:43 2004 From: andersvi at extern.uio.no (Anders Vinjar) Date: Mon, 14 Jun 2004 13:44:43 +0200 Subject: [CM] [CLM]: convolve-files, make-convolve Message-ID: Theres no output coming out of convolve in recent clm. Either from the ug, or from using #'convolve-files. Heres the output from running the first example from clm-2/cnv.ins, the instrument using #'make-convolve and #'convolve: (with-sound (:output "CNV/1.snd") (outa 0 .5) (outa 3000 .5) (outa 10000 .5)) (with-sound (:output "CNV/v.snd") (fm-violin 0 1 440 .1 :amp-env '(0 1 100 1))) (with-sound (:statistics t) (cnv 0 1 "CNV/1.snd" "CNV/v.snd")) * test.snd: Duration: 1.0000, Last begin time: 0.0000 Compute time: 0.180, Compute ratio: 0.18 OutA max amp: 0.000 (near 0.000 secs) "test.snd" * *features* (:CLM :LITTLE-ENDIAN :CLM2 :GERDS-PCL :PCL-STRUCTURES :PORTABLE-COMMONLOOPS :PCL :CMU19 :CMU19A :PYTHON :CONSERVATIVE-FLOAT-TYPE :MP :X86 :LINKAGE-TABLE :RELATIVE-PACKAGE-NAMES :LINUX :GLIBC2 :UNIX :RANDOM-MT19937 :GENCGC :PENTIUM :I486 :HASH-NEW :HEAP-OVERFLOW-CHECK :STACK-CHECKING :COMMON :COMMON-LISP :ANSI-CL :IEEE-FLOATING-POINT :CMU) * *clm-date* "9-June-04" * -anders From bil at ccrma.Stanford.EDU Tue Jun 15 03:16:19 2004 From: bil at ccrma.Stanford.EDU (Bill Schottstaedt) Date: Tue, 15 Jun 2004 03:16:19 -0700 Subject: [CM] configure in CLM Message-ID: <40CECC73.2070500@ccrma> The current CLM uses a configure script to set up the C side switches -- a long overdue change, but one that is bug-prone. Let me know of any problems! (Are there remaining old Mac OS users? If so, you may have to create an empty config.h before building CLM). From anthony.kozar at utoledo.edu Tue Jun 15 10:23:49 2004 From: anthony.kozar at utoledo.edu (Anthony Kozar) Date: Tue, 15 Jun 2004 13:23:49 -0400 Subject: [CM] configure in CLM In-Reply-To: <40CECC73.2070500@ccrma> Message-ID: Yes! I am still using Mac OS 9. But I am getting used to creating config.h files for other projects too :) Anthony Kozar anthony.kozar at utoledo.edu On 6/15/04 6:16 AM, Bill Schottstaedt etched in stone: > (Are there remaining old Mac OS users? If so, you may have > to create an empty config.h before building CLM). From bil at ccrma.Stanford.EDU Wed Jun 16 03:35:28 2004 From: bil at ccrma.Stanford.EDU (Bill Schottstaedt) Date: Wed, 16 Jun 2004 03:35:28 -0700 Subject: [CM] [CLM]: convolve-files, make-convolve Message-ID: <40D02270.7000505@ccrma> > Theres no output coming out of convolve in recent clm. I think this was caused by a typo in ffi.lisp -- the cmucl/sbcl arguments to file->array got scrambled somehow -- thanks for the bug report! *** /user/b/bil/cl/ffi.lisp 2004-06-16 03:26:48.000000000 -0700 --- /usr/ccrma/lisp/src/clm/ffi.lisp 2004-05-17 03:38:52.000000000 -0700 *************** *** 774,780 **** (def-alien-routine ("clm_file2array" file->array-1) c-call:int (file c-call:c-string) (chan c-call:int) (start c-call:int) (samples c-call:int) (arr (* double-float))) ! (defun file->array (file chan start samples arr) (file->array-1 file chan start samples (array-data-address arr))) (def-alien-routine ("mus_bytes_per_sample" format->bytes) c-call:int (frm c-call:int)) ;; cmus.c for rt.lisp --- 774,780 ---- (def-alien-routine ("clm_file2array" file->array-1) c-call:int (file c-call:c-string) (chan c-call:int) (start c-call:int) (samples c-call:int) (arr (* double-float))) ! (defun file->array (file chan start samples arr) (file->array-1 file start samples chan (array-data-address arr))) (def-alien-routine ("mus_bytes_per_sample" format->bytes) c-call:int (frm c-call:int)) ;; cmus.c for rt.lisp *************** *** 1014,1020 **** (sb-alien:define-alien-routine ("clm_file2array" file->array-1) sb-alien:int (file sb-alien:c-string) (chan sb-alien:int) (start sb-alien:int) (samples sb-alien:int) (arr (* double-float))) ! (defun file->array (file chan start samples arr) (file->array-1 file chan start samples (array-data-address arr))) (sb-alien:define-alien-routine ("mus_bytes_per_sample" format->bytes) sb-alien:int (frm sb-alien:int)) ;; cmus.c for rt.lisp --- 1014,1020 ---- (sb-alien:define-alien-routine ("clm_file2array" file->array-1) sb-alien:int (file sb-alien:c-string) (chan sb-alien:int) (start sb-alien:int) (samples sb-alien:int) (arr (* double-float))) ! (defun file->array (file chan start samples arr) (file->array-1 file start samples chan (array-data-address arr))) (sb-alien:define-alien-routine ("mus_bytes_per_sample" format->bytes) sb-alien:int (frm sb-alien:int)) ;; cmus.c for rt.lisp From Meino.Cramer at gmx.de Wed Jun 16 21:38:53 2004 From: Meino.Cramer at gmx.de (Meino Christian Cramer) Date: Thu, 17 Jun 2004 06:38:53 +0200 (CEST) Subject: [CM] Cannot record sound Message-ID: <20040617.063853.71087805.Meino.Cramer@gmx.de> Hi, ...I cannot record any sound via the microphone. I hear myself from the loudpeakers while speaking into the microphone, but the VU-meters of snd does not move. The VU-meters are yellow (active), I have entered a file name. The logwindow below shows dozens of lines of: [06:23:56] recover_from_xrun: [under|over]run detected . . . . The alsamixer (I am using alsadrive 1.05a) shows, that "mic" is enabled, not muted and the volume is reasonable high. snd is of the current cvs. I have no clue what is wrong here...a week before or so it had worked for me...but the only thing I can hear currently is the "Sound of Silence" ;) Thank you very much for any hint/help in advance! :O) Keep snd'ing! Meino From bil at ccrma.Stanford.EDU Thu Jun 17 04:37:37 2004 From: bil at ccrma.Stanford.EDU (Bill Schottstaedt) Date: Thu, 17 Jun 2004 04:37:37 -0700 Subject: [CM] Re: Cannot record sound In-Reply-To: <20040617.063853.71087805.Meino.Cramer@gmx.de> References: <20040617.063853.71087805.Meino.Cramer@gmx.de> Message-ID: <40D18281.2080005@ccrma> > I have no clue what is wrong here...a week before or so it had worked > for me...but the only thing I can hear currently is the "Sound of > Silence" ;) I haven't made any changes in the recorder in Snd lately -- does (mus-audio-describe) tell you anything? From Meino.Cramer at gmx.de Thu Jun 17 05:31:16 2004 From: Meino.Cramer at gmx.de (Meino Christian Cramer) Date: Thu, 17 Jun 2004 14:31:16 +0200 (CEST) Subject: [CM] Re: Cannot record sound In-Reply-To: <40D18281.2080005@ccrma> References: <20040617.063853.71087805.Meino.Cramer@gmx.de> <40D18281.2080005@ccrma> Message-ID: <20040617.143116.59466870.Meino.Cramer@gmx.de> From: Bill Schottstaedt Subject: Re: Cannot record sound Date: Thu, 17 Jun 2004 04:37:37 -0700 Hi Bill, thank you for your fast reply ! :O) The thing is...that it isn't anymore... I needed to reboot my box for another reason (I chnaged some boot scripts) and after that everything was ok and as before. Dont ask me WHY... ;) Kind regards, Meino > > I have no clue what is wrong here...a week before or so it had worked > > for me...but the only thing I can hear currently is the "Sound of > > Silence" ;) > > I haven't made any changes in the recorder in Snd lately -- does > (mus-audio-describe) tell you anything? > > From cewing at u.washington.edu Fri Jun 18 14:10:59 2004 From: cewing at u.washington.edu (cristopher pierson ewing) Date: Fri, 18 Jun 2004 14:10:59 -0700 (PDT) Subject: [CM] SND-7 build errors on OSX Message-ID: Hi all, Trying to get SND built on OS X, 10.3 on a G5. I've installed guile and opemotif3 and fftw via fink. I'm following the instructions in README.snd and going the path of running ./configure and then hacking the makefile to point to the correct guile and motif libs. When I run make, I get the following error (this is only the last 30-40 lines of the output, more available if needed). Any ideas what is going wrong here? C ***************output from make follows*************** snd-xutils.c: At top level: snd-xutils.c:461: error: conflicting types for `set_sensitive' snd-nogui1.h:217: error: previous declaration of `set_sensitive' snd-xutils.c:462: error: conflicting types for `set_toggle_button' snd-nogui1.h:218: error: previous declaration of `set_toggle_button' snd-xutils.c:465: error: conflicting types for `widget_height' snd-nogui1.h:219: error: previous declaration of `widget_height' snd-xutils.c:472: error: conflicting types for `widget_width' snd-nogui1.h:220: error: previous declaration of `widget_width' snd-xutils.c:489: error: conflicting types for `set_widget_size' snd-nogui1.h:221: error: previous declaration of `set_widget_size' snd-xutils.c:494: error: conflicting types for `widget_x' snd-nogui1.h:222: error: previous declaration of `widget_x' snd-xutils.c:501: error: conflicting types for `widget_y' snd-nogui1.h:223: error: previous declaration of `widget_y' snd-xutils.c:508: error: conflicting types for `set_widget_x' snd-nogui1.h:224: error: previous declaration of `set_widget_x' snd-xutils.c:513: error: conflicting types for `set_widget_y' snd-nogui1.h:225: error: previous declaration of `set_widget_y' snd-xutils.c: In function `fixup_axis_context': snd-xutils.c:524: error: structure has no member named `dp' snd-xutils.c:526: warning: assignment makes integer from pointer without a cast snd-xutils.c: In function `make_pixmap': snd-xutils.c:535: warning: passing arg 1 of `XCreateBitmapFromData' makes pointer from integer without a cast snd-xutils.c:538: warning: passing arg 1 of `XCreatePixmap' makes pointer from integer without a cast snd-xutils.c:539: warning: passing arg 1 of `XCopyPlane' makes pointer from integer without a cast snd-xutils.c:540: warning: passing arg 1 of `XFreePixmap' makes pointer from integer without a cast snd-xutils.c: In function `add_work_proc': snd-xutils.c:548: warning: passing arg 1 of `XtAppAddWorkProc' makes pointer from integer without a cast make: *** [snd-xutils.o] Error 1 [trurl:/usr/local/snd-7] admin% ***************end output from make******************* ******************************** Cris Ewing CME and Telehealth Web Services University of Washington School of Medicine Work Phone: (206) 685-9116 Home Phone: (206) 365-3413 E-mail: cewing at u.washington.edu ******************************* From taube at uiuc.edu Sun Jun 20 11:23:15 2004 From: taube at uiuc.edu (taube at uiuc.edu) Date: Sun, 20 Jun 2004 13:23:15 -0500 Subject: [CM] cygwin loading problems fixed Message-ID: I believe that cvs now contains fixes for several cygwin loading problems (clisp and guile) reported in both the cm-2.4.1 and cm-2.5.0 branches. the relevant files are: cm-2.4.1: src/cm.scm rev 1.6.2.1, src/make.lisp rev 1.37.2.6 cm-2.5.0: src/cm.scm rev 1.7 it may take up to twelve hours for the revisions to be available on source forge's anonymous cvs server. to download new sources for the 2.4 branch you use the "rel-2_4" tag, ie: cvs checkout -r rel-2_4 -d cm-2.4.1 cm to update sources for the 2.5 branch you would do: cd /path/to/cm cvs update From cewing at u.washington.edu Mon Jun 21 09:25:44 2004 From: cewing at u.washington.edu (cristopher pierson ewing) Date: Mon, 21 Jun 2004 09:25:44 -0700 (PDT) Subject: [CM] SND-7 build errors on OSX In-Reply-To: <40D6C123.9070200@ccrma> References: <40D6C123.9070200@ccrma> Message-ID: Bill, I've been snooping around, and discovered an interesting thing regarding guile on OSX. The process for finding the relevant bits of guile for snd seems to rely on using guile-config, an executable created when guile is installed. But installing guile-1.6 via fink on OSX results not in this executable, but rather on one called guile-1.6-config. Similarly, guile is actually named guile-1.6, etc. I was having trouble in that I would provide the GUILE_LOAD_path on the command line, but snd still would think I had no guile installed. I added links in the directory where guile-1.6-config lived, linking it to guile-config and linking guile-1.6 to guile and so on, and boom! the config found guile. this might be an interesting fact to pass on to others trying to do this install. Thanks, Cris ******************************** Cris Ewing CME and Telehealth Web Services University of Washington School of Medicine Work Phone: (206) 685-9116 Home Phone: (206) 365-3413 E-mail: cewing at u.washington.edu ******************************* On Mon, 21 Jun 2004, Bill Schottstaedt wrote: > Somehow your config.h is inconsistent -- I guess > USE_MOTIF did not get set, so it's picking up the > "no GUI" headers, but then for some reason the > makefile is trying to include the Motif files. > If configure didn't find Motif, you can give > it the path with the --with-motif-prefix switch. > > From cewing at u.washington.edu Mon Jun 21 09:26:56 2004 From: cewing at u.washington.edu (cristopher pierson ewing) Date: Mon, 21 Jun 2004 09:26:56 -0700 (PDT) Subject: [CM] SND-7 build errors on OSX (fwd) Message-ID: Yes, the reason for the inconsistency is that I've hacked the makefile as described in README.Snd. I used the path names described there to change the makefile lines regarding MOTIF to read as follows: MOTIF_LIBS = -L/usr/X11R6/lib -lSM -lICE /sw/lib/libXm.a \ /usr/X11R6/lib/libXp.a /usr/X11R6/lib/libXt.a -lXext -lXpm -lX11 (without the linebreak, of course) This is leading to the problem that config.h says I have no gui, but the makefile knows where to look for libXm.a, libXp.a, and libXt.a. Obviously, just hacking the makefile has not worked, but I'm not sure where to go from here, The relevant section of config.h read as follows: /* #undef USE_MOTIF */ #define USE_NO_GUI 1 /* #undef HAVE_MOTIF */ /* #undef HAVE_XmToolTipGetLabel */ /* #undef HAVE_XmCreateMultiList */ /* #undef HAVE_XmCreateDataField */ /* #undef HAVE_XmCreateButtonBox */ /* #undef HAVE_XmCreateTabStack */ /* #undef HAVE_XmCreateDropDown */ /* #undef HAVE_XmCreateColumn */ /* #undef HAVE_XmCreateFontSelector */ /* #undef HAVE_XmCreateColorSelector */ /* #undef HAVE_XPM_GET_ERROR_STRING */ /* #undef HAVE_XPM_CREATE_XPM_IMAGE_FROM_PIXMAP */ I suppose that I could change all this to say that I do have motif and all these commands, but I'm a bit nervous about that. For one thing, the motif section of README.Snd mentions motif-relate4d header files located in /usr/X11R6/include/Xm. Unfortunately, after installing motif via fink, that directory doesn't exist. Do I need more header files than the three pointed to above in the hack for makefile? Can I just change these lines in config.h? Thanks for your help, Cris ******************************** Cris Ewing CME and Telehealth Web Services University of Washington School of Medicine Work Phone: (206) 685-9116 Home Phone: (206) 365-3413 E-mail: cewing at u.washington.edu ******************************* On Mon, 21 Jun 2004, Bill Schottstaedt wrote: > Somehow your config.h is inconsistent -- I guess > USE_MOTIF did not get set, so it's picking up the > "no GUI" headers, but then for some reason the > makefile is trying to include the Motif files. > If configure didn't find Motif, you can give > it the path with the --with-motif-prefix switch. > > From cewing at u.washington.edu Mon Jun 21 09:33:01 2004 From: cewing at u.washington.edu (cristopher pierson ewing) Date: Mon, 21 Jun 2004 09:33:01 -0700 (PDT) Subject: [CM] SND-7 build errors on OSX In-Reply-To: <40D6C123.9070200@ccrma> References: <40D6C123.9070200@ccrma> Message-ID: I just tried to hack config.h to show that I had motif installed. I edited makefile, giving the locations of libXm.a etc at the line MOTIF-LIBS = blah, blah, blah. Then I rewrote config.h to look like this: #define USE_MOTIF 1 /* #undef USE_NO_GUI */ #define HAVE_MOTIF 1 #define HAVE_XmToolTipGetLabel 1 #define HAVE_XmCreateMultiList 1 #define HAVE_XmCreateDataField 1 #define HAVE_XmCreateButtonBox 1 #define HAVE_XmCreateTabStack 1 #define HAVE_XmCreateDropDown 1 #define HAVE_XmCreateColumn 1 #define HAVE_XmCreateFontSelector 1 #define HAVE_XmCreateColorSelector 1 #define HAVE_XPM_GET_ERROR_STRING 1 #define HAVE_XPM_CREATE_XPM_IMAGE_FROM_PIXMAP 1 Basically, all these lines are opposite of what they were originally. But when I run make again, the output, while different from before, still hangs. Here's the last bit from make: gcc -c -DLOCALEDIR=\"/usr/local/share/locale\" -DHAVE_CONFIG_H -I. -g -O2 -I/sw/include snd-xxen.c (cd po && make) make[1]: Nothing to be done for `all'. gcc -I. -g -O2 headers.o audio.o io.o sound.o clm.o xen.o vct.o sndlib2xen.o clm2xen.o midi.o snd-io.o snd-utils.o snd-listener.o snd-error.o snd-completion.o snd-menu.o snd-axis.o snd-data.o snd-fft.o snd-marks.o snd-file.o snd-edits.o snd-chn.o snd-dac.o snd-region.o snd-select.o snd-find.o snd-snd.o snd-help.o snd-main.o snd-print.o snd-trans.o snd-mix.o snd.o snd-env.o snd-xen.o snd-ladspa.o snd-rec.o snd-kbd.o snd-sig.o snd-draw.o snd-run.o snd-xutils.o snd-xerror.o snd-xhelp.o snd-xfind.o snd-xmenu.o snd-xdraw.o snd-xlistener.o snd-xchn.o snd-xsnd.o snd-xregion.o snd-xdrop.o snd-xmain.o snd-xmix.o snd-xrec.o snd-xenv.o snd-gxutils.o snd-gxbitmaps.o snd-gxcolormaps.o snd-xfft.o snd-xprint.o snd-xfile.o snd-xxen.o -o snd -L/sw/lib -lguile -lguile-ltdl -lm -L/usr/X11R6/lib -lSM -lICE /sw/lib/libXm.a /usr/X11R6/lib/libXp.a /usr/X11R6/lib/libXt.a -lXext -lXpm -lX11 -framework CoreAudio -framework CoreFoundation -framework CoreMIDI -lm ld: Undefined symbols: __XEditResGet16 __XEditResGet32 __XEditResGet8 __XEditResGetSigned16 __XEditResGetString8 __XEditResGetWidgetInfo __XEditResPut16 __XEditResPut32 __XEditResPut8 __XEditResPutString8 __XEditResPutWidgetInfo __XEditResResetStream make: *** [snd] Error 1 [trurl:/usr/local/snd-7] admin% Are there more locations I need to hack, or am I missing some headers I need to find? Cris ******************************** Cris Ewing CME and Telehealth Web Services University of Washington School of Medicine Work Phone: (206) 685-9116 Home Phone: (206) 365-3413 E-mail: cewing at u.washington.edu ******************************* On Mon, 21 Jun 2004, Bill Schottstaedt wrote: > Somehow your config.h is inconsistent -- I guess > USE_MOTIF did not get set, so it's picking up the > "no GUI" headers, but then for some reason the > makefile is trying to include the Motif files. > If configure didn't find Motif, you can give > it the path with the --with-motif-prefix switch. > > From cewing at u.washington.edu Mon Jun 21 10:22:21 2004 From: cewing at u.washington.edu (cristopher pierson ewing) Date: Mon, 21 Jun 2004 10:22:21 -0700 (PDT) Subject: [CM] SND-7 build errors on OSX In-Reply-To: <7F1B9CF4-C3A6-11D8-A3B4-000A95D1579E@asu.edu> References: <40D6C123.9070200@ccrma> <7F1B9CF4-C3A6-11D8-A3B4-000A95D1579E@asu.edu> Message-ID: Todd, thanks for the info. I keep trying to run the commands you suggest: LDFLAGS="-L/sw/lib" etc, but I get an error: [trurl:/usr/local] admin% LDFLAGS="-L/sw/lib" su: LDFLAGS=-L/sw/lib: Command not found. I'm using tcsh as I am too lazy to switch to bash. Does this change things? why doesn't this command work for me? Any ideas? Thanks a ton, Cris ******************************** Cris Ewing CME and Telehealth Web Services University of Washington School of Medicine Work Phone: (206) 685-9116 Home Phone: (206) 365-3413 E-mail: cewing at u.washington.edu ******************************* On Mon, 21 Jun 2004, todd ingalls wrote: > Cristopher > I have a similar install as you and it seems that this has to do with > Fink putting stuff in non-standard places. Try the following: > > toddingalls$ LDFLAGS="-L/sw/lib" > toddingalls$ export LDFLAGS > toddingalls$ CFLAGS="-I/sw/include" > toddingalls$ export CFLAGS > > or put these in your .profile > > > then run ./configure > > I have attached the makefile and config.h that results from this. > > PS. I have had to do the same thing you did as far as making symbolic > links as the following in /sw/bin so configure could find guile. This I > believe is caused by an error in the way fink installs guile: > > guile -> guile-1.6 > guile-config -> guile-1.6-config > guile-snarf -> guile-1.6-snarf > guile-tools -> guile-1.6-tools > > > > > > From cewing at u.washington.edu Mon Jun 21 10:36:07 2004 From: cewing at u.washington.edu (cristopher pierson ewing) Date: Mon, 21 Jun 2004 10:36:07 -0700 (PDT) Subject: [CM] SND-7 build errors on OSX In-Reply-To: <7F1B9CF4-C3A6-11D8-A3B4-000A95D1579E@asu.edu> References: <40D6C123.9070200@ccrma> <7F1B9CF4-C3A6-11D8-A3B4-000A95D1579E@asu.edu> Message-ID: Todd, sorry for that last post. I've been working on this for so long that I had gotten tired of figuring things out by myself. It turns out that changing from tcsh to bash was in fact the secret to setting those environment variables. the make process is running right now, and seems to be doing better than before. Ooops, spoke to soon. There goes the build. here's the error I get this time, along with the last few lines of output from the build: gcc -c -DLOCALEDIR=\"/usr/local/share/locale\" -DHAVE_CONFIG_H -I. -I/sw/include -I/sw/include snd-xprint.c gcc -c -DLOCALEDIR=\"/usr/local/share/locale\" -DHAVE_CONFIG_H -I. -I/sw/include -I/sw/include snd-xfile.c gcc -c -DLOCALEDIR=\"/usr/local/share/locale\" -DHAVE_CONFIG_H -I. -I/sw/include -I/sw/include snd-xxen.c gcc -c -DLOCALEDIR=\"/usr/local/share/locale\" -DHAVE_CONFIG_H -I. -I/sw/include -I/sw/include xm.c (cd po && make) rm -f de.gmo && : -c --statistics -o de.gmo de.po mv: rename t-de.gmo to de.gmo: No such file or directory make[1]: *** [de.gmo] Error 1 make: *** [snd] Error 2 trurl:/usr/local/snd-7 admin$ Any suggestions on this one, anyone? Cris ******************************** Cris Ewing CME and Telehealth Web Services University of Washington School of Medicine Work Phone: (206) 685-9116 Home Phone: (206) 365-3413 E-mail: cewing at u.washington.edu ******************************* On Mon, 21 Jun 2004, todd ingalls wrote: > Cristopher > I have a similar install as you and it seems that this has to do with > Fink putting stuff in non-standard places. Try the following: > > toddingalls$ LDFLAGS="-L/sw/lib" > toddingalls$ export LDFLAGS > toddingalls$ CFLAGS="-I/sw/include" > toddingalls$ export CFLAGS > > or put these in your .profile > > > then run ./configure > > I have attached the makefile and config.h that results from this. > > PS. I have had to do the same thing you did as far as making symbolic > links as the following in /sw/bin so configure could find guile. This I > believe is caused by an error in the way fink installs guile: > > guile -> guile-1.6 > guile-config -> guile-1.6-config > guile-snarf -> guile-1.6-snarf > guile-tools -> guile-1.6-tools > > > > > > From cewing at u.washington.edu Mon Jun 21 10:43:12 2004 From: cewing at u.washington.edu (cristopher pierson ewing) Date: Mon, 21 Jun 2004 10:43:12 -0700 (PDT) Subject: [CM] SND-7 build errors on OSX In-Reply-To: References: <40D6C123.9070200@ccrma> <7F1B9CF4-C3A6-11D8-A3B4-000A95D1579E@asu.edu> Message-ID: So, I figured the 'de' in that name might be a clue that it was a language internationalization file for german, so I tried compiling with '--disable-nls' and lo-and-behold, the compile process completed, without errors,a nd with only a few warnings toward the end. I'm going to move on to trying to start snd now. Thanks all for help offered. C ******************************** Cris Ewing CME and Telehealth Web Services University of Washington School of Medicine Work Phone: (206) 685-9116 Home Phone: (206) 365-3413 E-mail: cewing at u.washington.edu ******************************* On Mon, 21 Jun 2004, cristopher pierson ewing wrote: > Todd, > > sorry for that last post. I've been working on this for so long that I > had gotten tired of figuring things out by myself. It turns out that > changing from tcsh to bash was in fact the secret to setting those > environment variables. the make process is running right now, and seems to > be doing better than before. > > Ooops, spoke to soon. There goes the build. here's the error I get this > time, along with the last few lines of output from the build: > > gcc -c -DLOCALEDIR=\"/usr/local/share/locale\" -DHAVE_CONFIG_H -I. > -I/sw/include -I/sw/include snd-xprint.c > gcc -c -DLOCALEDIR=\"/usr/local/share/locale\" -DHAVE_CONFIG_H -I. > -I/sw/include -I/sw/include snd-xfile.c > gcc -c -DLOCALEDIR=\"/usr/local/share/locale\" -DHAVE_CONFIG_H -I. > -I/sw/include -I/sw/include snd-xxen.c > gcc -c -DLOCALEDIR=\"/usr/local/share/locale\" -DHAVE_CONFIG_H -I. > -I/sw/include -I/sw/include xm.c > (cd po && make) > rm -f de.gmo && : -c --statistics -o de.gmo de.po > mv: rename t-de.gmo to de.gmo: No such file or directory > make[1]: *** [de.gmo] Error 1 > make: *** [snd] Error 2 > trurl:/usr/local/snd-7 admin$ > > Any suggestions on this one, anyone? > > Cris > > ******************************** > Cris Ewing > CME and Telehealth Web Services > University of Washington > School of Medicine > Work Phone: (206) 685-9116 > Home Phone: (206) 365-3413 > E-mail: cewing at u.washington.edu > ******************************* > > > On Mon, 21 Jun 2004, todd ingalls wrote: > > > Cristopher > > I have a similar install as you and it seems that this has to do with > > Fink putting stuff in non-standard places. Try the following: > > > > toddingalls$ LDFLAGS="-L/sw/lib" > > toddingalls$ export LDFLAGS > > toddingalls$ CFLAGS="-I/sw/include" > > toddingalls$ export CFLAGS > > > > or put these in your .profile > > > > > > then run ./configure > > > > I have attached the makefile and config.h that results from this. > > > > PS. I have had to do the same thing you did as far as making symbolic > > links as the following in /sw/bin so configure could find guile. This I > > believe is caused by an error in the way fink installs guile: > > > > guile -> guile-1.6 > > guile-config -> guile-1.6-config > > guile-snarf -> guile-1.6-snarf > > guile-tools -> guile-1.6-tools > > > > > > > > > > > > > > _______________________________________________ > Cmdist mailing list > Cmdist at ccrma.stanford.edu > http://ccrma-mail.stanford.edu/mailman/listinfo/cmdist > From cewing at u.washington.edu Mon Jun 21 15:25:36 2004 From: cewing at u.washington.edu (cristopher pierson ewing) Date: Mon, 21 Jun 2004 15:25:36 -0700 (PDT) Subject: [CM] error on snd startup Message-ID: Hi, I'm trying to start SND built on a g5 using openmotif3 and guile-1.6.4. When i try running the snd command from a terminal window or from and xterm window i get the following error: trurl:~ cewing$ snd ERROR: Syntax error in fixed argument declaration. The README file in the snd tarball dist says the following: If you're running Guile 1.4 and get: Syntax error in fixed argument declaration. you've hit a use of the newer (Guile 1.5) optargs syntax. To get around this, load fix-optargs.scm before anything else. I'm not running guile 1.4, but I figure what the hell, I'll try anyway, so I run the following: trurl:~ cewing$ snd -l /usr/local/snd-7/fix-optargs.scm ERROR: Syntax error in fixed argument declaration. same error. hmmmmm. Any ideas? C ******************************** Cris Ewing CME and Telehealth Web Services University of Washington School of Medicine Work Phone: (206) 685-9116 Home Phone: (206) 365-3413 E-mail: cewing at u.washington.edu ******************************* From cewing at u.washington.edu Mon Jun 21 16:01:46 2004 From: cewing at u.washington.edu (cristopher pierson ewing) Date: Mon, 21 Jun 2004 16:01:46 -0700 (PDT) Subject: [CM] error on snd startup In-Reply-To: References: Message-ID: So, I've done some more snooping on my own here, and have discovered the following. Running 'snd --version' gives the following: trurl:/usr/local/snd-7 admin$ snd --version This is Snd version 7.5 of 16-Jun-04: Xen: 1.13, Guile: 1.4 Mac OSX audio Sndlib 19.1 (27-Apr-04, int24 samples) CLM 2.53 (14-June-04) FFTW V2.1.5 ($Id: executor.c,v 1.68 2003/03/16 23:43:46 stevenj Exp $) Motif 2.2.2 X11R6 Xpm 3.4.11 with large file support Compiled Jun 21 2004 15:48:56 C: 3.3 20030304 (Apple Computer, Inc. build 1640) configured via: ./configure --with-guile --with-motif --with-static-xm --disable-nls --without-gls It seems that snd is seeing a different version of guile than I thought. Earlier, i had some trouble with fink and so I installed guile 1.4 from source, not using fink. the 'guile' and 'guile-config' executables from this install were in /usr/local/bin, and when I saw this message the first time, I went there and removed them. Now, the only guile-config or guile I have on my machine is in /sw/bin. I have set the environmental variable GUILE_LOAD_PATH to /sw/share/guile/1.6 which is where fink installed it. I have also used the GUILE_CONFIG_path variable as an argument to configure to find the right version. As configure runs, I see the following lines go by: checking for /usr/lib/snd/bin/guile-config... no checking for Guile... 1.6.4 checking for scm_set_smob_apply in -lm... no checking for scm_remember_upto_here in -lm... no checking for scm_make_real in -lm... yes checking for scm_object_to_string in -lm... no checking for scm_num2long_long in -lm... yes checking for scm_num2int in -lm... no checking for scm_c_make_vector in -lm... no checking for scm_c_define in -lm... no checking for scm_c_define_gsubr in -lm... no checking for scm_c_eval_string in -lm... no checking for scm_list_n in -lm... no checking for scm_str2symbol in -lm... no checking for scm_defined_p in -lm... no checking for scm_port_p in -lm... no checking for scm_mem2string in -lm... no checking for scm_continuation_p in -lm... no checking for scm_make_ratio in -lm... no checking for scm_make_complex in -lm... yes checking for scm_c_define_module in -lm... no checking for scm_t_catch_body... no checking for scm_t_guard... no It appears that configure thinks I have guile 1.6.4. The makefile that results shows this: GUILE_LIBS = -L/sw/lib -lguile -lguile-ltdl -lm XM_LIBS = -L/sw/lib -lguile -lguile-ltdl -lm GUILE_CFLAGS = -I/sw/include These directories are all consistent with the build of guile1.6 that I have installed via fink. And yet, when all is said and done, running 'snd --version' still reports that I have GUILE 1.4!!! How can I get rid of all traces of the former installation of guile 1.4 so that snd will build with the proper version? Suggestions? Many thanks in advance, Cris ******************************** Cris Ewing CME and Telehealth Web Services University of Washington School of Medicine Work Phone: (206) 685-9116 Home Phone: (206) 365-3413 E-mail: cewing at u.washington.edu ******************************* On Mon, 21 Jun 2004, cristopher pierson ewing wrote: > Hi, > > I'm trying to start SND built on a g5 using openmotif3 and guile-1.6.4. > > When i try running the snd command from a terminal window or from and > xterm window i get the following error: > > trurl:~ cewing$ snd > ERROR: Syntax error in fixed argument declaration. > > The README file in the snd tarball dist says the following: > > If you're running Guile 1.4 and get: > Syntax error in fixed argument declaration. > you've hit a use of the newer (Guile 1.5) optargs syntax. To get around > this, load fix-optargs.scm before anything else. > > I'm not running guile 1.4, but I figure what the hell, I'll try anyway, so > I run the following: > > trurl:~ cewing$ snd -l /usr/local/snd-7/fix-optargs.scm > ERROR: Syntax error in fixed argument declaration. > > same error. hmmmmm. > > Any ideas? > > C > > > ******************************** > Cris Ewing > CME and Telehealth Web Services > University of Washington > School of Medicine > Work Phone: (206) 685-9116 > Home Phone: (206) 365-3413 > E-mail: cewing at u.washington.edu > ******************************* > > _______________________________________________ > Cmdist mailing list > Cmdist at ccrma.stanford.edu > http://ccrma-mail.stanford.edu/mailman/listinfo/cmdist > From testcase at asu.edu Mon Jun 21 10:14:47 2004 From: testcase at asu.edu (todd ingalls) Date: Mon, 21 Jun 2004 10:14:47 -0700 Subject: [CM] SND-7 build errors on OSX In-Reply-To: References: <40D6C123.9070200@ccrma> Message-ID: <7F1B9CF4-C3A6-11D8-A3B4-000A95D1579E@asu.edu> Cristopher I have a similar install as you and it seems that this has to do with Fink putting stuff in non-standard places. Try the following: toddingalls$ LDFLAGS="-L/sw/lib" toddingalls$ export LDFLAGS toddingalls$ CFLAGS="-I/sw/include" toddingalls$ export CFLAGS or put these in your .profile then run ./configure I have attached the makefile and config.h that results from this. PS. I have had to do the same thing you did as far as making symbolic links as the following in /sw/bin so configure could find guile. This I believe is caused by an error in the way fink installs guile: guile -> guile-1.6 guile-config -> guile-1.6-config guile-snarf -> guile-1.6-snarf guile-tools -> guile-1.6-tools -------------- next part -------------- An embedded and charset-unspecified text was scrubbed... Name: config.h URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: makefile Type: application/octet-stream Size: 2566 bytes Desc: not available URL: -------------- next part -------------- good luck Todd Ingalls Arts, Media and Engineering Program Arizona State University http://ame2.asu.edu/faculty/todd On Jun 21, 2004, at 9:33 AM, cristopher pierson ewing wrote: > I just tried to hack config.h to show that I had motif installed. I > edited makefile, giving the locations of libXm.a etc at the line > MOTIF-LIBS = blah, blah, blah. Then I rewrote config.h to look like > this: > > #define USE_MOTIF 1 > /* #undef USE_NO_GUI */ > #define HAVE_MOTIF 1 > #define HAVE_XmToolTipGetLabel 1 > #define HAVE_XmCreateMultiList 1 > #define HAVE_XmCreateDataField 1 > #define HAVE_XmCreateButtonBox 1 > #define HAVE_XmCreateTabStack 1 > #define HAVE_XmCreateDropDown 1 > #define HAVE_XmCreateColumn 1 > #define HAVE_XmCreateFontSelector 1 > #define HAVE_XmCreateColorSelector 1 > #define HAVE_XPM_GET_ERROR_STRING 1 > #define HAVE_XPM_CREATE_XPM_IMAGE_FROM_PIXMAP 1 > > Basically, all these lines are opposite of what they were originally. > But > when I run make again, the output, while different from before, still > hangs. Here's the last bit from make: > > gcc -c -DLOCALEDIR=\"/usr/local/share/locale\" -DHAVE_CONFIG_H -I. -g > -O2 > -I/sw/include snd-xxen.c > (cd po && make) > make[1]: Nothing to be done for `all'. > gcc -I. -g -O2 headers.o audio.o io.o sound.o clm.o xen.o vct.o > sndlib2xen.o clm2xen.o midi.o snd-io.o snd-utils.o snd-listener.o > snd-error.o snd-completion.o snd-menu.o snd-axis.o snd-data.o snd-fft.o > snd-marks.o snd-file.o snd-edits.o snd-chn.o snd-dac.o snd-region.o > snd-select.o snd-find.o snd-snd.o snd-help.o snd-main.o snd-print.o > snd-trans.o snd-mix.o snd.o snd-env.o snd-xen.o snd-ladspa.o snd-rec.o > snd-kbd.o snd-sig.o snd-draw.o snd-run.o snd-xutils.o snd-xerror.o > snd-xhelp.o snd-xfind.o snd-xmenu.o snd-xdraw.o snd-xlistener.o > snd-xchn.o > snd-xsnd.o snd-xregion.o snd-xdrop.o snd-xmain.o snd-xmix.o snd-xrec.o > snd-xenv.o snd-gxutils.o snd-gxbitmaps.o snd-gxcolormaps.o snd-xfft.o > snd-xprint.o snd-xfile.o snd-xxen.o -o snd -L/sw/lib -lguile > -lguile-ltdl -lm -L/usr/X11R6/lib -lSM -lICE /sw/lib/libXm.a > /usr/X11R6/lib/libXp.a /usr/X11R6/lib/libXt.a -lXext -lXpm -lX11 > -framework CoreAudio -framework CoreFoundation -framework CoreMIDI > -lm > ld: Undefined symbols: > __XEditResGet16 > __XEditResGet32 > __XEditResGet8 > __XEditResGetSigned16 > __XEditResGetString8 > __XEditResGetWidgetInfo > __XEditResPut16 > __XEditResPut32 > __XEditResPut8 > __XEditResPutString8 > __XEditResPutWidgetInfo > __XEditResResetStream > make: *** [snd] Error 1 > [trurl:/usr/local/snd-7] admin% > > Are there more locations I need to hack, or am I missing some headers I > need to find? > > Cris > > ******************************** > Cris Ewing > CME and Telehealth Web Services > University of Washington > School of Medicine > Work Phone: (206) 685-9116 > Home Phone: (206) 365-3413 > E-mail: cewing at u.washington.edu > ******************************* > > > On Mon, 21 Jun 2004, Bill Schottstaedt wrote: > >> Somehow your config.h is inconsistent -- I guess >> USE_MOTIF did not get set, so it's picking up the >> "no GUI" headers, but then for some reason the >> makefile is trying to include the Motif files. >> If configure didn't find Motif, you can give >> it the path with the --with-motif-prefix switch. >> >> > > _______________________________________________ > Cmdist mailing list > Cmdist at ccrma.stanford.edu > http://ccrma-mail.stanford.edu/mailman/listinfo/cmdist > From testcase at asu.edu Mon Jun 21 10:35:57 2004 From: testcase at asu.edu (todd ingalls) Date: Mon, 21 Jun 2004 10:35:57 -0700 Subject: [CM] SND-7 build errors on OSX In-Reply-To: References: <40D6C123.9070200@ccrma> <7F1B9CF4-C3A6-11D8-A3B4-000A95D1579E@asu.edu> Message-ID: <744BD29B-C3A9-11D8-A3B4-000A95D1579E@asu.edu> Ahh, sorry. I am using bash as my shell. Try this: [malab:~/Desktop/snd-7] toddinga% setenv LDFLAGS "-L/sw/lib" [malab:~/Desktop/snd-7] toddinga% setenv CFLAGS "-I/sw/include" does this work? On Jun 21, 2004, at 10:22 AM, cristopher pierson ewing wrote: > Todd, > > thanks for the info. I keep trying to run the commands you suggest: > LDFLAGS="-L/sw/lib" etc, but I get an error: > > [trurl:/usr/local] admin% LDFLAGS="-L/sw/lib" > su: LDFLAGS=-L/sw/lib: Command not found. > > I'm using tcsh as I am too lazy to switch to bash. Does this change > things? why doesn't this command work for me? Any ideas? > > Thanks a ton, > > Cris > > > ******************************** > Cris Ewing > CME and Telehealth Web Services > University of Washington > School of Medicine > Work Phone: (206) 685-9116 > Home Phone: (206) 365-3413 > E-mail: cewing at u.washington.edu > ******************************* > > > On Mon, 21 Jun 2004, todd ingalls wrote: > >> Cristopher >> I have a similar install as you and it seems that this has to do with >> Fink putting stuff in non-standard places. Try the following: >> >> toddingalls$ LDFLAGS="-L/sw/lib" >> toddingalls$ export LDFLAGS >> toddingalls$ CFLAGS="-I/sw/include" >> toddingalls$ export CFLAGS >> >> or put these in your .profile >> >> >> then run ./configure >> >> I have attached the makefile and config.h that results from this. >> >> PS. I have had to do the same thing you did as far as making symbolic >> links as the following in /sw/bin so configure could find guile. This >> I >> believe is caused by an error in the way fink installs guile: >> >> guile -> guile-1.6 >> guile-config -> guile-1.6-config >> guile-snarf -> guile-1.6-snarf >> guile-tools -> guile-1.6-tools >> >> >> >> >> >> From testcase at asu.edu Mon Jun 21 10:42:40 2004 From: testcase at asu.edu (todd ingalls) Date: Mon, 21 Jun 2004 10:42:40 -0700 Subject: [CM] SND-7 build errors on OSX In-Reply-To: References: <40D6C123.9070200@ccrma> <7F1B9CF4-C3A6-11D8-A3B4-000A95D1579E@asu.edu> Message-ID: <64A29C0D-C3AA-11D8-A3B4-000A95D1579E@asu.edu> I have never encountered this, but something sure doesn't look right. I get the following gcc -c -DLOCALEDIR=\"/usr/local/share/locale\" -DHAVE_CONFIG_H -I. -I/sw/include -I/usr/X11R6/include snd-xprint.c in your make file does this line appear? MOTIF_FLAGS = -I/usr/X11R6/include On Jun 21, 2004, at 10:36 AM, cristopher pierson ewing wrote: > Todd, > > sorry for that last post. I've been working on this for so long that I > had gotten tired of figuring things out by myself. It turns out that > changing from tcsh to bash was in fact the secret to setting those > environment variables. the make process is running right now, and > seems to > be doing better than before. > > Ooops, spoke to soon. There goes the build. here's the error I get > this > time, along with the last few lines of output from the build: > > gcc -c -DLOCALEDIR=\"/usr/local/share/locale\" -DHAVE_CONFIG_H -I. > -I/sw/include -I/sw/include snd-xprint.c > gcc -c -DLOCALEDIR=\"/usr/local/share/locale\" -DHAVE_CONFIG_H -I. > -I/sw/include -I/sw/include snd-xfile.c > gcc -c -DLOCALEDIR=\"/usr/local/share/locale\" -DHAVE_CONFIG_H -I. > -I/sw/include -I/sw/include snd-xxen.c > gcc -c -DLOCALEDIR=\"/usr/local/share/locale\" -DHAVE_CONFIG_H -I. > -I/sw/include -I/sw/include xm.c > (cd po && make) > rm -f de.gmo && : -c --statistics -o de.gmo de.po > mv: rename t-de.gmo to de.gmo: No such file or directory > make[1]: *** [de.gmo] Error 1 > make: *** [snd] Error 2 > trurl:/usr/local/snd-7 admin$ > > Any suggestions on this one, anyone? > > Cris > > ******************************** > Cris Ewing > CME and Telehealth Web Services > University of Washington > School of Medicine > Work Phone: (206) 685-9116 > Home Phone: (206) 365-3413 > E-mail: cewing at u.washington.edu > ******************************* > > > On Mon, 21 Jun 2004, todd ingalls wrote: > >> Cristopher >> I have a similar install as you and it seems that this has to do with >> Fink putting stuff in non-standard places. Try the following: >> >> toddingalls$ LDFLAGS="-L/sw/lib" >> toddingalls$ export LDFLAGS >> toddingalls$ CFLAGS="-I/sw/include" >> toddingalls$ export CFLAGS >> >> or put these in your .profile >> >> >> then run ./configure >> >> I have attached the makefile and config.h that results from this. >> >> PS. I have had to do the same thing you did as far as making symbolic >> links as the following in /sw/bin so configure could find guile. This >> I >> believe is caused by an error in the way fink installs guile: >> >> guile -> guile-1.6 >> guile-config -> guile-1.6-config >> guile-snarf -> guile-1.6-snarf >> guile-tools -> guile-1.6-tools >> >> >> >> >> >> From testcase at asu.edu Mon Jun 21 10:44:56 2004 From: testcase at asu.edu (todd ingalls) Date: Mon, 21 Jun 2004 10:44:56 -0700 Subject: [CM] SND-7 build errors on OSX In-Reply-To: References: <40D6C123.9070200@ccrma> <7F1B9CF4-C3A6-11D8-A3B4-000A95D1579E@asu.edu> Message-ID: OK. If you have any more problems email me off list and we can let Bill know of anything we have found. On Jun 21, 2004, at 10:43 AM, cristopher pierson ewing wrote: > So, I figured the 'de' in that name might be a clue that it was a > language > internationalization file for german, so I tried compiling with > '--disable-nls' and lo-and-behold, the compile process completed, > without > errors,a nd with only a few warnings toward the end. I'm going to move > on to trying to start snd now. > > Thanks all for help offered. > > C > > ******************************** > Cris Ewing > CME and Telehealth Web Services > University of Washington > School of Medicine > Work Phone: (206) 685-9116 > Home Phone: (206) 365-3413 > E-mail: cewing at u.washington.edu > ******************************* > > > On Mon, 21 Jun 2004, cristopher pierson ewing wrote: > >> Todd, >> >> sorry for that last post. I've been working on this for so long that >> I >> had gotten tired of figuring things out by myself. It turns out that >> changing from tcsh to bash was in fact the secret to setting those >> environment variables. the make process is running right now, and >> seems to >> be doing better than before. >> >> Ooops, spoke to soon. There goes the build. here's the error I get >> this >> time, along with the last few lines of output from the build: >> >> gcc -c -DLOCALEDIR=\"/usr/local/share/locale\" -DHAVE_CONFIG_H -I. >> -I/sw/include -I/sw/include snd-xprint.c >> gcc -c -DLOCALEDIR=\"/usr/local/share/locale\" -DHAVE_CONFIG_H -I. >> -I/sw/include -I/sw/include snd-xfile.c >> gcc -c -DLOCALEDIR=\"/usr/local/share/locale\" -DHAVE_CONFIG_H -I. >> -I/sw/include -I/sw/include snd-xxen.c >> gcc -c -DLOCALEDIR=\"/usr/local/share/locale\" -DHAVE_CONFIG_H -I. >> -I/sw/include -I/sw/include xm.c >> (cd po && make) >> rm -f de.gmo && : -c --statistics -o de.gmo de.po >> mv: rename t-de.gmo to de.gmo: No such file or directory >> make[1]: *** [de.gmo] Error 1 >> make: *** [snd] Error 2 >> trurl:/usr/local/snd-7 admin$ >> >> Any suggestions on this one, anyone? >> >> Cris >> >> ******************************** >> Cris Ewing >> CME and Telehealth Web Services >> University of Washington >> School of Medicine >> Work Phone: (206) 685-9116 >> Home Phone: (206) 365-3413 >> E-mail: cewing at u.washington.edu >> ******************************* >> >> >> On Mon, 21 Jun 2004, todd ingalls wrote: >> >>> Cristopher >>> I have a similar install as you and it seems that this has to do with >>> Fink putting stuff in non-standard places. Try the following: >>> >>> toddingalls$ LDFLAGS="-L/sw/lib" >>> toddingalls$ export LDFLAGS >>> toddingalls$ CFLAGS="-I/sw/include" >>> toddingalls$ export CFLAGS >>> >>> or put these in your .profile >>> >>> >>> then run ./configure >>> >>> I have attached the makefile and config.h that results from this. >>> >>> PS. I have had to do the same thing you did as far as making symbolic >>> links as the following in /sw/bin so configure could find guile. >>> This I >>> believe is caused by an error in the way fink installs guile: >>> >>> guile -> guile-1.6 >>> guile-config -> guile-1.6-config >>> guile-snarf -> guile-1.6-snarf >>> guile-tools -> guile-1.6-tools >>> >>> >>> >>> >>> >>> >> >> _______________________________________________ >> Cmdist mailing list >> Cmdist at ccrma.stanford.edu >> http://ccrma-mail.stanford.edu/mailman/listinfo/cmdist >> From bil at ccrma.Stanford.EDU Tue Jun 22 04:37:39 2004 From: bil at ccrma.Stanford.EDU (Bill Schottstaedt) Date: Tue, 22 Jun 2004 04:37:39 -0700 Subject: [CM] error on snd startup In-Reply-To: References: Message-ID: <40D81A03.70202@ccrma> If you're using a version of Snd that's more than a couple days old (I think you are), you need to make clean after you run configure. In the current version, any change to config.h causes everything to be recompiled. I don't know if OSX has ldd -- maybe there's some equivalent -- in Linux, ldd snd will tell you what (shared?) libraries are being loaded. In Snd, (version) will report the Guile version, which should match the "help" info. I'll add some variable to handle the guile-1.6 business. > trurl:~ cewing$ snd -l /usr/local/snd-7/fix-optargs.scm > ERROR: Syntax error in fixed argument declaration. This could happen if your ~/.snd file uses define* -- try snd -noinit I think you can set the CFLAGS and LDFLAGS variables in the arguments to configure, rather than using setenv. > ld: Undefined symbols: > __XEditResGet16 You must have defined HAVE_EDITRES. From cewing at u.washington.edu Tue Jun 22 09:19:57 2004 From: cewing at u.washington.edu (cristopher pierson ewing) Date: Tue, 22 Jun 2004 09:19:57 -0700 (PDT) Subject: [CM] error on snd startup In-Reply-To: <40D81A03.70202@ccrma> References: <40D81A03.70202@ccrma> Message-ID: Bill, I'm still having the trouble with guile 1.4 vs. guile 1.6.4 this morning. I have removed all directories and files associated with the intall of guile 1.4 that I could find on the machine. When I run compile i set GUILE_CONFIG_path to /sw/bin, which is where the executable guile-config lives (guile-config is a symbolic link to guile-1.6-config, which is what fink created when it installed guile 1.6). When the config process is running, I see a line that says it is looking for guile, and then reports 'Guile 1.6.4' which is also what I get when I run 'guile-config --version'. After configuration i look in the makefile and the paths given for the guile libs and flags are all pointing to /sw/lib and /sw/bin and /sw/include, which seems right, as this is where guile 1.6 lives. I run make clean and then make install and all the .c files recompile. The final result seems to have been successful. I get an snd command in /usr/local/bin, but when i try to run it, that same 'Syntax error in fixed argument declaration' error shows up, and when I run 'snd --version' it reports that the guile version being used is 1.4. How can I get the snd configuration and make process to see the correct guile installation? Where is it even finding this guile 1.4? There are no more places where that installation lives on the machine. Can anyone help with this? C ******************************** Cris Ewing CME and Telehealth Web Services University of Washington School of Medicine Work Phone: (206) 685-9116 Home Phone: (206) 365-3413 E-mail: cewing at u.washington.edu ******************************* On Tue, 22 Jun 2004, Bill Schottstaedt wrote: > If you're using a version of Snd that's more than a couple days > old (I think you are), you need to > > make clean > > after you run configure. In the current version, any change > to config.h causes everything to be recompiled. I don't know > if OSX has ldd -- maybe there's some equivalent -- in Linux, > > ldd snd > > will tell you what (shared?) libraries are being loaded. > In Snd, (version) will report the Guile version, which > should match the "help" info. > > I'll add some variable to handle the guile-1.6 business. > > > > trurl:~ cewing$ snd -l /usr/local/snd-7/fix-optargs.scm > > ERROR: Syntax error in fixed argument declaration. > > This could happen if your ~/.snd file uses define* -- try > snd -noinit > > I think you can set the CFLAGS and LDFLAGS variables in the > arguments to configure, rather than using setenv. > > > ld: Undefined symbols: > > __XEditResGet16 > > You must have defined HAVE_EDITRES. > > > _______________________________________________ > Cmdist mailing list > Cmdist at ccrma.stanford.edu > http://ccrma-mail.stanford.edu/mailman/listinfo/cmdist > From cewing at u.washington.edu Tue Jun 22 10:07:40 2004 From: cewing at u.washington.edu (cristopher pierson ewing) Date: Tue, 22 Jun 2004 10:07:40 -0700 (PDT) Subject: [CM] error on snd startup In-Reply-To: References: <40D81A03.70202@ccrma> Message-ID: Bill et al, Okay. So I did find another location where guile 1.4 was hiding. It was in /usr/local/share/guile/1.4 (I swear I didn't put it there!). I killed that and retried, no luck, but a different error message. I started looking through fink again just 'cuz I was tired of this all, and discovered that there is a guile16-dev package that I hadn't installed. I figured what the heck, couldn't hurt, so I installed that package and retried the snd compile and BAM! it works. Thanks for all who offered advice on the problems of the last few days, and good luck to anyone else looking to install in OS X. It's a fun road, but totally worth it in the end. Thanks, C ******************************** Cris Ewing CME and Telehealth Web Services University of Washington School of Medicine Work Phone: (206) 685-9116 Home Phone: (206) 365-3413 E-mail: cewing at u.washington.edu ******************************* On Tue, 22 Jun 2004, cristopher pierson ewing wrote: > Bill, > > I'm still having the trouble with guile 1.4 vs. guile 1.6.4 this morning. > I have removed all directories and files associated with the intall of > guile 1.4 that I could find on the machine. When I run compile i set > GUILE_CONFIG_path to /sw/bin, which is where the executable guile-config > lives (guile-config is a symbolic link to guile-1.6-config, which is what > fink created when it installed guile 1.6). When the config process is > running, I see a line that says it is looking for guile, and then reports > 'Guile 1.6.4' which is also what I get when I run 'guile-config > --version'. After configuration i look in the makefile and the paths > given for the guile libs and flags are all pointing to /sw/lib and > /sw/bin and /sw/include, which seems right, as this is where guile 1.6 > lives. I run make clean and then make install and all the .c files > recompile. The final result seems to have been successful. I get an snd > command in /usr/local/bin, but when i try to run it, that same 'Syntax > error in fixed argument declaration' error shows up, and when I run 'snd > --version' it reports that the guile version being used is 1.4. > > How can I get the snd configuration and make process to see the correct > guile installation? Where is it even finding this guile 1.4? There are > no more places where that installation lives on the machine. > > Can anyone help with this? > > C > > ******************************** > Cris Ewing > CME and Telehealth Web Services > University of Washington > School of Medicine > Work Phone: (206) 685-9116 > Home Phone: (206) 365-3413 > E-mail: cewing at u.washington.edu > ******************************* > > > On Tue, 22 Jun 2004, Bill Schottstaedt wrote: > > > If you're using a version of Snd that's more than a couple days > > old (I think you are), you need to > > > > make clean > > > > after you run configure. In the current version, any change > > to config.h causes everything to be recompiled. I don't know > > if OSX has ldd -- maybe there's some equivalent -- in Linux, > > > > ldd snd > > > > will tell you what (shared?) libraries are being loaded. > > In Snd, (version) will report the Guile version, which > > should match the "help" info. > > > > I'll add some variable to handle the guile-1.6 business. > > > > > > > trurl:~ cewing$ snd -l /usr/local/snd-7/fix-optargs.scm > > > ERROR: Syntax error in fixed argument declaration. > > > > This could happen if your ~/.snd file uses define* -- try > > snd -noinit > > > > I think you can set the CFLAGS and LDFLAGS variables in the > > arguments to configure, rather than using setenv. > > > > > ld: Undefined symbols: > > > __XEditResGet16 > > > > You must have defined HAVE_EDITRES. > > > > > > _______________________________________________ > > Cmdist mailing list > > Cmdist at ccrma.stanford.edu > > http://ccrma-mail.stanford.edu/mailman/listinfo/cmdist > > > > _______________________________________________ > Cmdist mailing list > Cmdist at ccrma.stanford.edu > http://ccrma-mail.stanford.edu/mailman/listinfo/cmdist > From cewing at u.washington.edu Tue Jun 22 13:20:51 2004 From: cewing at u.washington.edu (cristopher pierson ewing) Date: Tue, 22 Jun 2004 13:20:51 -0700 (PDT) Subject: [CM] error on snd startup In-Reply-To: <778f79db.548b0c46.81d8100@expms6.cites.uiuc.edu> References: <778f79db.548b0c46.81d8100@expms6.cites.uiuc.edu> Message-ID: Rick, I'd be happy to. I'm going to do a fresh install from the start on my own machine at home and will document the process. That way I'll remember it all and not include all the mis-steps I took while doing this one. It should be a day or two before I can get it done. C ******************************** Cris Ewing CME and Telehealth Web Services University of Washington School of Medicine Work Phone: (206) 685-9116 Home Phone: (206) 365-3413 E-mail: cewing at u.washington.edu ******************************* On Tue, 22 Jun 2004 taube at uiuc.edu wrote: > chris -- perhaps you would consider writing/updating all the steps necessary to > get a working snd/osx/motif/fink/guile install running so that others (like > me...) can avoid the same problems? > > >Thanks for all who offered > >advice on the problems of the last few days, and good luck to anyone else > >looking to install in OS X. It's a fun road, but totally worth it in the > >end. > > > >Thanks, > > > >C > > > >******************************** > >Cris Ewing > >CME and Telehealth Web Services > >University of Washington > >School of Medicine > >Work Phone: (206) 685-9116 > >Home Phone: (206) 365-3413 > >E-mail: cewing at u.washington.edu > >******************************* > > > > > >On Tue, 22 Jun 2004, cristopher pierson ewing wrote: > > > >> Bill, > >> > >> I'm still having the trouble with guile 1.4 vs. guile 1.6.4 this morning. > >> I have removed all directories and files associated with the intall of > >> guile 1.4 that I could find on the machine. When I run compile i set > >> GUILE_CONFIG_path to /sw/bin, which is where the executable guile-config > >> lives (guile-config is a symbolic link to guile-1.6-config, which is what > >> fink created when it installed guile 1.6). When the config process is > >> running, I see a line that says it is looking for guile, and then reports > >> 'Guile 1.6.4' which is also what I get when I run 'guile-config > >> --version'. After configuration i look in the makefile and the paths > >> given for the guile libs and flags are all pointing to /sw/lib and > >> /sw/bin and /sw/include, which seems right, as this is where guile 1.6 > >> lives. I run make clean and then make install and all the .c files > >> recompile. The final result seems to have been successful. I get an snd > >> command in /usr/local/bin, but when i try to run it, that same 'Syntax > >> error in fixed argument declaration' error shows up, and when I run 'snd > >> --version' it reports that the guile version being used is 1.4. > >> > >> How can I get the snd configuration and make process to see the correct > >> guile installation? Where is it even finding this guile 1.4? There are > >> no more places where that installation lives on the machine. > >> > >> Can anyone help with this? > >> > >> C > >> > >> ******************************** > >> Cris Ewing > >> CME and Telehealth Web Services > >> University of Washington > >> School of Medicine > >> Work Phone: (206) 685-9116 > >> Home Phone: (206) 365-3413 > >> E-mail: cewing at u.washington.edu > >> ******************************* > >> > >> > >> On Tue, 22 Jun 2004, Bill Schottstaedt wrote: > >> > >> > If you're using a version of Snd that's more than a couple days > >> > old (I think you are), you need to > >> > > >> > make clean > >> > > >> > after you run configure. In the current version, any change > >> > to config.h causes everything to be recompiled. I don't know > >> > if OSX has ldd -- maybe there's some equivalent -- in Linux, > >> > > >> > ldd snd > >> > > >> > will tell you what (shared?) libraries are being loaded. > >> > In Snd, (version) will report the Guile version, which > >> > should match the "help" info. > >> > > >> > I'll add some variable to handle the guile-1.6 business. > >> > > >> > > >> > > trurl:~ cewing$ snd -l /usr/local/snd-7/fix-optargs.scm > >> > > ERROR: Syntax error in fixed argument declaration. > >> > > >> > This could happen if your ~/.snd file uses define* -- try > >> > snd -noinit > >> > > >> > I think you can set the CFLAGS and LDFLAGS variables in the > >> > arguments to configure, rather than using setenv. > >> > > >> > > ld: Undefined symbols: > >> > > __XEditResGet16 > >> > > >> > You must have defined HAVE_EDITRES. > >> > > >> > > >> > _______________________________________________ > >> > Cmdist mailing list > >> > Cmdist at ccrma.stanford.edu > >> > http://ccrma-mail.stanford.edu/mailman/listinfo/cmdist > >> > > >> > >> _______________________________________________ > >> Cmdist mailing list > >> Cmdist at ccrma.stanford.edu > >> http://ccrma-mail.stanford.edu/mailman/listinfo/cmdist > >> > > > >_______________________________________________ > >Cmdist mailing list > >Cmdist at ccrma.stanford.edu > >http://ccrma-mail.stanford.edu/mailman/listinfo/cmdist > From cewing at u.washington.edu Tue Jun 22 15:19:08 2004 From: cewing at u.washington.edu (cristopher pierson ewing) Date: Tue, 22 Jun 2004 15:19:08 -0700 (PDT) Subject: [CM] mark-explode Message-ID: So, The main reason i installed snd (aside from the coolness factor of being able to say I did it ;) ) was so that I could automate a project I have for work. I have about 100 or so 1/2 hr soundfiles recorded from continuing medical education conferences that I need to split into chunks. Each chunk will go with a single slide in web-based Flash presentations that my bosses will sell to doctors everywhere. I'm the only guy here, and they need me to finish the job sometime before hell freezes over, so I'm looking to be able to automate the process. I figured that in snd I could just drop markers at the beginning and end of a soundfile and at each breakpoint in between and then run (mark-explode) and it would render out a bunch of itty-bitty files suitable for my purposes. I've been running some tests today (after spending an hour or two turning the window purple and orange) and have gotten an error. There's not a lot of explanation for usage for (mark-explode) so I'm hoping someone can help me figure out what I've done wrong. I've set five marks in a small file. Evaluating (marks 0 0) in the listener gives the following: >(marks 0 0) (0 1 2 3 4) > and (describe-mark 1) gives this: >(describe-mark 1) ((mark 1 sound 0 "koconnor-03.aif" channel 0) 485654) > So I know I have the marks there. Next I try to run (mark-explode) >(mark-explode) array->file: wrong-type-arg: Wrong type argument in position 2 (expecting "a vct"): #f "/Users/cewing/snd-7/marks.scm": line 337 >wrong-type-arg > I'm brand new to scheme, so I'm not really sure what is happening here. Any ideas out there? Thanks (Oh and by the way, snooping into marks.scm and the mark-explode function leads mme to believe that the output files will be of type snd. Is there a way to change this so that they are .aif files? My encoding software is much happier with aifs that with sun-next style snd files) C ******************************** Cris Ewing CME and Telehealth Web Services University of Washington School of Medicine Work Phone: (206) 685-9116 Home Phone: (206) 365-3413 E-mail: cewing at u.washington.edu ******************************* From taube at uiuc.edu Tue Jun 22 10:36:51 2004 From: taube at uiuc.edu (taube at uiuc.edu) Date: Tue, 22 Jun 2004 12:36:51 -0500 Subject: [CM] error on snd startup Message-ID: <778f79db.548b0c46.81d8100@expms6.cites.uiuc.edu> chris -- perhaps you would consider writing/updating all the steps necessary to get a working snd/osx/motif/fink/guile install running so that others (like me...) can avoid the same problems? >Thanks for all who offered >advice on the problems of the last few days, and good luck to anyone else >looking to install in OS X. It's a fun road, but totally worth it in the >end. > >Thanks, > >C > >******************************** >Cris Ewing >CME and Telehealth Web Services >University of Washington >School of Medicine >Work Phone: (206) 685-9116 >Home Phone: (206) 365-3413 >E-mail: cewing at u.washington.edu >******************************* > > >On Tue, 22 Jun 2004, cristopher pierson ewing wrote: > >> Bill, >> >> I'm still having the trouble with guile 1.4 vs. guile 1.6.4 this morning. >> I have removed all directories and files associated with the intall of >> guile 1.4 that I could find on the machine. When I run compile i set >> GUILE_CONFIG_path to /sw/bin, which is where the executable guile-config >> lives (guile-config is a symbolic link to guile-1.6-config, which is what >> fink created when it installed guile 1.6). When the config process is >> running, I see a line that says it is looking for guile, and then reports >> 'Guile 1.6.4' which is also what I get when I run 'guile-config >> --version'. After configuration i look in the makefile and the paths >> given for the guile libs and flags are all pointing to /sw/lib and >> /sw/bin and /sw/include, which seems right, as this is where guile 1.6 >> lives. I run make clean and then make install and all the .c files >> recompile. The final result seems to have been successful. I get an snd >> command in /usr/local/bin, but when i try to run it, that same 'Syntax >> error in fixed argument declaration' error shows up, and when I run 'snd >> --version' it reports that the guile version being used is 1.4. >> >> How can I get the snd configuration and make process to see the correct >> guile installation? Where is it even finding this guile 1.4? There are >> no more places where that installation lives on the machine. >> >> Can anyone help with this? >> >> C >> >> ******************************** >> Cris Ewing >> CME and Telehealth Web Services >> University of Washington >> School of Medicine >> Work Phone: (206) 685-9116 >> Home Phone: (206) 365-3413 >> E-mail: cewing at u.washington.edu >> ******************************* >> >> >> On Tue, 22 Jun 2004, Bill Schottstaedt wrote: >> >> > If you're using a version of Snd that's more than a couple days >> > old (I think you are), you need to >> > >> > make clean >> > >> > after you run configure. In the current version, any change >> > to config.h causes everything to be recompiled. I don't know >> > if OSX has ldd -- maybe there's some equivalent -- in Linux, >> > >> > ldd snd >> > >> > will tell you what (shared?) libraries are being loaded. >> > In Snd, (version) will report the Guile version, which >> > should match the "help" info. >> > >> > I'll add some variable to handle the guile-1.6 business. >> > >> > >> > > trurl:~ cewing$ snd -l /usr/local/snd-7/fix-optargs.scm >> > > ERROR: Syntax error in fixed argument declaration. >> > >> > This could happen if your ~/.snd file uses define* -- try >> > snd -noinit >> > >> > I think you can set the CFLAGS and LDFLAGS variables in the >> > arguments to configure, rather than using setenv. >> > >> > > ld: Undefined symbols: >> > > __XEditResGet16 >> > >> > You must have defined HAVE_EDITRES. >> > >> > >> > _______________________________________________ >> > Cmdist mailing list >> > Cmdist at ccrma.stanford.edu >> > http://ccrma-mail.stanford.edu/mailman/listinfo/cmdist >> > >> >> _______________________________________________ >> Cmdist mailing list >> Cmdist at ccrma.stanford.edu >> http://ccrma-mail.stanford.edu/mailman/listinfo/cmdist >> > >_______________________________________________ >Cmdist mailing list >Cmdist at ccrma.stanford.edu >http://ccrma-mail.stanford.edu/mailman/listinfo/cmdist From bil at ccrma.Stanford.EDU Wed Jun 23 04:10:00 2004 From: bil at ccrma.Stanford.EDU (Bill Schottstaedt) Date: Wed, 23 Jun 2004 04:10:00 -0700 Subject: [CM] error on snd startup In-Reply-To: References: <40D81A03.70202@ccrma> Message-ID: <40D96508.7020602@ccrma> I added two variables to the configure script: GUILE_CONFIG_name and GUILE_name; these can be just like GUILE_CONFIG_path. So the configuration invocation for OSX/fink might be ./configure CFLAGS="-I/sw/include" LDFLAGS="-L/sw/lib" GUILE_CONFIG_path=/sw/bin \ GUILE_CONFIG_name=guile-1.6-config GUILE_name=guile-1.6 --disable-nls \ --with-guile --with-motif --with-motif-prefix=/sw or maybe: ./configure CFLAGS="-I/sw/include" LDFLAGS="-L/sw/lib -lmx -bind_at_load" \ GUILE_CONFIG_path=/sw/bin GUILE_CONFIG_name=guile-1.6-config GUILE_name=guile-1.6 \ --disable-nls --with-guile --with-motif --with-motif-prefix=/sw I'm not sure how to trace the load process in OSX. Also you can look at the 'About Snd' help menu item to see what directory Guile thinks it lives in -- this might help track down the hidden versions problem. Please let me know how it goes, and I'll update README.Snd. From bil at ccrma.Stanford.EDU Wed Jun 23 04:57:59 2004 From: bil at ccrma.Stanford.EDU (Bill Schottstaedt) Date: Wed, 23 Jun 2004 04:57:59 -0700 Subject: [CM] mark-explode In-Reply-To: References: Message-ID: <40D97047.9080203@ccrma> I'll check the #f-where-vct-should-be bug later today; on the output header type, it's currently using array->file which just uses the CLM default output type. I'll write a version that lets you set the header type. From cewing at u.washington.edu Wed Jun 23 09:44:08 2004 From: cewing at u.washington.edu (cristopher pierson ewing) Date: Wed, 23 Jun 2004 09:44:08 -0700 (PDT) Subject: [CM] mark-explode In-Reply-To: <40D97047.9080203@ccrma> References: <40D97047.9080203@ccrma> Message-ID: Bill, Another case of user error. Sorry. I have been using a program where I needed to place markers at sample 0 and at the last sample so that I could export the regions divided by the markers. Apparently in snd the first marker I need is at the first breakpoint in the big file. If i don't put a marker at 0 it works just fine. So that just leaves the issue of the soundfile output format. Can I change the default clm soundfile type? I know when I'm using clm I can do it in the configuration file, what about here? Thanks Cris ******************************** Cris Ewing CME and Telehealth Web Services University of Washington School of Medicine Work Phone: (206) 685-9116 Home Phone: (206) 365-3413 E-mail: cewing at u.washington.edu ******************************* On Wed, 23 Jun 2004, Bill Schottstaedt wrote: > I'll check the #f-where-vct-should-be bug later today; > on the output header type, it's currently using array->file > which just uses the CLM default output type. I'll write > a version that lets you set the header type. > > _______________________________________________ > Cmdist mailing list > Cmdist at ccrma.stanford.edu > http://ccrma-mail.stanford.edu/mailman/listinfo/cmdist > From cewing at u.washington.edu Wed Jun 23 09:50:42 2004 From: cewing at u.washington.edu (cristopher pierson ewing) Date: Wed, 23 Jun 2004 09:50:42 -0700 (PDT) Subject: [CM] SND playback ick on OSX Message-ID: Hi all, my snd installation woes are over, now begins the real fun. I'm playing back soundfiles in SND and experiencing a kind of hesitiation-type effect, where at a certain periodicity the playback of the file will start to hiccup rapidly and then return to normal. It sounds a little bit like a cd skip where the same bit of sound gets played 20 or 30 times and then playback moves on, but the repeated bits of sound are very short. Any ideas what this might be about? Any suggestions on fixing it? Thanks, Cris ******************************** Cris Ewing CME and Telehealth Web Services University of Washington School of Medicine Work Phone: (206) 685-9116 Home Phone: (206) 365-3413 E-mail: cewing at u.washington.edu ******************************* From cewing at u.washington.edu Wed Jun 23 10:52:46 2004 From: cewing at u.washington.edu (cristopher pierson ewing) Date: Wed, 23 Jun 2004 10:52:46 -0700 (PDT) Subject: [CM] Hacking mark-explode Message-ID: Okay, I figured out how to change the output file type and I've rewritten mark-explode in my copy of marks.scm to write out filenames ending in aif. Now I'd like to hack it a bit further so that I can have the names of the output files be based on the name of the input file. In other words, a file name my-sound.aif, with 10 marks in it, will result in output files named my-sound-0.aif, my-sound-1.aif, . . ., my-sound-9.aif. In fact, I think it'd be nifty if I could have it so that the sound output type was set according to the type of the input file, .snd would write .snd files, .aif would write .aif files, etc. Maybe it would be cool to have an optional argument that would over-ride this behavior in the case that you wanted to write out files in a different format than the original. I can write the switches and the name extraction code myself for this, in fact, it'd be a good excercise in learning scheme, but I'm unsure how to get at the data for the soundfile. The code for (mark-explode) doesn't take any arguments, and yet it finds the marks in the audiofile. How is this magic performed? learning slowly but surely, Cris ******************************** Cris Ewing CME and Telehealth Web Services University of Washington School of Medicine Work Phone: (206) 685-9116 Home Phone: (206) 365-3413 E-mail: cewing at u.washington.edu ******************************* From cewing at u.washington.edu Wed Jun 23 12:19:35 2004 From: cewing at u.washington.edu (cristopher pierson ewing) Date: Wed, 23 Jun 2004 12:19:35 -0700 (PDT) Subject: [CM] mark-explode modifications Message-ID: So here's my stab at the facility of naming exploded sounds after the original sound they were created from: ;;;------find-char (define (find-char string char) (do ((position 0) (i 0 (+ i 1))) ((= i (string-length string)) position) (if (char=? char (string-ref string i)) (set! position i)))) ;;;------trim-name (define (trim-name name) (let ((start 0) (end (find-char name #\.))) (substring name start end))) ;;; -------- mark-explode ;;; ;;; write out each section of a file between marks as a separate file (define (mark-explode snd) "(mark-explode) splits a sound into a bunch of sounds based on mark placements" (let ((start 0) (file-ctr 0) (name (trim-name (short-file-name snd)))) (for-each (lambda (mark) (let ((len (- (mark-sample mark) start))) (array->file (format #f "~A-~D.aif" name file-ctr) (channel->vct start len) len (srate) 1) (set! file-ctr (1+ file-ctr)) (set! start (mark-sample mark)))) (caar (marks))))) I'll try later to work on the problem of choosing an output file type according to the input file type. Can one set (default-output-type) from inside a let statement so that it returns to normal after the let closes and normal scope is returned? I'll try to find out. C ******************************** Cris Ewing CME and Telehealth Web Services University of Washington School of Medicine Work Phone: (206) 685-9116 Home Phone: (206) 365-3413 E-mail: cewing at u.washington.edu ******************************* From cewing at u.washington.edu Wed Jun 23 12:23:50 2004 From: cewing at u.washington.edu (cristopher pierson ewing) Date: Wed, 23 Jun 2004 12:23:50 -0700 (PDT) Subject: [CM] dac-size limit? Message-ID: Hi there, I figured out that my choppy file playback might be due to the default setting of dac-size, which appears to be 64. I've been trying to set it to a higher power-of-two value (2048 or 4096), but it doesn't ever go higher than 256: >(dac-size) 64 >(set! (dac-size) 4096) 256 >(set! (dac-size) 2048) 256 > Any ideas if this is a hard ceiling or if there is a way I'm not seeing to get it higher than that? Even at 256 playback is choppy and gross. Cris ******************************** Cris Ewing CME and Telehealth Web Services University of Washington School of Medicine Work Phone: (206) 685-9116 Home Phone: (206) 365-3413 E-mail: cewing at u.washington.edu ******************************* From cewing at u.washington.edu Wed Jun 23 15:45:32 2004 From: cewing at u.washington.edu (cristopher pierson ewing) Date: Wed, 23 Jun 2004 15:45:32 -0700 (PDT) Subject: [CM] default-output-type Message-ID: this variable seems to have nothing to do with the output type of files written by mark-explode. No matter what I set it to, the output type is SUN mus-bint. Is this why you offered to write a new version of array->file that would take a header-type argument, Bill? Sorry for the hassle. Cris ******************************** Cris Ewing CME and Telehealth Web Services University of Washington School of Medicine Work Phone: (206) 685-9116 Home Phone: (206) 365-3413 E-mail: cewing at u.washington.edu ******************************* From taube at uiuc.edu Wed Jun 23 07:23:35 2004 From: taube at uiuc.edu (Rick Taube) Date: Wed, 23 Jun 2004 09:23:35 -0500 Subject: [CM] error on snd startup In-Reply-To: <40D96508.7020602@ccrma> References: <40D81A03.70202@ccrma> <40D96508.7020602@ccrma> Message-ID: > I'm not sure how to trace the load process in OSX. Also you can look If you mean dynamic lib loading, you can set the DYLD_PRINT_LIBRARIES shell variable: DYLD_PRINT_LIBRARIES=1 export DYLD_PRINT_LIBRARIES some other useful dylib variables: DYLD_FRAMEWORK_PATH DYLD_FALLBACK_FRAMEWORK_PATH DYLD_LIBRARY_PATH DYLD_FALLBACK_LIBRARY_PATH From bil at ccrma.Stanford.EDU Thu Jun 24 04:30:01 2004 From: bil at ccrma.Stanford.EDU (Bill Schottstaedt) Date: Thu, 24 Jun 2004 04:30:01 -0700 Subject: [CM] Hacking mark-explode In-Reply-To: References: Message-ID: <40DABB39.1060200@ccrma> Here's a version of mark-explode that lets you set the header type and data format: (define* (mark-explode #:optional (htype mus-next) (dformat mus-bfloat)) "(mark-explode :optional header-type data-format) splits a sound into a bunch of sounds based on mark placements" (let ((start 0) (file-ctr 0) (snd (or (selected-sound) (car (sounds))))) (for-each (lambda (mark) (let ((end (mark-sample mark))) (if (> end start) (let ((filename (format #f "mark-~D.snd" file-ctr))) (set! file-ctr (1+ file-ctr)) (do ((i 0 (1+ i))) ((= i (chans snd))) (set! (selection-member? snd i) #t) (set! (selection-position snd i) start) (set! (selection-frames snd i) (- end start))) (save-selection filename :header-type htype :data-format dformat :srate (srate snd)) (do ((i 0 (1+ i))) ((= i (chans snd))) (set! (selection-member? snd i) #f)))) (set! start end))) (car (marks snd))) (update-time-graph snd))) The original function got the marks via (caar (marks)) -- this one specifies the sound, so it uses (car (marks)) -- it's only looking at the first channel for the marks. In this case the input header type is (header-type snd). The input data format is (data-format snd). If you're working with mono sounds, the do loops can obviously be removed. From rm at fabula.de Thu Jun 24 04:57:47 2004 From: rm at fabula.de (rm at fabula.de) Date: Thu, 24 Jun 2004 13:57:47 +0200 Subject: [CM] mark-explode modifications In-Reply-To: References: Message-ID: <20040624115747.GD4637@www> On Wed, Jun 23, 2004 at 12:19:35PM -0700, cristopher pierson ewing wrote: > So here's my stab at the facility of naming exploded sounds after the > original sound they were created from: > > ;;;------find-char > (define (find-char string char) > (do ((position 0) > (i 0 (+ i 1))) > ((= i (string-length string)) position) > (if (char=? char (string-ref string i)) > (set! position i)))) You might want to use 'string-index' guile> (string-index "A long and uggly string" #\i) 20 You can find such gems with: (apropos "string") ...... For string handling i suggest using the SRFI module for strings: guile> (use-modules (srfi srfi-13)) guile> (define (trim-name name) ... (string-drop-right name (- (string-length name) (string-index name #\.)))) guile> (trim-name "a-sound.afi") "a-sound" HTH Ralf Mattes From rm at fabula.de Thu Jun 24 05:12:41 2004 From: rm at fabula.de (rm at fabula.de) Date: Thu, 24 Jun 2004 14:12:41 +0200 Subject: [CM] mark-explode modifications In-Reply-To: <20040624115747.GD4637@www> References: <20040624115747.GD4637@www> Message-ID: <20040624121241.GE4637@www> On Thu, Jun 24, 2004 at 01:57:47PM +0200, rm at fabula.de wrote: > On Wed, Jun 23, 2004 at 12:19:35PM -0700, cristopher pierson ewing wrote: > > So here's my stab at the facility of naming exploded sounds after the > > original sound they were created from: > > > > ;;;------find-char > > (define (find-char string char) > > (do ((position 0) > > (i 0 (+ i 1))) > > ((= i (string-length string)) position) > > (if (char=? char (string-ref string i)) > > (set! position i)))) > > > You might want to use 'string-index' > > guile> (string-index "A long and uggly string" #\i) > 20 > > You can find such gems with: > > (apropos "string") > > ...... > > For string handling i suggest using the SRFI module for strings: > > guile> (use-modules (srfi srfi-13)) > guile> (define (trim-name name) > ... (string-drop-right name (- (string-length name) (string-index name #\.)))) > guile> (trim-name "a-sound.afi") > "a-sound" Hate to follow up my own posts: guile> (use-modules (srfi srfi-13)) guile> (define (trim-name name) ... (string-take name (string-index name #\.))) guile> (trim-name "a-sound.aif") "a-sound" HTH RalfD > HTH Ralf Mattes > > _______________________________________________ > Cmdist mailing list > Cmdist at ccrma.stanford.edu > http://ccrma-mail.stanford.edu/mailman/listinfo/cmdist From cewing at u.washington.edu Thu Jun 24 15:57:09 2004 From: cewing at u.washington.edu (cristopher pierson ewing) Date: Thu, 24 Jun 2004 15:57:09 -0700 (PDT) Subject: [CM] mark-explode modifications In-Reply-To: <20040624121241.GE4637@www> References: <20040624115747.GD4637@www> <20040624121241.GE4637@www> Message-ID: Thanks a ton for the pointers there. I was using some scheme manual on-line at MIT and didn't find any of those things. I'm a LISPer just getting started coding scheme, any suggestions on good references I can keep handy so i don't waste time re-inventing the wheel? Thanks, C ******************************** Cris Ewing CME and Telehealth Web Services University of Washington School of Medicine Work Phone: (206) 685-9116 Home Phone: (206) 365-3413 E-mail: cewing at u.washington.edu ******************************* On Thu, 24 Jun 2004 rm at fabula.de wrote: > On Thu, Jun 24, 2004 at 01:57:47PM +0200, rm at fabula.de wrote: > > On Wed, Jun 23, 2004 at 12:19:35PM -0700, cristopher pierson ewing wrote: > > > So here's my stab at the facility of naming exploded sounds after the > > > original sound they were created from: > > > > > > ;;;------find-char > > > (define (find-char string char) > > > (do ((position 0) > > > (i 0 (+ i 1))) > > > ((= i (string-length string)) position) > > > (if (char=? char (string-ref string i)) > > > (set! position i)))) > > > > > > You might want to use 'string-index' > > > > guile> (string-index "A long and uggly string" #\i) > > 20 > > > > You can find such gems with: > > > > (apropos "string") > > > > ...... > > > > For string handling i suggest using the SRFI module for strings: > > > > guile> (use-modules (srfi srfi-13)) > > guile> (define (trim-name name) > > ... (string-drop-right name (- (string-length name) (string-index name #\.)))) > > guile> (trim-name "a-sound.afi") > > "a-sound" > > Hate to follow up my own posts: > > guile> (use-modules (srfi srfi-13)) > guile> (define (trim-name name) > ... (string-take name (string-index name #\.))) > guile> (trim-name "a-sound.aif") > "a-sound" > > HTH RalfD > > > > HTH Ralf Mattes > > > > _______________________________________________ > > Cmdist mailing list > > Cmdist at ccrma.stanford.edu > > http://ccrma-mail.stanford.edu/mailman/listinfo/cmdist > > _______________________________________________ > Cmdist mailing list > Cmdist at ccrma.stanford.edu > http://ccrma-mail.stanford.edu/mailman/listinfo/cmdist > From bil at ccrma.Stanford.EDU Fri Jun 25 03:44:53 2004 From: bil at ccrma.Stanford.EDU (Bill Schottstaedt) Date: Fri, 25 Jun 2004 03:44:53 -0700 Subject: [CM] dac-size limit? In-Reply-To: References: Message-ID: <40DC0225.3020104@ccrma> > Any ideas if this is a hard ceiling or if there is a way I'm not seeing to > get it higher than that? Even at 256 playback is choppy and gross. If I remember this issue correctly, the OSX built-in audio devices have a buffer size of 4096, so if you make the Snd buffers too large, various things go awry (it plays too quickly, I think). So in OSX, I made the max 256 (this refers to frames, whereas the 4096 is bytes). I took out this check. If OSX users notice playback trouble, check dac-size first. From drkrause at mindspring.com Tue Jun 29 08:24:53 2004 From: drkrause at mindspring.com (Drew Krause) Date: Tue, 29 Jun 2004 11:24:53 -0400 Subject: [CM] starting node in graph Message-ID: <40E189C5.5010609@mindspring.com> As part of a 'let' statement I'm writing in CM, I'd like to pass the starting node in a graph path as a variable, but am unclear how to do it. Trying the ":last" slot in the simplest case, I'm stumped because paths taken from the graph (define mygraph (new graph of '((1 :to 2) (2 :to 3) (3 :to 1)) :last 2)) always begin on 1 whenever the graph is initialized. In this case, I would like for the first (and only btw) path to always begin on 2. Any help appreciated! Drew krause From cewing at u.washington.edu Tue Jun 29 12:14:48 2004 From: cewing at u.washington.edu (cristopher pierson ewing) Date: Tue, 29 Jun 2004 12:14:48 -0700 (PDT) Subject: [CM] gui question Message-ID: I'm working in motif snd on an osX box. I've written a small function that takes a list of timings expressed in hh:mm:ss.mil format and uses it to add marks to a soundfile. I am working with soundfiles of 30-60 minutes and they can have anywhere from 25-75 marks in them. My proceedure simply uses the existing (add-mark) proceedure. Every time my proceedure calls (add-mark) the marks list (I added this using snd-motif.scm) redraws itself entirely. The problem is that the draw function lags behind the add-mark function to such a degree that there is a three or four second lapse (sometimes longer) after all the marks are added where the snd window is frozen. the break isn't long enough to go get a snack, but is too long to feel efficient. I'm wondering if there is a way I can disable the redrawing of the marks list until my function is finished running, so that I can have it only updated after all the marks have been added. Suggestions? Thanks, Cris ******************************** Cris Ewing CME and Telehealth Web Services University of Washington School of Medicine Work Phone: (206) 685-9116 Home Phone: (206) 365-3413 E-mail: cewing at u.washington.edu ******************************* From cewing at u.washington.edu Tue Jun 29 22:47:49 2004 From: cewing at u.washington.edu (cristopher pierson ewing) Date: Tue, 29 Jun 2004 22:47:49 -0700 (PDT) Subject: [CM] My install steps for SND on OSX Message-ID: So, I've done a clean install on my home laptop using the steps I learned thanks to all the help I was given on this list. As per Rick's request, here is the rundown of how I got everything working: This build was done on a Mac G4 Powerbook with OS X 10.3 (panther). The first step (and it is a vital one) is to make sure that your version of fink is fully up-to-date. Start by running $ fink selfupdate $ fink update-all Next, verify that you have a working version of X11 on your machine. This must include the development libs found in the X11SDK. If you are using apple's version of X11, the SDK package is _not_ installed by default when you install X11. You have to do a custom install from the XCode disk to get the package. Once all this is in place, use fink to install openmotif3 $ fink install openmotif3 Next, install guile16 $ fink install guile16 And you need to add the guile development libraries, they don't get installed with the rest of the packages. $ fink install guile16-dev You can also use fink to install the fftw package. It takes a really long time to build, but helps to speed up the fft-based functions in snd (right Bill?) $ fink install fftw Next, download and untar the latest snd sources from ccrma Configuration has been aided quite a bit by Bill since I had my problems, he's added a number of command-line variables that you can set that will help with naming problems in guile16 (the guile binaries are named differently than in earlier versions of guile). If you have trouble with the configure process, you may want to check to make sure what the guile binaries are named. All the information you will need to get configure to work successfully is in README.Snd inside the snd distribution. It seems important to use the switch --disable-nls. I'm not sure why, but I couldn't get the build to work with nls enabled. This is the configuration command that I used after following the instructions above: $ ./configure CFLAGS=-I/sw/include LDFLAGS=-L/sw/lib -lmx -bind_at_load \ GUILE_CONFIG_path=/sw/bin GUILE_CONFIG_name=guile-1.6-config \ GUILE_name=guile-1.6 --disable-nls --with-guile --with-motif \ --with-static-xm --with-motif-prefix=/sw This config was run from a bash shell. If you are using tcsh (and you might be if you upgraded to panther) then you will have to omit the part about CFLAGS and LDFLAGS above. Instead, you can set these through the shell by running % setenv LDFLAGS "-L/sw/lib -lmx -bind_at_load"" % setenv CFLAGS "-I/sw/include" After this, you're nearly home: $ make $ sudo make-install (you need to sudo make-install, because it will install an snd-executable in /usr/local/bin) Good luck, and enjoy the fun! Thanks everyone who pointed me in the right direction! Cris ******************************** Cris Ewing CME and Telehealth Web Services University of Washington School of Medicine Work Phone: (206) 685-9116 Home Phone: (206) 365-3413 E-mail: cewing at u.washington.edu ******************************* From bil at ccrma.Stanford.EDU Wed Jun 30 03:04:18 2004 From: bil at ccrma.Stanford.EDU (Bill Schottstaedt) Date: Wed, 30 Jun 2004 03:04:18 -0700 Subject: [CM] snd 7.5 Message-ID: <40E29022.1070805@ccrma> Snd 7.5 snd-hobbit.scm from Kjetil -- support for the Hobbit Scheme compiler in Snd! gtk support in fft-menu.scm (and many other improvements) thanks to Kjetil Steve Sykes got Snd to run in Cygwin/Windows (with Guile and Motif)! configure switch --with-doc-dir (for gentoo) also new variables GUILE_CONFIG_name and GUILE_name (for OSX/fink) The Snd/sndlib/CLM build process now requires configure -> config.h. for the case of CLM on the old Mac (OS9 etc), it might work to just make an empty file named config.h in the CL CLM, you can force configure to run with the *feature* #+reconfigure The CLM build now includes clm.c -- major (internal) changes underway... removed stop-playing-region-hook, stop-playing-channel-hook, before-apply-hook added stop-function arg to play, play-and-wait, play-selection, play-region, add-player cursor-update-interval (tracking cursor redraw rate if it is tracking the DAC) cursor-location-offset (tracking cursor position fixup) added add-colormap, delete-colormap, colormap-size, colormap-name, changed colormap-ref removed 2 previously built-in colormaps, added rainbow colormap default colormap is 0 (black and white) new error: 'no-such-colormap ssb-am generator in CLM ssb-bank (dsp.scm) for pitch/duration changes, ssb-bank-env to add freq env ssb-fm distribution arg to make-rand, make-rand-interp removed mus-x*|y*|a*|b*, replaced by mus-x|ycoeff periodogram in dsp.scm edot-product (clm.c) (for DFT-related stuff like stretch-sound-via-dft) read-ascii (examp.scm) (raw text as sound file data format) complex number support in xen (xen.h) (in Guile -- I don't think Ruby has complex numbers) checked: cmucl 19a, gtk 2.4.2|3, sbcl 0.8.11 With much help from: Kjetil S. Matheussen, Anders Vinjar, Michael Edwards, Stephen Sykes, Cris Ewing, Meino Cramer, Heinrich Gudenus From bil at ccrma.Stanford.EDU Wed Jun 30 03:30:52 2004 From: bil at ccrma.Stanford.EDU (Bill Schottstaedt) Date: Wed, 30 Jun 2004 03:30:52 -0700 Subject: [CM] gui question In-Reply-To: References: Message-ID: <40E2965C.3020106@ccrma> > I'm wondering if there is a way I can disable the redrawing of the marks > list until my function is finished running, so that I can have it only > updated after all the marks have been added. Use squelch-update -- as long as it is #t, no graphs are redrawn. There's an example in extensions.scm. From Meino.Cramer at gmx.de Wed Jun 30 03:38:14 2004 From: Meino.Cramer at gmx.de (Meino Christian Cramer) Date: Wed, 30 Jun 2004 12:38:14 +0200 (CEST) Subject: [CM] snd 7.5 In-Reply-To: <40E29022.1070805@ccrma> References: <40E29022.1070805@ccrma> Message-ID: <20040630.123814.11956156.Meino.Cramer@gmx.de> From: Bill Schottstaedt Subject: [CM] snd 7.5 Date: Wed, 30 Jun 2004 03:04:18 -0700 Hi Bill, THANK YOU VERY MUCH FOR THIS HIFI OF A PROGRAM ! :O) Meino > Snd 7.5 > > snd-hobbit.scm from Kjetil -- support for the Hobbit Scheme compiler in Snd! > gtk support in fft-menu.scm (and many other improvements) thanks to Kjetil > > Steve Sykes got Snd to run in Cygwin/Windows (with Guile and Motif)! > > configure switch --with-doc-dir (for gentoo) > also new variables GUILE_CONFIG_name and GUILE_name (for OSX/fink) > > The Snd/sndlib/CLM build process now requires configure -> config.h. > for the case of CLM on the old Mac (OS9 etc), it might work to just > make an empty file named config.h > in the CL CLM, you can force configure to run with the *feature* #+reconfigure > The CLM build now includes clm.c -- major (internal) changes underway... > > removed stop-playing-region-hook, stop-playing-channel-hook, before-apply-hook > added stop-function arg to play, play-and-wait, play-selection, play-region, add-player > cursor-update-interval (tracking cursor redraw rate if it is tracking the DAC) > cursor-location-offset (tracking cursor position fixup) > > added add-colormap, delete-colormap, colormap-size, colormap-name, changed colormap-ref > removed 2 previously built-in colormaps, added rainbow colormap > default colormap is 0 (black and white) > new error: 'no-such-colormap > > ssb-am generator in CLM > ssb-bank (dsp.scm) for pitch/duration changes, ssb-bank-env to add freq env > ssb-fm > distribution arg to make-rand, make-rand-interp > removed mus-x*|y*|a*|b*, replaced by mus-x|ycoeff > > periodogram in dsp.scm > edot-product (clm.c) (for DFT-related stuff like stretch-sound-via-dft) > read-ascii (examp.scm) (raw text as sound file data format) > complex number support in xen (xen.h) (in Guile -- I don't think Ruby has complex numbers) > > checked: cmucl 19a, gtk 2.4.2|3, sbcl 0.8.11 > > With much help from: Kjetil S. Matheussen, Anders Vinjar, Michael Edwards, > Stephen Sykes, Cris Ewing, Meino Cramer, Heinrich Gudenus > > _______________________________________________ > Cmdist mailing list > Cmdist at ccrma.stanford.edu > http://ccrma-mail.stanford.edu/mailman/listinfo/cmdist > From bil at ccrma.Stanford.EDU Wed Jun 30 03:38:06 2004 From: bil at ccrma.Stanford.EDU (Bill Schottstaedt) Date: Wed, 30 Jun 2004 03:38:06 -0700 Subject: [CM] My install steps for SND on OSX In-Reply-To: References: Message-ID: <40E2980E.8080907@ccrma> Thanks very much for the OSX info! I'll include it in README.Snd. I wonder why tcsh can't use the CFLAGS business in the command line. The fftw library is faster than my fallback code -- it's probably on the order of a factor of 2 -- I forgot to save the timing comparisons.