Re: [CM] [snd] Is there a way to add dc offset to a file?

2015-08-24 Thread Bill Schottstaedt
There's also offset-channel in extensions.scm -- it's probably faster than map-channel, but it's aimed at sounds that fit easily in memory. ___ Cmdist mailing list Cmdist@ccrma.stanford.edu https://cm-mail.stanford.edu/mailman/listinfo/cmdist

Re: [CM] s7 on raspberry pi

2015-08-21 Thread Bill Schottstaedt
mus-config.h can be empty, or you can comment out that #include statement in s7.c. Here I am in a clean s7 directory: /home/bil/snd-15/ touch mus-config.h /home/bil/snd-15/ wc mus-config.h 0 0 0 mus-config.h /home/bil/snd-15/ gcc -c s7.c -I. If you want to make a repl, you could use gcc -o

Re: [CM] scheme, snd, cm_patterns.scm

2015-07-09 Thread Bill Schottstaedt
On the definstrument, I think I'd write it: (definstrument (examp1 start-time duration frequency amplitude) (let* ((beg (seconds-samples start-time)) (end (+ beg (seconds-samples duration))) (sine-wave (make-oscil :frequency frequency))) (do ((i beg (+ i 1))) ((=

Re: [CM] snd15.7 on osx10.10

2015-07-01 Thread Bill Schottstaedt
I think you need -L/opt/X11/lib in LDFLAGS -- -lXt refers to libXt and if the X11 headers are in /opt/X11/include then the libraries are probably nearby. ___ Cmdist mailing list Cmdist@ccrma.stanford.edu

Re: [CM] compiling snd 15.7 on osx 10.10

2015-07-01 Thread Bill Schottstaedt
Find IntrinsicP.h (via locate or maybe the Finder), then include the path to it in the CFLAGS variable -- it's probably in something like /sw/X11/include/X11. The old (very old!) configure script made heroic efforts to find the X headers, but I removed all that stuff when we tried to move to

Re: [CM] patch to markov-analyze in snd/CM_patterns.scm

2015-06-22 Thread Bill Schottstaedt
Thanks! I have made those changes to CM_patterns.scm and will merge them into the ccrma versions later today. I think that version of 'last came from dlocsig.scm(!) via the autoloader. ___ Cmdist mailing list Cmdist@ccrma.stanford.edu

Re: [CM] snd arithmetics - odd numbers - locale thing?

2015-06-19 Thread Bill Schottstaedt
Thanks! I'll make those changes. ___ Cmdist mailing list Cmdist@ccrma.stanford.edu https://cm-mail.stanford.edu/mailman/listinfo/cmdist

Re: [CM] snd arithmetics - odd numbers - locale thing?

2015-06-19 Thread Bill Schottstaedt
1,5.0 is really the correct way to write that number? I'd expect 1,5 -- it looks like s7 or someone tacked on .0. ___ Cmdist mailing list Cmdist@ccrma.stanford.edu http://ccrma-mail.stanford.edu/mailman/listinfo/cmdist

Re: [CM] snd arithmetics - odd numbers - locale thing?

2015-06-19 Thread Bill Schottstaedt
I think scheme assumes . is the decimal point; you could probably find some ambiguity if , were used involving quasiquote's use of ,. Right now you can even (define 1,2 '(1 2)) I currently setlocale(LC_NUMERIC, C) only while writing the saved-state data -- I was trying not to change that

[CM] Snd 15.7

2015-06-14 Thread Bill Schottstaedt
Snd 15.7: added CM_patterns.scm thanks to Rick and Anders removed s7 ~~ format directive changed bytevector* to byte-vector* (r7rs.scm has definitions of the old forms) checked: gtk 3.17.2|3, sbcl 1.2.12 Thanks!: Tito Latini, Kjetil Matheussen, Anders Vinjar

Re: [CM] s7: Snd in CM, CM in Snd anyway - getting patterns.scm going

2015-06-11 Thread Bill Schottstaedt
I think the bytevector? problem is that you have two versions of s7 running -- in the current one, it's named byte-vector? and there's an r7rs definition for bytevector? in r7rs.scm, but r7rs.scm requires stuff first which is still using the old form -- I was planning to make a new tarball next

Re: [CM] s7: Snd in CM, CM in Snd anyway?

