# [audacity4blind] Re: Trouble With The Nyquist Generate Prompt

• From: Steve the Fiddle <stevethefiddle@xxxxxxxxx>
• To: audacity4blind@xxxxxxxxxxxxx
• Date: Sun, 31 May 2015 20:10:32 +0100

Nyquist does not have "osc-squ" it has "osc-pulse".
Osc-pulse takes two arguments (parameters). The first, like other
oscillators is the frequency, The second is the "bias".
The bias parameter controls the pulse width and should be between -1
and +1, giving a pulse width from 0% (always at -1) to 100% (always at
+1). When bias is zero, a square wave is generated. So the final line
with a square wave would be:
(osc-pulse frequency 0)))))

Steve

On 31 May 2015 at 20:00, Annabelle Susan Morison
<foristnights@xxxxxxxxxxx> wrote:

I think I fixed it. I wonder, if I were to do a ding code with square wave,
would the final line be something like (osc-squ frequency)))))?

-----Original Message-----
From: audacity4blind-bounce@xxxxxxxxxxxxx
[mailto:audacity4blind-bounce@xxxxxxxxxxxxx] On Behalf Of Steve the Fiddle
Sent: Sunday, May 31, 2015 11:55 AM
To: audacity4blind@xxxxxxxxxxxxx
Subject: [audacity4blind] Re: Trouble With The Nyquist Generate Prompt

The final line should have 5 close parentheses.
Here is the original code again:

(abs-env
(let ((eps 0.0001)
(attack 0.001)
(amp 0.3)
(duration 2.5)
(frequency 1760))
(setf envelope (diff (pwev eps attack amp duration eps) eps))
(mult envelope (stretch duration (osc-tri frequency)))))

Steve

On 31 May 2015 at 17:16, David Engebretson Jr.
<d.engebretson@xxxxxxxxxxx> wrote:
Sure, with a little explanation first: You need to have the same amount of
'(' and ')' for code to work. Unexpected EOF means the compiler isn't
seeing the closure of the code with equality in parens.

So, if you look at how many right parens there are at the end of the code
you provided you'll see two. If you look at the code that was provided
you'll see... 4? I don't remember, but if you are copying someones code,
then go look at how many they provided. Other option is to count them and
balance them out.

My guess is you need two right parens at the end to balance them.

Best,
d

--------------------------------------------------
From: "Annabelle Susan Morison" <foristnights@xxxxxxxxxxx>
Sent: Sunday, May 31, 2015 8:15 AM

To: <audacity4blind@xxxxxxxxxxxxx>
Subject: [audacity4blind] Re: Trouble With The Nyquist Generate Prompt

Could you please give me an example of how the code should be written?

-----Original Message-----
From: audacity4blind-bounce@xxxxxxxxxxxxx
[mailto:audacity4blind-bounce@xxxxxxxxxxxxx] On Behalf Of David
Engebretson
Jr.
Sent: Sunday, May 31, 2015 8:12 AM
To: audacity4blind@xxxxxxxxxxxxx
Subject: [audacity4blind] Re: Trouble With The Nyquist Generate Prompt

Looks like you are missing a right paren or two.

--------------------------------------------------
From: "Annabelle Susan Morison" <foristnights@xxxxxxxxxxx>
Sent: Sunday, May 31, 2015 6:20 AM
To: <audacity4blind@xxxxxxxxxxxxx>
Subject: [audacity4blind] Re: Trouble With The Nyquist Generate Prompt

Input Expression:

(abs-env
(let ((eps 0.0001)
(attack 0.001)
(amp 0.3)
(duration 4.5)
(frequency 523.2511306012))
(setf envelope (diff (pwev eps attack amp duration eps) eps))
(mult envelope
(stretch duration
(osc-tri frequency))

Output:

error: unexpected EOF
Function: #<Subr-(null): #3687920>
Arguments:
#<Unnamed-Stream: #3745bc0>
#\(
Function: #<Subr-(null): #3687920>
Arguments:
#<Unnamed-Stream: #3745bc0>
#\(
Function: #<Subr-(null): #3687920>
Arguments:
#<Unnamed-Stream: #3745bc0>
#\(
Arguments:
#<Unnamed-Stream: #3745bc0>
1>

-----Original Message-----
From: audacity4blind-bounce@xxxxxxxxxxxxx
[mailto:audacity4blind-bounce@xxxxxxxxxxxxx] On Behalf Of Robert Hänggi
Sent: Saturday, May 30, 2015 11:10 PM
To: audacity4blind@xxxxxxxxxxxxx
Subject: [audacity4blind] Re: Trouble With The Nyquist Generate Prompt

2015-05-31 5:36 GMT+02:00, Annabelle Susan Morison
<foristnights@xxxxxxxxxxx>:

Hi, it's Annabelle.
It seems I've run into a situation with the Nyquist Generate Prompt. I'm
trying out the "Ding Code" which was sent to me by Steve The Fiddle, and
for
some reason, even when I put all the right parameters in the right
lines,
it
acts like it's executing the command, but unfortunately when I press
play,
I

Robert

The audacity4blind web site is at
//www.freelists.org/webpage/audacity4blind

Subscribe and unsubscribe information, message archives,
Audacity keyboard commands, and more...

To unsubscribe from audacity4blind, send an email to
audacity4blind-request@xxxxxxxxxxxxx
with subject line
unsubscribe

The audacity4blind web site is at
//www.freelists.org/webpage/audacity4blind

Subscribe and unsubscribe information, message archives,
Audacity keyboard commands, and more...

To unsubscribe from audacity4blind, send an email to
audacity4blind-request@xxxxxxxxxxxxx
with subject line
unsubscribe

The audacity4blind web site is at
//www.freelists.org/webpage/audacity4blind

Subscribe and unsubscribe information, message archives,
Audacity keyboard commands, and more...

To unsubscribe from audacity4blind, send an email to
audacity4blind-request@xxxxxxxxxxxxx
with subject line
unsubscribe

The audacity4blind web site is at
//www.freelists.org/webpage/audacity4blind

Subscribe and unsubscribe information, message archives,
Audacity keyboard commands, and more...

To unsubscribe from audacity4blind, send an email to
audacity4blind-request@xxxxxxxxxxxxx
with subject line
unsubscribe

The audacity4blind web site is at
//www.freelists.org/webpage/audacity4blind

Subscribe and unsubscribe information, message archives,
Audacity keyboard commands, and more...

To unsubscribe from audacity4blind, send an email to
audacity4blind-request@xxxxxxxxxxxxx
with subject line
unsubscribe

The audacity4blind web site is at
//www.freelists.org/webpage/audacity4blind

Subscribe and unsubscribe information, message archives,
Audacity keyboard commands, and more...

To unsubscribe from audacity4blind, send an email to
audacity4blind-request@xxxxxxxxxxxxx
with subject line
unsubscribe

The audacity4blind web site is at
//www.freelists.org/webpage/audacity4blind

Subscribe and unsubscribe information, message archives,
Audacity keyboard commands, and more...

To unsubscribe from audacity4blind, send an email to
audacity4blind-request@xxxxxxxxxxxxx
with subject line
unsubscribe

The audacity4blind web site is at
//www.freelists.org/webpage/audacity4blind

Subscribe and unsubscribe information, message archives,
Audacity keyboard commands, and more...

To unsubscribe from audacity4blind, send an email to
audacity4blind-request@xxxxxxxxxxxxx
with subject line
unsubscribe