From k.s.matheussen at notam02.no Mon Oct 2 16:17:14 2006 From: k.s.matheussen at notam02.no (Kjetil S. Matheussen) Date: Tue, 03 Oct 2006 01:17:14 +0200 (CEST) Subject: [CM] [ANN] San Dysth V0.1.0, Snd-ls V0.9.7.1, E-Radium V0.61f Message-ID: 1. === San Dysth is a standalone realtime soft-synth written in SND. It was first developed as final project for the 220c course at CCRMA. For information about the used synthesizing routine and sound examples, check out San Dysths homepage at: http://www.notam02.no/~kjetism/sandysth/ Requirements ------------ Snd-ls >=0.9.7.1 G2Reverb ladspa plugin. 2. === Snd-ls is a distribution of Bill Schottstaedt's sound editor SND. Its target is people that don't know scheme very well, and don't want to spend too much time configuring Snd. It can also serve as a quick introduction to Snd and how it can be set up. Download from http://www.notam02.no/arkiv/src/snd/ Changes 0.9.7.0 -> 0.9.7.1 --------------------------- -Updated Snd from 8.4/13.9 to 8.4/26.9. Many important fixes. -Added workaround for menu problem. Bug found by Dragan Noveski. -Added check that initialization is complete. -Some realtime fixes. 3. === E-radium is Radium and a special version of E-UAE (with support for realtime scheduling and alsa midi). Radium is a unique type of music event editor made to be efficient and provide many possibilities. The user interface is inspired by trackers, but Radium is more versatile and can be used for all kinds of genres. http://www.notam02.no/radium/ Changes 0.61e -> 0.61f ---------------------- -Fixed all build errors in 0.61e (0.61e should never have been released.) -Made sure everyone can run e-radium after installation, not only root and the user doing the compilation. From renueden at earthlink.net Thu Oct 5 18:36:00 2006 From: renueden at earthlink.net (Ken) Date: Thu, 05 Oct 2006 18:36:00 -0700 Subject: [CM] CM Cmucl portmidi loading Message-ID: <4525B300.2090102@earthlink.net> I'm having a bit of trouble with realtime cm on ubuntu linux, namely with portmidi and rts. I have installed the latest cvs of the following: cm rts portmidi interface cffi-062925 I have the following lisp: cmucl 19c Cmucl will not load the porttime library and ends with this error: ; loading system definition from ; /home/nunativs/sound/cm/system/portmidi/portmidi.asd into ; # ;;; Loading #P"/home/nunativs/sound/cm/system/portmidi/portmidi.asd". ; registering # as PORTMIDI ;;; Loading #P"/home/nunativs/sound/cm/system/portmidi/cffi-portmidi.x86f". Unable to load foreign library: /usr/lib/libporttime.so [Condition of type CFFI:LOAD-FOREIGN-LIBRARY-ERROR] Restarts: 0: [RETRY ] Try loading the foreign library again. 1: [USE-VALUE] Use another library instead. 2: [CONTINUE ] Return NIL from load of #P"/home/nunativs/sound/cm/system/portm idi/cffi-portmidi.x86f". 3: [RETRY ] Retry performing # on #. 4: [ACCEPT ] Continue, treating # on # as having been successful. 5: Return NIL from load of #P"home:.cminit.lisp". 6: Retry performing # on #. 7: Continue, treating # on # as having been successful. 8: Return NIL from load of "/home/nunativs/sound/cm/system/cm/src/ cm.lisp". 9: [ABORT ] Return to Top-Level. Debug (type H for help) (CFFI::HANDLE-LOAD-FOREIGN-LIBRARY-ERROR "/usr/lib/libporttime.so" "Unable to load foreign library: ~A" "/usr/lib/libporttime.so") Source: ; File: /home/nunativs/sound/cm/system/cffi-060925/src/libraries.lisp (RESTART-CASE (ERROR 'LOAD-FOREIGN-LIBRARY-ERROR :TEXT (FORMAT NIL "~?" CONTROL ARGUMENTS)) (RETRY () :REPORT "Try loading the foreign library again." (LOAD-FOREIGN-LIBRARY ARGUMENT)) (USE-VALUE (NEW-LIBRARY) :REPORT "Use another library instead." :INTERACTIVE READ-NEW-VALUE (LOAD-FOREIGN-LIBRARY NEW-LIBRARY))) 0] The porttime library is indeed there. Any help on where to start? Ken From renueden at earthlink.net Thu Oct 5 19:06:15 2006 From: renueden at earthlink.net (Ken) Date: Thu, 05 Oct 2006 19:06:15 -0700 Subject: [CM] Sbcl and realtime cm Message-ID: <4525BA17.7070200@earthlink.net> I'm having additional trouble with portmidi and rts. I have installed the latest cvs of the following: cm rts portmidi interface cffi-062925 lisp: sbcl 0.9.17 Sbcl loads everything fine including cffi, portmidi and rts. Going through the examples I get the following. Example 3 of the Portmidi entry: (define *pm* (portmidi-open :latency 0 :input 3 :output 0)) (define myseq (new seq )) (portmidi-record! myseq) portmidi-record!: receiver already active. [Condition of type SIMPLE-ERROR] Restarts: 0: [ABORT-REQUEST] Abort handling SLIME request. 1: [TERMINATE-THREAD] Terminate this thread (#) Backtrace: 0: (PORTMIDI-RECORD! #) 1: (SB-INT:SIMPLE-EVAL-IN-LEXENV (PORTMIDI-RECORD! MYSEQ) #) 2: (SWANK::EVAL-REGION "(portmidi-record! myseq) " T) 3: ((LAMBDA NIL)) 4: ((SB-PCL::FAST-METHOD SWANK-BACKEND:CALL-WITH-SYNTAX-HOOKS (T)) # # #) 5: (SWANK::CALL-WITH-BUFFER-SYNTAX #) 6: (SB-INT:SIMPLE-EVAL-IN-LEXENV (SWANK:LISTENER-EVAL "(portmidi-record! myseq) ") #) 7: ((LAMBDA NIL)) 8: ((SB-PCL::FAST-METHOD SWANK-BACKEND:CALL-WITH-DEBUGGER-HOOK (T T)) # # # #) 9: ((LAMBDA NIL)) 10: ((SB-PCL::FAST-METHOD SWANK-BACKEND:CALL-WITH-DEBUGGER-HOOK (T T)) # # # #) 11: (SWANK::CALL-WITH-REDIRECTED-IO # #) 12: (SWANK::CALL-WITH-CONNECTION # #) 13: (SWANK::HANDLE-REQUEST #) 14: ((LAMBDA NIL)) 15: ((LAMBDA NIL)) 16: ((SB-PCL::FAST-METHOD SWANK-BACKEND:CALL-WITH-DEBUGGER-HOOK (T T)) # # # #) 17: (SWANK::CALL-WITH-REDIRECTED-IO # #) 18: (SWANK::CALL-WITH-CONNECTION # #) 19: (SWANK::CALL-WITH-BINDINGS NIL #) 20: ((LAMBDA NIL)) 21: ("foreign function: call_into_lisp") 22: ("foreign function: funcall0") 23: ("foreign function: new_thread_trampoline") 24: ("foreign function: #xB7FC8341") Example #2 of rts: (define fluff '(60 62 64 67 72 65 69 48 50)) (define (endless-fluff num dur knums) (process repeat num for i from 0 output (new midi :time (now ) :duration (* 2 dur) :amplitude .5 :keynum (pickl fluff)) wait (pick dur (/ dur 2) (/ dur 4)) when (= i (1- num)) sprout (process repeat 4 output (new midi :time (now ) :duration 5 :amplitude .5 :keynum (pickl knums))) and sprout (endless-fluff 20 1 knums))) (rts *pm*) (sprout (endless-fluff 20 1 fluff)) invalid number of arguments: 5 [Condition of type SB-INT:SIMPLE-PROGRAM-ERROR] Restarts: 0: [ABORT-REQUEST] Abort handling SLIME request. 1: [TERMINATE-THREAD] Terminate this thread (#) Backtrace: 0: (RTS-ENQUEUE 1 # 10.493859 10.493859) 1: (SPROUT # :TO NIL :AT NIL) 2: (SB-INT:SIMPLE-EVAL-IN-LEXENV (SPROUT (ENDLESS-FLUFF 20 1 FLUFF)) #) 3: (SWANK::EVAL-REGION "(sprout (endless-fluff 20 1 fluff)) " T) 4: ((LAMBDA NIL)) 5: ((SB-PCL::FAST-METHOD SWANK-BACKEND:CALL-WITH-SYNTAX-HOOKS (T)) # # #) 6: (SWANK::CALL-WITH-BUFFER-SYNTAX #) 7: (SB-INT:SIMPLE-EVAL-IN-LEXENV (SWANK:LISTENER-EVAL "(sprout (endless-fluff 20 1 fluff)) ") #) 8: ((LAMBDA NIL)) 9: ((SB-PCL::FAST-METHOD SWANK-BACKEND:CALL-WITH-DEBUGGER-HOOK (T T)) # # # #) 10: ((LAMBDA NIL)) 11: ((SB-PCL::FAST-METHOD SWANK-BACKEND:CALL-WITH-DEBUGGER-HOOK (T T)) # # # #) 12: (SWANK::CALL-WITH-REDIRECTED-IO # #) 13: (SWANK::CALL-WITH-CONNECTION # #) 14: (SWANK::HANDLE-REQUEST #) 15: ((LAMBDA NIL)) 16: ((LAMBDA NIL)) 17: ((SB-PCL::FAST-METHOD SWANK-BACKEND:CALL-WITH-DEBUGGER-HOOK (T T)) # # # #) 18: (SWANK::CALL-WITH-REDIRECTED-IO # #) 19: (SWANK::CALL-WITH-CONNECTION # #) 20: (SWANK::CALL-WITH-BINDINGS NIL #) 21: ((LAMBDA NIL)) 22: ("foreign function: call_into_lisp") 23: ("foreign function: funcall0") 24: ("foreign function: new_thread_trampoline") 25: ("foreign function: #xB7FC8341") I notice that almost all the rts examples give errors, nor can i get a usb midi keyboard to function as an input. I am able to get portmidi to spit out midi processes, but the timing will get screwed up or the notes will not all come out. I am shooting for realtime midi in and out at some point, so any pointers on which direction to pursue are greatly appreciated. Thanks, Ken From taube at uiuc.edu Fri Oct 6 04:07:52 2006 From: taube at uiuc.edu (Rick Taube) Date: Fri, 6 Oct 2006 06:07:52 -0500 Subject: [CM] Sbcl and realtime cm In-Reply-To: <4525BA17.7070200@earthlink.net> References: <4525BA17.7070200@earthlink.net> Message-ID: the receive code for portmidi receiving is not stable. i think i have the correct sourcese now, but have not checked them into cvs because im waiting for roger dannenberg to make some updates to the portmidi lib itself. i will check in the fixes nonetheless and hope for the best. will try the examples later today or tomorrow in sbcl as i find time. On Oct 5, 2006, at 9:06 PM, Ken wrote: > I'm having additional trouble with portmidi and rts. > > I have installed the latest cvs of the following: > cm > rts > portmidi interface > cffi-062925 > > lisp: > sbcl 0.9.17 > > Sbcl loads everything fine including cffi, portmidi and rts. > Going through the examples I get the following. > Example 3 of the Portmidi entry: > > (define *pm* (portmidi-open :latency 0 :input 3 :output 0)) > > (define myseq (new seq > )) > > (portmidi-record! myseq) > > portmidi-record!: receiver already active. > [Condition of type SIMPLE-ERROR] > > Restarts: > 0: [ABORT-REQUEST] Abort handling SLIME request. > 1: [TERMINATE-THREAD] Terminate this thread (# thread" {AD40161}>) > > Backtrace: > 0: (PORTMIDI-RECORD! #) > 1: (SB-INT:SIMPLE-EVAL-IN-LEXENV (PORTMIDI-RECORD! MYSEQ) # LEXENV>) > 2: (SWANK::EVAL-REGION "(portmidi-record! myseq) > " T) > 3: ((LAMBDA NIL)) > 4: ((SB-PCL::FAST-METHOD SWANK-BACKEND:CALL-WITH-SYNTAX-HOOKS (T)) > # # # {B17E94D}>) > 5: (SWANK::CALL-WITH-BUFFER-SYNTAX #) > 6: (SB-INT:SIMPLE-EVAL-IN-LEXENV (SWANK:LISTENER-EVAL "(portmidi- > record! myseq) > ") #) > 7: ((LAMBDA NIL)) > 8: ((SB-PCL::FAST-METHOD SWANK-BACKEND:CALL-WITH-DEBUGGER-HOOK (T > T)) # # # DEBUGGER-HOOK> #) > 9: ((LAMBDA NIL)) > 10: ((SB-PCL::FAST-METHOD SWANK-BACKEND:CALL-WITH-DEBUGGER-HOOK (T > T)) # # # DEBUGGER-HOOK> #) > 11: (SWANK::CALL-WITH-REDIRECTED-IO # > #) > 12: (SWANK::CALL-WITH-CONNECTION # > #) > 13: (SWANK::HANDLE-REQUEST #) > 14: ((LAMBDA NIL)) > 15: ((LAMBDA NIL)) > 16: ((SB-PCL::FAST-METHOD SWANK-BACKEND:CALL-WITH-DEBUGGER-HOOK (T > T)) # # # DEBUGGER-HOOK> #) > 17: (SWANK::CALL-WITH-REDIRECTED-IO # > #) > 18: (SWANK::CALL-WITH-CONNECTION # > #) > 19: (SWANK::CALL-WITH-BINDINGS NIL #) > 20: ((LAMBDA NIL)) > 21: ("foreign function: call_into_lisp") > 22: ("foreign function: funcall0") > 23: ("foreign function: new_thread_trampoline") > 24: ("foreign function: #xB7FC8341") > > Example #2 of rts: > (define fluff '(60 62 64 67 72 65 69 48 50)) > > (define (endless-fluff num dur knums) > (process repeat num > for i from 0 output > (new midi > :time (now > ) :duration > (* 2 dur) > :amplitude .5 > :keynum (pickl > fluff)) > wait (pick dur (/ > dur 2) (/ dur 4)) > when (= i (1- num)) > sprout (process > repeat 4 > output (new > midi > :time (now > ) > :duration 5 > :amplitude . > 5 :keynum (pickl > knums))) > and > sprout (endless-fluff 20 1 knums))) > > (rts *pm*) > > (sprout (endless-fluff 20 1 fluff)) > > > invalid number of arguments: 5 > [Condition of type SB-INT:SIMPLE-PROGRAM-ERROR] > > Restarts: > 0: [ABORT-REQUEST] Abort handling SLIME request. > 1: [TERMINATE-THREAD] Terminate this thread (# thread" {AD43161}>) > > Backtrace: > 0: (RTS-ENQUEUE 1 # 10.493859 > 10.493859) > 1: (SPROUT # :TO NIL :AT NIL) > 2: (SB-INT:SIMPLE-EVAL-IN-LEXENV (SPROUT (ENDLESS-FLUFF 20 1 > FLUFF)) #) > 3: (SWANK::EVAL-REGION "(sprout (endless-fluff 20 1 fluff)) > " T) > 4: ((LAMBDA NIL)) > 5: ((SB-PCL::FAST-METHOD SWANK-BACKEND:CALL-WITH-SYNTAX-HOOKS (T)) > # # # {A696DC5}>) > 6: (SWANK::CALL-WITH-BUFFER-SYNTAX #) > 7: (SB-INT:SIMPLE-EVAL-IN-LEXENV (SWANK:LISTENER-EVAL "(sprout > (endless-fluff 20 1 fluff)) > ") #) > 8: ((LAMBDA NIL)) > 9: ((SB-PCL::FAST-METHOD SWANK-BACKEND:CALL-WITH-DEBUGGER-HOOK (T > T)) # # # DEBUGGER-HOOK> #) > 10: ((LAMBDA NIL)) > 11: ((SB-PCL::FAST-METHOD SWANK-BACKEND:CALL-WITH-DEBUGGER-HOOK (T > T)) # # # DEBUGGER-HOOK> #) > 12: (SWANK::CALL-WITH-REDIRECTED-IO # > #) > 13: (SWANK::CALL-WITH-CONNECTION # > #) > 14: (SWANK::HANDLE-REQUEST #) > 15: ((LAMBDA NIL)) > 16: ((LAMBDA NIL)) > 17: ((SB-PCL::FAST-METHOD SWANK-BACKEND:CALL-WITH-DEBUGGER-HOOK (T > T)) # # # DEBUGGER-HOOK> #) > 18: (SWANK::CALL-WITH-REDIRECTED-IO # > #) > 19: (SWANK::CALL-WITH-CONNECTION # > #) > 20: (SWANK::CALL-WITH-BINDINGS NIL #) > 21: ((LAMBDA NIL)) > 22: ("foreign function: call_into_lisp") > 23: ("foreign function: funcall0") > 24: ("foreign function: new_thread_trampoline") > 25: ("foreign function: #xB7FC8341") > > > I notice that almost all the rts examples give errors, nor can i > get a usb midi keyboard to function as an input. > I am able to get portmidi to spit out midi processes, but the > timing will get screwed up or the notes will not all come out. > I am shooting for realtime midi in and out at some point, so any > pointers on which direction to pursue are greatly appreciated. > Thanks, > Ken > > _______________________________________________ > Cmdist mailing list > Cmdist at ccrma.stanford.edu > http://ccrma-mail.stanford.edu/mailman/listinfo/cmdist From renueden at earthlink.net Fri Oct 6 09:12:23 2006 From: renueden at earthlink.net (Ken) Date: Fri, 06 Oct 2006 09:12:23 -0700 Subject: [CM] Sbcl and realtime cm In-Reply-To: References: <4525BA17.7070200@earthlink.net> Message-ID: <45268067.1030705@earthlink.net> Yes, I think that most of the problems and weird behavior seem to be related to the portmidi library, also the fact that cmucl will not load the porttime lib. Thanks Rick Rick Taube wrote: > the receive code for portmidi receiving is not stable. i think i have > the correct sourcese now, but have not checked them into cvs because > im waiting for roger dannenberg to make some updates to the portmidi > lib itself. > i will check in the fixes nonetheless and hope for the best. > > will try the examples later today or tomorrow in sbcl as i find time. > From taube at uiuc.edu Fri Oct 6 09:29:25 2006 From: taube at uiuc.edu (Rick Taube) Date: Fri, 6 Oct 2006 11:29:25 -0500 Subject: [CM] Sbcl and realtime cm In-Reply-To: <45268067.1030705@earthlink.net> References: <4525BA17.7070200@earthlink.net> <45268067.1030705@earthlink.net> Message-ID: <10C0A9A6-1690-4B9F-B845-F9A0A63CD8E1@uiuc.edu> cmucl will not work in any event. im trying to test in linux/sbcl right now... On Oct 6, 2006, at 11:12 AM, Ken wrote: > Yes, I think that most of the problems and weird behavior seem to > be related to the portmidi library, also the fact that cmucl will > not load the porttime lib. > Thanks Rick > > Rick Taube wrote: >> the receive code for portmidi receiving is not stable. i think i >> have the correct sourcese now, but have not checked them into cvs >> because im waiting for roger dannenberg to make some updates to >> the portmidi lib itself. >> i will check in the fixes nonetheless and hope for the best. >> >> will try the examples later today or tomorrow in sbcl as i find time. >> > > _______________________________________________ > Cmdist mailing list > Cmdist at ccrma.stanford.edu > http://ccrma-mail.stanford.edu/mailman/listinfo/cmdist From taube at uiuc.edu Fri Oct 6 09:58:43 2006 From: taube at uiuc.edu (Rick Taube) Date: Fri, 6 Oct 2006 11:58:43 -0500 Subject: [CM] Sbcl and realtime cm In-Reply-To: <10C0A9A6-1690-4B9F-B845-F9A0A63CD8E1@uiuc.edu> References: <4525BA17.7070200@earthlink.net> <45268067.1030705@earthlink.net> <10C0A9A6-1690-4B9F-B845-F9A0A63CD8E1@uiuc.edu> Message-ID: <2244DE36-5869-4458-8CED-129E57312EBC@uiuc.edu> i just ran some short tests of rts and portmidi on my linux box: planet ccrma sbcl 0.9.10 cffi 0.9.1 and portmidi input works and the timing of algos seems very solid. i have checked in CM's portmidi sources that has setchannelmask commented out because its missing in the latest portmidi sources. (ill add this back in when roger makes another release of portmdi). it will take several hours for the sources to migrate to cvs, look for rev. 1.3 of cff-portmidi.lisp (new sources so i will now try testing in your version of sbcl to see if i can duplicate your problems. this is what i am using to test ;;;------------------------------------------------------ (in-package cm) (progn (use-system :rts) (use-system :portmidi) (defun simp (num rhy key wid) (process for i below num output (new midi :time (now) :keynum (between key (+ wid key)) :amplitude .7) wait rhy)) ) (pprint (pm:getdeviceinfo)) ;; fix port numbers for your setup. (defparameter pm (portmidi-open :input 0 :output 1)) ;;; ;;; output test ;;; (rts pm) ;; eval this multiple times to test output (sprout (simp (pick 8 12 16) .1 (between 50 70) 12)) ;;; ;;; input -> output test. ;;; (recv pm) (recv-set! pm (lambda (m) (if (note-on-p m) (sprout (simp (pick 8 12 16) .1 (note-on-key m) 12))))) ;; now play keyboard, each key down triggers new algo (recv-stop pm) From taube at uiuc.edu Fri Oct 6 10:44:42 2006 From: taube at uiuc.edu (Rick Taube) Date: Fri, 6 Oct 2006 12:44:42 -0500 Subject: [CM] Sbcl and realtime cm In-Reply-To: <2244DE36-5869-4458-8CED-129E57312EBC@uiuc.edu> References: <4525BA17.7070200@earthlink.net> <45268067.1030705@earthlink.net> <10C0A9A6-1690-4B9F-B845-F9A0A63CD8E1@uiuc.edu> <2244DE36-5869-4458-8CED-129E57312EBC@uiuc.edu> Message-ID: <63AF876A-4271-4B1E-88B4-5262D486119C@uiuc.edu> > I am able to get portmidi to spit out midi processes, but the > timing will get screwed up or the notes will not all come out. i switched over to sbcl 0.9.17 and ran a non-consing simp for 5000 events at .1 sec rate (thats 8'20" sec o' fun...) and the timing sounded rock solid. so im stumped as to why you are getting poor timing. (defun ncsimp (num rhy key wid) (let ((m (new midi :amplitude 80 :duration 90))) (process for i below num do (sv m :keynum (rts:between key (+ wid key)) :time (now)) output m wait rhy))) ;; nonconsing output test (rts pm :time-format :msec) (sprout (ncsimp 5000 100 70 12)) From taube at uiuc.edu Fri Oct 6 10:53:58 2006 From: taube at uiuc.edu (Rick Taube) Date: Fri, 6 Oct 2006 12:53:58 -0500 Subject: [CM] Sbcl and realtime cm In-Reply-To: <63AF876A-4271-4B1E-88B4-5262D486119C@uiuc.edu> References: <4525BA17.7070200@earthlink.net> <45268067.1030705@earthlink.net> <10C0A9A6-1690-4B9F-B845-F9A0A63CD8E1@uiuc.edu> <2244DE36-5869-4458-8CED-129E57312EBC@uiuc.edu> <63AF876A-4271-4B1E-88B4-5262D486119C@uiuc.edu> Message-ID: <412BF50F-42A6-4CD9-ACC4-172A8D3CDC1F@uiuc.edu> > (define *pm* (portmidi-open :latency 0 :input 3 :output 0)) you might try using a bit of latency when you open portmidi to see if that fixes the uneven timing. --rick From renueden at earthlink.net Fri Oct 6 11:01:32 2006 From: renueden at earthlink.net (Ken) Date: Fri, 06 Oct 2006 11:01:32 -0700 Subject: [CM] Sbcl and realtime cm In-Reply-To: <63AF876A-4271-4B1E-88B4-5262D486119C@uiuc.edu> References: <4525BA17.7070200@earthlink.net> <45268067.1030705@earthlink.net> <10C0A9A6-1690-4B9F-B845-F9A0A63CD8E1@uiuc.edu> <2244DE36-5869-4458-8CED-129E57312EBC@uiuc.edu> <63AF876A-4271-4B1E-88B4-5262D486119C@uiuc.edu> Message-ID: <452699FC.4040108@earthlink.net> Rick Taube wrote: >> I am able to get portmidi to spit out midi processes, but the timing >> will get screwed up or the notes will not all come out. > > > i switched over to sbcl 0.9.17 and ran a non-consing simp for 5000 > events at .1 sec rate (thats 8'20" sec o' fun...) and the timing > sounded rock solid. so im stumped as to why you are getting poor timing. > > > (defun ncsimp (num rhy key wid) > (let ((m (new midi :amplitude 80 :duration 90))) > (process for i below num > do (sv m :keynum (rts:between key (+ wid key)) :time > (now)) > output m > wait rhy))) > > ;; nonconsing output test > (rts pm :time-format :msec) > (sprout (ncsimp 5000 100 70 12)) > On this example I get the error message; invalid number of arguments: 5 weird as its the same error I get on the endless fluff example, where the # of arguments is 4? k From renueden at earthlink.net Fri Oct 6 11:06:26 2006 From: renueden at earthlink.net (Ken) Date: Fri, 06 Oct 2006 11:06:26 -0700 Subject: [CM] Sbcl and realtime cm In-Reply-To: <2244DE36-5869-4458-8CED-129E57312EBC@uiuc.edu> References: <4525BA17.7070200@earthlink.net> <45268067.1030705@earthlink.net> <10C0A9A6-1690-4B9F-B845-F9A0A63CD8E1@uiuc.edu> <2244DE36-5869-4458-8CED-129E57312EBC@uiuc.edu> Message-ID: <45269B22.8040301@earthlink.net> Rick Taube wrote: > i just ran some short tests of rts and portmidi on my linux box: > planet ccrma > sbcl 0.9.10 > cffi 0.9.1 > > and portmidi input works and the timing of algos seems very solid. i > have checked in CM's portmidi sources that has setchannelmask > commented out because its missing in the latest portmidi sources. (ill > add this back in when roger makes another release of portmdi). it will > take several hours for the sources to migrate to cvs, look for rev. > 1.3 of cff-portmidi.lisp (new sources > so i will now try testing in your version of sbcl to see if i can > duplicate your problems. > > this is what i am using to test > > ;;;------------------------------------------------------ > (in-package cm) > > (progn (use-system :rts) > (use-system :portmidi) > (defun simp (num rhy key wid) > (process for i below num > output (new midi :time (now) > :keynum (between key (+ wid key)) > :amplitude .7) > wait rhy)) > ) > > (pprint (pm:getdeviceinfo)) > > ;; fix port numbers for your setup. > (defparameter pm (portmidi-open :input 0 :output 1)) > > ;;; > ;;; output test > ;;; > > (rts pm) > > ;; eval this multiple times to test output > (sprout (simp (pick 8 12 16) .1 (between 50 70) 12)) > > ;;; > ;;; input -> output test. > ;;; > > (recv pm) > (recv-set! pm > (lambda (m) > (if (note-on-p m) > (sprout (simp (pick 8 12 16) .1 (note-on-key m) 12))))) > > ;; now play keyboard, each key down triggers new algo > > (recv-stop pm) > > > _______________________________________________ > Cmdist mailing list > Cmdist at ccrma.stanford.edu > http://ccrma-mail.stanford.edu/mailman/listinfo/cmdist > On this example, I get the same error invalid number of arguments: 5. With the recieve example, lisp crashes when I play the midi keyboard. How can I trace this? It must be the portmidi library I have. Its the default Ubuntu supplied lib. I tried building the latest sources, but sbcl wouldn't load the porttime lib that I built, so I went back to the Ubuntu lib. k From taube at uiuc.edu Fri Oct 6 11:24:38 2006 From: taube at uiuc.edu (Rick Taube) Date: Fri, 6 Oct 2006 13:24:38 -0500 Subject: [CM] Sbcl and realtime cm In-Reply-To: <45269B22.8040301@earthlink.net> References: <4525BA17.7070200@earthlink.net> <45268067.1030705@earthlink.net> <10C0A9A6-1690-4B9F-B845-F9A0A63CD8E1@uiuc.edu> <2244DE36-5869-4458-8CED-129E57312EBC@uiuc.edu> <45269B22.8040301@earthlink.net> Message-ID: <3D25B185-8E67-4DE5-BDF2-F5E4E6128EA6@uiuc.edu> > On this example, I get the same error invalid number of arguments: 5. i wonder if you might have stale .fasls in one or all of your cm/rts/ portmidi directorues i would throw out all these directories then cvs from scratch and rebuild, ie: rm -r cm portmidi rts cvs checkout cm cvs checkout rts cvs checkout portmidi cd rts ./configure make cd ../portmidi ./configure make cd ../cm bin/cm.sh -l sbcl > On this example, I get the same error invalid number of arguments: 5. > > With the recieve example, lisp crashes when I play the midi keyboard. > > How can I trace this? > > It must be the portmidi library I have. Its the default Ubuntu > supplied lib. I tried building the latest sources, but sbcl > wouldn't load the porttime lib that I built, so I went back to the > Ubuntu lib. > > k From renueden at earthlink.net Fri Oct 6 12:08:14 2006 From: renueden at earthlink.net (Ken) Date: Fri, 06 Oct 2006 12:08:14 -0700 Subject: [CM] Sbcl and realtime cm In-Reply-To: <3D25B185-8E67-4DE5-BDF2-F5E4E6128EA6@uiuc.edu> References: <4525BA17.7070200@earthlink.net> <45268067.1030705@earthlink.net> <10C0A9A6-1690-4B9F-B845-F9A0A63CD8E1@uiuc.edu> <2244DE36-5869-4458-8CED-129E57312EBC@uiuc.edu> <45269B22.8040301@earthlink.net> <3D25B185-8E67-4DE5-BDF2-F5E4E6128EA6@uiuc.edu> Message-ID: <4526A99E.5080600@earthlink.net> Rick Taube wrote: >> On this example, I get the same error invalid number of arguments: 5. > > i wonder if you might have stale .fasls in one or all of your > cm/rts/portmidi directorues > i would throw out all these directories then cvs from scratch and > rebuild, ie: > > rm -r cm portmidi rts > > cvs checkout cm > cvs checkout rts > cvs checkout portmidi > > cd rts > ./configure > make > > cd ../portmidi > ./configure > make > > cd ../cm > bin/cm.sh -l sbcl > Ok, that did the trick. The 5000 note flurry came out without a hiccup. Recieve still crashes sbcl on my box though, but I think you said it would be broken, yes? k From taube at uiuc.edu Fri Oct 6 13:33:34 2006 From: taube at uiuc.edu (Rick Taube) Date: Fri, 6 Oct 2006 15:33:34 -0500 Subject: [CM] Sbcl and realtime cm In-Reply-To: <4526A99E.5080600@earthlink.net> References: <4525BA17.7070200@earthlink.net> <45268067.1030705@earthlink.net> <10C0A9A6-1690-4B9F-B845-F9A0A63CD8E1@uiuc.edu> <2244DE36-5869-4458-8CED-129E57312EBC@uiuc.edu> <45269B22.8040301@earthlink.net> <3D25B185-8E67-4DE5-BDF2-F5E4E6128EA6@uiuc.edu> <4526A99E.5080600@earthlink.net> Message-ID: > Ok, that did the trick. The 5000 note flurry came out without a > hiccup. Recieve still crashes sbcl on my box though, but I think > you said it would be broken, yes? depends. it should be working if you have the file revisions listed below. you can see what revisions you have by looking at the cvs tag near the top of each file, for example $ more cffi-portmidi.lisp [...] ;;; $Revision: 1.2 $ ;;; $Date: 2006/10/06 11:33:23 $ cffi-portmidi.lisp rev 1.2 cffi-recv.lisp rev 1.1 cm-recv.lisp rev 1.2 From Tom.Lopez at oberlin.edu Mon Oct 9 19:01:30 2006 From: Tom.Lopez at oberlin.edu (Tom Lopez) Date: Mon, 09 Oct 2006 22:01:30 -0400 Subject: [CM] [deadline this week] = SEAMUS/ASCAP student commission Message-ID: <08CCC770-4B8B-4A03-A4E8-79DAD1693430@oberlin.edu> Apologies for cross-postings. Please forward as appropriate. The postmark deadline is this week! SEAMUS is pleased to announce the 2007 ASCAP/SEAMUS Student Composer Commissioning Program, with the help of Frances Richard and the American Society for Composers, Authors and Publishers (ASCAP) . The commission includes an honorarium for a new electro-acoustic composition, a stipend for copying and material costs, a plaque, a recording on the annual conference CD, and a performance at the SEAMUS 2008 National Conference. You must be a student currently enrolled in an academic course of study that leads to a high school diploma, or baccalaureate, masters, or doctoral degree in music or electro-acoustic music, or a program that includes electro-acoustic music and related fields. This competition is open to student members of SEAMUS, US citizens, or legal residents of the United States. The postmark deadline is October 15, 2006. For more information, including the application form: http://seamusonline.org/ascap.html IMPORTANT: applying for the SEAMUS/ASCAP Student Commission is entirely different from submitting work for performance at the SEAMUS National Conference, which requires a separate application. Sincerely, Tom Lopez SEAMUS/ASCAP Commissioning Program Coordinator 77 W. College St. Oberlin Conservatory of Music Oberlin, Ohio 44074 USA (440) 775-8748 -------------- next part -------------- An HTML attachment was scrubbed... URL: From renueden at earthlink.net Tue Oct 10 06:34:55 2006 From: renueden at earthlink.net (Ken) Date: Tue, 10 Oct 2006 06:34:55 -0700 Subject: [CM] Sbcl and realtime cm In-Reply-To: References: <4525BA17.7070200@earthlink.net> <45268067.1030705@earthlink.net> <10C0A9A6-1690-4B9F-B845-F9A0A63CD8E1@uiuc.edu> <2244DE36-5869-4458-8CED-129E57312EBC@uiuc.edu> <45269B22.8040301@earthlink.net> <3D25B185-8E67-4DE5-BDF2-F5E4E6128EA6@uiuc.edu> <4526A99E.5080600@earthlink.net> Message-ID: <452BA17F.40407@earthlink.net> Rick, Just wanted to say that I traced my troubles to slime. I ran the examples in a regular terminal after deleting all old fasl files and updating from cvs, and everything worked fine including receive. Are there some issues you know of with emacs/slime that I should be aware of, as I really like using that environment? Right now, any rts or portmidi examples crash sbcl when I try to run them from slime. Thanks again, Ken Rick Taube wrote: >> Ok, that did the trick. The 5000 note flurry came out without a >> hiccup. Recieve still crashes sbcl on my box though, but I think you >> said it would be broken, yes? ck, > > depends. it should be working if you have the file revisions listed > below. you can see what revisions you have by looking at the cvs tag > near the top of each file, for example > > $ more cffi-portmidi.lisp > [...] > ;;; $Revision: 1.2 $ > ;;; $Date: 2006/10/06 11:33:23 $ > > > > cffi-portmidi.lisp rev 1.2 > cffi-recv.lisp rev 1.1 > cm-recv.lisp rev 1.2 > From taube at uiuc.edu Tue Oct 10 07:59:10 2006 From: taube at uiuc.edu (Rick Taube) Date: Tue, 10 Oct 2006 09:59:10 -0500 Subject: [CM] Sbcl and realtime cm In-Reply-To: <452BA17F.40407@earthlink.net> References: <4525BA17.7070200@earthlink.net> <45268067.1030705@earthlink.net> <10C0A9A6-1690-4B9F-B845-F9A0A63CD8E1@uiuc.edu> <2244DE36-5869-4458-8CED-129E57312EBC@uiuc.edu> <45269B22.8040301@earthlink.net> <3D25B185-8E67-4DE5-BDF2-F5E4E6128EA6@uiuc.edu> <4526A99E.5080600@earthlink.net> <452BA17F.40407@earthlink.net> Message-ID: <3F1869EA-FCF0-4C17-A8B7-D5E3C707F17A@uiuc.edu> > Are there some issues you know of with emacs/slime that I should be > aware of, as I really like using that environment? Right now, any > rts or portmidi examples crash sbcl when I try to run them from slime. yes, lots of weird stuff can happen when you use slime. one thing to try is configure slime to use some communication style other than multiprocessesing. depending on your lisp/os thats its defaul choice and it seems to screw things up sometime when user code is also doing multiprocessing, as is certainly the case with rts and receive see http://common-lisp.net/project/slime/doc/html/Communication- style.html#Communication-style On Oct 10, 2006, at 8:34 AM, Ken wrote: > Rick, > Just wanted to say that I traced my troubles to slime. I ran the > examples in a regular terminal after deleting all old fasl files > and updating from cvs, and everything worked fine including receive. > > Are there some issues you know of with emacs/slime that I should be > aware of, as I really like using that environment? Right now, any > rts or portmidi examples crash sbcl when I try to run them from slime. > Thanks again, > Ken > > Rick Taube wrote: >>> Ok, that did the trick. The 5000 note flurry came out without a >>> hiccup. Recieve still crashes sbcl on my box though, but I think >>> you said it would be broken, yes? ck, > >> >> depends. it should be working if you have the file revisions >> listed below. you can see what revisions you have by looking at >> the cvs tag near the top of each file, for example >> >> $ more cffi-portmidi.lisp >> [...] >> ;;; $Revision: 1.2 $ >> ;;; $Date: 2006/10/06 11:33:23 $ >> >> >> >> cffi-portmidi.lisp rev 1.2 >> cffi-recv.lisp rev 1.1 >> cm-recv.lisp rev 1.2 >> > From taube at uiuc.edu Tue Oct 10 10:04:41 2006 From: taube at uiuc.edu (Rick Taube) Date: Tue, 10 Oct 2006 12:04:41 -0500 Subject: [CM] embeddable cm Message-ID: ive ported CM to Embeddable Common Lisp (ECL). you need to build ECL from its latest CVS sources for this to work: http://ecls.sf.net You can use ECL just like any other lisp, ie to build/run CM in ECL just do: bin/cm.sh -l ecl But the really interesting thing about ECL is that you can link it to C/C++ programs. This should make it possible now to embed CM into C/C+ + programs, or to make a CM+JUCE app, or create external objects in Max or Pd that use CM. i just checked in the ecl changes so it may take a few hours to migrate to the anonymous cvs server... only CM's main source tree has been ported but since CFFI seems to support ECL im hopeful that most other systems like rts and portmidi can be ported as welln. it seems that ECL developers are quite serious about windows, i would be grateful if some xp user out there is brave enough to try to build ecl and then cm in it on xp.... From testcase at asu.edu Tue Oct 10 11:31:48 2006 From: testcase at asu.edu (todd ingalls) Date: Tue, 10 Oct 2006 11:31:48 -0700 Subject: [CM] embeddable cm In-Reply-To: References: Message-ID: <33FFA7E6-74F2-4069-BFF2-06DDC39BFC07@asu.edu> Hi just to follow up and this, I have a max object built which has ecl embedded into it that starts up ecl in a separate thread, loads up and starts a swank connection. One can then connect to it via slime. It doesn't do anything interesting in max yet. Would anyone be interested in working with me on this? On Oct 10, 2006, at 10:04 AM, Rick Taube wrote: > ive ported CM to Embeddable Common Lisp (ECL). you need to build > ECL from its latest CVS sources for this to work: > > http://ecls.sf.net > > You can use ECL just like any other lisp, ie to build/run CM in ECL > just do: > > bin/cm.sh -l ecl > > But the really interesting thing about ECL is that you can link it > to C/C++ programs. This should make it possible now to embed CM > into C/C++ programs, or to make a CM+JUCE app, or create external > objects in Max or Pd that use CM. > > i just checked in the ecl changes so it may take a few hours to > migrate to the anonymous cvs server... > > only CM's main source tree has been ported but since CFFI seems to > support ECL im hopeful that most other systems like rts and > portmidi can be ported as welln. > > it seems that ECL developers are quite serious about windows, i > would be grateful if some xp user out there is brave enough to try > to build ecl and then cm in it on xp.... > > _______________________________________________ > Cmdist mailing list > Cmdist at ccrma.stanford.edu > http://ccrma-mail.stanford.edu/mailman/listinfo/cmdist From lievenmoors at hotmail.com Fri Oct 13 08:21:19 2006 From: lievenmoors at hotmail.com (Lieven Moors) Date: Fri, 13 Oct 2006 17:21:19 +0200 Subject: [CM] compile-problem:clm-3 Message-ID: hi everyone, i'm trying to compile clm-3, but i ran into the following error: (clm-bin-directory is set to "/opt/clm-3/bin") after (load "all.lisp"): ; Loading #P"/usr/src/clm/clm-3/all.lisp". ; running cd && ./configure --quiet --with-doubles --with-float-samples --with-jack ; Compiling "io.c" ; Compiling "headers.c" ; Compiling "audio.c" ; Compiling "sound.c" ; Compiling "clm.c" ; Compiling "cmus.c" ; Creating "/opt/clm-3/bin/libclm.so" ;;ld -shared -fPIC -o /opt/clm-3/bin/libclm.so /opt/clm-3/bin/headers.o /opt/clm-3/bin/audio.o /opt/clm-3/bin/io.o /opt/clm-3/bin/sound.o /opt/clm-3/bin/clm.o /opt/clm-3/bin/cmus.o /opt/clm-3/bin/sc.o -ljack -lsamplerate -L/usr/X11R6/lib -lX11 ;; Loading #P"/opt/clm-3/bin/clm-package.x86f". ;; Loading #P"/opt/clm-3/bin/initmus.x86f". ;;; Running /usr/bin/ld... here is the error in slime: File-error in function LOAD-FOREIGN: File does not exist: /opt/clm-3/bin/libclm.so. [Condition of type KERNEL:SIMPLE-FILE-ERROR] Restarts: 0: [CONTINUE] Return NIL from load of "all.lisp". 1: [ABORT-REQUEST] Abort handling SLIME request. 2: [ABORT] Return to Top-Level. Backtrace: 0: (LOAD-FOREIGN "/opt/clm-3/bin/libclm.so" :LIBRARIES ("-lc") :BASE-FILE ...) 1: (LISP::SLOLOAD #) 2: (LISP::INTERNAL-LOAD #P"/usr/src/clm/clm-3/all.lisp" #P"/usr/src/clm/clm-3/all.lisp" :ERROR :SOURCE) 3: (LISP::INTERNAL-LOAD #P"/usr/src/clm/clm-3/all.lisp" #P"/usr/src/clm/clm-3/all.lisp" :ERROR NIL) 4: (LOAD "all.lisp" :VERBOSE NIL :PRINT ...) 5: (SWANK::EVAL-REGION "(load \"all.lisp\") " T) thanks for your help, i'm very curious about CLM... lieven From bil at ccrma.Stanford.EDU Fri Oct 13 11:22:26 2006 From: bil at ccrma.Stanford.EDU (Bill Schottstaedt) Date: Fri, 13 Oct 2006 11:22:26 -0700 Subject: [CM] compile-problem:clm-3 In-Reply-To: References: Message-ID: <20061013182152.M46681@ccrma.Stanford.EDU> > /opt/clm-3/bin/clm.o /opt/clm-3/bin/cmus.o /opt/clm-3/bin/sc.o -ljack > -lsamplerate -L/usr/X11R6/lib -lX11 > ;; Loading #P"/opt/clm-3/bin/clm-package.x86f". > ;; Loading #P"/opt/clm-3/bin/initmus.x86f". > ;;; Running /usr/bin/ld... I take it you pushed :jack on *features* first? And this is cmucl? In that case, the message "Running..." means something went wrong earlier with the load -- I'm surprised there's not some sort of error like "can't find libjack" -- perhaps it was eaten by slime? I'd try again, but in a terminal, i.e. run cmucl in a shell, then (pushnew :jack *features*), then (load "all.lisp") and see if you get a real error message. In cases like this I always use strace to see where the loader is actually looking. If no luck there, remove all the generated files and sndlib.h and mus-config.h, don't push :jack, and try load "all.lisp" again. From dto at gnu.org Sun Oct 15 03:21:27 2006 From: dto at gnu.org (David O'Toole) Date: Sun, 15 Oct 2006 06:21:27 -0400 Subject: [CM] Compiling CLM instruments on FC5/ccrma Message-ID: Hello. I've recently upgraded my audio recording rig to Fedora Core 5, and successfully installed PlanetCCRMA-core and the Common Music environment. The instruments in /usr/share/common-lisp/source/clm have not been compiled. Should I write a program to do this myself (not terribly difficult) or is there a "correct" way to make this happen? Also, I have to specify the full path to /usr/share/common-lisp/source/clm when loading an instrument that has been compiled. Is there any way to get it to try loading from there automatically, something analogous to emacs' "load-path"? I get the sense I'm missing a step here---I'm new to Common Music and Common Lisp in general, so it's entirely possible. Perhaps you can help me out? Thanks in advance... -- David O'Toole dto at gnu.org http://dto.freeshell.org/notebook/ From dto at gnu.org Sun Oct 15 03:38:19 2006 From: dto at gnu.org (David O'Toole) Date: Sun, 15 Oct 2006 06:38:19 -0400 Subject: [CM] Problem compiling CLM instruments Message-ID: Hi, as a follow-up to my last message, I decided to write a function to compile all the instruments in /usr/share/common-lisp/clm Here is the short little function: ------------------------------------------ (defun dto-compile-instrument-directory (&key (path "/usr/share/common-lisp/clm/")) (let ((dir (directory path))) (loop for file in dir do (if (string= "ins" (pathname-type file)) (load file))))) ------------------------------------------ It seems to work and runs for awhile, compiling a bunch of instruments, but seems to run into a problem with moog.lisp: -------------------------------------------- debugger invoked on a SIMPLE-ERROR in thread #: setf: unknown accessor: MOOG-Q in (MOOG-Q F) Type HELP for debugger help, or (SB-EXT:QUIT) to exit from SBCL. restarts (invokable by number or by possibly-abbreviated name): 0: [ABORT] Exit debugger, returning to top level. (CLM::SETF-BRANCH # # 0) --------------------------------------------- This is with the version of CLM installed with CCRMA/FC5. What am I doing wrong? -- David O'Toole dto at gnu.org http://dto.freeshell.org/notebook/ From dto at gnu.org Sun Oct 15 03:46:20 2006 From: dto at gnu.org (David O'Toole) Date: Sun, 15 Oct 2006 06:46:20 -0400 Subject: [CM] C compiler error when compiling CLM instruments Message-ID: Hello, sorry to bug you again. I solved my last problem by compiling moog.lisp before building the instruments. However, I've run into another, and I doubt I'll be able to fix this one so simply: ------------------- ; Writing "/usr/share/common-lisp/source/clm/clm_GRAPHEQ.c" STYLE-WARNING: using deprecated EVAL-WHEN situation names EVAL LOAD STYLE-WARNING: using deprecated EVAL-WHEN situation names EVAL LOAD COMPILE ; Compiling "/usr/share/common-lisp/source/clm/clm_GRAPHEQ.c" /usr/share/common-lisp/source/clm/clm_GRAPHEQ.c: In function ?clm_grapheq406?: /usr/share/common-lisp/source/clm/clm_GRAPHEQ.c:161: error: invalid lvalue in assignment ; Creating shared object file "/usr/share/common-lisp/source/clm/clm_GRAPHEQ.so" ld: /usr/share/common-lisp/source/clm/clm_GRAPHEQ.o: No such file: No such file or directory debugger invoked on a SIMPLE-ERROR in thread #: Error opening shared object "/usr/share/common-lisp/source/clm/clm_GRAPHEQ.so": /usr/share/common-lisp/source/clm/clm_GRAPHEQ.so: cannot open shared object file: No such file or directory. Type HELP for debugger help, or (SB-EXT:QUIT) to exit from SBCL. restarts (invokable by number or by possibly-abbreviated name): 0: [ABORT] Exit debugger, returning to top level. (SB-SYS:DLOPEN-OR-LOSE #S(SB-ALIEN::SHARED-OBJECT :FILE "/usr/share/common-lisp/source/clm/clm_GRAPHEQ.so" :SAP NIL)) 0] 0 ----------------------- Can anyone help? -- David O'Toole dto at gnu.org http://dto.freeshell.org/notebook/ From bil at ccrma.Stanford.EDU Sun Oct 15 04:18:37 2006 From: bil at ccrma.Stanford.EDU (Bill Schottstaedt) Date: Sun, 15 Oct 2006 04:18:37 -0700 Subject: [CM] C compiler error when compiling CLM instruments In-Reply-To: References: Message-ID: <20061015111738.M92893@ccrma.Stanford.EDU> > The instruments in /usr/share/common-lisp/source/clm have not been > compiled. Should I write a program to do this myself (not terribly > difficult) or is there a "correct" way to make this happen? Normally, I think, people only compile the instruments that interest them. clm-test.lisp compiles and runs all of them. > Also, I have to specify the full path to > /usr/share/common-lisp/source/clm when loading an instrument that has > been compiled. Is there any way to get it to try loading from there > automatically, something analogous to emacs' "load-path"? perhaps *default-pathname-defaults*. > (if (string= "ins" (pathname-type file)) > (load file))))) this may work sometimes in sbcl, but it's much safer to compile the instrument file first (use compile-file as in compile-and-load in all.lisp) -- see below. > setf: unknown accessor: MOOG-Q in (MOOG-Q F) I think this is happening in filter-noise.ins which expects moog.lisp to be already compiled and loaded. Ideally it would handle that requirement in some debonair manner. > /usr/share/common-lisp/source/clm/clm_GRAPHEQ.c:161: error: invalid lvalue in assignment This is a case where you have to compile the instrument file first -- just (load "grapheq.ins") doesn't work. From dto at gnu.org Sun Oct 15 05:55:40 2006 From: dto at gnu.org (David O'Toole) Date: Sun, 15 Oct 2006 08:55:40 -0400 Subject: [CM] C compiler error when compiling CLM instruments In-Reply-To: <20061015111738.M92893@ccrma.Stanford.EDU> (Bill Schottstaedt's message of "Sun\, 15 Oct 2006 04\:18\:37 -0700") References: <20061015111738.M92893@ccrma.Stanford.EDU> Message-ID: Thanks so much for your help. I got them all compiled successfully. "Bill Schottstaedt" writes: > >> /usr/share/common-lisp/source/clm/clm_GRAPHEQ.c:161: error: invalid lvalue in > assignment > > This is a case where you have to compile the instrument file first -- > just (load "grapheq.ins") doesn't work. -- David O'Toole dto at gnu.org http://dto.freeshell.org/notebook/ From dto at gnu.org Sun Oct 15 07:14:20 2006 From: dto at gnu.org (David O'Toole) Date: Sun, 15 Oct 2006 10:14:20 -0400 Subject: [CM] C compiler error when compiling CLM instruments In-Reply-To: <20061015111738.M92893@ccrma.Stanford.EDU> (Bill Schottstaedt's message of "Sun\, 15 Oct 2006 04\:18\:37 -0700") References: <20061015111738.M92893@ccrma.Stanford.EDU> Message-ID: I was wrong---compiling first fails, just on grapheq.ins. The error message is below. I can always just leave out this instrument, but I would like to make sure they all work. --------------------------------------------------------------- * (compile-file "/usr/share/common-lisp/source/clm/grapheq.ins") ; Writing "/usr/share/common-lisp/source/clm/clm_GRAPHEQ.c" ; Compiling "/usr/share/common-lisp/source/clm/clm_GRAPHEQ.c" /usr/share/common-lisp/source/clm/clm_GRAPHEQ.c: In function ?clm_grapheq1129?: /usr/share/common-lisp/source/clm/clm_GRAPHEQ.c:161: error: invalid lvalue in assignment ; Creating shared object file "/usr/share/common-lisp/source/clm/clm_GRAPHEQ.so" ld: /usr/share/common-lisp/source/clm/clm_GRAPHEQ.o: No such file: No such file or directory --------------------------------------------------------------- "Bill Schottstaedt" writes: >> The instruments in /usr/share/common-lisp/source/clm have not been >> compiled. Should I write a program to do this myself (not terribly >> difficult) or is there a "correct" way to make this happen? > > Normally, I think, people only compile the instruments that interest > them. clm-test.lisp compiles and runs all of them. > > >> Also, I have to specify the full path to >> /usr/share/common-lisp/source/clm when loading an instrument that has >> been compiled. Is there any way to get it to try loading from there >> automatically, something analogous to emacs' "load-path"? > > perhaps *default-pathname-defaults*. > > >> (if (string= "ins" (pathname-type file)) >> (load file))))) > > this may work sometimes in sbcl, but it's much safer to compile the instrument > file first (use compile-file as in compile-and-load in all.lisp) -- see below. > > >> setf: unknown accessor: MOOG-Q in (MOOG-Q F) > > I think this is happening in filter-noise.ins which expects moog.lisp > to be already compiled and loaded. Ideally it would handle that requirement > in some debonair manner. > > >> /usr/share/common-lisp/source/clm/clm_GRAPHEQ.c:161: error: invalid lvalue in > assignment > > This is a case where you have to compile the instrument file first -- > just (load "grapheq.ins") doesn't work. > > > -- David O'Toole dto at gnu.org http://dto.freeshell.org/notebook/ From bil at ccrma.Stanford.EDU Sun Oct 15 08:58:17 2006 From: bil at ccrma.Stanford.EDU (Bill Schottstaedt) Date: Sun, 15 Oct 2006 08:58:17 -0700 Subject: [CM] C compiler error when compiling CLM instruments In-Reply-To: References: <20061015111738.M92893@ccrma.Stanford.EDU> Message-ID: <20061015155725.M49392@ccrma.Stanford.EDU> > I was wrong---compiling first fails, just on grapheq.ins. The error > message is below. I didn't see the error message because it was buried in all of sbcl's pointless blathering! Great. I think this change fixes the problem: (run (loop for i from st to nd do (declare (type :mus-any* frm-size)) (when (and stats (= 44100 (mod i 44200))) (that is, in this case we need to declare the array's type). From dto at gnu.org Sun Oct 15 08:52:51 2006 From: dto at gnu.org (David O'Toole) Date: Sun, 15 Oct 2006 11:52:51 -0400 Subject: [CM] Real-time CLM Message-ID: I am thinking about implementing a graphical front-end for Common Lisp Music for real-time sound processing and generation. I have heard that CLM has such realtime capability with "defpinstrument" and so on. So, I figured I could transform the user's requests into code for CLM. However, it seems the realtime functionality has been removed in CLM-3. How do I write a synthesis program that talks to CLM in realtime? Should I just use CLM-2? -- David O'Toole dto at gnu.org http://dto.freeshell.org/notebook/ From bil at ccrma.Stanford.EDU Sun Oct 15 10:12:00 2006 From: bil at ccrma.Stanford.EDU (Bill Schottstaedt) Date: Sun, 15 Oct 2006 10:12:00 -0700 Subject: [CM] Real-time CLM In-Reply-To: References: Message-ID: <20061015170408.M16757@ccrma.Stanford.EDU> > How do I write a synthesis program that talks to CLM in realtime? Check out Snd. Perhaps you could build on the work Kjetil has done (http://www.notam02.no/~kjetism/sandysth/ etc)? As far as I know, defpinstrument was never actually used for real-time work; CL is (or was) problematic in that regard. I think there has been recent progress on that front -- perhaps Rick and friends have overcome all the problems. Perry Cook and Gary Scavone's Stk is aimed at real-time synthesis -- you might check it out -- are you married to lisp? From dto at gnu.org Sun Oct 15 11:16:36 2006 From: dto at gnu.org (David O'Toole) Date: Sun, 15 Oct 2006 14:16:36 -0400 Subject: [CM] Real-time CLM In-Reply-To: <20061015170408.M16757@ccrma.Stanford.EDU> (Bill Schottstaedt's message of "Sun\, 15 Oct 2006 10\:12\:00 -0700") References: <20061015170408.M16757@ccrma.Stanford.EDU> Message-ID: I've been sniffing around Google and it seems like building this on top of Snd would be best. I am quite married to lisp, it's my favorite language :-). I see that Snd allows interaction on stdin/stdout. This means I should be able to write a CL program that starts Snd in the background, using Snd as a sort of audio server, then send s-expressions to Snd. I will keep you posted on what I come up with. "Bill Schottstaedt" writes: >> How do I write a synthesis program that talks to CLM in realtime? > > Check out Snd. Perhaps you could build on the work Kjetil has > done (http://www.notam02.no/~kjetism/sandysth/ etc)? > > As far as I know, defpinstrument was never actually used for real-time > work; CL is (or was) problematic in that regard. I think there has been > recent progress on that front -- perhaps Rick and > friends have overcome all the problems. > > Perry Cook and Gary Scavone's Stk is aimed at real-time synthesis -- > you might check it out -- are you married to lisp? > > -- David O'Toole dto at gnu.org http://dto.freeshell.org/notebook/ From renueden at earthlink.net Sun Oct 15 11:32:49 2006 From: renueden at earthlink.net (Ken) Date: Sun, 15 Oct 2006 11:32:49 -0700 Subject: [CM] Real-time CLM In-Reply-To: References: <20061015170408.M16757@ccrma.Stanford.EDU> Message-ID: <45327ED1.6050203@earthlink.net> Also look into Csound5. Someone has been working on a CFFI backend to the API. If you have good lisp skills, it would be great if you could get that going, as the Csound package has a ton of great features, and you'd still be in lisp. Ken David O'Toole wrote: > I've been sniffing around Google and it seems like building this on > top of Snd would be best. I am quite married to lisp, it's my favorite > language :-). > > I see that Snd allows interaction on stdin/stdout. This means I should > be able to write a CL program that starts Snd in the background, using > Snd as a sort of audio server, then send s-expressions to Snd. > > I will keep you posted on what I come up with. > > "Bill Schottstaedt" writes: > > >>> How do I write a synthesis program that talks to CLM in realtime? >>> >> Check out Snd. Perhaps you could build on the work Kjetil has >> done (http://www.notam02.no/~kjetism/sandysth/ etc)? >> >> As far as I know, defpinstrument was never actually used for real-time >> work; CL is (or was) problematic in that regard. I think there has been >> recent progress on that front -- perhaps Rick and >> friends have overcome all the problems. >> >> Perry Cook and Gary Scavone's Stk is aimed at real-time synthesis -- >> you might check it out -- are you married to lisp? >> >> >> > > From taube at uiuc.edu Sun Oct 15 11:36:05 2006 From: taube at uiuc.edu (Rick Taube) Date: Sun, 15 Oct 2006 13:36:05 -0500 Subject: [CM] Real-time CLM In-Reply-To: <20061015170408.M16757@ccrma.Stanford.EDU> References: <20061015170408.M16757@ccrma.Stanford.EDU> Message-ID: <7272AB40-16A0-4E75-BDA6-3AFB60F26C61@uiuc.edu> > > Perry Cook and Gary Scavone's Stk is aimed at real-time synthesis -- > you might check it out -- are you married to lisp? todd ingalls has been threatening to release his cffi wrapper to SndObj for doing real time synthesis in lisp. home: http://music.nuim.ie/musictec/SndObj/main.html doc (pdf): http://music.nuim.ie/musictec/SndObj/SndObj_Manual-2.6.1.pdf From k.s.matheussen at notam02.no Sun Oct 15 12:15:56 2006 From: k.s.matheussen at notam02.no (Kjetil S. Matheussen) Date: Sun, 15 Oct 2006 21:15:56 +0200 (CEST) Subject: [CM] Re: Real-time CLM In-Reply-To: <20061015190003.23321.39473.Mailman@cm-mail.stanford.edu> References: <20061015190003.23321.39473.Mailman@cm-mail.stanford.edu> Message-ID: "David O'Toole": > > > I've been sniffing around Google and it seems like building this on > top of Snd would be best. I am quite married to lisp, it's my favorite > language :-). > If you are using the realtime extension, please let me know immediately if (read: when) you find bugs. > I see that Snd allows interaction on stdin/stdout. This means I should > be able to write a CL program that starts Snd in the background, using > Snd as a sort of audio server, then send s-expressions to Snd. > You can also do everything in SND. As far as I know, CL works in SND. Used to, at least. From dto at gnu.org Sun Oct 15 17:21:29 2006 From: dto at gnu.org (David O'Toole) Date: Sun, 15 Oct 2006 20:21:29 -0400 Subject: [CM] Re: Real-time CLM In-Reply-To: (Kjetil S. Matheussen's message of "Sun\, 15 Oct 2006 21\:15\:56 +0200 \(CEST\)") References: <20061015190003.23321.39473.Mailman@cm-mail.stanford.edu> Message-ID: I'm using the Snd that comes with planetccrma-fc5. Should I be using some special CVS version? "Kjetil S. Matheussen" writes: > "David O'Toole": >> >> >> I've been sniffing around Google and it seems like building this on >> top of Snd would be best. I am quite married to lisp, it's my favorite >> language :-). >> > > If you are using the realtime extension, please let me know immediately > if (read: when) you find bugs. > > >> I see that Snd allows interaction on stdin/stdout. This means I should >> be able to write a CL program that starts Snd in the background, using >> Snd as a sort of audio server, then send s-expressions to Snd. >> > > You can also do everything in SND. As far as I know, CL works in SND. > Used to, at least. > > _______________________________________________ > Cmdist mailing list > Cmdist at ccrma.stanford.edu > http://ccrma-mail.stanford.edu/mailman/listinfo/cmdist > -- David O'Toole dto at gnu.org http://dto.freeshell.org/notebook/ From k.s.matheussen at notam02.no Sun Oct 15 17:54:28 2006 From: k.s.matheussen at notam02.no (Kjetil S. Matheussen) Date: Mon, 16 Oct 2006 02:54:28 +0200 (CEST) Subject: [CM] Re: Real-time CLM In-Reply-To: References: <20061015190003.23321.39473.Mailman@cm-mail.stanford.edu> Message-ID: I don't know which version is in planetccrma-fc5, but I guess you can use it. There are some important bugs fixed only a few weeks ago though, so you are probably best off with the latest version instead. And the latest version of snd-ls should always be fine too. Another thing is that for the rt examples that use graphics, you need snd compiled with gtk, and I think planet-ccrma only supplies snd compiled with motif... On Sun, 15 Oct 2006, David O'Toole wrote: > > I'm using the Snd that comes with planetccrma-fc5. Should I be using > some special CVS version? > > "Kjetil S. Matheussen" writes: > >> "David O'Toole": >>> >>> >>> I've been sniffing around Google and it seems like building this on >>> top of Snd would be best. I am quite married to lisp, it's my favorite >>> language :-). >>> >> >> If you are using the realtime extension, please let me know immediately >> if (read: when) you find bugs. >> >> >>> I see that Snd allows interaction on stdin/stdout. This means I should >>> be able to write a CL program that starts Snd in the background, using >>> Snd as a sort of audio server, then send s-expressions to Snd. >>> >> >> You can also do everything in SND. As far as I know, CL works in SND. >> Used to, at least. >> >> _______________________________________________ >> Cmdist mailing list >> Cmdist at ccrma.stanford.edu >> http://ccrma-mail.stanford.edu/mailman/listinfo/cmdist >> > > -- > David O'Toole > dto at gnu.org > http://dto.freeshell.org/notebook/ > From holeczek at us.edu.pl Mon Oct 16 05:21:35 2006 From: holeczek at us.edu.pl (Jacek M. Holeczek) Date: Mon, 16 Oct 2006 14:21:35 +0200 (MET DST) Subject: [CM] Snd-8(.5) questions (newbie) Message-ID: Hi, first, let me say that I'm a complete newbie, what concerns sound editing. I've just installed (from cvs) the current Snd (with Guile-1.6.4). Here come my "newbie" questions. Sorry about these questions, but after reading the manual, I still don't know the answers. Assume I open a "wav" file ... 1a. How can I get the "mean/average" value of all samples? 1b. How can I get the "mean/average" value of "selected" samples? 2a. How can I get the "mean/average" value of the "amplitude" for all samples? 2.b How can I get the "mean/average" value of the "amplitude" for "selected" samples? 3a. How can I get the "RMS" value for all samples? 3b. How can I get the "RMS" value for "selected" samples? 4a. How can I get the "standard deviation" value for all samples? 4b. How can I get the "standard deviation" value for "selected" samples? 5a. How can I get the "min" and "max" values of all samples? 5b. How can I get the "min" and "max" values of "selected" samples? (In case of 5.a and 5.b also getting the "sample number" would be nice, or maybe one could afterwards "search" for samples of a given "value" using the "find-channel" function, for example?) 6.a How can I "add/subtract" a value to/from all samples? (I believe I have found the answer to 6.a ... "offset-channel".) 6.b How can I "add/subtract" a value to/from "selected" samples? Saying "selected samples" above, I mean a "Selection" and/or a "Region". Finally, I need your advice in the following matter. This is, in principle, what I am really interested in and why I need to "edit" my sounds. In principle, using a Linux machine with a simple soundcard, I would like to record four independent tracks (Soprano, Alto, Tenor, Bass). Each of them would be "mono" (1 channel), in separate "wav" files. Assume now that I synchronized these files adding appropriate "silence" in the beginning of all of them (different amount for different tracks). From bil at ccrma.Stanford.EDU Mon Oct 16 12:54:25 2006 From: bil at ccrma.Stanford.EDU (Bill Schottstaedt) Date: Mon, 16 Oct 2006 12:54:25 -0700 Subject: [CM] Snd-8(.5) questions (newbie) In-Reply-To: References: Message-ID: <20061016195341.M44028@ccrma.Stanford.EDU> > 1a. How can I get the "mean/average" value of all samples? (let ((sum 0.0)) (scan-channel (lambda (y) (set! sum (+ sum y)) #f)) (/ sum (frames))) > 1b. How can I get the "mean/average" value of "selected" samples? (let ((sum 0.0)) (scan-channel (lambda (y) (set! sum (+ sum y)) #f) (selection-position) (selection-frames)) (/ sum (selection-frames))) > 2a. How can I get the "mean/average" value of the "amplitude" for all > samples? There's no distinction between a sample and its amplitude. > 3a. How can I get the "RMS" value for all samples? > 3b. How can I get the "RMS" value for "selected" samples? similar to above but return RMS. > 4a. How can I get the "standard deviation" value for all samples? > 4b. How can I get the "standard deviation" value for "selected" samples? similar to above, but return standard deviation. > 5a. How can I get the "min" and "max" values of all samples? > 5b. How can I get the "min" and "max" values of "selected" samples? maxamp and selection-maxamp > (In case of 5.a and 5.b also getting the "sample number" would be nice, or > maybe one could afterwards "search" for samples of a given "value" using > the "find-channel" function, for example?) maxamp-position and selection-maxamp-position > 6.a How can I "add/subtract" a value to/from all samples? > (I believe I have found the answer to 6.a ... "offset-channel".) > 6.b How can I "add/subtract" a value to/from "selected" samples? (map-channel (lambda (y) (- y .1))) ; or whatever you want to subtract > From these four "independent" mono tracks, I would like to produce a > "stereo" file (2 channels). see mono->stereo in extensions.scm > In "professional live" recordings, you can > actually "hear" that one guy is staying left to you, another one right to > you, and so on ... and this is exactly what I would like to achieve, too. > I would like to "hear" the Soprano most left, Alto left-middle, Tenor > right-middle, Bass most right ... perhaps place-sound is what you want. From rm at seid-online.de Mon Oct 16 14:34:39 2006 From: rm at seid-online.de (Ralf Mattes) Date: Mon, 16 Oct 2006 23:34:39 +0200 Subject: [CM] Snd-8(.5) questions (newbie) In-Reply-To: References: Message-ID: <1161034479.8862.10.camel@localhost.localdomain> On Mon, 2006-10-16 at 14:21 +0200, Jacek M. Holeczek wrote: > Hi, > first, let me say that I'm a complete newbie, what concerns sound editing. > > I've just installed (from cvs) the current Snd (with Guile-1.6.4). > > Here come my "newbie" questions. Sorry about these questions, but after > reading the manual, I still don't know the answers. > [Snip ... snip .. snip] > > Finally, I need your advice in the following matter. > This is, in principle, what I am really interested in and why I need to > "edit" my sounds. > > In principle, using a Linux machine with a simple soundcard, I would like > to record four independent tracks (Soprano, Alto, Tenor, Bass). Each of > them would be "mono" (1 channel), in separate "wav" files. > Assume now that I synchronized these files adding appropriate "silence" in > the beginning of all of them (different amount for different tracks). > >From these four "independent" mono tracks, I would like to produce a > "stereo" file (2 channels). In "professional live" recordings, you can > actually "hear" that one guy is staying left to you, another one right to > you, and so on ... and this is exactly what I would like to achieve, too. > I would like to "hear" the Soprano most left, Alto left-middle, Tenor > right-middle, Bass most right ... > Being completely new to this business, i have no idea how to achieve it. > Hmm, i wounder whether it might be easier to use a sound recording tool for this task: have you had a look at ardour? With ardour you could do exactly the kind of editing you describe - import WAV data, slice 'n dice and move around and position the channels with a nice graphical GUI. HTH Ralf Mattes P.S: This is not to say that snd can't handle that job, i just feel that ardour would be the more natural choice for this task ... > Could you, please help me, > Thanks in advance, > Best regards, > Jacek. > > _______________________________________________ > Cmdist mailing list > Cmdist at ccrma.stanford.edu > http://ccrma-mail.stanford.edu/mailman/listinfo/cmdist From J.Anderson at hull.ac.uk Tue Oct 17 04:43:25 2006 From: J.Anderson at hull.ac.uk (Joseph Anderson) Date: Tue, 17 Oct 2006 12:43:25 +0100 Subject: [CM] clm on os x Message-ID: Hi All, Just looking for a little orientation for a clm newbie in getting things running happy on os x. I've downloaded CM.app 2.8 from http://prdownloads.sourceforge.net/commonmusic. For emacs am using Aquamacs 0.9.8. Things run fine, but I'm having a bit of trouble with working out how to use emacs as a file editor with all the benefits of indentation and completion. I've been looking at the intro tutorial put together by Matt Wright & Fernando Lopez-Lezcano at http://ccrma.stanford.edu/courses/220b/intro/220b-environment-tutorial.html. (See excerpt below.) The trouble I'm having, is replicating the behaviour described in step 6 of their tutorial. For me, C-X C-F doesn't exactly do what I'm expecting. It does open up a NEW window (not using the split window) with "Emacs - *Minibuf-1*" at the top and "Find file:/" at the bottom. Typing a file name "mysound.lisp", in the new window, the (Lisp Slime) mode is listed at the bottom of the window. However, in this new window, I'm not getting the "nice features of SLIME, including paren blinking, automatic indentation, automatic documentation retrieval, and tab completion". So, what am I doing wrong here? I do get all the "nice features" if I stay in my original *slime-repl openmcl* window. All these nice features do seem to be the point of working in emacs to begin with. Thanks for the help. J Anderson Number 6 from Matt Wright & Fernando Lopez-Lezcano tutorial: 6) Writing Programs in Emacs Split Emacs into two vertical windows with C-X 2. In one window, use C-X C-F to open a new file called mysound.lisp. Because the name of the file you're working on ends in ".lisp", Emacs figured out that you're going to type a Lisp program, and so the mode of that buffer is "(Lisp Slime)". Even though this isn't the SLIME REPL buffer where you talk to Lisp, you'll get a lot of the nice features of SLIME, including paren blinking, automatic indentation, automatic documentation retrieval, and tab completion. Type your own little Lisp program into this buffer, with a call to with-sound and one or more calls to fm-violin. When you're ready to try your program, put the cursor inside it somewhere and type C-M-x. This will send your program to Lisp. If there's an error it will bring up the debugger as before. Otherwise, your program will run, and you'll see the return value (which will probably be the string "test.snd") at the very bottom of Emacs. Another way to run your program is to save the file (C-X s) and then load it into Lisp: (load "mysound.lisp") You can also explicitly copy and paste between the buffer that contains your file and the SLIME REPL buffer, M-C-k is super useful, because it cuts an entire Lisp expression (i.e., a complete set of balanced parentheses and everything between them). -------------- next part -------------- An embedded and charset-unspecified text was scrubbed... Name: not available URL: From lievenmoors at hotmail.com Tue Oct 17 04:43:51 2006 From: lievenmoors at hotmail.com (Lieven Moors) Date: Tue, 17 Oct 2006 13:43:51 +0200 Subject: [CM] clm not working (with cmucl and jack) Message-ID: hi, i'm still having trouble with clm. when i try to make a sound, i just get xruns in the jack-server, and lisp is killed without any errors. in top, i can see lisp eat about 80% of memory before it gets killed. actually at one time the violin did play without problems, for 60 seconds. but i'm not able to reproduce this. this is what happenes: (load "/usr/src/clm/clm-3/v.cmucl") (with-sound () (fm-violin 0 60 440 .1)) here is the output from jack: new client: sndlib0, id = 3 type 2 @ 0xb5cc6000 fd = 19 registered port sndlib0:out_1, offset = 3072 12:46:33.025 Audio connection graph change. registered port sndlib0:out_2, offset = 4096 registered port sndlib0:in_1, offset = 0 registered port sndlib0:in_2, offset = 0 registered port sndlib0:in_3, offset = 0 registered port sndlib0:in_4, offset = 0 **** alsa_pcm: xrun of at least 1441.404 msecs **** alsa_pcm: xrun of at least 209.315 msecs removing disconnected client sndlib0 state = Not triggered errors = 0 removing client "sndlib0" removing client "sndlib0" from the processing chain after that lisp just gets disconnected would be very grateful for your help From taube at uiuc.edu Tue Oct 17 05:04:39 2006 From: taube at uiuc.edu (Rick Taube) Date: Tue, 17 Oct 2006 07:04:39 -0500 Subject: [CM] clm on os x In-Reply-To: References: Message-ID: > > However, in this new window, I'm not getting the "nice features of > SLIME, including paren blinking, automatic indentation, automatic > documentation retrieval, and tab completion". So, what am I doing > wrong here? I do get all the "nice features" if I stay in my > original *slime-repl openmcl* window. All these nice features do > seem to be the point of working in emacs to begin with. odd. sounds like lisp mode is not working or is not turned on despite the mode line. try explicitly setting the buffer to lisp mode to see if thats the issue, ie do: M-x lisp-mode and see if you have any lisp editing commands. also make sure the first line in your new buffer has (in-package :cm) or (in-package :clm) or whatever. From J.Anderson at hull.ac.uk Tue Oct 17 06:26:25 2006 From: J.Anderson at hull.ac.uk (Joseph Anderson) Date: Tue, 17 Oct 2006 14:26:25 +0100 Subject: [CM] clm on os x References: Message-ID: Thanks Rick. Though I only seem to be half-way there. Putting (in-package :cm) at the top of the new buffer does fix the business with the syntax look-up and tab completion. Lisp mode does appear to be set. And as suggested I forced it with M-x lisp-mode. Paren blinking works (was working before). Most features do seem to work. However, the automatic indention isn't working. This seems odd to me. The automatic indentation does work in the *slime-repl openmcl* window. Don't know if this matters or not, but I haven't set up a .emacs file in my $HOME directory. I've just used the CM.app with Aquamacs 0.9.8, and this seemed to work fine w/out adding a .emacs. Thanks for the help. J Anderson -----Original Message----- From: cmdist-admin at ccrma.Stanford.EDU on behalf of Rick Taube Sent: Tue 10/17/2006 1:04 PM To: Joseph Anderson Cc: Common Muisc List Subject: Re: [CM] clm on os x > > However, in this new window, I'm not getting the "nice features of > SLIME, including paren blinking, automatic indentation, automatic > documentation retrieval, and tab completion". So, what am I doing > wrong here? I do get all the "nice features" if I stay in my > original *slime-repl openmcl* window. All these nice features do > seem to be the point of working in emacs to begin with. odd. sounds like lisp mode is not working or is not turned on despite the mode line. try explicitly setting the buffer to lisp mode to see if thats the issue, ie do: M-x lisp-mode and see if you have any lisp editing commands. also make sure the first line in your new buffer has (in-package :cm) or (in-package :clm) or whatever. _______________________________________________ Cmdist mailing list Cmdist at ccrma.stanford.edu http://ccrma-mail.stanford.edu/mailman/listinfo/cmdist -------------- next part -------------- An embedded and charset-unspecified text was scrubbed... Name: not available URL: From taube at uiuc.edu Tue Oct 17 06:42:32 2006 From: taube at uiuc.edu (Rick Taube) Date: Tue, 17 Oct 2006 08:42:32 -0500 Subject: [CM] clm on os x In-Reply-To: References: Message-ID: <4AC8E75A-E0AB-43E4-8B44-5A5D70C796FA@uiuc.edu> now sure whats up with indentation. try adding this to a ~/.emacs file: (require 'slime) (define-key slime-mode-map (kbd "TAB") 'slime-indent-anything) (defun slime-indent-anything () "Do line indentation/symbol completion; indent region if selected; indent whole defun if prefixed." (interactive) (if current-prefix-arg (slime-reindent-defun ) (if (and (and mark-active (not (null (mark)))) (> (count-lines (region-beginning) (region-end)) 1)) (lisp-indent-region (region-beginning) (region-end)) (slime-indent-and-complete-symbol)))) From J.Anderson at hull.ac.uk Tue Oct 17 07:07:09 2006 From: J.Anderson at hull.ac.uk (Joseph Anderson) Date: Tue, 17 Oct 2006 15:07:09 +0100 Subject: [CM] clm on os x References: <4AC8E75A-E0AB-43E4-8B44-5A5D70C796FA@uiuc.edu> Message-ID: Hell Rick, Adding .emacs as you suggest below, I get: An error has occurred while loading `/Users/josephla/.emacs': File error: Cannot open load file, slime The complete text in the *Messages* window is as below: (/Applications/Aquamacs Emacs.app/Contents/MacOS/Aquamacs Emacs --eval (setq inhibit-startup-message t) --directory /Applications/Sound/CommonMusic/CM.app/Contents/Resources/slime -l /Applications/Sound/CommonMusic/CM.app/Contents/Resources/cm/etc/xemacs/cm.el --eval (progn (if (member (quote aquamacs) features) (make-frame)) (enable-cm-commands) (cm "/Applications/Sound/CommonMusic/CM.app/Contents/Resources/cm/bin/cm.sh -l /Applications/Sound/CommonMusic/CM.app/Contents/Resources/ccl/dppccl"))) Loading prestart plugin files ... ... done. Aquamacs Mule installed. Loading cl-macs...done Defining fontset: monaco Defining fontset: lucida Defining fontset: lucida_typewriter Defining fontset: lucida_console Defining fontset: courier Defining fontset: vera_mono Loading fringe...done Loading easy-mmode...done Loading encoded-kb...done Loading edmacro...done Loading /Users/josephla/Library/Preferences/Aquamacs Emacs/Recent Files.el (source)...done Cleaning up the recentf list...done (0 removed) Loading cus-edit... Loading jka-compr...done uncompressing cus-edit.elc.gz...done Loading cus-edit...done Loading /Applications/Aquamacs Emacs.app/Contents/Resources/site-lisp/edit-modes/tex-site.el (source)...done Loading edit-modes/nxml/rng-auto (source)...done Loading plugins ... Loading /Applications/Aquamacs Emacs.app/Contents/Resources/site-lisp/site-start (source)...done ... done. An error has occurred while loading `/Users/josephla/.emacs': File error: Cannot open load file, slime To ensure normal operation, you should investigate and remove the cause of the error in your initialization file. Start Emacs with the `--debug-init' option to view a complete error backtrace. Loading cl-seq...done Loading derived...done Loading cl-extra...done Polling "/tmp/slime.3622".. (Abort with `M-x slime-abort-connection'.) [37 times] Connecting to Swank on port 55843.. Process bridge is installed Loading animate...done Connected. Your hacking starts... NOW! Mark set [4 times] -----Original Message----- From: cmdist-admin at ccrma.Stanford.EDU on behalf of Rick Taube Sent: Tue 10/17/2006 2:42 PM To: Joseph Anderson Cc: Common Muisc List Subject: Re: [CM] clm on os x now sure whats up with indentation. try adding this to a ~/.emacs file: (require 'slime) (define-key slime-mode-map (kbd "TAB") 'slime-indent-anything) (defun slime-indent-anything () "Do line indentation/symbol completion; indent region if selected; indent whole defun if prefixed." (interactive) (if current-prefix-arg (slime-reindent-defun ) (if (and (and mark-active (not (null (mark)))) (> (count-lines (region-beginning) (region-end)) 1)) (lisp-indent-region (region-beginning) (region-end)) (slime-indent-and-complete-symbol)))) _______________________________________________ Cmdist mailing list Cmdist at ccrma.stanford.edu http://ccrma-mail.stanford.edu/mailman/listinfo/cmdist -------------- next part -------------- An embedded and charset-unspecified text was scrubbed... Name: not available URL: From dto at gnu.org Tue Oct 17 10:37:26 2006 From: dto at gnu.org (David O'Toole) Date: Tue, 17 Oct 2006 13:37:26 -0400 Subject: [CM] Re: Real-time CLM In-Reply-To: (Kjetil S. Matheussen's message of "Mon\, 16 Oct 2006 02\:54\:28 +0200 \(CEST\)") References: <20061015190003.23321.39473.Mailman@cm-mail.stanford.edu> Message-ID: I'm about to configure the cvs version of Snd so I can start playing with the realtime functions. Which is better for realtime---Guile or Gauche?? "Kjetil S. Matheussen" writes: > I don't know which version is in planetccrma-fc5, but > I guess you can use it. There are some important bugs fixed only a few > weeks ago though, so you are probably best off with the latest version > instead. And the latest version of snd-ls should always be fine too. > > Another thing is that for the rt examples that use graphics, you need > snd compiled with gtk, and I think planet-ccrma only supplies snd > compiled with motif... > > > On Sun, 15 Oct 2006, David O'Toole wrote: > >> >> I'm using the Snd that comes with planetccrma-fc5. Should I be using >> some special CVS version? >> >> "Kjetil S. Matheussen" writes: >> >>> "David O'Toole": >>>> >>>> >>>> I've been sniffing around Google and it seems like building this on >>>> top of Snd would be best. I am quite married to lisp, it's my favorite >>>> language :-). >>>> >>> >>> If you are using the realtime extension, please let me know immediately >>> if (read: when) you find bugs. >>> >>> >>>> I see that Snd allows interaction on stdin/stdout. This means I should >>>> be able to write a CL program that starts Snd in the background, using >>>> Snd as a sort of audio server, then send s-expressions to Snd. >>>> >>> >>> You can also do everything in SND. As far as I know, CL works in SND. >>> Used to, at least. >>> >>> _______________________________________________ >>> Cmdist mailing list >>> Cmdist at ccrma.stanford.edu >>> http://ccrma-mail.stanford.edu/mailman/listinfo/cmdist >>> >> >> -- >> David O'Toole >> dto at gnu.org >> http://dto.freeshell.org/notebook/ >> -- David O'Toole dto at gnu.org http://dto.freeshell.org/notebook/ From k.s.matheussen at notam02.no Tue Oct 17 10:46:52 2006 From: k.s.matheussen at notam02.no (Kjetil S. Matheussen) Date: Tue, 17 Oct 2006 19:46:52 +0200 (CEST) Subject: [CM] Re: Real-time CLM In-Reply-To: References: <20061015190003.23321.39473.Mailman@cm-mail.stanford.edu> Message-ID: Gauche is not supported, so you must use guile. But even it was, it shouldn't matter that much, because the realtime part is a seperate scheme-like compiler not running in either guile or gauche. When you have things up and running, do also set your CFLAGS environment variable to "-march=" for a small speedup. (20% or so for athlon-xp cpus) On Tue, 17 Oct 2006, David O'Toole wrote: > > I'm about to configure the cvs version of Snd so I can start playing > with the realtime functions. > > Which is better for realtime---Guile or Gauche?? > > "Kjetil S. Matheussen" writes: > >> I don't know which version is in planetccrma-fc5, but >> I guess you can use it. There are some important bugs fixed only a few >> weeks ago though, so you are probably best off with the latest version >> instead. And the latest version of snd-ls should always be fine too. >> >> Another thing is that for the rt examples that use graphics, you need >> snd compiled with gtk, and I think planet-ccrma only supplies snd >> compiled with motif... >> >> >> On Sun, 15 Oct 2006, David O'Toole wrote: >> >>> >>> I'm using the Snd that comes with planetccrma-fc5. Should I be using >>> some special CVS version? >>> >>> "Kjetil S. Matheussen" writes: >>> >>>> "David O'Toole": >>>>> >>>>> >>>>> I've been sniffing around Google and it seems like building this on >>>>> top of Snd would be best. I am quite married to lisp, it's my favorite >>>>> language :-). >>>>> >>>> >>>> If you are using the realtime extension, please let me know immediately >>>> if (read: when) you find bugs. >>>> >>>> >>>>> I see that Snd allows interaction on stdin/stdout. This means I should >>>>> be able to write a CL program that starts Snd in the background, using >>>>> Snd as a sort of audio server, then send s-expressions to Snd. >>>>> >>>> >>>> You can also do everything in SND. As far as I know, CL works in SND. >>>> Used to, at least. >>>> >>>> _______________________________________________ >>>> Cmdist mailing list >>>> Cmdist at ccrma.stanford.edu >>>> http://ccrma-mail.stanford.edu/mailman/listinfo/cmdist >>>> >>> >>> -- >>> David O'Toole >>> dto at gnu.org >>> http://dto.freeshell.org/notebook/ >>> > > -- > David O'Toole > dto at gnu.org > http://dto.freeshell.org/notebook/ > From dto at gnu.org Tue Oct 17 12:10:32 2006 From: dto at gnu.org (David O'Toole) Date: Tue, 17 Oct 2006 15:10:32 -0400 Subject: [CM] Re: Real-time CLM In-Reply-To: (Kjetil S. Matheussen's message of "Tue\, 17 Oct 2006 19\:46\:52 +0200 \(CEST\)") References: <20061015190003.23321.39473.Mailman@cm-mail.stanford.edu> Message-ID: Thanks for the tip... I've got an athlon xp, so this will be perfect! I'll begin experimenting with the realtime stuff and keep you posted. By the way, I have a preliminary screenshot of the Common Lisp UI library I am building, in particular the dataflow subclasses that I will use to build graphs that control Snd behind the scenes. You'll probably recognize the look :-) It's in a very preliminary phase, I've only been working on it for about 2 days, but here is the link: http://dto.freeshell.org/notebook/ClFrame.html CL-FRAME is designed to be able to control multiple other programs, so it could conceivably have targets other than Snd. For example, Emacs. "Kjetil S. Matheussen" writes: > Gauche is not supported, so you must use guile. But even it was, it > shouldn't matter that much, because the realtime part is a seperate > scheme-like compiler not running in either guile or gauche. > > When you have things up and running, do also set your CFLAGS > environment variable to "-march=" > for a small speedup. (20% or so for athlon-xp cpus) > > > On Tue, 17 Oct 2006, David O'Toole wrote: > >> >> I'm about to configure the cvs version of Snd so I can start playing >> with the realtime functions. >> >> Which is better for realtime---Guile or Gauche?? >> >> "Kjetil S. Matheussen" writes: >> >>> I don't know which version is in planetccrma-fc5, but >>> I guess you can use it. There are some important bugs fixed only a few >>> weeks ago though, so you are probably best off with the latest version >>> instead. And the latest version of snd-ls should always be fine too. >>> >>> Another thing is that for the rt examples that use graphics, you need >>> snd compiled with gtk, and I think planet-ccrma only supplies snd >>> compiled with motif... >>> >>> >>> On Sun, 15 Oct 2006, David O'Toole wrote: >>> >>>> >>>> I'm using the Snd that comes with planetccrma-fc5. Should I be using >>>> some special CVS version? >>>> >>>> "Kjetil S. Matheussen" writes: >>>> >>>>> "David O'Toole": >>>>>> >>>>>> >>>>>> I've been sniffing around Google and it seems like building this on >>>>>> top of Snd would be best. I am quite married to lisp, it's my favorite >>>>>> language :-). >>>>>> >>>>> >>>>> If you are using the realtime extension, please let me know immediately >>>>> if (read: when) you find bugs. >>>>> >>>>> >>>>>> I see that Snd allows interaction on stdin/stdout. This means I should >>>>>> be able to write a CL program that starts Snd in the background, using >>>>>> Snd as a sort of audio server, then send s-expressions to Snd. >>>>>> >>>>> >>>>> You can also do everything in SND. As far as I know, CL works in SND. >>>>> Used to, at least. >>>>> >>>>> _______________________________________________ >>>>> Cmdist mailing list >>>>> Cmdist at ccrma.stanford.edu >>>>> http://ccrma-mail.stanford.edu/mailman/listinfo/cmdist >>>>> >>>> >>>> -- >>>> David O'Toole >>>> dto at gnu.org >>>> http://dto.freeshell.org/notebook/ >>>> >> >> -- >> David O'Toole >> dto at gnu.org >> http://dto.freeshell.org/notebook/ >> > -- David O'Toole dto at gnu.org http://dto.freeshell.org/notebook/ From b0ef at esben-stien.name Tue Oct 17 17:13:43 2006 From: b0ef at esben-stien.name (Esben Stien) Date: Wed, 18 Oct 2006 02:13:43 +0200 Subject: [CM] GtkFileChooser Message-ID: <87u022iiq0.fsf@esben-stien.name> Any plans to use the standard GTK+ filechooser in Snd? -- Esben Stien is b0ef at e s a http://www. s t n m irc://irc. b - i . e/%23contact sip:b0ef@ e e jid:b0ef@ n n From b0ef at esben-stien.name Tue Oct 17 17:23:19 2006 From: b0ef at esben-stien.name (Esben Stien) Date: Wed, 18 Oct 2006 02:23:19 +0200 Subject: [CM] Preferences Window Scrolling (Snd) Message-ID: <87pscqiia0.fsf@esben-stien.name> It would be nice if the preferences window were not a scrollable window; maybe split it up into different tabs. When you scroll this window, you might change a value that you didn't want to change, because the scrolling might change a value when you have the cursor on top of it. -- Esben Stien is b0ef at e s a http://www. s t n m irc://irc. b - i . e/%23contact sip:b0ef@ e e jid:b0ef@ n n From b0ef at esben-stien.name Tue Oct 17 17:25:31 2006 From: b0ef at esben-stien.name (Esben Stien) Date: Wed, 18 Oct 2006 02:25:31 +0200 Subject: [CM] Color Picker (Snd) Message-ID: <87lkneii6c.fsf@esben-stien.name> It would be nice with a color picker in the preferences window. I somehow can't get the exact color of my main gtk+ theme on the "main background color" value. -- Esben Stien is b0ef at e s a http://www. s t n m irc://irc. b - i . e/%23contact sip:b0ef@ e e jid:b0ef@ n n From bil at ccrma.Stanford.EDU Tue Oct 17 16:53:33 2006 From: bil at ccrma.Stanford.EDU (Bill Schottstaedt) Date: Tue, 17 Oct 2006 16:53:33 -0700 Subject: [CM] GtkFileChooser In-Reply-To: <87u022iiq0.fsf@esben-stien.name> References: <87u022iiq0.fsf@esben-stien.name> Message-ID: <20061017235210.M38641@ccrma.Stanford.EDU> > Any plans to use the standard GTK+ filechooser in Snd? No. From bil at ccrma.Stanford.EDU Tue Oct 17 17:01:09 2006 From: bil at ccrma.Stanford.EDU (Bill Schottstaedt) Date: Tue, 17 Oct 2006 17:01:09 -0700 Subject: [CM] Color Picker (Snd) In-Reply-To: <87lkneii6c.fsf@esben-stien.name> References: <87lkneii6c.fsf@esben-stien.name> Message-ID: <20061017235639.M69321@ccrma.Stanford.EDU> > It would be nice with a color picker in the preferences window. I > somehow can't get the exact color of my main gtk+ theme on the "main > background color" value. Look at the theme definition file -- you should be able to find what the background color is; the gtkrc style business uses exactly the same numbers that Snd does, three (rgb) values between 0 and 1. Type those into the relevant text widgets in the preferences dialog (the numbers that follow the scales can be edited by hand). From k.s.matheussen at notam02.no Wed Oct 18 05:56:52 2006 From: k.s.matheussen at notam02.no (Kjetil S. Matheussen) Date: Wed, 18 Oct 2006 14:56:52 +0200 (CEST) Subject: [CM] clm not working (with cmucl and jack) In-Reply-To: <20061017174801.13430.18361.Mailman@cm-mail.stanford.edu> References: <20061017174801.13430.18361.Mailman@cm-mail.stanford.edu> Message-ID: "Lieven Moors": > > hi, i'm still having trouble with clm. when i try to make a sound, i just > get xruns in the jack-server, and lisp is killed without any errors. in top, > i can see lisp eat about 80% of memory before it gets killed. > actually at one time the violin did play without problems, for 60 seconds. > but i'm not able to reproduce this. > this is what happenes: > > (load "/usr/src/clm/clm-3/v.cmucl") > (with-sound () (fm-violin 0 60 440 .1)) > > here is the output from jack: > > new client: sndlib0, id = 3 type 2 @ 0xb5cc6000 fd = 19 > registered port sndlib0:out_1, offset = 3072 > 12:46:33.025 Audio connection graph change. > registered port sndlib0:out_2, offset = 4096 > registered port sndlib0:in_1, offset = 0 > registered port sndlib0:in_2, offset = 0 > registered port sndlib0:in_3, offset = 0 > registered port sndlib0:in_4, offset = 0 > > **** alsa_pcm: xrun of at least 1441.404 msecs > **** alsa_pcm: xrun of at least 209.315 msecs > removing disconnected client sndlib0 state = Not triggered errors = 0 > removing client "sndlib0" > removing client "sndlib0" from the processing chain > > after that lisp just gets disconnected > > would be very grateful for your help > Sounds like you are running out of memory. Try to use the "No Memory Lock" switch for jack, and less used memory in the lisp process should get swapped out. From rm at tuxteam.de Wed Oct 18 06:36:45 2006 From: rm at tuxteam.de (rm at tuxteam.de) Date: Wed, 18 Oct 2006 13:36:45 +0000 Subject: [CM] Re: Real-time CLM In-Reply-To: References: <20061015190003.23321.39473.Mailman@cm-mail.stanford.edu> Message-ID: <20061018133645.GA3172@seid-online.de> On Tue, Oct 17, 2006 at 03:10:32PM -0400, David O'Toole wrote: > > Thanks for the tip... I've got an athlon xp, so this will be perfect! > > I'll begin experimenting with the realtime stuff and keep you posted. > > By the way, I have a preliminary screenshot of the Common Lisp UI > library I am building, in particular the dataflow subclasses that I > will use to build graphs that control Snd behind the scenes. You'll > probably recognize the look :-) > > It's in a very preliminary phase, I've only been working on it for > about 2 days, but here is the link: > > http://dto.freeshell.org/notebook/ClFrame.html > > CL-FRAME is designed to be able to control multiple other programs, so > it could conceivably have targets other than Snd. For example, Emacs. Just out of curiosity: to me it looks a bit like you reinvent the wheel - why don't you base your application on the fine McCLIM framework. You'd get all sorts of widgets for free, _including_ a cool Lisp Listener/REPL and graph drawing widgets. From what i understand you seem to go for some kind of presentation based user interface (a.k. Lisp Machines or CLIM). McCLIM gives you all of this (and a promising Emacs clone in Common Lisp). Cheers, Ralf Mattes From dto at gnu.org Wed Oct 18 11:26:40 2006 From: dto at gnu.org (David O'Toole) Date: Wed, 18 Oct 2006 14:26:40 -0400 Subject: [CM] Re: Real-time CLM In-Reply-To: <20061018133645.GA3172@seid-online.de> (rm@tuxteam.de's message of "Wed\, 18 Oct 2006 13\:36\:45 +0000") References: <20061015190003.23321.39473.Mailman@cm-mail.stanford.edu> <20061018133645.GA3172@seid-online.de> Message-ID: rm at tuxteam.de writes: > Just out of curiosity: to me it looks a bit like you reinvent the wheel > - why don't you base your application on the fine McCLIM framework. > You'd get all sorts of widgets for free, _including_ a cool Lisp > Listener/REPL and graph drawing widgets. From what i understand you seem > to go for some kind of presentation based user interface (a.k. Lisp > Machines or CLIM). McCLIM gives you all of this (and a promising Emacs > clone in Common Lisp). I'm not fond of general-purpose GUI toolkits. I find most of them rather heavyweight and slow... not always the best thing if your realtime audio process is competing for CPU. I would prefer to just do things with direct CLX calls, and I find CLX very easy to work with. With most of the UI implemented, all of CL-FRAME is only about 1000 lines, so if I've reinvented the wheel, it's a small wheel :-) -- David O'Toole dto at gnu.org http://dto.freeshell.org/notebook/ From lievenmoors at hotmail.com Thu Oct 19 02:48:46 2006 From: lievenmoors at hotmail.com (Lieven Moors) Date: Thu, 19 Oct 2006 11:48:46 +0200 Subject: [CM] clm not working (with cmucl and jack) In-Reply-To: Message-ID: >From: "Kjetil S. Matheussen" >To: cmdist at ccrma.Stanford.EDU >CC: lievenmoors at hotmail.com >Subject: Re: [CM] clm not working (with cmucl and jack) >Date: Wed, 18 Oct 2006 14:56:52 +0200 (CEST) > > >"Lieven Moors": >> >>hi, i'm still having trouble with clm. when i try to make a sound, i just >>get xruns in the jack-server, and lisp is killed without any errors. in >>top, >>i can see lisp eat about 80% of memory before it gets killed. >>actually at one time the violin did play without problems, for 60 seconds. >>but i'm not able to reproduce this. >>this is what happenes: >> >>(load "/usr/src/clm/clm-3/v.cmucl") >>(with-sound () (fm-violin 0 60 440 .1)) >> >>here is the output from jack: >> >>new client: sndlib0, id = 3 type 2 @ 0xb5cc6000 fd = 19 >>registered port sndlib0:out_1, offset = 3072 >>12:46:33.025 Audio connection graph change. >>registered port sndlib0:out_2, offset = 4096 >>registered port sndlib0:in_1, offset = 0 >>registered port sndlib0:in_2, offset = 0 >>registered port sndlib0:in_3, offset = 0 >>registered port sndlib0:in_4, offset = 0 >> >>**** alsa_pcm: xrun of at least 1441.404 msecs >>**** alsa_pcm: xrun of at least 209.315 msecs >>removing disconnected client sndlib0 state = Not triggered errors = 0 >>removing client "sndlib0" >>removing client "sndlib0" from the processing chain >> >>after that lisp just gets disconnected >> >>would be very grateful for your help >> > >Sounds like you are running out of memory. Try to use the "No Memory Lock" >switch for jack, and less used memory in the lisp process should get >swapped out. > > thanks a lot for your help! that switch did the trick, no i can make a start with clm... greetings, lieven From dto at gnu.org Thu Oct 19 10:31:30 2006 From: dto at gnu.org (David O'Toole) Date: Thu, 19 Oct 2006 13:31:30 -0400 Subject: [CM] Issues in running Snd-RT Message-ID: I'm trying to get the snd-rt examples running but have hit a snag. I am using Snd from CVS (as of two days ago.) I started Jack before doing the following: -------------------------------------------------------- >(define snd-header-files-path "/home/dto/src/cvs-snd/") # >snd-header-files-path "/home/dto/src/cvs-snd/" >(load-from-path "rt-compiler.scm") compilation-failed: () > compilation-failed > -------------------------------------------------------- The following is visible at snd's standard output: -------------------------------------------------------- Compiling /tmp/fileDZszRR.c Compiling /tmp/fileqZjzi3.c /tmp/fileqZjzi3.c:36:20: error: config.h: No such file or directory /tmp/fileqZjzi3.c: In function ?gakk3?: /tmp/fileqZjzi3.c:70: warning: implicit declaration of function ?TO_VCT? -------------------------------------------------------- Questions: 1. Why did I have to tell rt-compiler.scm to look in "/home/dto/src/cvs-snd" for the snd header files? I couldn't seem to locate any other "snd.h" on my system. Did I miss a step during installation of Snd? 2. Where do I get this config.h that the compiler is looking for? Thanks in advance for any help you can provide. -- David O'Toole dto at gnu.org http://dto.freeshell.org/notebook/ From bil at ccrma.Stanford.EDU Thu Oct 19 11:35:45 2006 From: bil at ccrma.Stanford.EDU (Bill Schottstaedt) Date: Thu, 19 Oct 2006 11:35:45 -0700 Subject: [CM] Issues in running Snd-RT In-Reply-To: References: Message-ID: <20061019183138.M45895@ccrma.Stanford.EDU> > 2. Where do I get this config.h that the compiler is looking for? I think this file is now named mus-config.h -- the new Snd uses that name, rather than config.h. I'm trying to prepare for stuff like an ECL extension language choice, and make libxm and libsndlib less likely to collide with other's config.h files -- the name config.h was asking for trouble, but that wasn't obvious 8 or 10 years ago (and it was the recommended choice per autoconf). So, the CVS version is perhaps not completely self-consistent right now. From bil at ccrma.Stanford.EDU Thu Oct 19 11:42:46 2006 From: bil at ccrma.Stanford.EDU (Bill Schottstaedt) Date: Thu, 19 Oct 2006 11:42:46 -0700 Subject: [CM] Issues in running Snd-RT In-Reply-To: <20061019183138.M45895@ccrma.Stanford.EDU> References: <20061019183138.M45895@ccrma.Stanford.EDU> Message-ID: <20061019184149.M61437@ccrma.Stanford.EDU> > So, the CVS version is perhaps not completely self-consistent right now. hmm -- I just checked everything, and I think all files use mus-config.h. So something else is to blame. From dto at gnu.org Thu Oct 19 11:46:53 2006 From: dto at gnu.org (David O'Toole) Date: Thu, 19 Oct 2006 14:46:53 -0400 Subject: [CM] Issues in running Snd-RT In-Reply-To: <20061019184149.M61437@ccrma.Stanford.EDU> (Bill Schottstaedt's message of "Thu\, 19 Oct 2006 11\:42\:46 -0700") References: <20061019183138.M45895@ccrma.Stanford.EDU> <20061019184149.M61437@ccrma.Stanford.EDU> Message-ID: Ok, perhaps I should do a cvs update. I last downloaded it a few days ago. I will let you know how things go. "Bill Schottstaedt" writes: >> So, the CVS version is perhaps not completely self-consistent right > now. > > hmm -- I just checked everything, and I think all files use > mus-config.h. So something else is to blame. > -- David O'Toole dto at gnu.org http://dto.freeshell.org/notebook/ From k.s.matheussen at notam02.no Thu Oct 19 12:21:10 2006 From: k.s.matheussen at notam02.no (Kjetil S. Matheussen) Date: Thu, 19 Oct 2006 21:21:10 +0200 (CEST) Subject: [CM] Re: Issues in running Snd-RT In-Reply-To: <20061019190003.1016.1094.Mailman@cm-mail.stanford.edu> References: <20061019190003.1016.1094.Mailman@cm-mail.stanford.edu> Message-ID: "David O'Toole": > > I'm trying to get the snd-rt examples running but have hit a snag. > > I am using Snd from CVS (as of two days ago.) > I started Jack before doing the following: > > >> (define snd-header-files-path "/home/dto/src/cvs-snd/") > # >> snd-header-files-path > "/home/dto/src/cvs-snd/" >> (load-from-path "rt-compiler.scm") > compilation-failed: () >> > compilation-failed >> > -------------------------------------------------------- > > The following is visible at snd's standard output: > > -------------------------------------------------------- > Compiling /tmp/fileDZszRR.c > Compiling /tmp/fileqZjzi3.c > /tmp/fileqZjzi3.c:36:20: error: config.h: No such file or directory > /tmp/fileqZjzi3.c: In function ???gakk3???: > /tmp/fileqZjzi3.c:70: warning: implicit declaration of function ???TO_VCT??? > -------------------------------------------------------- > > > Questions: > > 1. Why did I have to tell rt-compiler.scm to look in > "/home/dto/src/cvs-snd" for the snd header files? I couldn't seem to > locate any other "snd.h" on my system. Did I miss a step during > installation of Snd? > > 2. Where do I get this config.h that the compiler is looking for? > > I don't know why this happens. This problem should have been fixed... Perhaps you should try snd-ls instead of snd since snd-ls is supposed to allways work for realtime usage: http://www.notam02.no/arkiv/doc/snd-rt/html/rt-Z-H-3.html#node_sec_2 From dto at gnu.org Fri Oct 20 14:08:56 2006 From: dto at gnu.org (David O'Toole) Date: Fri, 20 Oct 2006 17:08:56 -0400 Subject: [CM] Issues in running Snd-RT In-Reply-To: <20061019184149.M61437@ccrma.Stanford.EDU> (Bill Schottstaedt's message of "Thu\, 19 Oct 2006 11\:42\:46 -0700") References: <20061019183138.M45895@ccrma.Stanford.EDU> <20061019184149.M61437@ccrma.Stanford.EDU> Message-ID: Hi, I'm still unable to get the RT-examples running with the latest Snd from CVS. Last time I had the problem that it was looking for "config.h" whereas the file is now called "mus-config.h". So I symlinked config.h to mus-config.h and the compilation proceeded, not complaining anymore about a missing config.h. I suspect this means something in CVS really does refer to config.h. The terminal output for compilation is as follows: > [root at localhost cvs-snd]# Compiling /tmp/fileLacCL1.c > Compiling /tmp/filetCxcqQ.c > /tmp/filetCxcqQ.c: In function ?gakk3?: > /tmp/filetCxcqQ.c:70: warning: implicit declaration of function ?TO_VCT? > Compiling /tmp/file0tBM5F.c > Compiling /tmp/fileAQJB6w.c > /tmp/fileAQJB6w.c: In function ?jack_port_name_eval_c_helper?: > /tmp/fileAQJB6w.c:267: warning: initialization discards qualifiers from pointer target type > /tmp/fileAQJB6w.c: In function ?jack_port_short_name_eval_c_helper?: > /tmp/fileAQJB6w.c:276: warning: initialization discards qualifiers from pointer target type > /tmp/fileAQJB6w.c: In function ?jack_port_type_eval_c_helper?: > /tmp/fileAQJB6w.c:294: warning: initialization discards qualifiers from pointer target type > Compiling /tmp/fileaKl1Ev.c > Compiling /tmp/filemapdix.c > Compiling /tmp/file4WrP6z.c > Compiling /tmp/fileI6vIEE.c > Compiling /tmp/fileivgXEL.c > Compiling /tmp/fileAaHacY.c > : starting! However, things still do not work in Snd. There is an error about an unbound variable when loading "rt-compiler.scm" which apparently stops everything else from getting defined. Listener window output is below: > >(define snd-header-files-path "/home/dto/src/cvs-snd/") > # > >(load-from-path "rt-compiler.scm") > Unbound variable: average? > > > unbound-variable > >(let ((osc (make-oscil))) > ( 0 3 > (lambda () > (out (* 0.8 > (oscil osc)))))) > Unbound variable: > > > unbound-variable > > > (definstrument (oscilator start duration) > (let ((osc (make-oscil)) > (vol 4/6)) > ( start duration > (lambda () > (out (* (oscil osc) > vol)))))) > Unbound variable: definstrument > > > unbound-variable "Bill Schottstaedt" writes: >> So, the CVS version is perhaps not completely self-consistent right now. > > hmm -- I just checked everything, and I think all files use mus-config.h. > So something else is to blame. > -- David O'Toole dto at gnu.org http://dto.freeshell.org/notebook/ From howell at ucsc.edu Fri Oct 20 13:08:11 2006 From: howell at ucsc.edu (David Cope) Date: Fri, 20 Oct 2006 13:08:11 -0700 Subject: [CM] WACM Message-ID: Dear Colleague, This summer, for the fifth consecutive year, we'll be offering the Workshop in Algorithmic Computer Music (WACM) at UC Santa Cruz. Student evaluations from past years have been uniformly positive and we're excited about doing it again. One of the things the students benefit most from is limiting the workshop to fifteen students, which allows for a very high student/teacher ratio. This means, however, that people applying later in the year may not get in. I'm sending you this email to give you an opportunity to apply before our main publicity goes out. I won't barrage you with details here (a general blurb appears below), but if you're interested you can visit the website, which is at: http://summer.ucsc.edu/wacm ... and please don't hesitate to contact me if you have any questions. If you know anyone else who might benefit from the workshop, please feel free to forward this message. All best, Dave Cope The fifth Workshop in Algorithmic Computer Music (WACM) will take place from June 25 through July 8, 2007 at the University of California, Santa Cruz (UCSC). The workshop will be held at UCSC's Music Center, which features state of the art facilities as well as sweeping vistas of the Monterey Bay. David Cope, Paul Nauert, Peter Elsea, and Soren Goodman will be among those on hand to teach and advise workshop attendees. Participants will take classes on the basic techniques of algorithmic composition and algorithmic music analysis, learning and using the computer programming language Lisp. Participants will create three significant software projects: a Markov-based rules program, a genetic algorithm, and software modeled on the Experiments in Musical Intelligence program. Music analysis software and techniques will also be covered in depth. Many compositional approaches will be discussed in detail including rules-based techniques, data-driven models, genetic algorithms, neural networks, fuzzy logic, mathematical modeling, and sonification. Software programs such as Common Music, Max, Open Music, and so on will also be presented and used. The workshop is limited to 15 participants to ensure an excellent student/teacher ratio.. The first two days of the workshop are optional and will cover basic Lisp programming. Those individuals with extensive programming experience and/or prior experience using Lisp may not need to attend these first two days. Each participant will receive a class reference manual, class software in source code, and other printed and software tools and guides relevant to the workshop's goals. Access to the world class computer music facilities at UCSC will allow performances and special lectures by invited guests. The workshop includes five daily hours of individual computer time (with an advisor close at hand). Each week will culminate in performances of participant works and presentations of analysis and composition software. By the workshop's end, each participant will have gained facility with Lisp, have written compositional and analytical software programs, and be presented with a CD of their compositions. Prospective students must have an ability to read music and understand basic music theory as well as have at least a basic facility with computers (text editing, etc.). Students need not be active musicians or programmers. Room and board is available on campus if desired. 5 quarter units of credit is available. -- To obtain Experiments in Musical Intelligence and other music by David Cope go to http://www.spectrumpress.com. For information on the fifth annual (2007) Workshop on Algorithmic Computer Music (WACM) go to http://summer.ucsc.edu/wacm/. David Cope Professor, Music Department Music Center, University of California, Santa Cruz Santa Cruz, CA 95064 831 459-3417 msgs: 831 459 2804 fax: 831 459-5584 website: http://arts.ucsc.edu/faculty/cope email: howell at ucsc.edu -------------- next part -------------- An HTML attachment was scrubbed... URL: From bil at ccrma.Stanford.EDU Sat Oct 21 04:11:17 2006 From: bil at ccrma.Stanford.EDU (Bill Schottstaedt) Date: Sat, 21 Oct 2006 04:11:17 -0700 Subject: [CM] Snd 8.5 Message-ID: <20061021110833.M37742@ccrma.Stanford.EDU> Snd 8.5-- (this is mostly a "clean up loose ends" version) many improvements thanks to Kjetil and Mike. gl2ps support, gl-graph->ps function, --with-gl2ps switch, gl2ps.[ch] added gtk-effects-utils.scm, gtk support for *-menu.scm. finally implemented the log-frequency display in non-GL spectrograms. save-marks changed to keep matching sync values add-mark now takes new optional trailing args: name and sync removed the gtk_print stuff from xg.c since it's all useless without support for the cairo graphics functions and the pango functions that access them. sounds->segment-data (examp.scm) -- returns segment start/dur/maxamp data for collections of sounds. with-file-monitor -- can be set to #f to turn off the FAM process stuff. add-watcher and delete-watcher -- this is a simpler (and less accident-prone) hook to catch any change to the sound list, the current selection, or the mark list; it is intended to replace the multi-hook kludges currently used to set dialog button sensitivity, for example. Since each watcher is identified by a unique integer, local (unnamed) functions can easily be deleted and so on. removed selection-changed-hook (use simpler watcher mechanism instead). in cmn, thickness message now affects bars locally. Added *double-barline-thickness*. Michael Edwards got CLM running in ACL 8 and Windows. checked: gtk-2.10.4|5|6, sbcl 0.9.17, clisp 2.40|1. Thanks: Michael Edwards, Mike Scholz, Kjetil Matheussen, Carlos Pita, Carsten Heinrigs, Dragan Novetski, Jacek M. Holeczek, David O'Toole From rob at robertspahr.com Sat Oct 21 14:35:58 2006 From: rob at robertspahr.com (Robert Spahr) Date: Sat, 21 Oct 2006 16:35:58 -0500 Subject: [CM] Re: Cmdist -- confirmation of subscription -- request 313529 In-Reply-To: <20061021203358.7184.52623.Mailman@cm-mail.stanford.edu> References: <20061021203358.7184.52623.Mailman@cm-mail.stanford.edu> Message-ID: <20061021163558.2eac61a4@localhost> On Sat, 21 Oct 2006 13:33:58 -0700 cmdist-request at ccrma.Stanford.EDU wrote: > Cmdist -- confirmation of subscription -- request 313529 > > We have received a request from 74.72.33.85 for subscription of your > email address, , to the cmdist at ccrma.stanford.edu > mailing list. To confirm the request, please send a message to > cmdist-request at ccrma.stanford.edu, and either: > > - maintain the subject line as is (the reply's additional "Re:" is > ok), > > - or include the following line - and only the following line - in the > message body: > > confirm 313529 > > (Simply sending a 'reply' to this message should work from most email > interfaces, since that usually leaves the subject line in the right > form.) > > If you do not wish to subscribe to this list, please simply disregard > this message. Send questions to cmdist-admin at ccrma.stanford.edu. > -- Robert Spahr http://www.robertspahr.com "In a time of deceit telling the truth is a revolutionary act." -- Orwell "Art is the lie that tells the truth." -- Picasso From k.s.matheussen at notam02.no Sun Oct 22 09:12:21 2006 From: k.s.matheussen at notam02.no (Kjetil S. Matheussen) Date: Sun, 22 Oct 2006 18:12:21 +0200 (CEST) Subject: [CM] Issues in running Snd-RT In-Reply-To: <20061021190003.1707.17155.Mailman@cm-mail.stanford.edu> References: <20061021190003.1707.17155.Mailman@cm-mail.stanford.edu> Message-ID: "David O'Toole": > > > Hi, I'm still unable to get the RT-examples running with the latest > Snd from CVS. > > Last time I had the problem that it was looking for "config.h" whereas > the file is now called "mus-config.h". So I symlinked config.h to > mus-config.h and the compilation proceeded, not complaining anymore > about a missing config.h. I suspect this means something in CVS really > does refer to config.h. > > The terminal output for compilation is as follows: > Your errors does not make sence. I have a feeling that your %load-path variable is not set, so that SND loads files from an older installation instead of the one belonging to your binary. Does (set! %load-path (cons "/home/dto/src/cvs-snd/" %load-path) help? From dto at gnu.org Sun Oct 22 14:56:05 2006 From: dto at gnu.org (David O'Toole) Date: Sun, 22 Oct 2006 17:56:05 -0400 Subject: [CM] Re: Issues in running Snd-RT In-Reply-To: (Kjetil S. Matheussen's message of "Sun\, 22 Oct 2006 18\:19\:42 +0200 \(CEST\)") References: <20061019190003.1016.1094.Mailman@cm-mail.stanford.edu> Message-ID: Hi Kjetil, > Ouch, the realtime stuff is supposed to work without > snd_conffile.scm. Why is snd_conffile.scm needed? san_dysth works just > fine without snd_conffile.scm... I uninstalled *all* versions of Snd on the system, then downloaded and installed snd-ls as you suggested. I set my load path (see transcript below) and still get the exact same error, about an unbound variable named "srfi-loaded": > >(set! %load-path (cons "/home/dto/src/snd-ls-0.9.7.5/snd-8" %load-path) > > > >%load-path > ("/home/dto/src/snd-ls-0.9.7.5/snd-8" "/usr/share/guile/site" "/usr/share/guile/1.6" "/usr/share/guile" ".") > >(define snd-header-files-path "/home/dto/src/snd-ls-0.9.7.5/snd-8") > # > >(load-from-path "rt-compiler.scm") > Unbound variable: srfi-loaded > > > unbound-variable This variable is defined in snd_conffile.scm, which I cannot load because I am configuring without GTK. I tried just copying the one line from snd_conffile.scm but it doesn't help. I get the long error shown below. > >(define srfi-loaded #f) > # > >(load-from-path "rt-compiler.scm")Deleting obsolete cached code /root/snd-eval-c-cache/cache.PPLDJ5.so and /root/snd-eval-c-cache/cache.PPLDJ5 . > Unbound variable: gtk_events_pending > In unknown file: > ?: 0* [primitive-load-path "eval-c.scm"] > In /home/dto/src/snd-ls-0.9.7.5/snd-8/eval-c.scm: > 1619: 1* (let* ((dir #) (entry #)) (letrec (# #) (catch # # #)) (closedir dir)) > 1621: 2* (letrec ((continue #) (break #)) (catch (quote break) (lambda () #) ...)) > In unknown file: > ?: 3 [catch break # #] > ?: 4* [#] > ?: 5* [continue] > ?: 6 (or (not (not #)) (begin (begin # #) (continue))) > ?: 7 (begin (begin (if # #) (set! entry #)) (continue)) > ?: 8 [continue] > ?: 9 (or (not (not #)) (begin (begin # #) (continue))) > ?: 10 (begin (begin (if # #) (set! entry #)) (continue)) > ?: 11* (begin (if (and # # # ...) (let # # #)) (set! entry (readdir dir))) > In /home/dto/src/snd-ls-0.9.7.5/snd-8/eval-c.scm: > 1622: 12* (if (and (not #) (not #) ...) (let (# #) (catch #t # ...) ...)) > 1627: 13 (let ((filename #) (itsokey #t)) (catch #t (lambda () # ...) ...) ...) > 1644: 14 (if itsokey (if (or # # #) (begin # #) (set! eval-c-cache #))) > 1645: 15 (if (or # # #) (begin # #) (set! eval-c-cache #)) > 1648: 16 (begin (c-display "Deleting obsolete cached code " # "and" ...) (system #)) > 1649: 17* [c-display "Deleting obsolete cached code " ...] > In /home/dto/src/snd-ls-0.9.7.5/snd-8/oo.scm: > 182: 18 (while (= 1 (gtk_events_pending)) (gtk_main_iteration)) > 182: 19 (letrec ((continue #) (break #)) (catch (quote break) (lambda () #) ...)) > In unknown file: > ?: 20 [catch break # #] > ?: 21* [#] > ?: 22* [continue] > ?: 23 (or (not (= 1 #)) (begin (begin #) (continue))) > ?: 24* [not ... > In /home/dto/src/snd-ls-0.9.7.5/snd-8/oo.scm: > 182: 25* [= 1 ... > 182: 26* (gtk_events_pending) > > > unbound-variable > > It appears that stuff included from rt-compiler.scm (the file oo.scm in particular) depends on GTK, but only in one spot. I commented out the body of that function and re-loaded rt-compiler.scm, which gave me the following error: > > > unbound-variable > >(load-from-path "rt-compiler.scm") > Unbound variable: eval-c > In unknown file: > ?: 0* [primitive-load-path "rt-compiler.scm"] > In /home/dto/src/snd-ls-0.9.7.5/snd-8/rt-compiler.scm: > 68: 1* (eval-c # "#include " "#include " ...) > > > unbound-variable > So it appears that rt-compiler.scm requires eval-c.scm to be loaded first. (This is not documented anywhere so far as I know.) So I tried loading eval-c.scm. It also needs srfi-loaded defined. I define it. I try loading again. Unbound variable: c-display. This is apparently defined in oo.scm. So I try loading that and get this error: > define: misc-error: missing or extra expression () #f > In unknown file: > ?: 0* [primitive-load-path "oo.scm"] > In /home/dto/src/snd-ls-0.9.7.5/snd-8/oo.scm: > 170: 1* (define (c-display . args)) > > > misc-error > > This would appear to be a syntax error, though I'm not especially familiar with Scheme. Has this been tested? -- David O'Toole dto at gnu.org http://dto.freeshell.org/notebook/ From dto at gnu.org Sun Oct 22 15:02:30 2006 From: dto at gnu.org (David O'Toole) Date: Sun, 22 Oct 2006 18:02:30 -0400 Subject: [CM] Re: Issues in running Snd-RT In-Reply-To: (Kjetil S. Matheussen's message of "Sun\, 22 Oct 2006 18\:19\:42 +0200 \(CEST\)") References: <20061019190003.1016.1094.Mailman@cm-mail.stanford.edu> Message-ID: Sorry, I introduced that last syntax error when I commented out the body of the one function that referred to gtk. Fixing that, I was able to do the following: > >(load-from-path "oo.scm") > # > >(load-from-path "eval-c.scm") > # And those worked fine. But then I try to load rt-compiler.scm: > >(load-from-path "rt-compiler.scm") > compilation-failed: () > In unknown file: > ?: 0* [primitive-load-path "rt-compiler.scm"] > In /home/dto/src/snd-ls-0.9.7.5/snd-8/rt-compiler.scm: > 5539: 1* (eval-c (<-> "-I" snd-header-files-path ...) "#include " ...) > 5539: 2 (if (not #) (eval-c-cache-it # # #)) > In unknown file: > ?: 3 [eval-c-cache-it "-I/home/dto/src/snd-ls-0.9.7.5/snd-8 " # ... > ?: 4* [eval-c-eval # "-I/home/dto/src/snd-ls-0.9.7.5/snd-8 " ...] > ?: 5 (let* () (let* (# #) (let # #))) > ?: 6 (let* (# #) (let # #)) > ?: 7 (let ((compile-options #)) (let* () (let* # # # ...))) > ?: 8 (let* () (let* (# # # # ...) (if # #) (for-each # #) ...)) > In /home/dto/src/snd-ls-0.9.7.5/snd-8/eval-c.scm: > 1715: 9 (let* (# # # # ...) (if # #) (for-each # #) ...) > 1741: 10* (if (not (= 0 #)) (begin (if eval-c-lazy-cleanup #) (throw #))) > 1747: 11 (begin (if eval-c-lazy-cleanup #) (throw #)) > 1750: 12 [gsubr-apply # compilation-failed] The following is on standard output after this happens: > [root at localhost snd-8]# sh: line 1: -s: command not found > sh: line 1: -s: command not found > sh: line 1: -s: command not found > sh: line 1: -s: command not found > sh: line 1: -s: command not found > sh: line 1: -s: command not found > sh: line 1: -s: command not found > sh: line 1: -s: command not found > sh: line 1: -s: command not found > sh: line 1: -s: command not found > sh: line 1: -s: command not found > sh: line 1: -s: command not found > sh: line 1: -s: command not found > sh: line 1: -s: command not found > sh: line 1: -s: command not found > sh: line 1: -s: command not found > sh: line 1: -s: command not found > sh: line 1: -s: command not found > sh: line 1: -s: command not found > sh: line 1: -s: command not found > sh: line 1: -s: command not found > sh: line 1: -s: command not found > sh: line 1: -s: command not found > sh: line 1: -s: command not found > sh: line 1: -s: command not found > sh: line 1: -s: command not found > sh: line 1: -s: command not found > sh: line 1: -s: command not found > sh: line 1: -s: command not found > sh: line 1: -s: command not found > sh: line 1: -s: command not found > sh: line 1: -s: command not found > sh: line 1: -s: command not found > sh: line 1: -s: command not found > sh: line 1: -s: command not found > /tmp/fileYMX5Dm.c: In function ?jack_port_name_eval_c_helper?: > /tmp/fileYMX5Dm.c:267: warning: initialization discards qualifiers from pointer target type > /tmp/fileYMX5Dm.c: In function ?jack_port_short_name_eval_c_helper?: > /tmp/fileYMX5Dm.c:276: warning: initialization discards qualifiers from pointer target type > /tmp/fileYMX5Dm.c: In function ?jack_port_type_eval_c_helper?: > /tmp/fileYMX5Dm.c:294: warning: initialization discards qualifiers from pointer target type > Alsa library loaded. > /tmp/fileTQ4LlL.c:38:20: error: ladspa.h: No such file or directory > /tmp/fileTQ4LlL.c:47: error: expected specifier-qualifier-list before ?LADSPA_Descriptor? > /tmp/fileTQ4LlL.c: In function ?ladspa_minus_set2?: > /tmp/fileTQ4LlL.c:99: error: ?struct mus_rt_ladspa? has no member named ?num_controls_in? > /tmp/fileTQ4LlL.c:101: error: ?struct mus_rt_ladspa? has no member named ?controls? > /tmp/fileTQ4LlL.c: In function ?make_minus_ladspa2?: > /tmp/fileTQ4LlL.c:119: error: ?struct mus_rt_ladspa? has no member named ?ins? > /tmp/fileTQ4LlL.c:119: error: ?struct mus_rt_ladspa? has no member named ?num_audio_ins? > /tmp/fileTQ4LlL.c:124: error: ?struct mus_rt_ladspa? has no member named ?num_audio_ins? > /tmp/fileTQ4LlL.c:128: error: ?struct mus_rt_ladspa? has no member named ?ins? > /tmp/fileTQ4LlL.c:129: error: ?struct mus_rt_ladspa? has no member named ?descriptor? > /tmp/fileTQ4LlL.c:129: error: ?struct mus_rt_ladspa? has no member named ?handle? > /tmp/fileTQ4LlL.c:129: error: ?struct mus_rt_ladspa? has no member named ?audioin_port_nums? > /tmp/fileTQ4LlL.c:129: error: ?struct mus_rt_ladspa? has no member named ?ins? > /tmp/fileTQ4LlL.c:134: error: ?struct mus_rt_ladspa? has no member named ?outs? > /tmp/fileTQ4LlL.c:134: error: ?struct mus_rt_ladspa? has no member named ?num_audio_outs? > /tmp/fileTQ4LlL.c:139: error: ?struct mus_rt_ladspa? has no member named ?num_audio_outs? > /tmp/fileTQ4LlL.c:143: error: ?struct mus_rt_ladspa? has no member named ?outs? > /tmp/fileTQ4LlL.c:144: error: ?struct mus_rt_ladspa? has no member named ?descriptor? > /tmp/fileTQ4LlL.c:144: error: ?struct mus_rt_ladspa? has no member named ?handle? > /tmp/fileTQ4LlL.c:144: error: ?struct mus_rt_ladspa? has no member named ?audioout_port_nums? > /tmp/fileTQ4LlL.c:144: error: ?struct mus_rt_ladspa? has no member named ?outs? > /tmp/fileTQ4LlL.c:153: error: ?struct mus_rt_ladspa? has no member named ?num_controls_in? > /tmp/fileTQ4LlL.c:157: error: ?struct mus_rt_ladspa? has no member named ?descriptor? > /tmp/fileTQ4LlL.c:157: error: ?struct mus_rt_ladspa? has no member named ?handle? > /tmp/fileTQ4LlL.c:157: error: ?struct mus_rt_ladspa? has no member named ?controlin_port_nums? > /tmp/fileTQ4LlL.c:157: error: ?struct mus_rt_ladspa? has no member named ?controls? > /tmp/fileTQ4LlL.c:162: error: ?struct mus_rt_ladspa? has no member named ?controls_out? > /tmp/fileTQ4LlL.c:162: error: ?struct mus_rt_ladspa? has no member named ?num_controls_out? > /tmp/fileTQ4LlL.c:167: error: ?struct mus_rt_ladspa? has no member named ?num_controls_out? > /tmp/fileTQ4LlL.c:171: error: ?struct mus_rt_ladspa? has no member named ?descriptor? > /tmp/fileTQ4LlL.c:171: error: ?struct mus_rt_ladspa? has no member named ?handle? > /tmp/fileTQ4LlL.c:171: error: ?struct mus_rt_ladspa? has no member named ?controlout_port_nums? > /tmp/fileTQ4LlL.c:171: error: ?struct mus_rt_ladspa? has no member named ?controls_out? > /tmp/fileTQ4LlL.c:176: error: ?struct mus_rt_ladspa? has no member named ?descriptor? > /tmp/fileTQ4LlL.c:178: error: ?struct mus_rt_ladspa? has no member named ?descriptor? > /tmp/fileTQ4LlL.c:178: error: ?struct mus_rt_ladspa? has no member named ?handle? > /tmp/fileTQ4LlL.c:181: error: ?struct mus_rt_ladspa? has no member named ?scm_ladspa? > /tmp/fileTQ4LlL.c: In function ?mark_rt_ladspa?: > /tmp/fileTQ4LlL.c:199: error: ?struct mus_rt_ladspa? has no member named ?scm_output? > /tmp/fileTQ4LlL.c:200: error: ?struct mus_rt_ladspa? has no member named ?scm_descriptor? > /tmp/fileTQ4LlL.c:201: error: ?struct mus_rt_ladspa? has no member named ?scm_handle? > /tmp/fileTQ4LlL.c:202: error: ?struct mus_rt_ladspa? has no member named ?scm_ladspa? > /tmp/fileTQ4LlL.c: In function ?free_rt_ladspa?: > /tmp/fileTQ4LlL.c:210: error: ?struct mus_rt_ladspa? has no member named ?descriptor? > /tmp/fileTQ4LlL.c:212: error: ?struct mus_rt_ladspa? has no member named ?descriptor? > /tmp/fileTQ4LlL.c:212: error: ?struct mus_rt_ladspa? has no member named ?handle? > /tmp/fileTQ4LlL.c:214: error: ?struct mus_rt_ladspa? has no member named ?descriptor? > /tmp/fileTQ4LlL.c:216: error: ?struct mus_rt_ladspa? has no member named ?descriptor? > /tmp/fileTQ4LlL.c:216: error: ?struct mus_rt_ladspa? has no member named ?handle? > /tmp/fileTQ4LlL.c:218: error: ?struct mus_rt_ladspa? has no member named ?controls? > /tmp/fileTQ4LlL.c:219: error: ?struct mus_rt_ladspa? has no member named ?controls_out? > /tmp/fileTQ4LlL.c:224: error: ?struct mus_rt_ladspa? has no member named ?num_audio_ins? > /tmp/fileTQ4LlL.c:228: error: ?struct mus_rt_ladspa? has no member named ?ins? > /tmp/fileTQ4LlL.c:233: error: ?struct mus_rt_ladspa? has no member named ?ins? > /tmp/fileTQ4LlL.c:238: error: ?struct mus_rt_ladspa? has no member named ?num_audio_outs? > /tmp/fileTQ4LlL.c:242: error: ?struct mus_rt_ladspa? has no member named ?outs? > /tmp/fileTQ4LlL.c:247: error: ?struct mus_rt_ladspa? has no member named ?outs? > /tmp/fileTQ4LlL.c:248: error: ?struct mus_rt_ladspa? has no member named ?audioin_port_nums? > /tmp/fileTQ4LlL.c:249: error: ?struct mus_rt_ladspa? has no member named ?audioout_port_nums? > /tmp/fileTQ4LlL.c:250: error: ?struct mus_rt_ladspa? has no member named ?controlin_port_nums? > /tmp/fileTQ4LlL.c:251: error: ?struct mus_rt_ladspa? has no member named ?controlout_port_nums? > /tmp/fileTQ4LlL.c: In function ?mark_rt_ladspa?: > /tmp/fileTQ4LlL.c:204: warning: control reaches end of non-void function "Kjetil S. Matheussen" writes: > On Sat, 21 Oct 2006, David O'Toole wrote: > >> >> Hello Kjetil, >> >> We seem to have tracked down my errors to snd_conffile.scm not being >> loaded. > > Ouch, the realtime stuff is supposed to work without > snd_conffile.scm. Why is snd_conffile.scm needed? san_dysth works just > fine without snd_conffile.scm... > > >> I actually do have the file in my CVS download directory, so I >> loaded that first, and got some errors about undefined GTK symbols. It >> appears to depend on GTK. >> >> I'm reluctant to just use snd-ls, for several reasons. >> >> I want to configure Snd with -march=athlon-xp (for as much as 20% >> speedup, i'm told) and --with-motif. Besides preferring the Motif >> version visually, I am also experiencing a bug that prevents me from >> running any GTK application under Distributed Multihead X (DMX) which >> is what I use for my multihead desktop. So at this time the >> GTK-version is not an option for me. >> > > Okay, but you could use the SND source provided by snd-ls to do > realtime work. You do that by running ./unpack.sh, and after that just > configure and compile it the way you want. I guess this could > be less frustrating for you, since snd from time to time is > incompatible with rt-compiler and rt-engine because of api changes. > > >> I would like to help get rt-compiler working with the Snd from >> CVS. Perhaps you can point me in the right direction, so that I can >> help write a different file to define all the symbols that rt-compiler >> needs? I will take a look at it tonight but some pointers would >> definitely help. >> > > I'm not sure what I can point you to. Its supposed to work, really. > But I think your %load-path is not set... > > >> I am developing a graphical Common Lisp frontend for the Snd-RT stuff, >> including realtime control. The home page for the project is >> http://dto.freeshell.org/notebook/ClFrame.html >> > > Yeah, it looks cool. :-) > > > -- David O'Toole dto at gnu.org http://dto.freeshell.org/notebook/ From k.s.matheussen at notam02.no Sun Oct 22 15:12:32 2006 From: k.s.matheussen at notam02.no (Kjetil S. Matheussen) Date: Mon, 23 Oct 2006 00:12:32 +0200 (CEST) Subject: [CM] Re: Issues in running Snd-RT In-Reply-To: References: <20061019190003.1016.1094.Mailman@cm-mail.stanford.edu> Message-ID: You are missing ladspa.h: wget http://www.ladspa.org/ladspa_sdk/ladspa.h.txt cp ladspa.h.txt /usr/include/ladspa.h After that start snd and do the following: (set! %load-path (cons "/home/dto/src/snd-ls-0.9.7.5/snd-8/" %load-path)) (define (gtk-events-pending) 0) (define srfi-loaded) (load-from-path "rt-compiler.scm") On Sun, 22 Oct 2006, David O'Toole wrote: > > Sorry, I introduced that last syntax error when I commented out the > body of the one function that referred to gtk. > > Fixing that, I was able to do the following: > >>> (load-from-path "oo.scm") >> # >>> (load-from-path "eval-c.scm") >> # > > And those worked fine. > > But then I try to load rt-compiler.scm: > >>> (load-from-path "rt-compiler.scm") >> compilation-failed: () >> In unknown file: >> ?: 0* [primitive-load-path "rt-compiler.scm"] >> In /home/dto/src/snd-ls-0.9.7.5/snd-8/rt-compiler.scm: >> 5539: 1* (eval-c (<-> "-I" snd-header-files-path ...) "#include " ...) >> 5539: 2 (if (not #) (eval-c-cache-it # # #)) >> In unknown file: >> ?: 3 [eval-c-cache-it "-I/home/dto/src/snd-ls-0.9.7.5/snd-8 " # ... >> ?: 4* [eval-c-eval # "-I/home/dto/src/snd-ls-0.9.7.5/snd-8 " ...] >> ?: 5 (let* () (let* (# #) (let # #))) >> ?: 6 (let* (# #) (let # #)) >> ?: 7 (let ((compile-options #)) (let* () (let* # # # ...))) >> ?: 8 (let* () (let* (# # # # ...) (if # #) (for-each # #) ...)) >> In /home/dto/src/snd-ls-0.9.7.5/snd-8/eval-c.scm: >> 1715: 9 (let* (# # # # ...) (if # #) (for-each # #) ...) >> 1741: 10* (if (not (= 0 #)) (begin (if eval-c-lazy-cleanup #) (throw #))) >> 1747: 11 (begin (if eval-c-lazy-cleanup #) (throw #)) >> 1750: 12 [gsubr-apply # compilation-failed] > > > The following is on standard output after this happens: > >> [root at localhost snd-8]# sh: line 1: -s: command not found >> sh: line 1: -s: command not found >> sh: line 1: -s: command not found >> sh: line 1: -s: command not found >> sh: line 1: -s: command not found >> sh: line 1: -s: command not found >> sh: line 1: -s: command not found >> sh: line 1: -s: command not found >> sh: line 1: -s: command not found >> sh: line 1: -s: command not found >> sh: line 1: -s: command not found >> sh: line 1: -s: command not found >> sh: line 1: -s: command not found >> sh: line 1: -s: command not found >> sh: line 1: -s: command not found >> sh: line 1: -s: command not found >> sh: line 1: -s: command not found >> sh: line 1: -s: command not found >> sh: line 1: -s: command not found >> sh: line 1: -s: command not found >> sh: line 1: -s: command not found >> sh: line 1: -s: command not found >> sh: line 1: -s: command not found >> sh: line 1: -s: command not found >> sh: line 1: -s: command not found >> sh: line 1: -s: command not found >> sh: line 1: -s: command not found >> sh: line 1: -s: command not found >> sh: line 1: -s: command not found >> sh: line 1: -s: command not found >> sh: line 1: -s: command not found >> sh: line 1: -s: command not found >> sh: line 1: -s: command not found >> sh: line 1: -s: command not found >> sh: line 1: -s: command not found >> /tmp/fileYMX5Dm.c: In function ??jack_port_name_eval_c_helper??: >> /tmp/fileYMX5Dm.c:267: warning: initialization discards qualifiers from pointer target type >> /tmp/fileYMX5Dm.c: In function ??jack_port_short_name_eval_c_helper??: >> /tmp/fileYMX5Dm.c:276: warning: initialization discards qualifiers from pointer target type >> /tmp/fileYMX5Dm.c: In function ??jack_port_type_eval_c_helper??: >> /tmp/fileYMX5Dm.c:294: warning: initialization discards qualifiers from pointer target type >> Alsa library loaded. >> /tmp/fileTQ4LlL.c:38:20: error: ladspa.h: No such file or directory >> /tmp/fileTQ4LlL.c:47: error: expected specifier-qualifier-list before ??LADSPA_Descriptor?? >> /tmp/fileTQ4LlL.c: In function ??ladspa_minus_set2??: >> /tmp/fileTQ4LlL.c:99: error: ??struct mus_rt_ladspa?? has no member named ??num_controls_in?? >> /tmp/fileTQ4LlL.c:101: error: ??struct mus_rt_ladspa?? has no member named ??controls?? >> /tmp/fileTQ4LlL.c: In function ??make_minus_ladspa2??: >> /tmp/fileTQ4LlL.c:119: error: ??struct mus_rt_ladspa?? has no member named ??ins?? >> /tmp/fileTQ4LlL.c:119: error: ??struct mus_rt_ladspa?? has no member named ??num_audio_ins?? >> /tmp/fileTQ4LlL.c:124: error: ??struct mus_rt_ladspa?? has no member named ??num_audio_ins?? >> /tmp/fileTQ4LlL.c:128: error: ??struct mus_rt_ladspa?? has no member named ??ins?? >> /tmp/fileTQ4LlL.c:129: error: ??struct mus_rt_ladspa?? has no member named ??descriptor?? >> /tmp/fileTQ4LlL.c:129: error: ??struct mus_rt_ladspa?? has no member named ??handle?? >> /tmp/fileTQ4LlL.c:129: error: ??struct mus_rt_ladspa?? has no member named ??audioin_port_nums?? >> /tmp/fileTQ4LlL.c:129: error: ??struct mus_rt_ladspa?? has no member named ??ins?? >> /tmp/fileTQ4LlL.c:134: error: ??struct mus_rt_ladspa?? has no member named ??outs?? >> /tmp/fileTQ4LlL.c:134: error: ??struct mus_rt_ladspa?? has no member named ??num_audio_outs?? >> /tmp/fileTQ4LlL.c:139: error: ??struct mus_rt_ladspa?? has no member named ??num_audio_outs?? >> /tmp/fileTQ4LlL.c:143: error: ??struct mus_rt_ladspa?? has no member named ??outs?? >> /tmp/fileTQ4LlL.c:144: error: ??struct mus_rt_ladspa?? has no member named ??descriptor?? >> /tmp/fileTQ4LlL.c:144: error: ??struct mus_rt_ladspa?? has no member named ??handle?? >> /tmp/fileTQ4LlL.c:144: error: ??struct mus_rt_ladspa?? has no member named ??audioout_port_nums?? >> /tmp/fileTQ4LlL.c:144: error: ??struct mus_rt_ladspa?? has no member named ??outs?? >> /tmp/fileTQ4LlL.c:153: error: ??struct mus_rt_ladspa?? has no member named ??num_controls_in?? >> /tmp/fileTQ4LlL.c:157: error: ??struct mus_rt_ladspa?? has no member named ??descriptor?? >> /tmp/fileTQ4LlL.c:157: error: ??struct mus_rt_ladspa?? has no member named ??handle?? >> /tmp/fileTQ4LlL.c:157: error: ??struct mus_rt_ladspa?? has no member named ??controlin_port_nums?? >> /tmp/fileTQ4LlL.c:157: error: ??struct mus_rt_ladspa?? has no member named ??controls?? >> /tmp/fileTQ4LlL.c:162: error: ??struct mus_rt_ladspa?? has no member named ??controls_out?? >> /tmp/fileTQ4LlL.c:162: error: ??struct mus_rt_ladspa?? has no member named ??num_controls_out?? >> /tmp/fileTQ4LlL.c:167: error: ??struct mus_rt_ladspa?? has no member named ??num_controls_out?? >> /tmp/fileTQ4LlL.c:171: error: ??struct mus_rt_ladspa?? has no member named ??descriptor?? >> /tmp/fileTQ4LlL.c:171: error: ??struct mus_rt_ladspa?? has no member named ??handle?? >> /tmp/fileTQ4LlL.c:171: error: ??struct mus_rt_ladspa?? has no member named ??controlout_port_nums?? >> /tmp/fileTQ4LlL.c:171: error: ??struct mus_rt_ladspa?? has no member named ??controls_out?? >> /tmp/fileTQ4LlL.c:176: error: ??struct mus_rt_ladspa?? has no member named ??descriptor?? >> /tmp/fileTQ4LlL.c:178: error: ??struct mus_rt_ladspa?? has no member named ??descriptor?? >> /tmp/fileTQ4LlL.c:178: error: ??struct mus_rt_ladspa?? has no member named ??handle?? >> /tmp/fileTQ4LlL.c:181: error: ??struct mus_rt_ladspa?? has no member named ??scm_ladspa?? >> /tmp/fileTQ4LlL.c: In function ??mark_rt_ladspa??: >> /tmp/fileTQ4LlL.c:199: error: ??struct mus_rt_ladspa?? has no member named ??scm_output?? >> /tmp/fileTQ4LlL.c:200: error: ??struct mus_rt_ladspa?? has no member named ??scm_descriptor?? >> /tmp/fileTQ4LlL.c:201: error: ??struct mus_rt_ladspa?? has no member named ??scm_handle?? >> /tmp/fileTQ4LlL.c:202: error: ??struct mus_rt_ladspa?? has no member named ??scm_ladspa?? >> /tmp/fileTQ4LlL.c: In function ??free_rt_ladspa??: >> /tmp/fileTQ4LlL.c:210: error: ??struct mus_rt_ladspa?? has no member named ??descriptor?? >> /tmp/fileTQ4LlL.c:212: error: ??struct mus_rt_ladspa?? has no member named ??descriptor?? >> /tmp/fileTQ4LlL.c:212: error: ??struct mus_rt_ladspa?? has no member named ??handle?? >> /tmp/fileTQ4LlL.c:214: error: ??struct mus_rt_ladspa?? has no member named ??descriptor?? >> /tmp/fileTQ4LlL.c:216: error: ??struct mus_rt_ladspa?? has no member named ??descriptor?? >> /tmp/fileTQ4LlL.c:216: error: ??struct mus_rt_ladspa?? has no member named ??handle?? >> /tmp/fileTQ4LlL.c:218: error: ??struct mus_rt_ladspa?? has no member named ??controls?? >> /tmp/fileTQ4LlL.c:219: error: ??struct mus_rt_ladspa?? has no member named ??controls_out?? >> /tmp/fileTQ4LlL.c:224: error: ??struct mus_rt_ladspa?? has no member named ??num_audio_ins?? >> /tmp/fileTQ4LlL.c:228: error: ??struct mus_rt_ladspa?? has no member named ??ins?? >> /tmp/fileTQ4LlL.c:233: error: ??struct mus_rt_ladspa?? has no member named ??ins?? >> /tmp/fileTQ4LlL.c:238: error: ??struct mus_rt_ladspa?? has no member named ??num_audio_outs?? >> /tmp/fileTQ4LlL.c:242: error: ??struct mus_rt_ladspa?? has no member named ??outs?? >> /tmp/fileTQ4LlL.c:247: error: ??struct mus_rt_ladspa?? has no member named ??outs?? >> /tmp/fileTQ4LlL.c:248: error: ??struct mus_rt_ladspa?? has no member named ??audioin_port_nums?? >> /tmp/fileTQ4LlL.c:249: error: ??struct mus_rt_ladspa?? has no member named ??audioout_port_nums?? >> /tmp/fileTQ4LlL.c:250: error: ??struct mus_rt_ladspa?? has no member named ??controlin_port_nums?? >> /tmp/fileTQ4LlL.c:251: error: ??struct mus_rt_ladspa?? has no member named ??controlout_port_nums?? >> /tmp/fileTQ4LlL.c: In function ??mark_rt_ladspa??: >> /tmp/fileTQ4LlL.c:204: warning: control reaches end of non-void function > > > > "Kjetil S. Matheussen" writes: > >> On Sat, 21 Oct 2006, David O'Toole wrote: >> >>> >>> Hello Kjetil, >>> >>> We seem to have tracked down my errors to snd_conffile.scm not being >>> loaded. >> >> Ouch, the realtime stuff is supposed to work without >> snd_conffile.scm. Why is snd_conffile.scm needed? san_dysth works just >> fine without snd_conffile.scm... >> >> >>> I actually do have the file in my CVS download directory, so I >>> loaded that first, and got some errors about undefined GTK symbols. It >>> appears to depend on GTK. >>> >>> I'm reluctant to just use snd-ls, for several reasons. >>> >>> I want to configure Snd with -march=athlon-xp (for as much as 20% >>> speedup, i'm told) and --with-motif. Besides preferring the Motif >>> version visually, I am also experiencing a bug that prevents me from >>> running any GTK application under Distributed Multihead X (DMX) which >>> is what I use for my multihead desktop. So at this time the >>> GTK-version is not an option for me. >>> >> >> Okay, but you could use the SND source provided by snd-ls to do >> realtime work. You do that by running ./unpack.sh, and after that just >> configure and compile it the way you want. I guess this could >> be less frustrating for you, since snd from time to time is >> incompatible with rt-compiler and rt-engine because of api changes. >> >> >>> I would like to help get rt-compiler working with the Snd from >>> CVS. Perhaps you can point me in the right direction, so that I can >>> help write a different file to define all the symbols that rt-compiler >>> needs? I will take a look at it tonight but some pointers would >>> definitely help. >>> >> >> I'm not sure what I can point you to. Its supposed to work, really. >> But I think your %load-path is not set... >> >> >>> I am developing a graphical Common Lisp frontend for the Snd-RT stuff, >>> including realtime control. The home page for the project is >>> http://dto.freeshell.org/notebook/ClFrame.html >>> >> >> Yeah, it looks cool. :-) >> >> >> > > -- > David O'Toole > dto at gnu.org > http://dto.freeshell.org/notebook/ > From k.s.matheussen at notam02.no Sun Oct 22 15:15:59 2006 From: k.s.matheussen at notam02.no (Kjetil S. Matheussen) Date: Mon, 23 Oct 2006 00:15:59 +0200 (CEST) Subject: [CM] Re: Issues in running Snd-RT In-Reply-To: References: <20061019190003.1016.1094.Mailman@cm-mail.stanford.edu> Message-ID: On Mon, 23 Oct 2006, Kjetil S. Matheussen wrote: > > You are missing ladspa.h: > wget http://www.ladspa.org/ladspa_sdk/ladspa.h.txt > cp ladspa.h.txt /usr/include/ladspa.h > > > After that start snd and do the following: > > (set! %load-path (cons "/home/dto/src/snd-ls-0.9.7.5/snd-8/" %load-path)) > (define (gtk-events-pending) 0) > (define srfi-loaded) > (load-from-path "rt-compiler.scm") > Oops, and by "start snd" I mean the following command: /home/dto/src/snd-ls-0.9.7.5/snd-8/snd From dto at gnu.org Sun Oct 22 15:35:23 2006 From: dto at gnu.org (David O'Toole) Date: Sun, 22 Oct 2006 18:35:23 -0400 Subject: [CM] Re: Issues in running Snd-RT In-Reply-To: (Kjetil S. Matheussen's message of "Mon\, 23 Oct 2006 00\:12\:32 +0200 \(CEST\)") References: <20061019190003.1016.1094.Mailman@cm-mail.stanford.edu> Message-ID: Ok, I did a "yum install ladspa-devel" and the compilation of rt-compiler.scm worked fine. Oops :-) I am using PlanetCCRMA-FC5, which doesn't have the "install everything" packages available yet, so I forgot to install some stuff I guess. I ran the "sinewave" example from your website, and heard the sound on my monitors, so the RT-extension appears to be working. Thanks so much for your help Kjetil and Bill! Tomorrow I will play with the RT language and try writing some routines to turn CL-FRAME dataflow graphs into Snd code. I'm going to call the specialized Snd subclasses "SND-FRAME". By the way, how do I pronounce "snd"? "Kjetil S. Matheussen" writes: > You are missing ladspa.h: > wget http://www.ladspa.org/ladspa_sdk/ladspa.h.txt > cp ladspa.h.txt /usr/include/ladspa.h > > > After that start snd and do the following: > > (set! %load-path (cons "/home/dto/src/snd-ls-0.9.7.5/snd-8/" %load-path)) > (define (gtk-events-pending) 0) > (define srfi-loaded) > (load-from-path "rt-compiler.scm") > > > > > On Sun, 22 Oct 2006, David O'Toole wrote: > >> >> Sorry, I introduced that last syntax error when I commented out the >> body of the one function that referred to gtk. >> >> Fixing that, I was able to do the following: >> >>>> (load-from-path "oo.scm") >>> # >>>> (load-from-path "eval-c.scm") >>> # >> >> And those worked fine. >> >> But then I try to load rt-compiler.scm: >> >>>> (load-from-path "rt-compiler.scm") >>> compilation-failed: () >>> In unknown file: >>> ?: 0* [primitive-load-path "rt-compiler.scm"] >>> In /home/dto/src/snd-ls-0.9.7.5/snd-8/rt-compiler.scm: >>> 5539: 1* (eval-c (<-> "-I" snd-header-files-path ...) "#include " ...) >>> 5539: 2 (if (not #) (eval-c-cache-it # # #)) >>> In unknown file: >>> ?: 3 [eval-c-cache-it "-I/home/dto/src/snd-ls-0.9.7.5/snd-8 " # ... >>> ?: 4* [eval-c-eval # "-I/home/dto/src/snd-ls-0.9.7.5/snd-8 " ...] >>> ?: 5 (let* () (let* (# #) (let # #))) >>> ?: 6 (let* (# #) (let # #)) >>> ?: 7 (let ((compile-options #)) (let* () (let* # # # ...))) >>> ?: 8 (let* () (let* (# # # # ...) (if # #) (for-each # #) ...)) >>> In /home/dto/src/snd-ls-0.9.7.5/snd-8/eval-c.scm: >>> 1715: 9 (let* (# # # # ...) (if # #) (for-each # #) ...) >>> 1741: 10* (if (not (= 0 #)) (begin (if eval-c-lazy-cleanup #) (throw #))) >>> 1747: 11 (begin (if eval-c-lazy-cleanup #) (throw #)) >>> 1750: 12 [gsubr-apply # compilation-failed] >> >> >> The following is on standard output after this happens: >> >>> [root at localhost snd-8]# sh: line 1: -s: command not found >>> sh: line 1: -s: command not found >>> sh: line 1: -s: command not found >>> sh: line 1: -s: command not found >>> sh: line 1: -s: command not found >>> sh: line 1: -s: command not found >>> sh: line 1: -s: command not found >>> sh: line 1: -s: command not found >>> sh: line 1: -s: command not found >>> sh: line 1: -s: command not found >>> sh: line 1: -s: command not found >>> sh: line 1: -s: command not found >>> sh: line 1: -s: command not found >>> sh: line 1: -s: command not found >>> sh: line 1: -s: command not found >>> sh: line 1: -s: command not found >>> sh: line 1: -s: command not found >>> sh: line 1: -s: command not found >>> sh: line 1: -s: command not found >>> sh: line 1: -s: command not found >>> sh: line 1: -s: command not found >>> sh: line 1: -s: command not found >>> sh: line 1: -s: command not found >>> sh: line 1: -s: command not found >>> sh: line 1: -s: command not found >>> sh: line 1: -s: command not found >>> sh: line 1: -s: command not found >>> sh: line 1: -s: command not found >>> sh: line 1: -s: command not found >>> sh: line 1: -s: command not found >>> sh: line 1: -s: command not found >>> sh: line 1: -s: command not found >>> sh: line 1: -s: command not found >>> sh: line 1: -s: command not found >>> sh: line 1: -s: command not found >>> /tmp/fileYMX5Dm.c: In function ??jack_port_name_eval_c_helper??: >>> /tmp/fileYMX5Dm.c:267: warning: initialization discards qualifiers from pointer target type >>> /tmp/fileYMX5Dm.c: In function ??jack_port_short_name_eval_c_helper??: >>> /tmp/fileYMX5Dm.c:276: warning: initialization discards qualifiers from pointer target type >>> /tmp/fileYMX5Dm.c: In function ??jack_port_type_eval_c_helper??: >>> /tmp/fileYMX5Dm.c:294: warning: initialization discards qualifiers from pointer target type >>> Alsa library loaded. >>> /tmp/fileTQ4LlL.c:38:20: error: ladspa.h: No such file or directory >>> /tmp/fileTQ4LlL.c:47: error: expected specifier-qualifier-list before ??LADSPA_Descriptor?? >>> /tmp/fileTQ4LlL.c: In function ??ladspa_minus_set2??: >>> /tmp/fileTQ4LlL.c:99: error: ??struct mus_rt_ladspa?? has no member named ??num_controls_in?? >>> /tmp/fileTQ4LlL.c:101: error: ??struct mus_rt_ladspa?? has no member named ??controls?? >>> /tmp/fileTQ4LlL.c: In function ??make_minus_ladspa2??: >>> /tmp/fileTQ4LlL.c:119: error: ??struct mus_rt_ladspa?? has no member named ??ins?? >>> /tmp/fileTQ4LlL.c:119: error: ??struct mus_rt_ladspa?? has no member named ??num_audio_ins?? >>> /tmp/fileTQ4LlL.c:124: error: ??struct mus_rt_ladspa?? has no member named ??num_audio_ins?? >>> /tmp/fileTQ4LlL.c:128: error: ??struct mus_rt_ladspa?? has no member named ??ins?? >>> /tmp/fileTQ4LlL.c:129: error: ??struct mus_rt_ladspa?? has no member named ??descriptor?? >>> /tmp/fileTQ4LlL.c:129: error: ??struct mus_rt_ladspa?? has no member named ??handle?? >>> /tmp/fileTQ4LlL.c:129: error: ??struct mus_rt_ladspa?? has no member named ??audioin_port_nums?? >>> /tmp/fileTQ4LlL.c:129: error: ??struct mus_rt_ladspa?? has no member named ??ins?? >>> /tmp/fileTQ4LlL.c:134: error: ??struct mus_rt_ladspa?? has no member named ??outs?? >>> /tmp/fileTQ4LlL.c:134: error: ??struct mus_rt_ladspa?? has no member named ??num_audio_outs?? >>> /tmp/fileTQ4LlL.c:139: error: ??struct mus_rt_ladspa?? has no member named ??num_audio_outs?? >>> /tmp/fileTQ4LlL.c:143: error: ??struct mus_rt_ladspa?? has no member named ??outs?? >>> /tmp/fileTQ4LlL.c:144: error: ??struct mus_rt_ladspa?? has no member named ??descriptor?? >>> /tmp/fileTQ4LlL.c:144: error: ??struct mus_rt_ladspa?? has no member named ??handle?? >>> /tmp/fileTQ4LlL.c:144: error: ??struct mus_rt_ladspa?? has no member named ??audioout_port_nums?? >>> /tmp/fileTQ4LlL.c:144: error: ??struct mus_rt_ladspa?? has no member named ??outs?? >>> /tmp/fileTQ4LlL.c:153: error: ??struct mus_rt_ladspa?? has no member named ??num_controls_in?? >>> /tmp/fileTQ4LlL.c:157: error: ??struct mus_rt_ladspa?? has no member named ??descriptor?? >>> /tmp/fileTQ4LlL.c:157: error: ??struct mus_rt_ladspa?? has no member named ??handle?? >>> /tmp/fileTQ4LlL.c:157: error: ??struct mus_rt_ladspa?? has no member named ??controlin_port_nums?? >>> /tmp/fileTQ4LlL.c:157: error: ??struct mus_rt_ladspa?? has no member named ??controls?? >>> /tmp/fileTQ4LlL.c:162: error: ??struct mus_rt_ladspa?? has no member named ??controls_out?? >>> /tmp/fileTQ4LlL.c:162: error: ??struct mus_rt_ladspa?? has no member named ??num_controls_out?? >>> /tmp/fileTQ4LlL.c:167: error: ??struct mus_rt_ladspa?? has no member named ??num_controls_out?? >>> /tmp/fileTQ4LlL.c:171: error: ??struct mus_rt_ladspa?? has no member named ??descriptor?? >>> /tmp/fileTQ4LlL.c:171: error: ??struct mus_rt_ladspa?? has no member named ??handle?? >>> /tmp/fileTQ4LlL.c:171: error: ??struct mus_rt_ladspa?? has no member named ??controlout_port_nums?? >>> /tmp/fileTQ4LlL.c:171: error: ??struct mus_rt_ladspa?? has no member named ??controls_out?? >>> /tmp/fileTQ4LlL.c:176: error: ??struct mus_rt_ladspa?? has no member named ??descriptor?? >>> /tmp/fileTQ4LlL.c:178: error: ??struct mus_rt_ladspa?? has no member named ??descriptor?? >>> /tmp/fileTQ4LlL.c:178: error: ??struct mus_rt_ladspa?? has no member named ??handle?? >>> /tmp/fileTQ4LlL.c:181: error: ??struct mus_rt_ladspa?? has no member named ??scm_ladspa?? >>> /tmp/fileTQ4LlL.c: In function ??mark_rt_ladspa??: >>> /tmp/fileTQ4LlL.c:199: error: ??struct mus_rt_ladspa?? has no member named ??scm_output?? >>> /tmp/fileTQ4LlL.c:200: error: ??struct mus_rt_ladspa?? has no member named ??scm_descriptor?? >>> /tmp/fileTQ4LlL.c:201: error: ??struct mus_rt_ladspa?? has no member named ??scm_handle?? >>> /tmp/fileTQ4LlL.c:202: error: ??struct mus_rt_ladspa?? has no member named ??scm_ladspa?? >>> /tmp/fileTQ4LlL.c: In function ??free_rt_ladspa??: >>> /tmp/fileTQ4LlL.c:210: error: ??struct mus_rt_ladspa?? has no member named ??descriptor?? >>> /tmp/fileTQ4LlL.c:212: error: ??struct mus_rt_ladspa?? has no member named ??descriptor?? >>> /tmp/fileTQ4LlL.c:212: error: ??struct mus_rt_ladspa?? has no member named ??handle?? >>> /tmp/fileTQ4LlL.c:214: error: ??struct mus_rt_ladspa?? has no member named ??descriptor?? >>> /tmp/fileTQ4LlL.c:216: error: ??struct mus_rt_ladspa?? has no member named ??descriptor?? >>> /tmp/fileTQ4LlL.c:216: error: ??struct mus_rt_ladspa?? has no member named ??handle?? >>> /tmp/fileTQ4LlL.c:218: error: ??struct mus_rt_ladspa?? has no member named ??controls?? >>> /tmp/fileTQ4LlL.c:219: error: ??struct mus_rt_ladspa?? has no member named ??controls_out?? >>> /tmp/fileTQ4LlL.c:224: error: ??struct mus_rt_ladspa?? has no member named ??num_audio_ins?? >>> /tmp/fileTQ4LlL.c:228: error: ??struct mus_rt_ladspa?? has no member named ??ins?? >>> /tmp/fileTQ4LlL.c:233: error: ??struct mus_rt_ladspa?? has no member named ??ins?? >>> /tmp/fileTQ4LlL.c:238: error: ??struct mus_rt_ladspa?? has no member named ??num_audio_outs?? >>> /tmp/fileTQ4LlL.c:242: error: ??struct mus_rt_ladspa?? has no member named ??outs?? >>> /tmp/fileTQ4LlL.c:247: error: ??struct mus_rt_ladspa?? has no member named ??outs?? >>> /tmp/fileTQ4LlL.c:248: error: ??struct mus_rt_ladspa?? has no member named ??audioin_port_nums?? >>> /tmp/fileTQ4LlL.c:249: error: ??struct mus_rt_ladspa?? has no member named ??audioout_port_nums?? >>> /tmp/fileTQ4LlL.c:250: error: ??struct mus_rt_ladspa?? has no member named ??controlin_port_nums?? >>> /tmp/fileTQ4LlL.c:251: error: ??struct mus_rt_ladspa?? has no member named ??controlout_port_nums?? >>> /tmp/fileTQ4LlL.c: In function ??mark_rt_ladspa??: >>> /tmp/fileTQ4LlL.c:204: warning: control reaches end of non-void function >> >> >> >> "Kjetil S. Matheussen" writes: >> >>> On Sat, 21 Oct 2006, David O'Toole wrote: >>> >>>> >>>> Hello Kjetil, >>>> >>>> We seem to have tracked down my errors to snd_conffile.scm not being >>>> loaded. >>> >>> Ouch, the realtime stuff is supposed to work without >>> snd_conffile.scm. Why is snd_conffile.scm needed? san_dysth works just >>> fine without snd_conffile.scm... >>> >>> >>>> I actually do have the file in my CVS download directory, so I >>>> loaded that first, and got some errors about undefined GTK symbols. It >>>> appears to depend on GTK. >>>> >>>> I'm reluctant to just use snd-ls, for several reasons. >>>> >>>> I want to configure Snd with -march=athlon-xp (for as much as 20% >>>> speedup, i'm told) and --with-motif. Besides preferring the Motif >>>> version visually, I am also experiencing a bug that prevents me from >>>> running any GTK application under Distributed Multihead X (DMX) which >>>> is what I use for my multihead desktop. So at this time the >>>> GTK-version is not an option for me. >>>> >>> >>> Okay, but you could use the SND source provided by snd-ls to do >>> realtime work. You do that by running ./unpack.sh, and after that just >>> configure and compile it the way you want. I guess this could >>> be less frustrating for you, since snd from time to time is >>> incompatible with rt-compiler and rt-engine because of api changes. >>> >>> >>>> I would like to help get rt-compiler working with the Snd from >>>> CVS. Perhaps you can point me in the right direction, so that I can >>>> help write a different file to define all the symbols that rt-compiler >>>> needs? I will take a look at it tonight but some pointers would >>>> definitely help. >>>> >>> >>> I'm not sure what I can point you to. Its supposed to work, really. >>> But I think your %load-path is not set... >>> >>> >>>> I am developing a graphical Common Lisp frontend for the Snd-RT stuff, >>>> including realtime control. The home page for the project is >>>> http://dto.freeshell.org/notebook/ClFrame.html >>>> >>> >>> Yeah, it looks cool. :-) >>> >>> >>> >> >> -- >> David O'Toole >> dto at gnu.org >> http://dto.freeshell.org/notebook/ >> -- David O'Toole dto at gnu.org http://dto.freeshell.org/notebook/ From cycle.code.media at gmail.com Sun Oct 29 01:17:59 2006 From: cycle.code.media at gmail.com (James Baker) Date: Sun, 29 Oct 2006 19:17:59 +1100 Subject: [CM] changing list delivery Message-ID: <428d2dc0610290117t7f6d15f7w30eb1fbb7bdee787@mail.gmail.com> Hey folks, this is probably really obvious but her goes... When I signed up to this list i chose 'batch digest' mode, but I would like to change to single mails. I had a look at http://ccrma-mail.stanford.edu/mailman/listinfo/cmdist and could not see anything. Cheers, James From holeczek at us.edu.pl Mon Oct 30 02:06:55 2006 From: holeczek at us.edu.pl (Jacek M. Holeczek) Date: Mon, 30 Oct 2006 11:06:55 +0100 (MET) Subject: [CM] ITD/ILD filter in Snd-8(.6) Message-ID: Hi, in the article: http://www.aip.org/pt/nov99/locsound.html in the Figure.2, the author shows the "calculated" interaural level differences (ILD). For my purposes, I would like to play with ITD/ILD a little bit in Snd. Does anyone know where to find any parameterization for such curves? I would like to "implement" an ITD/ILD filter in Snd (for example, left channel is unchanged, right channel = left channel after ITD/ILD filter). Thanks in advance, Best regards, Jacek. From k.s.matheussen at notam02.no Mon Oct 30 06:39:12 2006 From: k.s.matheussen at notam02.no (Kjetil S. Matheussen) Date: Mon, 30 Oct 2006 15:39:12 +0100 (CET) Subject: [CM] [ANN] Vmwaredspjack 1.3, Snd-ls 0.9.7.6 and Jack_capture V0.3.8 Message-ID: Vmwaredspjack ============= This is the vmwaredsp program, made by Petr Vandrovec, which makes vmware work with esd or arts. This version adds jack support as well. (Unfortunately, jacklaunch (which is a similar program) doesn't work with vmware, but I think Gunter is working on it... :-) .) The program isn't always working that well, but if used with care (don't trust the output too much) and proper tuning, you can use professional windows audio software in vmware using jack for audio communication. Download from http://www.notam02.no/arkiv/src/ Snd-ls v0.9.7.6 =============== Snd-ls is a distribution of Bill Schottstaedt's sound editor SND. Its target is people that don't know scheme very well, and don't want to spend too much time configuring Snd. It can also serve as a quick introduction to Snd and how it can be set up. Changes 0.9.7.1 -> 0.9.7.6: --------------------------- -Proper debug output in case startup fails. -Fixed bug in jack audio. -Temporary remove the fft menu because its not working with the 26.9.2006 version of Snd. Bug found by Dragan Noveski. -Check for the existence of the sndfile.h header file before compiling. If it doesn't exist, snd-ls will refuse to run. Problem reported by Krzusztof Gawlas. -Make sure snd starts up even if no file was loaded during startup. Bug found by Dragan Noveski. -Really apply the workaround for the menu problem. Download from http://www.notam02.no/arkiv/src/snd/ Jack_capture V0.3.8 =================== jack_capture is a small program to capture whatever sound is going out to your speakers into a file. This is the program I always wanted to have for jack, but no one made. So here it is. Changes 0.3.7 -> 0.3.8: ----------------------- *Added the --recording-time option to stop recording after a certain number of seconds. *Quitting with CTRL-C/SIGINT writes remaining buffer to disk before ending program. Download from http://www.notam02.no/arkiv/src/ From finnendahl at folkwang-hochschule.de Tue Oct 31 15:37:57 2006 From: finnendahl at folkwang-hochschule.de (Orm Finnendahl) Date: Wed, 1 Nov 2006 00:37:57 +0100 Subject: [CM] plotter questions Message-ID: <20061031233757.GC4481@grisey> Hi, trying out plotter (from cm-gtk in linux), the following questions came up: 1. Is it possible to set different colors to different box objects within the same layer to reflect slot values? (I think it is not possible right now; I'm just asking whether it is complicated to implement and how to do it). 2. Is it possible to send update commands to the gtk window from the language in order to make the graphics reflect changes in the subobjects of plotter's sequence? Thanx for any help, Orm