Csound Csound-dev Csound-tekno Search About

[Csnd] Why does this orchestra make sound?

Date2010-02-27 19:53
FromTobiah
Subject[Csnd] Why does this orchestra make sound?
I started by putting in an envelope with linseg, but it never had any effect.
I've boiled it down further.  I'm multiplying my signals by zero, and I still
get a constant sine wave.  If I multiply a_sig_{left,right} by zero in the
last 'outs' line, I get silence as expected.

Am I losing my mind?

Thanks,

Tobiah

Score:

i1 0.0 10.0 0.5 440.0

Orchestra:

sr      = 44100
ksmps   = 1
nchnls  = 2

gi_wave                 ftgen           0, 0, 65536, 10, 1

instr 1

        i_dur           init            p3
        i_vol           init            p4
        i_pitch         init            p5

        a_sig_left      oscil3          i_vol, i_pitch, gi_wave
        a_sig_right     oscil3          i_vol, i_pitch + 1, gi_wave

        a_sig_left      =               0 * a_sig_left
        a_sig_right     =               0 * a_sig_right

                        outs            a_sig_left, a_sig_right

endin


Send bugs reports to the Sourceforge bug tracker
            https://sourceforge.net/tracker/?group_id=81968&atid=564599
Discussions of bugs and features can be posted here
To unsubscribe, send email sympa@lists.bath.ac.uk with body "unsubscribe csound"

Date2010-02-27 20:03
FromVictor Lazzarini
Subject[Csnd] Re: Why does this orchestra make sound?
Not here. It does not make any sound, as expected.
On 27 Feb 2010, at 19:53, Tobiah wrote:

> i1 0.0 10.0 0.5 440.0



Send bugs reports to the Sourceforge bug tracker
            https://sourceforge.net/tracker/?group_id=81968&atid=564599
Discussions of bugs and features can be posted here
To unsubscribe, send email sympa@lists.bath.ac.uk with body "unsubscribe csound"

Date2010-02-27 20:30
FromTobiah
Subject[Csnd] Re: Re: Why does this orchestra make sound?
I figured this out.  It's pretty funny.  I am in an environment where
I automatically
render an orchestra to floats, rescale, and play the file.  So, I hit
the 'button' and
out comes a sinewave.  What was actually happening is that csound was making
an incredibly tiny sinewave that is generally inaudible, until
rescaled to full volume!

Check out the soundfile that comes out with snd, or some other editor that will
allow you to expand the vertical scale.  Way way down at the end is the tiniest
little sinewave just a few bits tall.

This seems like a bug, as the output should really be all zeros.  In
fact if I do
the multiplication on the last line with the 'outs' opcode, I do get a file with
all zeros.  Do the multiplication by zero as I posted, and the teeny sinewave
rears its head.

Thanks,

Tobiah

On Sat, Feb 27, 2010 at 12:03 PM, Victor Lazzarini
 wrote:
> Not here. It does not make any sound, as expected.
> On 27 Feb 2010, at 19:53, Tobiah wrote:
>
>> i1 0.0 10.0 0.5 440.0
>
>
>
> Send bugs reports to the Sourceforge bug tracker
>           https://sourceforge.net/tracker/?group_id=81968&atid=564599
> Discussions of bugs and features can be posted here
> To unsubscribe, send email sympa@lists.bath.ac.uk with body "unsubscribe
> csound"
>
>


Send bugs reports to the Sourceforge bug tracker
            https://sourceforge.net/tracker/?group_id=81968&atid=564599
Discussions of bugs and features can be posted here
To unsubscribe, send email sympa@lists.bath.ac.uk with body "unsubscribe csound"


Date2010-02-27 20:39
FromTobiah
Subject[Csnd] Re: Re: Why does this orchestra make sound?
Actually, forget my last post.  I forgot I was deliberately using small numbers
so that my floats would range 0 to 1.  If I use this score with a larger p4:

i1 0.0 10.0 30000.0 440.0

The sinewave comes out full blast as though the multiplication by zero
was not happening.  My original problem still stands for the same reason.
My envelope has now effect here:

sr      = 44100
ksmps   = 1
nchnls  = 2

