(Including our beloved author Kjetil on this message ...)
On Saturday 10 January 2004 20:34, Michal Seta wrote:
On Sat, 2004-01-10 at 17:51, Larry Troxler wrote:
Well, I'm sorry if you were holding your breath!
I wasn't really...
That's good, because otherwise you would be dead by now, and your survivors would be suing me.
Well that's a good start! Was it straightforward?
Yup.
(load "/path/to/cm/src/cm.scm") (cm) ; and it prints the cute ascii cm logo in the shell :)
Cool! How often do things work out that simply? Of course my Common Music experimenting has been Common Lisp and not Scheme, so first, I'll have to install the guille version, and second, I'll have to forget about being able to take advantage of all the nice high level CM functions :-(
But having a PD object that reads out items from nested Common Music patterns (that you can edit sanely in a lisp environment), will be quite a bit nicer than trying to do the same thing with qlist text files, don't you think?
Kjetil, speaking of paths, it would be better IMO if you use the PD search path to load your scheme files, instead of only looking in the current directory. What I did in my pd_scheme external was to define a C callback in scheme, which callled the PD path search routine.
I think this bit is very much needed for practical use, unless people want to copy all the scheme files they use into the directory that they run PD from.
For example, your help file doesn't run as is, with your current approach.
Understand, please, that this is a minor point overall, and I thank you for providing this way cool tool for us PD users!
Another minor point, it would be nice if PD timers (or maybe "clocks" is the PD nomenclature, I don't remember) were supported as well.
But really, actually, either of the above two points I could tackle myself. Just let me know (a) if you want me to, and (b) if you're willing to handle an open-ended time frame for which these things will be implemented (although they both are quite simple).
I'd like to be able to load up scheme inside PD, and then from Emacs or whatever, be able to evaluate expressions inside that interpreter, while PD is running (I imagine through an IP socket).
hmm... yeah... That'd be nice. I can't do this but if [k_guile] were able to evaluate scheme expressions sent through an inlet it would already be easy to hack something up.
Would it really be that easy? How would you go about hooking up an Emacs listener, for example, using this approach? It would have to go through a socket and all that stuff, no? I mean, it _is_ saturday night here so I don't feel like dwelling on the details, but if you think you have an easy way to make something work, let us know!. Sure, it would be easy to type an sexpr into a PD message dialog and see the result, and granted, that would be far better than nothing, but it certainly wouldn't take the place of being able to use a nice lisp-aware editor to interact.
Hmm, right now I didn't even know that it's possible to reload a script in to a running PD object
k_guile extern accepts 'reload' message.
Yeah, I see that now that I have it running.
Going to try to install guile CM now ...
fun, fun, fun :_)))
Larry