2015-06-10 Thread Bill Schottstaedt
If I remember right, the cm+clm process would write a sound file (via with-sound or whatever), then use X window properties (via sndctrl?) to tell Snd about it. A motif-based Snd could still use this path, but I'd have to resurrect a lot of ancient code. If you were happy with the no-gui Snd, I

Re: [CM] s7: Snd in CM, CM in Snd anyway?

2015-06-10 Thread Bill Schottstaedt
Well, the second time... Here I am in the s7 repl: (define f ((*libc* 'popen) ./snd w)) ((*libc* 'fputs) (open-sound \oboe.snd\) f) ((*libc* 'fflush) f) #sound 0 ; heh heh ((*libc* 'pclose) f) ___ Cmdist mailing list Cmdist@ccrma.stanford.edu

Re: [CM] SND docs example: FM synthesis vs. additive synthesis

2015-06-09 Thread Bill Schottstaedt
I was comparing the FM-generated case versus the same magnitude spectrum generated by a sum of cosines -- this is not really fair, but see below. (That is, ignore the signs in the Jn expansion). fm.html has comments that contain most of the code (CLM and Maxima) that I used. For that example, I

Re: [CM] snd not reading flac on debian?

2015-06-08 Thread Bill Schottstaedt
For flac files, Snd depends on the flac program, and needs to have a path to it set during configuration. You can tell if your Snd has that info via: ./snd (sound-file-extensions) (wv mp3 mpeg flac ogg caf rf64 sf2 wve voc aifc au WAV wav aif aiff snd) If it's there, perhaps a decade ago

Re: [CM] Snd with alsa and jack, flac conversion, motif/gtk

2015-06-08 Thread Bill Schottstaedt
Here's a plausible flac file opener: (load examp.scm) (define mus-flac 64) (hook-push open-hook (lambda (hook) (let ((filename (hook 'name))) (if (= (mus-sound-header-type filename) mus-flac) (read-flac filename) Load that into Snd

Re: [CM] Snd with alsa and jack, flac conversion, motif/gtk

2015-06-08 Thread Bill Schottstaedt
But it seems like the configure summary doesn't mention anything about jack, even if it will be used. Idiotic m4 code on my part -- I think it's fixed now: ./configure --with-alsa --with-jack ... Snd version ...: 15.7 CFLAGS : -O2 -I. -g -O2 LDFLAGS

Re: [CM] error with loop?

2015-06-08 Thread Bill Schottstaedt
see the cmdist archives for 12-Feb-15 -- Rick suggests an alternative there. ___ Cmdist mailing list Cmdist@ccrma.stanford.edu http://ccrma-mail.stanford.edu/mailman/listinfo/cmdist

Re: [CM] compiling cm 3.9.1 from svn

2015-06-01 Thread Bill Schottstaedt
in src/Scheme.cpp, a symbol s7_NIL is referenced but it doesn't exist. I had to change it to s7_nil instead argh -- this is a bug in my cross-referencer -- I was trying not to clobber anything used by Rick's code. I'll put s7_NIL back in s7.h.

[CM] Snd 15.6

2015-05-10 Thread Bill Schottstaedt
Snd 15.6: add int-vector? int-vector make-int-vector changed s7_copy arg interpretation (it's now a normal s7_function). checked: gtk 3.16.1|2 3.17.1, FC 22 (gcc 5), Ruby 2.2, sbcl 1.2.11 Thanks!: Tito Latini (found and fixed many bugs), Donny Ward (MS Visual Studio 2013)

Re: [CM] Snd: no tracking-cursor if one sound is stopped

2015-04-03 Thread Bill Schottstaedt
Thanks! I'll merge that change into the ccrma versions later today. ___ Cmdist mailing list Cmdist@ccrma.stanford.edu http://ccrma-mail.stanford.edu/mailman/listinfo/cmdist

[CM] Snd 15.5

2015-04-03 Thread Bill Schottstaedt
Snd 15.5: repl.scm to replace use of readline in various cases. The main one is Snd without a GUI. In this case, you need to tell Snd where to find repl.scm. In my ~/.snd_s7 file, I have: (set! *load-path* (cons /home/bil/cl *load-path*)) I think you can build this into Snd by using

Re: [CM] Snd: save-mix segfault

2015-04-02 Thread Bill Schottstaedt
Thanks again! I have merged those changes into the ccrma versions of Snd. ___ Cmdist mailing list Cmdist@ccrma.stanford.edu http://ccrma-mail.stanford.edu/mailman/listinfo/cmdist

Re: [CM] gtk mapped without transient parent

2015-03-22 Thread Bill Schottstaedt
I don't think there's anything related to Gtk in sndlib or Grace -- what are you referring to? ___ Cmdist mailing list Cmdist@ccrma.stanford.edu http://ccrma-mail.stanford.edu/mailman/listinfo/cmdist

Re: [CM] s7 (current) doesn't compile with GNU multiprecision arithmetic

2015-03-20 Thread Bill Schottstaedt
Thanks very much for the bug fix! I noticed that memory leak while working on something else, then forgot to test the change. (And please don't hesitate to report bugs in the current tarballs!) I'll merge in those changes this morning. ___ Cmdist

Re: [CM] analog-filter.scm

2015-02-28 Thread Bill Schottstaedt
They're in mus-config.h. SNDLIB_CONFIG_path is very obsolete -- it has no effect on anything. I tried fc21 with all those settings and it worked fine. I don't know what the problem is. ___ Cmdist mailing list Cmdist@ccrma.stanford.edu

Re: [CM] analog-filter.scm

2015-02-27 Thread Bill Schottstaedt
gsl-roots needs HAVE_COMPLEX_NUMBERS and HAVE_COMPLEX_TRIG in s7, which means it can't work in Windows, c++, or FreeBSD. If you aren't in that group, I need to know how you built Snd, and what those flags are. gsl-roots is used in the Bessel filter section, but is not related to the gsl Bessel

Re: [CM] s7 - howto use s7_define_function_star in a C++ project.

2015-02-12 Thread Bill Schottstaedt
There's an example in s7.html#definestar1, C-side define*. s7test.scm also writes and tests one. ___ Cmdist mailing list Cmdist@ccrma.stanford.edu http://ccrma-mail.stanford.edu/mailman/listinfo/cmdist

Re: [CM] s7 - howto use s7_define_function_star in a C++ project.

2015-02-12 Thread Bill Schottstaedt
Thanks for the kind words about s7! Are you running Linux? If so, this works for me: /home/bil/pure-snd/ g++ -c s7.c -I. -g /home/bil/pure-snd/ g++ exx.c -o exx s7.o -I. -lm -ldl /home/bil/pure-snd/ exx (plus 2 3) 7 (plus :blue 2) 66 (exit) where exx.c has the example code from s7.html.

Re: [CM] snd: x-zoom and :track-and-return cursor

2015-02-12 Thread Bill Schottstaedt
I think the first (tracking cursor) problem is that in snd-dac.c line 1142, I should use if ((with_tracking_cursor(ss) != DONT_TRACK) not ss-tracking because the tracking flag is only on after the DAC is started. sp-playing++; if ((with_tracking_cursor(ss) !=

Re: [CM] snd: x-zoom and :track-and-return cursor

2015-02-11 Thread Bill Schottstaedt
Thanks for the bug reports! Looking at the code (geez, has it been 19 years already?), I don't think that track-and-return stuff ever worked. I'll fuss with these troubles later today. ___ Cmdist mailing list Cmdist@ccrma.stanford.edu

Re: [CM] snd: x-zoom and :track-and-return cursor

2015-02-11 Thread Bill Schottstaedt
Well, one is easy: snd-chn.c line 6773: cp-original_cursor = samp; /* for snd-dac */ return(C_llong_to_Xen_llong(samp)); ___ Cmdist mailing list Cmdist@ccrma.stanford.edu http://ccrma-mail.stanford.edu/mailman/listinfo/cmdist

[CM] Snd 15.3

2015-01-24 Thread Bill Schottstaedt
Snd 15.3 s7 procedure-documentation no longer refers to an optional string that happens to be the first thing in a procedure body, but to the value of a variable named 'documentation' in the procedure's environment. procedure-arity is deprecated, s7_procedure_arity replaced by s7_arity.

[CM] Fw: Re: embedding s7 in a C++ application

2015-01-09 Thread Bill Schottstaedt
From: etienne cella etienne.p.ce...@gmail.com To: Bill Schottstaedt b...@ccrma.stanford.edu Sent: Thu, 8 Jan 2015 17:43:50 -0500 Subject: Re: embedding s7 in a C++ application I was looking for a simple use of s7 to get started, and thought about using it in Pure Data. Pd's list based messaging

Re: [CM] cmn: glissando bug ?

2015-01-09 Thread Bill Schottstaedt
I think cmn considers that gliss to be going down, but it just so happens the end is higher than the start. The code is in cmn3.lisp in case you'd like a rainy day programming challenge. ___ Cmdist mailing list Cmdist@ccrma.stanford.edu

Re: [CM] defvar global list

2014-12-26 Thread Bill Schottstaedt
I think the variable used by collect in loop is local to the loop (it is handled like with according to cltl2), so the *test* global is not touched. In the second example, you're using the value returned by the function (i.e. the first loop), which is the value of local variable *test* -- once

Re: [CM] snd inf-snd.el: multiple lines

2014-12-21 Thread Bill Schottstaedt
Hmmm, it would be nice to have a way to interrupt a currently running calculation from emacs (or sound playback). ctrl-g does not seem to have the same effect that it has in snd. And a double ctrl-c in the scheme buffer causes the interpreter to quit. To interrupt the s7 evaluator, you

[CM] Snd 15.2

2014-12-18 Thread Bill Schottstaedt
Snd 15.2 Mike Scholz fixed bugs in clm and the NetBSD audio code, and updated many of the scripts. Anders Vinjar added lispworks code for gnuplot in dlocsig.lisp. all the motif stuff (xm.c, snd-motif.scm etc) has moved to the *motif* environment, OpenGL (gl.c, snd-gl.scm) to *gl*, and gtk

Re: [CM] snd inf-snd.el: multiple lines

2014-12-18 Thread Bill Schottstaedt
I changed the no-gui repl (if not using readline) to wait for a complete expression (in the current tarball, not in 15.2). ___ Cmdist mailing list Cmdist@ccrma.stanford.edu http://ccrma-mail.stanford.edu/mailman/listinfo/cmdist

Re: [CM] snd inf-snd.el: multiple lines

2014-12-17 Thread Bill Schottstaedt
Thanks very much! There must be a way to do the same thing as XtAppAddInput or g_io_add_watch_full in the no-gui case. I'll add it to my TODO list. It also should be possible in inf-snd.el to recognize the no-gui case (*features* won't include 'gtk or 'motif, I think), so your work-around could

Re: [CM] snd inf-snd.el: multiple lines

2014-12-17 Thread Bill Schottstaedt
I think Snd (or s7?) needs a --with-s7webserver configuration switch -- besides the xen.c change do I need to add any others? ___ Cmdist mailing list Cmdist@ccrma.stanford.edu http://ccrma-mail.stanford.edu/mailman/listinfo/cmdist

Re: [CM] snd

2014-12-01 Thread Bill Schottstaedt
But I cannot get sound from within snd. I don't use Debian except through Virtualbox, and I get sound from snd in that context. README.Snd has some suggestions -- let me know if you figure out what the problem is. ___ Cmdist mailing list

Re: [CM] loading .so file in Grace

2014-11-10 Thread Bill Schottstaedt
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. ___ Cmdist mailing list Cmdist@ccrma.stanford.edu http://ccrma-mail.stanford.edu/mailman/listinfo/cmdist

Re: [CM] loading .so file in Grace

2014-11-10 Thread Bill Schottstaedt
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@ccrma.stanford.edu

[CM] Snd 15.1

2014-11-04 Thread Bill Schottstaedt
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!:

Re: [CM] Backtrace in s7

2014-10-06 Thread Bill Schottstaedt
Do you mean why they started to give these warnings in the first place? yes -- after googling around for awhile, I think this was introduced in guile 2.0, and is not universally popular -- for example gnucash: ;; Turn off the scheme compiler's possibly unbound variable warnings. ;; In

Re: [CM] Backtrace in s7

2014-10-05 Thread Bill Schottstaedt
Thanks very much for the praise! Is it possible to get this type of backtrace at all? Not without slightly rewriting the scheme code -- those are all tail-calls, so there is nothing in the s7 stack that represents the call sequence. Wrap everything in dynamic-winds or the equivalent to get a

[CM] Snd 14.9

2014-08-18 Thread Bill Schottstaedt
Snd 14.9: s7: symbol-access is now just the set accessor function (not a list), and it is local to an environment. See reactive-let et al in stuff.scm. define and friends now return the value, not the symbol (like set!). added mockery.scm. added hash-table* (unconsed args):

Re: [CM] Beginner with open-sound.

2014-07-19 Thread Bill Schottstaedt
(let ((*mus-sound-path* ... You're thinking of special variables in Common Lisp, but s7 is (or is pretending to be) a version of Scheme. So, the let above just shadows the global variable of the same name. ___ Cmdist mailing list

Re: [CM] Beginner with open-sound.

2014-07-18 Thread Bill Schottstaedt
I added mus-sound-path (and the variable *mus-sound-path*), but it's only minimally tested. It's a list of directories to search for sound files. ___ Cmdist mailing list Cmdist@ccrma.stanford.edu http://ccrma-mail.stanford.edu/mailman/listinfo/cmdist

Re: [CM] Beginner with open-sound.

2014-07-17 Thread Bill Schottstaedt
Hi! *load-path* refers to s7's load function, not open-sound. I thought there was a directory search list for open-sound, but now I can't find it! I could either add a new one (*sound-path*?) or tie open-sound into the *load-path* list -- I'm not sure what is best. You could also wrap

Re: [CM] type double-float

2014-07-10 Thread Bill Schottstaedt
Is it possible that you forgot to load all.lisp? In sbcl (load all.lisp) (compile-file moog.lisp) (load moog) (compile-file filter-noise.ins) (load filter-noise) then try the example in filter-noise.ins. This doesn't work in clisp (some loop-finish complaint), but it's been about 20 years

[CM] Snd 14.8

2014-07-09 Thread Bill Schottstaedt
Snd 14.8: s7: symbol-table function now returns a list of all known symbols. require added removed unoptimize and reader-expand Display macro in stuff.scm added ~ expr ~ in format as a sort of here-string escape -- any s7 code in the brackets is evaluated in the current

Re: [CM] cl/clm mutliple combs

2014-06-24 Thread Bill Schottstaedt
It looks like you're mixing up scheme (set!) and CL (run); Here is a CL version: (definstrument mult-combs (beg dur freq amp) (let* ((start (floor (* beg *srate*))) (end (+ start (floor (* dur *srate* (os (make-oscil freq)) (combs (make-array 3)) (sum

Re: [CM] green, butter clm

2014-06-07 Thread Bill Schottstaedt
You're on the right track, but this parenthetical comment: the output is compatible with CLM's filter generator refers to the Snd version of CLM, not the CL version. In CL, you need to use the butter macro from butterworth.cl: (outa i (* amp (butter flt (oscil os That memory fault

[CM] Snd 14.7

2014-05-31 Thread Bill Schottstaedt
Snd 14.7. s7: sort! now operates in-place on lists (it used to copy the list). sort! also accepts bytevectors (for r7rs), and as a by-product, strings. string-up|downcase built-in (for r7rs). stuff.scm. cyclic-sequences. hash-table-entries. Snd: removed defvar (use

Re: [CM] Several questions

2014-05-27 Thread Bill Schottstaedt
is there a sndlib tutorial The introduction to sndclm.html is a start toward one, but what kind of background or interest should a tutorial assume? My impression is that only a handful of people worldwide actually write instruments. ___ Cmdist

Re: [CM] Several questions

2014-05-27 Thread Bill Schottstaedt
am not sure about other people, but I am looking for a tutorial which will help me understand sound synthesis I think there are books available that fill this need: maybe the MIT press collections, or Dodge and Jerse? (I can't actually remember the latter, but we once used it here at CCRMA).

Re: [CM] Several questions

2014-05-27 Thread Bill Schottstaedt
Those are very interesting sites -- thanks for the pointers! ___ Cmdist mailing list Cmdist@ccrma.stanford.edu http://ccrma-mail.stanford.edu/mailman/listinfo/cmdist

Re: [CM] compiling on OS X?

2014-05-23 Thread Bill Schottstaedt
How did you get gtk? I haven't had any luck with it in OSX for a long time. The Snd configure script uses pkg-config to find ruby and gtk, so pkg-config gtk+-3.0 --cflags and something similar with ruby should give some info as to what went wrong. There's an environment variable

[CM] Snd 14.6

2014-04-23 Thread Bill Schottstaedt
Snd 14.6 s7: gensym? environment* clm: even|odd-weight|multiple (new built-in functions). moving-norm (new generator). deprecate frame and mixer generators -- use float vectors instead. finally deprecate sound-data objects -- this includes a bunch of functions such as

[CM] Snd 14.6

2014-04-23 Thread Bill Schottstaedt
I forgot to say that the sourceforge CVS area is not up to date -- the sourceforge side was timing out yesterday, today it is resetting the connection, whatever that means. ___ Cmdist mailing list Cmdist@ccrma.stanford.edu

Re: [CM] channels

2014-04-16 Thread Bill Schottstaedt
I get a stereo file in both cases, but in the second, you're only calling outa, so you get a sine wave in the first channel, and zeros in the second. outa just writes to the first channel. Use outb to write to the second. ___ Cmdist mailing list

[CM] Snd 14.5

2014-03-17 Thread Bill Schottstaedt
Snd 14.5: CLM: Lispworks port thanks to Anders Vinjar. many internal changes (13 Mbytes in the changelog), but none visible, I hope. checked: gtk 3.11.6|7|8, sbcl-1.1.16 Thanks!: Rick, Anders, Tito Latini. ___ Cmdist mailing list

Re: [CM] Snd Motif crash without a default for listener-font

2014-02-19 Thread Bill Schottstaedt
Thanks! I missed that case. ___ Cmdist mailing list Cmdist@ccrma.stanford.edu http://ccrma-mail.stanford.edu/mailman/listinfo/cmdist

[CM] CLM in LispWorks!

2014-02-15 Thread Bill Schottstaedt
Anders Vinjar has ported CLM to LispWorks! I made a new ccrma-ftp clm-4 tarball. I was in the midst of other stuff and may have left print statements dangling around -- will check by tomorrow certainly. Thanks a million, Anders! ___ Cmdist mailing

Re: [CM] CM/Grace problem

2014-02-13 Thread Bill Schottstaedt
It looks like that's the new s7 with syntactic when/unless -- I had that error message to warn myself -- I'll remove it, but hopefully Grace's s7 stuff will eventually remove the when/unless macro definitions. ___ Cmdist mailing list

Re: [CM] CM/Grace problem

2014-02-13 Thread Bill Schottstaedt
You can remove them by commenting out the definitions in cm/scm/s7.scm -- around line 63, I think. Please let me know if that breaks anything! ___ Cmdist mailing list Cmdist@ccrma.stanford.edu http://ccrma-mail.stanford.edu/mailman/listinfo/cmdist

Re: [CM] CM/Grace problem

2014-02-13 Thread Bill Schottstaedt
oh, you mean s7 has those forms? yes, I'm slowly trying to become semi-compatible with the new Scheme definition. Now let's see, CL was last revised 30 years ago? Anyway, when and unless are built-in and it's the optimizer that is cranky -- it can be smart about built-in syntax, but worries

[CM] Snd 14.4

2014-02-11 Thread Bill Schottstaedt
Snd 14.4: Mike Scholz updated sndins.c. s7: changed lambda* arg handling slightly to mimic CL. added when and unless (for r7rs; these were macros). CLM: Frank Zalkow donated lw-all.lisp. checked: gtk 3.11.4|5, sbcl 1.1.15. Thanks!: Rick, Mike, Frank Zalkow, James Hearon. Just for your

Re: [CM] snd

2014-01-30 Thread Bill Schottstaedt
I was trying to figure out how to play from the cursor (red triangle) with a tracking cursor. Mine seems to always start from the beginning of the file when I do ctrl-play. I see this behavior only in multichannel files using united channel graphs. There was a typo in the code that

Re: [CM] Scheme S7 convert float to string

2014-01-02 Thread Bill Schottstaedt
are you looking for (number-string val) or (format #f ~G val)? ___ Cmdist mailing list Cmdist@ccrma.stanford.edu http://ccrma-mail.stanford.edu/mailman/listinfo/cmdist

Re: [CM] sndlib build error

2013-12-24 Thread Bill Schottstaedt
..ome/dlphilp/src/commonmusic-code/sndlib/premake4.lua:95: attempt to call field 'is64bit' (a nil value) I think this means you have an older version of premake -- you need premake 4.4 for the current cm/sndlib. Also, unless I'm completely confused, s7.cpp is from an older version of cm --

Re: [CM] sndlib build error

2013-12-23 Thread Bill Schottstaedt
That entire block should be within #if USE_SND ... #endif -- I'll make a new sndlib tarball -- thank for the heads up! ___ Cmdist mailing list Cmdist@ccrma.stanford.edu http://ccrma-mail.stanford.edu/mailman/listinfo/cmdist

Re: [CM] sndlib build error

2013-12-23 Thread Bill Schottstaedt
thank for the heads up I know what you're thinking -- just one thank?! -- in the summer I can go in the backyard and dig around with a shovel and find a dozen thanks in no time, but by this time of year, the Menlo Park Thank has gone into hibernation, and my supply is running short. It was a

[CM] Snd 14.2

2013-11-21 Thread Bill Schottstaedt
Snd 14.2: added *show-indices* etc (the old procedure-with-setter globals can now be accessed as normal variables -- there are about 200 of them). with-tracking-cursor changed again! (added :track-and-stay to make the cursor stay where the play stops). removed (obsolete) trap-segfault.

Re: [CM] clm, slime, reverb

2013-11-20 Thread Bill Schottstaedt
Here are examples from the scheme clm: (load nrev.scm) (define (simp start end freq amp) (let ((os (make-oscil freq))) (do ((i start (+ 1 i))) ((= i end)) (let ((output (* amp (oscil os (outa i output) (if *reverb* (outa i (* output .1) *reverb*)) ;

Re: [CM] reverb, clm

2013-11-13 Thread Bill Schottstaedt
You could also use locsig, rather than outa. ___ Cmdist mailing list Cmdist@ccrma.stanford.edu http://ccrma-mail.stanford.edu/mailman/listinfo/cmdist

Re: [CM] linux-port of OpenMusic

2013-10-29 Thread Bill Schottstaedt
Besides sndlib2clm.lisp, I think you would need to deal with ffi.lisp and defins.lisp, but it's been a long time since I looked at this code. I vaguely remember that the CFFI problem was passing float and int arrays to/from C (in defins.lisp?). ___

Re: [CM] [Snd] 14.x build failure with ladspa, incomplete type error

2013-10-27 Thread Bill Schottstaedt
Thanks very much for the bug report! I must have messed up my ladpsa test. I think the right way to fix this is to use if (descriptor-connect_port) descriptor-connect_port(XEN_TO_C_Ladspa_Handle(ptr), XEN_TO_C_ULONG(port), !

[CM] Snd 14.1

2013-10-14 Thread Bill Schottstaedt
Snd 14.1: removed frame.scm and mixer.scm (frames and mixers have been replaced by float-vectors in s7-clm). checked: gtk 3.9.16, 3.10.0|1, sbcl 1.1.12. Thanks!: Mike Scholz. ___ Cmdist mailing list Cmdist@ccrma.stanford.edu

Re: [CM] emacs, slime fancy commands, clm

2013-10-07 Thread Bill Schottstaedt
The *.ins files are just a convenience. The ins extension goes back to the ancients -- the real ancients! -- before my time. ___ Cmdist mailing list Cmdist@ccrma.stanford.edu http://ccrma-mail.stanford.edu/mailman/listinfo/cmdist

[CM] Snd 14.0

2013-09-10 Thread Bill Schottstaedt
Snd 14.0 added --with-readline to the configure script in s7: make-shared-vector, homogenous int and float vectors sound-data and vct (the types) are now just synonyms for vector (this is step 3 of the guile-s7 plan from 2008) dac-hook data is now a list of float

Re: [CM] emacs, slime, sbcl, clm

2013-09-06 Thread Bill Schottstaedt
You do need to compile the instrument code in the CL clm -- the compiler forces the run macro to expand fully, or something like that. ___ Cmdist mailing list Cmdist@ccrma.stanford.edu http://ccrma-mail.stanford.edu/mailman/listinfo/cmdist

Re: [CM] Trouble with sndlplay

2013-05-24 Thread Bill Schottstaedt
There's a section in README.Snd that discusses some ways to set the alsa variables that sndplay sees. I think, however, that I'd first try aplay -- that is alsa's sound player. Nando should be back from vacation soon, I think, and he's the expert on this.

[CM] Snd 13.7

2013-05-24 Thread Bill Schottstaedt
Snd 13.7. s7: r7rs changes: flush-output-port, vector-append, read|write-string, boolean=?, symbol=?, exit, emergency-exit (see s7.html for the rest). added destination/start/end args to copy. Snd: new gtk listener, split out as glistener.c/h, tests in tools/gcall.c and

Re: [CM] build clm-4

2013-05-23 Thread Bill Schottstaedt
You can get that error if you type (with-sound () fm-violin 0 1 440 .1) which strikes me as odd -- surely fm-violin is defined? Or is this related to the fact that fm-violin is a function so it's undefined when used as a variable? * (defun hi (a) a) HI * hi debugger invoked on a

[CM] live coding with common music

2013-05-18 Thread Bill Schottstaedt
There's an interesting live coding music video: http://vimeo.com/66448855 comments here: http://www.reddit.com/r/lisp/comments/1ekpfs/livecoding_on_clozurecl/ (reddit lisp -- not sure these urls will actually work). ___ Cmdist mailing list

Re: [CM] live coding with common music

2013-05-18 Thread Bill Schottstaedt
while watching it I was thinking, hooboy, my poor little gtk repl has a long ways to go... ___ Cmdist mailing list Cmdist@ccrma.stanford.edu http://ccrma-mail.stanford.edu/mailman/listinfo/cmdist

Re: [CM] s7, simple listener

2013-05-16 Thread Bill Schottstaedt
I think you need to add -ldl: gcc -o doc7 doc7.c s7.o -lm -I. -ldl The default gcc version of s7 now includes the dynamic loader, but I (of course) forgot to check the documentation examples. I need to find a way to extract those examples and run them during my huge regression test suite.

[CM] gtk snd listener

2013-05-13 Thread Bill Schottstaedt
I'm unicodizing the gtk version of snd's listener, so if you use the cvs stuff or the daily tarball, expect the unexpected. I'll have it back to normal in no time... ___ Cmdist mailing list Cmdist@ccrma.stanford.edu

Re: [CM] optional arguments in Scheme

2013-05-09 Thread Bill Schottstaedt
(Just as I was about to press send, Rick's answer arrived, but I'll send my redundant verbiage anyway). In s7, define* arguments are optional and have keyword names without any marker like optkey (:optional is accepted, but ignored). I'm not sure where optkey comes from, perhaps def-optkey-fun in

Re: [CM] Installing snd and s7 on MacOS-X Mountain Lion

2013-05-05 Thread Bill Schottstaedt
I think the easiest way is to configure snd without any GUI: ./configure --with-no-gui make This will give you snd/clm/s7 in an old-style interpreter. There are several suggestions in README.Snd -- perhaps you can get motif or gtk from one of the packagers mentioned there. I don't recommend

Re: [CM] S7 scheme running on Android in NDK

2013-05-03 Thread Bill Schottstaedt
Thanks very much! I have merged those changes into the ccrma and sourceforge copies of s7. Are there any other spots in s7 where unaligned access may occur? They are rather difficult to debug. That's the truth! Sorry you got bitten. As far as I know, that one spot is the only unaligned

Re: [CM] scheme, s7

2013-04-25 Thread Bill Schottstaedt
I think in your example you need sprout: cm (define counter 0) counter cm (define (bump-counter) (process repeat 5 do (set! counter (+ counter 1 bump-counter cm (sprout (bump-counter)) cm counter 5 In straight scheme there are several ways to do this: (do ((i 0 (+ i 1))) ((= i 5)) (set!

[CM] Snd 13.6

2013-04-22 Thread Bill Schottstaedt
Snd 13.6 added environment-ref|set! char-position and string-position (moved from Snd to s7) make-formant-bank and formant-bank? (and changed formant-bank again) comb-bank, all-pass-bank, and filtered-comb-bank generators one-pole-all-pass generator moved to C

Re: [CM] Grace,s7, system

2013-04-05 Thread Bill Schottstaedt
system returns an integer that in C can be decoded with the macros in sys/waits.h, or something like that. I think 65280 = #xff00 so that means the child process exited normally. Just a quick guess after looking at /usr/include/bits/waitstatus.h. Not sure this is helpful.

Re: [CM] samples to speaker?

2013-03-20 Thread Bill Schottstaedt
I actually had this running in snd, but it got all glitchy: If you send me the code, I might be able to see why it was glitchy. ___ Cmdist mailing list Cmdist@ccrma.stanford.edu http://ccrma-mail.stanford.edu/mailman/listinfo/cmdist

[CM] Snd 13.5

2013-03-12 Thread Bill Schottstaedt
Snd 13.5 mostly bugfixes and optimizations moving-max is now built-in. added vct-min and vct-max. checked: sbcl 1.1.5, ruby 2.0.0, gtk 3.7.12 Thanks!: Mike and Fernando. ___ Cmdist mailing list Cmdist@ccrma.stanford.edu

Re: [CM] independent transposition of pitch and timbre in snd

2013-02-06 Thread Bill Schottstaedt
i'd like to do independent transpostions of pitch and timbre (for pitch-shifting recorded voices) - does snd have a function for this? Perhaps you're thinking of the phase vocoder? Maybe the pins instrument in clm-ins.scm would do what you want. I have to say I've never had any luck with

  1   2   3   4   5   6   >