Expression Generator

Share your Audacity/Nyquist plug-ins here, or test drive the latest plug-ins submitted by Audacity users.

After testing a plug-in from this forum, please post feedback for the plug-in author.

Re: Expression Generator

Permanent link to this post Posted by Trebor » Mon Mar 20, 2017 5:47 pm

Add atan to the list ...

Code: Select all
(* (atan (/ (* x x))) (cos (* 100 x x))))

like tuning analog radio.png
like tuning analog radio.png (10.2 KiB) Viewed 211 times

'like tuning analog radio'.png
'like tuning analog radio'.png (39.33 KiB) Viewed 211 times
Trebor
 
Posts: 3538
Joined: Sat Dec 27, 2008 5:22 pm
Operating System: Windows Vista

Re: Expression Generator

Permanent link to this post Posted by steve » Mon Mar 20, 2017 6:30 pm

There are also some constants available:

pi = 3.14159265...
t = true
nil = false
*sound-srate* = the track sample rate
*control-srate* = 1/20th of the track sample rate
dur = the specified duration in seconds
9/10 questions are answered in the FREQUENTLY ASKED QUESTIONS (FAQ)
steve
Senior Forum Staff
 
Posts: 43669
Joined: Sat Dec 01, 2007 11:43 am
Operating System: Linux Debian

Re: Expression Generator

Permanent link to this post Posted by steve » Mon Mar 20, 2017 6:32 pm

Are there any additional features that you think would be useful / interesting?
9/10 questions are answered in the FREQUENTLY ASKED QUESTIONS (FAQ)
steve
Senior Forum Staff
 
Posts: 43669
Joined: Sat Dec 01, 2007 11:43 am
Operating System: Linux Debian

Re: Expression Generator

Permanent link to this post Posted by steve » Mon Mar 20, 2017 6:41 pm

Most of the Nyquist plug-in "Property Lists" should also work.
9/10 questions are answered in the FREQUENTLY ASKED QUESTIONS (FAQ)
steve
Senior Forum Staff
 
Posts: 43669
Joined: Sat Dec 01, 2007 11:43 am
Operating System: Linux Debian

Re: Expression Generator

Permanent link to this post Posted by steve » Mon Mar 20, 2017 6:42 pm

White noise:
Code: Select all
(- (rrandom) 0.5)
9/10 questions are answered in the FREQUENTLY ASKED QUESTIONS (FAQ)
steve
Senior Forum Staff
 
Posts: 43669
Joined: Sat Dec 01, 2007 11:43 am
Operating System: Linux Debian

Re: Expression Generator

Permanent link to this post Posted by dmonty » Tue Mar 21, 2017 12:20 am

This is awesome! Thanks Steve.
dmonty
 
Posts: 20
Joined: Sat Feb 25, 2017 9:15 pm
Operating System: Linux *buntu

Re: Expression Generator

Permanent link to this post Posted by Trebor » Tue Mar 21, 2017 6:59 am

Truncate can work ...
Code: Select all
(* (truncate x) (sin (* x 100 (truncate x))))

chewy.png
chewy.png (10.19 KiB) Viewed 199 times

'Chewy'.png
'Chewy'.png (92.41 KiB) Viewed 199 times
Trebor
 
Posts: 3538
Joined: Sat Dec 27, 2008 5:22 pm
Operating System: Windows Vista

Re: Expression Generator

Permanent link to this post Posted by steve » Tue Mar 21, 2017 8:31 am

Conditional expressions:
Code: Select all
(if (< (rem (truncate (* dur 10 x)) 10) 5) 0.8 -0.8)

from 0 to 100

firsttrack000.png
firsttrack000.png (8.44 KiB) Viewed 196 times
9/10 questions are answered in the FREQUENTLY ASKED QUESTIONS (FAQ)
steve
Senior Forum Staff
 
Posts: 43669
Joined: Sat Dec 01, 2007 11:43 am
Operating System: Linux Debian

Previous

Return to New Plug-Ins



Who is online

Users browsing this forum: No registered users and 1 guest