gi_wave                 ftgen           0, 0, 65536, 10, 1

instr 1

        i_dur           init            p3
        i_vol           init            p4
        i_pitch         init            p5

        a_sig_left      oscil3          i_vol, i_pitch, gi_wave
        a_sig_right     oscil3          i_vol, i_pitch + 1, gi_wave

        aenv            linseg          0, .1, 1, i_dur - .1, 0

        a_sig_left      =               a_sig_left * aenv
        a_sig_right     =               a_sig_right * aenv

                        outs            a_sig_left, a_sig_right

endin


but if I put the * aenv down in the outs line, I get the desired effect.
What am I missing about this?

Thanks,

Tobiah

On Sat, Feb 27, 2010 at 12:03 PM, Victor Lazzarini
 wrote:
> Not here. It does not make any sound, as expected.
> On 27 Feb 2010, at 19:53, Tobiah wrote:
>
>> i1 0.0 10.0 0.5 440.0
>
>
>
> Send bugs reports to the Sourceforge bug tracker
>           https://sourceforge.net/tracker/?group_id=81968&atid=564599
> Discussions of bugs and features can be posted here
> To unsubscribe, send email sympa@lists.bath.ac.uk with body "unsubscribe
> csound"
>
>


Send bugs reports to the Sourceforge bug tracker
            https://sourceforge.net/tracker/?group_id=81968&atid=564599
Discussions of bugs and features can be posted here
To unsubscribe, send email sympa@lists.bath.ac.uk with body "unsubscribe csound"


Date2010-02-27 20:46
FromVictor Lazzarini
Subject[Csnd] Re: Re: Re: Why does this orchestra make sound?
I works here, no problem (OSX 5.12.2).

Victor
On 27 Feb 2010, at 20:39, Tobiah wrote:

> Actually, forget my last post.  I forgot I was deliberately using  
> small numbers
> so that my floats would range 0 to 1.  If I use this score with a  
> larger p4:
>
> i1 0.0 10.0 30000.0 440.0
>
> The sinewave comes out full blast as though the multiplication by zero
> was not happening.  My original problem still stands for the same  
> reason.
> My envelope has now effect here:
>
> sr      = 44100
> ksmps   = 1
> nchnls  = 2
>
> gi_wave                 ftgen           0, 0, 65536, 10, 1
>
> instr 1
>
>        i_dur           init            p3
>        i_vol           init            p4
>        i_pitch         init            p5
>
>        a_sig_left      oscil3          i_vol, i_pitch, gi_wave
>        a_sig_right     oscil3          i_vol, i_pitch + 1, gi_wave
>
>        aenv            linseg          0, .1, 1, i_dur - .1, 0
>
>        a_sig_left      =               a_sig_left * aenv
>        a_sig_right     =               a_sig_right * aenv
>
>                        outs            a_sig_left, a_sig_right
>
> endin
>
>
> but if I put the * aenv down in the outs line, I get the desired  
> effect.
> What am I missing about this?
>
> Thanks,
>
> Tobiah
>
> On Sat, Feb 27, 2010 at 12:03 PM, Victor Lazzarini
>  wrote:
>> Not here. It does not make any sound, as expected.
>> On 27 Feb 2010, at 19:53, Tobiah wrote:
>>
>>> i1 0.0 10.0 0.5 440.0
>>
>>
>>
>> Send bugs reports to the Sourceforge bug tracker
>>           https://sourceforge.net/tracker/?group_id=81968&atid=564599
>> Discussions of bugs and features can be posted here
>> To unsubscribe, send email sympa@lists.bath.ac.uk with body  
>> "unsubscribe
>> csound"
>>
>>
>
>
> Send bugs reports to the Sourceforge bug tracker
>            https://sourceforge.net/tracker/?group_id=81968&atid=564599
> Discussions of bugs and features can be posted here
> To unsubscribe, send email sympa@lists.bath.ac.uk with body  
> "unsubscribe csound"
>



Send bugs reports to the Sourceforge bug tracker
            https://sourceforge.net/tracker/?group_id=81968&atid=564599
Discussions of bugs and features can be posted here
To unsubscribe, send email sympa@lists.bath.ac.uk with body "unsubscribe csound"

