Nyquist Basics: Changing the Volume in SAL

Using Nyquist scripts in Audacity.
Post and download new plug-ins.
Forum rules
If you require help using Audacity, please post on the forum board relevant to your operating system:
Windows
Mac OS X
GNU/Linux and Unix-like
Post Reply
jademan
Forum Crew
Posts: 1331
Joined: Fri Jul 17, 2009 10:11 pm
Operating System: Windows 10

Nyquist Basics: Changing the Volume in SAL

Post by jademan » Mon Feb 01, 2021 1:58 am

So I don't know if the issue is me, Nyquist, or the manual/wiki, but in 2.4.2, when I copy this line:

Code: Select all

return scale(0.5, s)
from the wiki here: Nyquist Basics: Changing the Volume in SAL

into the Nyquist prompt, it doesn't seem to do anything.

However, noticing (and checking) the box labelled "Use legacy (version 3) syntax" fixes the problem. :)

Are we waiting for the wiki to get updated with new syntax, a footnote, is SAL being deprecated, or am I missing something ? :?

I note that

Code: Select all

(scale 0.5 *track*)
from Nyquist Basics: Changing the Volume *does* seem to work as advertised. :D

steve
Site Admin
Posts: 81386
Joined: Sat Dec 01, 2007 11:43 am
Operating System: Linux *buntu

Re: Nyquist Basics: Changing the Volume in SAL

Post by steve » Mon Feb 01, 2021 2:43 am

jademan wrote:
Mon Feb 01, 2021 1:58 am
Are we waiting for the wiki to get updated with new syntax
We were waiting for someone to notice :D

Thanks for raising it. I've updated that page.
9/10 questions are answered in the FREQUENTLY ASKED QUESTIONS (FAQ)

jademan
Forum Crew
Posts: 1331
Joined: Fri Jul 17, 2009 10:11 pm
Operating System: Windows 10

Re: Nyquist Basics: Changing the Volume in SAL

Post by jademan » Mon Feb 01, 2021 1:21 pm

steve wrote:
Mon Feb 01, 2021 2:43 am
We were waiting for someone to notice :D
:lol: ;)
steve wrote:
Mon Feb 01, 2021 2:43 am
Thanks for raising it. I've updated that page.
You are welcome; that does the trick, thank you. :!: :D

jademan
Forum Crew
Posts: 1331
Joined: Fri Jul 17, 2009 10:11 pm
Operating System: Windows 10

Re: Nyquist Basics: Changing the Volume in SAL

Post by jademan » Tue Feb 02, 2021 12:25 pm

steve wrote:
Mon Feb 01, 2021 2:43 am
We were waiting for someone to notice :D
I imagine you were waiting for someone to notice these, too. ;)
Nyquist Basics: Changing the volume of the left and right stereo channels independently
Nyquist Basics: Adding a Delay Effect
Nyquist Basics: The Audacity Nyquist Prompt With SAL
Introduction to Nyquist and Lisp Programming
also, there are a dozen or so backslash strings e.g., "\xe2" on this last page.

If you want me to take a stab at fixing these, I suppose I could (although I'm not sure I remember how)..., let me know...

Also note that in many of the nyquist pages spread thoughout the documentation, there is a leading space, which tends to make them inoperative when testing them out with nyquist prompt, for example.

steve
Site Admin
Posts: 81386
Joined: Sat Dec 01, 2007 11:43 am
Operating System: Linux *buntu

Re: Nyquist Basics: Changing the Volume in SAL

Post by steve » Tue Feb 02, 2021 1:56 pm

jademan wrote:
Tue Feb 02, 2021 12:25 pm
Nyquist Basics: Changing the volume of the left and right stereo channels independently
Nyquist Basics: Adding a Delay Effect
Nyquist Basics: The Audacity Nyquist Prompt With SAL
Updated. Please check.

jademan wrote:
Tue Feb 02, 2021 12:25 pm
Introduction to Nyquist and Lisp Programming
This one is in the manual which cannot be edited.

The pre-release "alpha manual" is editable, but the only occurrence I found was:
n-th root of a sound s:

Code: Select all

 return s-exp(s-log(s) * (1.0 / n)) ;; in SAL
 (s-exp (mult (s-log s) (/ 1.0 n))) ;; in LISP
where both "s" and "n" are arbitrary symbols for "a sound" and "a number".
Have I missed "S" as the special *track* symbol on that page?
9/10 questions are answered in the FREQUENTLY ASKED QUESTIONS (FAQ)

jademan
Forum Crew
Posts: 1331
Joined: Fri Jul 17, 2009 10:11 pm
Operating System: Windows 10

Re: Nyquist Basics: Changing the Volume in SAL

Post by jademan » Tue Feb 02, 2021 3:09 pm

Thanks for looking at these. :D The pages don't seem to be updated yet. I'll check again later.....

jademan
Forum Crew
Posts: 1331
Joined: Fri Jul 17, 2009 10:11 pm
Operating System: Windows 10

Re: Nyquist Basics: Changing the Volume in SAL

Post by jademan » Wed Feb 03, 2021 3:28 pm

jademan wrote:
Tue Feb 02, 2021 3:09 pm
Thanks for looking at these. :D The pages don't seem to be updated yet. I'll check again later.....
It took quite a while... :D
steve wrote:
Tue Feb 02, 2021 1:56 pm
jademan wrote:
Tue Feb 02, 2021 12:25 pm
Nyquist Basics: Changing the volume of the left and right stereo channels independently
Nyquist Basics: Adding a Delay Effect
Nyquist Basics: The Audacity Nyquist Prompt With SAL
Updated. Please check.
:D Looking good, but on the SAL page, the Simple Examples could be updated.

Post Reply