Hello folks
In the topic “Strange behavior” https://forum.audacityteam.org/t/strange-behavior/24769/1 we’ve tried to solve an issue with the ramp function. Since this is a primitive that’s primarily used for teaching purposes, Iwanted to assure that the amended version is compatible with the tutorials in the documentation.
Alas, thou thinkst and your system blinks in the debug window…
So, here my challenge for you: Bring the following first example from http://www.audacity-forum.de/download/edgar/nyquist/nyquist-doc/manual/part4.html to work in the Nyquist-prompt. The original lines are:
(defun tone-seq () (seqrep (i 16) (stretch 0.25 (osc-note c4))))
(defun pitch-rise () (stretch 4.0 (scale 16 (ramp))))
(defun chromatic-scale () (transpose (pitch-rise) (tone-seq)))
; now you could use (setf s (chromatic-scale))
;or (s-save (chromatic-scale) ny:all "" :play t)
; if you want to hear the result instntly,
;without saving or modifying the selection
this task seems very simple at first glance no challenge at all, but the devil is in the details. For a proper solution (don’t bother aabout rammp) until june, 13th I am offering a 1000-word translation from english into german or a free guitar lesson.
Good luck