Date2010-02-27 21:47
FromTobiah
Subject[Csnd] Re: Re: Re: Re: Why does this orchestra make sound?
That is so strange.  I'm on Ubuntu 9.10, using a home compiled
Csound version 5.12 (double samples) Feb 17 2010.  I get a
constant volume sound with this orchestra, but if I change the
last line to:

outs            a_sig_left * aenv, a_sig_right * aenv

I get the expected tapered waveform.

I can't believe how much time I've spent trying to
debug this.

Thanks,

Toby

On Sat, Feb 27, 2010 at 12:46 PM, Victor Lazzarini
 wrote:
> I works here, no problem (OSX 5.12.2).
>
> Victor
> On 27 Feb 2010, at 20:39, Tobiah wrote:
>
>> Actually, forget my last post.  I forgot I was deliberately using small
>> numbers
>> so that my floats would range 0 to 1.  If I use this score with a larger
>> p4:
>>
>> i1 0.0 10.0 30000.0 440.0
>>
>> The sinewave comes out full blast as though the multiplication by zero
>> was not happening.  My original problem still stands for the same reason.
>> My envelope has now effect here:
>>
>> sr      = 44100
>> ksmps   = 1
>> nchnls  = 2
>>
>> gi_wave                 ftgen           0, 0, 65536, 10, 1
>>
>> instr 1
>>
>>       i_dur           init            p3
>>       i_vol           init            p4
>>       i_pitch         init            p5
>>
>>       a_sig_left      oscil3          i_vol, i_pitch, gi_wave
>>       a_sig_right     oscil3          i_vol, i_pitch + 1, gi_wave
>>
>>       aenv            linseg          0, .1, 1, i_dur - .1, 0
>>
>>       a_sig_left      =               a_sig_left * aenv
>>       a_sig_right     =               a_sig_right * aenv
>>
>>                       outs            a_sig_left, a_sig_right
>>
>> endin
>>
>>
>> but if I put the * aenv down in the outs line, I get the desired effect.
>> What am I missing about this?
>>
>> Thanks,
>>
>> Tobiah
>>
>> On Sat, Feb 27, 2010 at 12:03 PM, Victor Lazzarini
>>  wrote:
>>>
>>> Not here. It does not make any sound, as expected.
>>> On 27 Feb 2010, at 19:53, Tobiah wrote:
>>>
>>>> i1 0.0 10.0 0.5 440.0
>>>
>>>
>>>
>>> Send bugs reports to the Sourceforge bug tracker
>>>          https://sourceforge.net/tracker/?group_id=81968&atid=564599
>>> Discussions of bugs and features can be posted here
>>> To unsubscribe, send email sympa@lists.bath.ac.uk with body "unsubscribe
>>> csound"
>>>
>>>
>>
>>
>> Send bugs reports to the Sourceforge bug tracker
>>           https://sourceforge.net/tracker/?group_id=81968&atid=564599
>> Discussions of bugs and features can be posted here
>> To unsubscribe, send email sympa@lists.bath.ac.uk with body "unsubscribe
>> csound"
>>
>
>
>
> Send bugs reports to the Sourceforge bug tracker
>           https://sourceforge.net/tracker/?group_id=81968&atid=564599
> Discussions of bugs and features can be posted here
> To unsubscribe, send email sympa@lists.bath.ac.uk with body "unsubscribe
> csound"
>
>


Send bugs reports to the Sourceforge bug tracker
            https://sourceforge.net/tracker/?group_id=81968&atid=564599
Discussions of bugs and features can be posted here
To unsubscribe, send email sympa@lists.bath.ac.uk with body "unsubscribe csound"


Date2010-02-27 22:12
FromTobiah
Subject[Csnd] Re: Why does this orchestra make sound?
Looking further it seems that any a-rate assignment using the '=' operator
has no effect in my version of csound.  That's pretty crippling.  I'm not sure
what to do about it.  This is why I was able to do the multiplication straight
in the 'outs' line, but not in the '=' assignment line.  Has any work been done
lately that could possibly have this effect in the recent sources?

Thanks,

Toby

