[audacity4blind] Re: Trouble With The Nyquist Generate Prompt

  • From: "Annabelle Susan Morison" <foristnights@xxxxxxxxxxx>
  • To: <audacity4blind@xxxxxxxxxxxxx>
  • Date: Sun, 31 May 2015 13:12:08 -0700

And also, how would I make a ding with a sine wave? Would it be something
like, osc-sine frequency)))))?

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

If you think of a "pulse" wave as signal that switches on and off.
then for a square wave it it turned on for half of one cycle and off
for the other half of the cycle. That is what happens when "bias" is
zero. For a higher bias value, it stays on for more than half the
cycle and then switches off for the smaller remainder of the cycle, At
a value of one, it is switched on all of the time, so there is no
oscillation and you will hear nothing. Similarly, when set to minus
one, it is "off" all the time and you will hear nothing.

Steve

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

What happens when bias is 1?

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

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>
#\(
Function: #<Subr-READ: #36851b0>
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
don't hear any audio. What's up with that? Someone please help!


Press "Debug" instead of ok.
Copy the content of the upcoming dialog in your next post (if any).

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



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

Other related posts: