Search found 222 matches

by DERF
Sat Jun 29, 2013 7:39 am
Forum: Nyquist
Topic: problem with SAL
Replies: 34
Views: 8283

Re: problem with SAL

Hello sirs. I thank Steve. I thus wrote the part of the code which corresponds in (* a b c). a = the function (here, I believe that it is (step-to-hz pitch) and two arguments: b = vibamp and c = 0.01 I wrote: (fmosc pitch(*(step-to-hz pitch) vibamp 0.01) (lfo 6 *saw-table*))) The problem also, is th...
by DERF
Fri Jun 28, 2013 7:03 am
Forum: Nyquist
Topic: problem with SAL
Replies: 34
Views: 8283

Re: problem with SAL

Hello sirs. I thank steve for these comments. I have an other code noted in Sal. define function vibtone(pitch, vibamp) return fmosc(pitch, step-to-hz(pitch) * vibamp * 0.01 * lfo(6), *saw-table*) play vibtone(e5, 5) The author of the code indicates: ;; making vibrato a percentage of the fundamental...
by DERF
Thu Jun 27, 2013 7:29 am
Forum: Nyquist
Topic: problem with SAL
Replies: 34
Views: 8283

Re: problem with SAL

I thank Steve for these very precise comments. I have 3 questions to ask. 1) The code SAL is preceded by the following text:"...The C:M ratio is based on frequencies, so we convert pitch p to Hz using step-to-hz..." My question is the following one: is it the code according to whom realizes this cal...
by DERF
Wed Jun 26, 2013 7:43 pm
Forum: Nyquist
Topic: problem with SAL
Replies: 34
Views: 8283

Re: problem with SAL

Hello sir.
I would want to use this code in the Nyquist Prompt in Audacity.
by DERF
Tue Jun 25, 2013 8:04 pm
Forum: Nyquist
Topic: problem with SAL
Replies: 34
Views: 8283

Re: problem with SAL

Hello Sirs. I try to write in LISP this code noted in Sal: define function fm(p, a, c-m, mod-ratio) return a * fmosc(p, mod-ratio * step-to-hz(p) * hzosc(step-to-hz(p) * recip(c-m))) play fm(gs2, pwl(0.3, 1, 0.7, 1, 1), 0.5, pwlv(0.5, 0.5, 10, 1, 2)) ~ 2 return s I wrote: (defun fm (p a c-m mod-rati...
by DERF
Fri Jun 14, 2013 5:53 am
Forum: Nyquist
Topic: problem with SAL
Replies: 34
Views: 8283

Re: problem with SAL

Hello. I thank Steve for its help. I try to use in the console Nyquist of Audacity 2.03 the code following SAL: define function fm-lfo(amp, freq) return sound-srate-abs(*default-control-srate*, amp * hzosc(freq)) play fmosc(g5, fm-lfo(pwl(1, 500), 6)) ~ 2 I wrote: (setf amp 1 ) (setf freq 440) (defu...
by DERF
Thu Jun 13, 2013 8:17 pm
Forum: Nyquist
Topic: problem with SAL
Replies: 34
Views: 8283

problem with SAL

Hello Sirs. Somebody could indicate to me how we write in lisp langage this code:
define function fm-lfo(amp, freq)
return sound-srate-abs(*default-control-srate*,
amp * hzosc(freq))
Beforehand thank you.
by DERF
Mon Apr 29, 2013 3:44 pm
Forum: Nyquist
Topic: A Study in Pink
Replies: 1
Views: 1547

A Study in Pink

I found this code . it generates glissandi. On the other hand, it is very difficult to have a control of this code. I simplified It. I would want to ask beginner's question. The code is the following one: (defmacro sweep (dur) (stretch-abs 1 (mult (pwl 0 0.8 dur 0.05 dur) (hzosc (sum 440 (mult 3360 ...
by DERF
Mon Apr 22, 2013 12:15 pm
Forum: Nyquist
Topic: Beginner's question
Replies: 43
Views: 16541

Re: Beginner's question

Hello Sirs. I found this code on the forum. it generates glissandis. On the other hand, it is very difficult to have a control of this code. The code is the following one: (defmacro sweep (dur) `(stretch-abs 1 (mult (pwl 0 0.8 dur 0.05 dur) (hzosc (sum 440 (mult 3360 (ramp dur))))))) (defun lowpass ...
by DERF
Sat Feb 23, 2013 8:22 pm
Forum: Nyquist
Topic: Beginner's question
Replies: 43
Views: 16541

Re: Beginner's question

Hello Sirs. I thank Steve for his comment. If I had noted the value " 12 "it was because I believed that this value would be the duration in seconds of the sound affected by a random pan. After all, I try to generate a sound at the end of 35 seconds. I would like that this sound lasts 12 seconds. It...