On Sat, Feb 27, 2010 at 11:53 AM, Tobiah  wrote:
> I started by putting in an envelope with linseg, but it never had any effect.
> I've boiled it down further.  I'm multiplying my signals by zero, and I still
> get a constant sine wave.  If I multiply a_sig_{left,right} by zero in the
> last 'outs' line, I get silence as expected.
>
> Am I losing my mind?
>
> Thanks,
>
> Tobiah
>
> Score:
>
> i1 0.0 10.0 0.5 440.0
>
> Orchestra:
>
> sr      = 44100
> ksmps   = 1
> nchnls  = 2
>
> gi_wave                 ftgen           0, 0, 65536, 10, 1
>
> instr 1
>
>        i_dur           init            p3
>        i_vol           init            p4
>        i_pitch         init            p5
>
>        a_sig_left      oscil3          i_vol, i_pitch, gi_wave
>        a_sig_right     oscil3          i_vol, i_pitch + 1, gi_wave
>
>        a_sig_left      =               0 * a_sig_left
>        a_sig_right     =               0 * a_sig_right
>
>                        outs            a_sig_left, a_sig_right
>
> endin
>


Send bugs reports to the Sourceforge bug tracker
            https://sourceforge.net/tracker/?group_id=81968&atid=564599
Discussions of bugs and features can be posted here
To unsubscribe, send email sympa@lists.bath.ac.uk with body "unsubscribe csound"


Date2010-02-27 23:25
FromVictor Lazzarini
Subject[Csnd] Re: Re: Re: Re: Re: Why does this orchestra make sound?
I suggest you update from CVS, because this might have been some  
intermediary development stage of Csound. There were issues with  
assignment sometime in February in the CVS code.

Victor
On 27 Feb 2010, at 21:47, Tobiah wrote:

> That is so strange.  I'm on Ubuntu 9.10, using a home compiled
> Csound version 5.12 (double samples) Feb 17 2010.  I get a
> constant volume sound with this orchestra, but if I change the
> last line to:
>
> outs            a_sig_left * aenv, a_sig_right * aenv
>
> I get the expected tapered waveform.
>
> I can't believe how much time I've spent trying to
> debug this.
>
> Thanks,
>
> Toby
>
> On Sat, Feb 27, 2010 at 12:46 PM, Victor Lazzarini
>  wrote:
>> I works here, no problem (OSX 5.12.2).
>>
>> Victor
>> On 27 Feb 2010, at 20:39, Tobiah wrote:
>>
>>> Actually, forget my last post.  I forgot I was deliberately using  
>>> small
>>> numbers
>>> so that my floats would range 0 to 1.  If I use this score with a  
>>> larger
>>> p4:
>>>
>>> i1 0.0 10.0 30000.0 440.0
>>>
>>> The sinewave comes out full blast as though the multiplication by  
>>> zero
>>> was not happening.  My original problem still stands for the same  
>>> reason.
>>> My envelope has now effect here:
>>>
>>> sr      = 44100
>>> ksmps   = 1
>>> nchnls  = 2
>>>
>>> gi_wave                 ftgen           0, 0, 65536, 10, 1
>>>
>>> instr 1
>>>
>>>       i_dur           init            p3
>>>       i_vol           init            p4
>>>       i_pitch         init            p5
>>>
>>>       a_sig_left      oscil3          i_vol, i_pitch, gi_wave
>>>       a_sig_right     oscil3          i_vol, i_pitch + 1, gi_wave
>>>
>>>       aenv            linseg          0, .1, 1, i_dur - .1, 0
>>>
>>>       a_sig_left      =               a_sig_left * aenv
>>>       a_sig_right     =               a_sig_right * aenv
>>>
>>>                       outs            a_sig_left, a_sig_right
>>>
>>> endin
>>>
>>>
>>> but if I put the * aenv down in the outs line, I get the desired  
>>> effect.
>>> What am I missing about this?
>>>
>>> Thanks,
>>>
>>> Tobiah
>>>
>>> On Sat, Feb 27, 2010 at 12:03 PM, Victor Lazzarini
>>>  wrote:
>>>>
>>>> Not here. It does not make any sound, as expected.
>>>> On 27 Feb 2010, at 19:53, Tobiah wrote:
>>>>
>>>>> i1 0.0 10.0 0.5 440.0
>>>>
>>>>
>>>>
>>>> Send bugs reports to the Sourceforge bug tracker
>>>>          https://sourceforge.net/tracker/? 
>>>> group_id=81968&atid=564599
>>>> Discussions of bugs and features can be posted here
>>>> To unsubscribe, send email sympa@lists.bath.ac.uk with body  
>>>> "unsubscribe
>>>> csound"
>>>>
>>>>
>>>
>>>
>>> Send bugs reports to the Sourceforge bug tracker
>>>           https://sourceforge.net/tracker/? 
>>> group_id=81968&atid=564599
>>> Discussions of bugs and features can be posted here
>>> To unsubscribe, send email sympa@lists.bath.ac.uk with body  
>>> "unsubscribe
>>> csound"
>>>
>>
>>
>>
>> Send bugs reports to the Sourceforge bug tracker
>>           https://sourceforge.net/tracker/?group_id=81968&atid=564599
>> Discussions of bugs and features can be posted here
>> To unsubscribe, send email sympa@lists.bath.ac.uk with body  
>> "unsubscribe
>> csound"
>>
>>
>
>
> Send bugs reports to the Sourceforge bug tracker
>            https://sourceforge.net/tracker/?group_id=81968&atid=564599
> Discussions of bugs and features can be posted here
> To unsubscribe, send email sympa@lists.bath.ac.uk with body  
> "unsubscribe csound"
>



