[CM] Several questions
taube at illinois.edu
Wed Jul 2 12:11:18 PDT 2014
try passing nrev not ‘nrev (because scheme uses variables to hold functions...)
for example this works for me in a lisp buffer :
(with-sound (:statistics #t :scaled-to 0.95
:output "test.aiff" :reverb nrev)
(fm-violin 0 1 440 .1 :reverb-amount 0.1))
On fomus, when I built the app I wasnt sure if it legal for me to link to it on the app store (im checking…)
regardless you can build the system from sources very easily and include fomus there without any problem, i know it works because thats what I used to teach last semesters
hope all is well with you!
On Jul 2, 2014, at 10:54 AM, ludger brümmer <lb at zkm.de> wrote:
> Hi all,
> I tried to use a reverb and I think there seems to be something wrong in the way how the function nrev is called. Is it due to different quoting?
> I checked with "with-sound" and through a CM process both with a similar result.
> all the best
> (with-sound (:statistics #t :scaled-to 0.95 :output "test.aiff" :reverb 'nrev) (fm 0 1 440 .1 :reverb 0.1))
> (define (simpwav n r lb ub)
> (process repeat n
> for i from 0
> for k = (between lb ub)
> (fm i 1.5 k .1 :reverb .01)
> (wait r)
> (sprout (simpwav 10 .2 440 881) "test.wav" :scaled-to 0.95 :reverb 'nrev)
> >>> Error: attempt to apply the symbol nrev to ()?
> finish-with-sound: (apply reverb reverb-data) ; reverb: nrev
> ; reverb-data: ()
> finish-with-sound: ((mus-close *reverb*))
> finish-with-sound: ((if (mus-output? *output*)... ; old-srate: 44100
> ; output: "/Users/ludil/test.wav"
> snd:close-output-file: ((do ((tail *sfdat* (cd... ; wsdat: (with-sound-data "/Users/l...
> snd:close-output-file: ((void))
> Prof. Ludger Brümmer
> Head of ZKM|Institute for Music and Acoustics
> Lorenzstr. 19
> 76135 Karlsruhe
> tel.: +49 721 8100 1600
> Am 28 May 2014 um 13:49 schrieb Heinrich Taube <taube at illinois.edu>:
>>> Not the case on the Mac. Every time I rerun Grace, and display the working directory, it is set to "".
>> thanks, Ill try to fix this soon, its not misbehaving on my mac so Ill have to try a machine that doesn't have grace running on it.
>>> This page https://ccrma.stanford.edu/software/snd/snd/sndscm.html#withsound shows all sort of sound manipulations with Snd. I wonder if it is possible to run Snd from Grace or if it is an independant application.
>> Snd is a different app than Grace.YOu could probably start the Snd app running while inside Grace (shell "/usr/local/snd") or whatever, but it would run in an entirely different process than Grace.
>> but your link was pointing to with-sound , which is a scheme macro for generating sound in clm if you are asking about using with-sound in Grace then the answer is yes, its built into Grace:
>> (load "v.scm")
>> (with-sound ()
>> (loop for i to 10
>> (fm-violin (* .5 i) .75 (between 110 880) .2 ))
>> I hope Im answering your Question!
>> Cmdist mailing list
>> Cmdist at ccrma.stanford.edu
> Cmdist mailing list
> Cmdist at ccrma.stanford.edu
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the Cmdist