From johannes.quint at web.de Sat Nov 1 03:17:14 2014 From: johannes.quint at web.de (Johannes Quint) Date: Sat, 1 Nov 2014 11:17:14 +0100 Subject: [CM] fomus/grace/windows Message-ID: <0630B9B3-A261-4CCC-AB69-24B834D5EE58@web.de> hello rick, hello david, we have again some problems with grace/fomus: a student of mine tells that fomus doesn't work on windows 7. or maybe can't communicate with grace. after: (with-fomus ("test.ly") (fms:note :pitch 60 :time 0 :dur 4)) there is no "test.ly" file and after (sprout (process repeat 1 do (fms:note :pitch 60 :dur 4 :time 0)) "test.ly") he gets: >>> Error: don't know how to open "test.ly" open-file: (error "don't know how to open ~S" ... ; str: "test.ly" open-file: ((ffi_sched_set_score_mode mode) mode) ; mode: 0 sprout: ((if *sprout-hook* (*sprout-hook* file... ; file: "test.ly", start: 0 ; id: 0 ; startBeat: 0 ... do you have any help for us? thanks a lot, johannes Johannes Quint www.johannes-quint.de -------------- next part -------------- An HTML attachment was scrubbed... URL: From bil at ccrma.Stanford.EDU Tue Nov 4 12:31:49 2014 From: bil at ccrma.Stanford.EDU (Bill Schottstaedt) Date: Tue, 4 Nov 2014 12:31:49 -0800 Subject: [CM] Snd 15.1 Message-ID: <20141104203043.M93807@ccrma.Stanford.EDU> Snd 15.1. Juan Reyes donated his Leslie instrument, rotates, in leslie.cms and leslie.ins (in clm). s7 now has a s7webserver directory containing Kjetil Matheussen's s7 web repl. Mike Scholz updated the Forth and Ruby scripts. checked: sbcl 1.2.4|5, gtk 3.14.0|1|2|3|4, 3.15.0|1 Thanks!: Kjetil Matheussen, Juan Reyes, Mike Scholz. From mjkoskin at kolumbus.fi Mon Nov 10 07:56:57 2014 From: mjkoskin at kolumbus.fi (Matti Koskinen) Date: Mon, 10 Nov 2014 17:56:57 +0200 Subject: [CM] loading .so file in Grace Message-ID: <5460E049.9030602@kolumbus.fi> hi all, How to load a dynamic .so file? I compiled S7 with HAVE_C_LOADER, but loading with load gives undefined symbol some hex-numbers and ELF, if I try giving (environment (cons 'init_func 'init_ex)), load gives wrong number of arguments in FFI_LOAD. Running just S7, load works giving (load "xx.so" (envir.... I'm trying now on Linux, but should be the same on OSX. thanks -m From bil at ccrma.Stanford.EDU Mon Nov 10 10:22:18 2014 From: bil at ccrma.Stanford.EDU (Bill Schottstaedt) Date: Mon, 10 Nov 2014 10:22:18 -0800 Subject: [CM] loading .so file in Grace In-Reply-To: <5460E049.9030602@kolumbus.fi> References: <5460E049.9030602@kolumbus.fi> Message-ID: <20141110182130.M64211@ccrma.Stanford.EDU> I think you go to File->New Editor which starts up a new window, type the s7 code in it, then ctrl-return to evaluate it. From mjkoskin at kolumbus.fi Mon Nov 10 11:32:10 2014 From: mjkoskin at kolumbus.fi (Matti Koskinen) Date: Mon, 10 Nov 2014 21:32:10 +0200 Subject: [CM] loading .so file in Grace In-Reply-To: <20141110182130.M64211@ccrma.Stanford.EDU> References: <5460E049.9030602@kolumbus.fi> <20141110182130.M64211@ccrma.Stanford.EDU> Message-ID: <546112BA.3040803@kolumbus.fi> On 11/10/2014 08:22 PM, Bill Schottstaedt wrote: > I think you go to File->New Editor which starts up a new window, > type the s7 code in it, then ctrl-return to evaluate it. > > > > that's what I'm doing. But l think I have to change in SndLibBridge.cpp something for load to accept 2 args and pass them to s7. Don't how ffi_load finds the init-routine. I have old code, that used to work in some old Grace-version. I added the cload per s7.html to s7.c though. Probably would be easier than tinker with SndLibBridge.cpp. An old version of s7 as executable loaded my .so correctly, now I recompiled s7 (didn't change anything), gcc is probably newer on ubuntu 14.04, and I get undefined symbol s7_string, although it's clearly there looking with nm. I'm going to try with OSX, what does this thing do there. tnx -m From bil at ccrma.Stanford.EDU Mon Nov 10 12:55:42 2014 From: bil at ccrma.Stanford.EDU (Bill Schottstaedt) Date: Mon, 10 Nov 2014 12:55:42 -0800 Subject: [CM] loading .so file in Grace In-Reply-To: <546112BA.3040803@kolumbus.fi> References: <5460E049.9030602@kolumbus.fi> <20141110182130.M64211@ccrma.Stanford.EDU> <546112BA.3040803@kolumbus.fi> Message-ID: <20141110205410.M43548@ccrma.Stanford.EDU> oh -- I misunderstood where the problem was. The underlying s7 load can still be accessed in Grace as #_load. cm's load uses s7_load, I think, which doesn't currently know about the dynamic loader. From mjkoskin at kolumbus.fi Mon Nov 10 14:47:13 2014 From: mjkoskin at kolumbus.fi (Matti Koskinen) Date: Tue, 11 Nov 2014 00:47:13 +0200 Subject: [CM] loading .so file in Grace Message-ID: On OSX loading works fine, linux gives this undefined symbol s7_string for some unknown reason. Here's internet maintenance from 12am-7am, should be max. one hour breakage, but internet will be back sometime in the next few days if their schedule is what it used to be. So need to write with my phone. -m Bill Schottstaedt wrote: >oh -- I misunderstood where the problem was. The underlying >s7 load can still be accessed in Grace as #_load. cm's load >uses s7_load, I think, which doesn't currently know about the >dynamic loader. > > > > From taube at illinois.edu Mon Nov 10 16:15:53 2014 From: taube at illinois.edu (Rick Taube) Date: Mon, 10 Nov 2014 18:15:53 -0600 Subject: [CM] loading .so file in Grace In-Reply-To: <20141110205410.M43548@ccrma.Stanford.EDU> References: <5460E049.9030602@kolumbus.fi> <20141110182130.M64211@ccrma.Stanford.EDU> <546112BA.3040803@kolumbus.fi> <20141110205410.M43548@ccrma.Stanford.EDU> Message-ID: sorry, I didnt know cm was in the loop? what is the issue?? On Nov 10, 2014, at 2:55 PM, Bill Schottstaedt wrote: > oh -- I misunderstood where the problem was. The underlying > s7 load can still be accessed in Grace as #_load. cm's load > uses s7_load, I think, which doesn't currently know about the > dynamic loader. > > > _______________________________________________ > Cmdist mailing list > Cmdist at ccrma.stanford.edu > http://ccrma-mail.stanford.edu/mailman/listinfo/cmdist > From mjkoskin at kolumbus.fi Mon Nov 10 16:47:42 2014 From: mjkoskin at kolumbus.fi (Matti Koskinen) Date: Tue, 11 Nov 2014 02:47:42 +0200 Subject: [CM] loading .so file in Grace In-Reply-To: References: <5460E049.9030602@kolumbus.fi> <20141110182130.M64211@ccrma.Stanford.EDU> <546112BA.3040803@kolumbus.fi> <20141110205410.M43548@ccrma.Stanford.EDU> Message-ID: On 11 Nov, 2014, at 2:15 am, Rick Taube wrote: > sorry, I didnt know cm was in the loop? what is the issue?? > > On Nov 10, 2014, at 2:55 PM, Bill Schottstaedt wrote: > >> oh -- I misunderstood where the problem was. The underlying >> s7 load can still be accessed in Grace as #_load. cm's load >> uses s7_load, I think, which doesn't currently know about the >> dynamic loader. >> >> >> _______________________________________________ >> Cmdist mailing list >> Cmdist at ccrma.stanford.edu >> http://ccrma-mail.stanford.edu/mailman/listinfo/cmdist >> > > Everything works here on OSX fine, using #_load I can load a dynamic lib just fine from Grace. And the sockets in the .so work ok. On Linux s7_string is somehow undefined symbol (gcc bug?) So back to coding? tnx -m From frisk.h at gmail.com Tue Nov 11 04:35:19 2014 From: frisk.h at gmail.com (Henrik Frisk) Date: Tue, 11 Nov 2014 13:35:19 +0100 Subject: [CM] inf-snd.el Message-ID: Hi! I've successfully loaded snd from emacs but now I can't seem to get it to work. I'm using snd from planet ccrma (64) and emacs 24.3.1. Trying to run M-x run-snd-scheme yields: Symbol's value as variable is void: $! Same for run-snd-ruby. Any help appreciated! /Henrik -------------- next part -------------- An HTML attachment was scrubbed... URL: From mike at fth-devel.net Tue Nov 11 05:12:55 2014 From: mike at fth-devel.net (Michael Scholz) Date: Tue, 11 Nov 2014 14:12:55 +0100 (GMT) Subject: [CM] inf-snd.el In-Reply-To: References: Message-ID: On Tue, 11 Nov 2014, Henrik Frisk wrote: > I've successfully loaded snd from emacs but now I can't seem to get it to > work. I'm using snd from planet ccrma (64) and emacs 24.3.1. Trying to run > M-x run-snd-scheme yields: > > Symbol's value as variable is void: $! > > Same for run-snd-ruby. I wrote inf-snd.el but now I don't maintain it any longer (I switched editors). You may try other lisp- or scheme-modes. Sorry, Mike From frisk.h at gmail.com Wed Nov 12 03:44:54 2014 From: frisk.h at gmail.com (Henrik Frisk) Date: Wed, 12 Nov 2014 12:44:54 +0100 Subject: [CM] inf-snd.el In-Reply-To: References: Message-ID: On Tue, Nov 11, 2014 at 2:12 PM, Michael Scholz wrote: > On Tue, 11 Nov 2014, Henrik Frisk wrote: > > I've successfully loaded snd from emacs but now I can't seem to get it to >> work. I'm using snd from planet ccrma (64) and emacs 24.3.1. Trying to run >> M-x run-snd-scheme yields: >> >> Symbol's value as variable is void: $! >> >> Same for run-snd-ruby. >> > > I wrote inf-snd.el but now I don't maintain it any longer (I switched > editors). You may try other lisp- or scheme-modes. > > Sorry, > Mike > I see. No problem, thanks for the reply! /Henrik -------------- next part -------------- An HTML attachment was scrubbed... URL: From frisk.h at gmail.com Sat Nov 15 04:09:10 2014 From: frisk.h at gmail.com (Henrik Frisk) Date: Sat, 15 Nov 2014 13:09:10 +0100 Subject: [CM] Plot paths with gnuplot Message-ID: Hi, Learning to use dlocsig the possibility to plot paths in gnuplot seams like a useful feature. However, I can't quite figure out how to go about it. >From reading the documentation (dlocsig) I understand that I use a list of functions, but I'm not sure how. I'm mainly using snd. Best, /Henrik -------------- next part -------------- An HTML attachment was scrubbed... URL: From billbose at gmail.com Sat Nov 22 11:40:07 2014 From: billbose at gmail.com (JV) Date: Sat, 22 Nov 2014 14:40:07 -0500 Subject: [CM] regds : s7 scheme -> embedding scheme Message-ID: How do you embed a 'large' scheme program with s7 . Do you run any macros before you compile the c code to do the escapes for the scheme text? (see below) I will appreciate if i can get access to those macros. int main(int argc, char **argv) { char *scheme_program = "(define (hello src)" "(display src))" "(hello \"joe\n\")"; s7_scheme *s7; s7 = s7_init(); s7_eval_c_string(s7, scheme_program); } -- Joe -------------- next part -------------- An HTML attachment was scrubbed... URL: From k.s.matheussen at gmail.com Sat Nov 22 12:08:29 2014 From: k.s.matheussen at gmail.com (Kjetil Matheussen) Date: Sat, 22 Nov 2014 21:08:29 +0100 Subject: [CM] regds : s7 scheme -> embedding scheme In-Reply-To: References: Message-ID: I don't know if this is what you're asking about. but this is the script used to convert scheme code into "#include"-able c-code for the k_guile pd external: https://github.com/kmatheussen/k_guile/blob/master/gen_c_scheme.py The output is used like this: char *scheme_code = #include "scheme_code_scm.txt" On Sat, Nov 22, 2014 at 8:40 PM, JV wrote: > > How do you embed a 'large' scheme program with s7 . > Do you run any macros before you compile the c code to do the escapes for > the scheme text? (see below) > I will appreciate if i can get access to those macros. > > > int main(int argc, char **argv) > { > char *scheme_program = "(define (hello src)" > "(display src))" > "(hello \"joe\n\")"; > s7_scheme *s7; > s7 = s7_init(); > s7_eval_c_string(s7, scheme_program); > } > -- > Joe > > _______________________________________________ > Cmdist mailing list > Cmdist at ccrma.stanford.edu > http://ccrma-mail.stanford.edu/mailman/listinfo/cmdist > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From billbose at gmail.com Sat Nov 22 12:36:42 2014 From: billbose at gmail.com (JV) Date: Sat, 22 Nov 2014 15:36:42 -0500 Subject: [CM] regds : s7 scheme -> embedding scheme In-Reply-To: References: Message-ID: Yep. This is all I am looking for. Thanks a mucho. Joe On Sat, Nov 22, 2014 at 3:08 PM, Kjetil Matheussen wrote: > I don't know if this is what you're asking about. but this is the > script used to convert scheme code into "#include"-able > c-code for the k_guile pd external: > https://github.com/kmatheussen/k_guile/blob/master/gen_c_scheme.py > > The output is used like this: > char *scheme_code = #include "scheme_code_scm.txt" > > > > > On Sat, Nov 22, 2014 at 8:40 PM, JV wrote: > >> >> How do you embed a 'large' scheme program with s7 . >> Do you run any macros before you compile the c code to do the escapes for >> the scheme text? (see below) >> I will appreciate if i can get access to those macros. >> >> >> int main(int argc, char **argv) >> { >> char *scheme_program = "(define (hello src)" >> "(display src))" >> "(hello \"joe\n\")"; >> s7_scheme *s7; >> s7 = s7_init(); >> s7_eval_c_string(s7, scheme_program); >> } >> -- >> Joe >> >> _______________________________________________ >> Cmdist mailing list >> Cmdist at ccrma.stanford.edu >> http://ccrma-mail.stanford.edu/mailman/listinfo/cmdist >> >> > -- -------------- next part -------------- An HTML attachment was scrubbed... URL: