Page 2 of 2

Re: Expression Generator

Permanent link to this postPosted: Mon Mar 20, 2017 5:47 pm
Posted by Trebor
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 283 times

'like tuning analog radio'.png
'like tuning analog radio'.png (39.33 KiB) Viewed 283 times

Re: Expression Generator

Permanent link to this postPosted: Mon Mar 20, 2017 6:30 pm
Posted by steve
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

Re: Expression Generator

Permanent link to this postPosted: Mon Mar 20, 2017 6:32 pm
Posted by steve
Are there any additional features that you think would be useful / interesting?

Re: Expression Generator

Permanent link to this postPosted: Mon Mar 20, 2017 6:41 pm
Posted by steve
Most of the Nyquist plug-in "Property Lists" should also work.

Re: Expression Generator

Permanent link to this postPosted: Mon Mar 20, 2017 6:42 pm
Posted by steve
White noise:
Code: Select all
(- (rrandom) 0.5)

Re: Expression Generator

Permanent link to this postPosted: Tue Mar 21, 2017 12:20 am
Posted by dmonty
This is awesome! Thanks Steve.

Re: Expression Generator

Permanent link to this postPosted: Tue Mar 21, 2017 6:59 am
Posted by Trebor
Truncate can work ...
Code: Select all
(* (truncate x) (sin (* x 100 (truncate x))))

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

'Chewy'.png
'Chewy'.png (92.41 KiB) Viewed 271 times

Re: Expression Generator

Permanent link to this postPosted: Tue Mar 21, 2017 8:31 am
Posted by steve
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 268 times