Send bugs reports to the Sourceforge bug tracker
            https://sourceforge.net/tracker/?group_id=81968&atid=564599
Discussions of bugs and features can be posted here
To unsubscribe, send email sympa@lists.bath.ac.uk with body "unsubscribe csound"

Date2010-02-27 23:27
FromVictor Lazzarini
Subject[Csnd] Re: Re: Why does this orchestra make sound?
Just update...
On 27 Feb 2010, at 22:12, Tobiah wrote:

> Looking further it seems that any a-rate assignment using the '='  
> operator
> has no effect in my version of csound.  That's pretty crippling.   
> I'm not sure
> what to do about it.  This is why I was able to do the  
> multiplication straight
> in the 'outs' line, but not in the '=' assignment line.  Has any  
> work been done
> lately that could possibly have this effect in the recent sources?
>
> Thanks,
>
> Toby
>
> On Sat, Feb 27, 2010 at 11:53 AM, Tobiah  wrote:
>> I started by putting in an envelope with linseg, but it never had  
>> any effect.
>> I've boiled it down further.  I'm multiplying my signals by zero,  
>> and I still
>> get a constant sine wave.  If I multiply a_sig_{left,right} by zero  
>> in the
>> last 'outs' line, I get silence as expected.
>>
>> Am I losing my mind?
>>
>> Thanks,
>>
>> Tobiah
>>
>> Score:
>>
>> i1 0.0 10.0 0.5 440.0
>>
>> Orchestra:
>>
>> sr      = 44100
>> ksmps   = 1
>> nchnls  = 2
>>
>> gi_wave                 ftgen           0, 0, 65536, 10, 1
>>
>> instr 1
>>
>>        i_dur           init            p3
>>        i_vol           init            p4
>>        i_pitch         init            p5
>>
>>        a_sig_left      oscil3          i_vol, i_pitch, gi_wave
>>        a_sig_right     oscil3          i_vol, i_pitch + 1, gi_wave
>>
>>        a_sig_left      =               0 * a_sig_left
>>        a_sig_right     =               0 * a_sig_right
>>
>>                        outs            a_sig_left, a_sig_right
>>
>> endin
>>
>
>
> Send bugs reports to the Sourceforge bug tracker
>            https://sourceforge.net/tracker/?group_id=81968&atid=564599
> Discussions of bugs and features can be posted here
> To unsubscribe, send email sympa@lists.bath.ac.uk with body  
> "unsubscribe csound"
>



Send bugs reports to the Sourceforge bug tracker
            https://sourceforge.net/tracker/?group_id=81968&atid=564599
Discussions of bugs and features can be posted here
To unsubscribe, send email sympa@lists.bath.ac.uk with body "unsubscribe csound"