Csound Csound-dev Csound-tekno Search About

[Csnd] simple questions...

Date2009-10-28 09:55
FromRory Walsh
Subject[Csnd] simple questions...
I've no idea why the following instrument results in clicks? The
frequency of the main envelope is 1Hz with accents being applied from
a function table with 8 items at 1/8Hz, something is not right in the
relationship between the two but I can't think of what it is, I know
it's most likely something really stupid so please go easy on me...





sr = 44100
ksmps = 128
nchnls = 1


instr 1
accents oscil 20000, 1/8, 3
aenv oscil accents, 1, 2
aout oscil aenv, 150, 1
out aout
endin



f1 0 1024 10 1
f2 0 1024 5 0.01 24 1 1000 0.01
f3 0 8 2 1 .2 .2 .2 1 .2 .2 .2
i1 0 20





Send bugs reports to this list.
To unsubscribe, send email sympa@lists.bath.ac.uk with body "unsubscribe csound"

Date2009-10-28 10:53
FromFrancois PINOT
Subject[Csnd] Re: simple questions...
accents oscili 20000, 1/8, 3 or accents oscil3 20000, 1/8, 3
On my system, oscili makes it better.

Regards

Francois Pinot

2009/10/28 Rory Walsh <rorywalsh@ear.ie>
I've no idea why the following instrument results in clicks? The
frequency of the main envelope is 1Hz with accents being applied from
a function table with 8 items at 1/8Hz, something is not right in the
relationship between the two but I can't think of what it is, I know
it's most likely something really stupid so please go easy on me...

<CsoundSynthesizer>
<CsOptions>
</CsOptions>
<CsInstruments>
sr = 44100
ksmps = 128
nchnls = 1


instr 1
accents oscil 20000, 1/8, 3
aenv oscil accents, 1, 2
aout oscil aenv, 150, 1
out aout
endin

</CsInstruments>
<CsScore>
f1 0 1024 10 1
f2 0 1024 5 0.01 24 1 1000 0.01
f3 0 8 2 1 .2 .2 .2 1 .2 .2 .2
i1 0 20

</CsScore>
</CsoundSynthesizer>


Send bugs reports to this list.
To unsubscribe, send email sympa@lists.bath.ac.uk with body "unsubscribe csound"


Date2009-10-28 11:04
FromIain McCurdy
Subject[Csnd] RE: simple questions...
Hi Rory,

It seems there is sync drift between the first two oscils. oscili does indeed improve this and removes some of the general grunginess.
Using table seems an improvement also:

accph phasor 1/8
accents table accph, 3, 1
accents    = accents*20000

aenvph phasor 1
aenv table aenvph, 2, 1
aenv = aenv * accents

...but over a long period of time there is still a subtle drift.

A sledgehammer approach is to set both oscils to 1/8 and use this as f-table 2:
f2 0 [1024*8] 5 0.01 24 1 1000 0.01 24 1 1000 0.01 24 1 1000 0.01 24 1 1000 0.01 24 1 1000 0.01 24 1 1000 0.01 24 1 1000 0.01 24 1 1000 0.01

Sorry didn't get to see you last Thursday, I think your employers are working you too hard at the moment.
Iain
 

> From: rorywalsh@ear.ie
> Date: Wed, 28 Oct 2009 09:55:13 +0000
> To: csound@lists.bath.ac.uk
> Subject: [Csnd] simple questions...
>
> I've no idea why the following instrument results in clicks? The
> frequency of the main envelope is 1Hz with accents being applied from
> a function table with 8 items at 1/8Hz, something is not right in the
> relationship between the two but I can't think of what it is, I know
> it's most likely something really stupid so please go easy on me...
>
> <CsoundSynthesizer>
> <CsOptions>
> </CsOptions>
> <CsInstruments>
> sr = 44100
> ksmps = 128
> nchnls = 1
>
>
> instr 1
> accents oscil 20000, 1/8, 3
> aenv oscil accents, 1, 2
> aout oscil aenv, 150, 1
> out aout
> endin
>
> </CsInstruments>
> <CsScore>
> f1 0 1024 10 1
> f2 0 1024 5 0.01 24 1 1000 0.01
> f3 0 8 2 1 .2 .2 .2 1 .2 .2 .2
> i1 0 20
>
> </CsScore>
> </CsoundSynthesizer>
>
>
> Send bugs reports to this list.
> To unsubscribe, send email sympa@lists.bath.ac.uk with body "unsubscribe csound"


New Windows 7: Find the right PC for you. Learn more.

Date2009-10-28 11:23
FromRory Walsh
Subject[Csnd] Re: RE: simple questions...
Thanks for the suggestions. It seems strange that the answer to
something so simple ends up being so convoluted. It wouldn't have
anything to do with guards points or the like would it?

Don't talk to me about employers Ian, it seems the world recession has
somehow inforced a ban on all kinds of artistic endeavours! Did you
get a good recording this time, iirc the recorder stopped during the
last performance? Would you mind posting it somewhere? If not, don't
worry, I'll wait for the album!

Rory.


2009/10/28 Iain McCurdy :
> Hi Rory,
>
> It seems there is sync drift between the first two oscils. oscili does
> indeed improve this and removes some of the general grunginess.
> Using table seems an improvement also:
>
> accph phasor 1/8
> accents table accph, 3, 1
> accents    = accents*20000
>
> aenvph phasor 1
> aenv table aenvph, 2, 1
> aenv = aenv * accents
>
> ...but over a long period of time there is still a subtle drift.
>
> A sledgehammer approach is to set both oscils to 1/8 and use this as f-table
> 2:
> f2 0 [1024*8] 5 0.01 24 1 1000 0.01 24 1 1000 0.01 24 1 1000 0.01 24 1 1000
> 0.01 24 1 1000 0.01 24 1 1000 0.01 24 1 1000 0.01 24 1 1000 0.01
>
> Sorry didn't get to see you last Thursday, I think your employers are
> working you too hard at the moment.
> Iain
>
>
>> From: rorywalsh@ear.ie
>> Date: Wed, 28 Oct 2009 09:55:13 +0000
>> To: csound@lists.bath.ac.uk
>> Subject: [Csnd] simple questions...
>>
>> I've no idea why the following instrument results in clicks? The
>> frequency of the main envelope is 1Hz with accents being applied from
>> a function table with 8 items at 1/8Hz, something is not right in the
>> relationship between the two but I can't think of what it is, I know
>> it's most likely something really stupid so please go easy on me...
>>
>> 
>> 
>> 
>> 
>> sr = 44100
>> ksmps = 128
>> nchnls = 1
>>
>>
>> instr 1
>> accents oscil 20000, 1/8, 3
>> aenv oscil accents, 1, 2
>> aout oscil aenv, 150, 1
>> out aout
>> endin
>>
>> 
>> 
>> f1 0 1024 10 1
>> f2 0 1024 5 0.01 24 1 1000 0.01
>> f3 0 8 2 1 .2 .2 .2 1 .2 .2 .2
>> i1 0 20
>>
>> 
>> 
>>
>>
>> Send bugs reports to this list.
>> To unsubscribe, send email sympa@lists.bath.ac.uk with body "unsubscribe
>> csound"
>
> ________________________________
> New Windows 7: Find the right PC for you. Learn more.


Send bugs reports to this list.
To unsubscribe, send email sympa@lists.bath.ac.uk with body "unsubscribe csound"

Date2009-10-28 11:51
FromVictor Lazzarini
Subject[Csnd] Re: Re: RE: simple questions...
No, I think it has to do with the precision in which the sampling  
increment
gets the next phase value. That is why using a phasor might help. This
is just a quick observation, I haven't studied the issue in detail.


On 28 Oct 2009, at 11:23, Rory Walsh wrote:

> Thanks for the suggestions. It seems strange that the answer to
> something so simple ends up being so convoluted. It wouldn't have
> anything to do with guards points or the like would it?
>
> Don't talk to me about employers Ian, it seems the world recession has
> somehow inforced a ban on all kinds of artistic endeavours! Did you
> get a good recording this time, iirc the recorder stopped during the
> last performance? Would you mind posting it somewhere? If not, don't
> worry, I'll wait for the album!
>
> Rory.
>
>
> 2009/10/28 Iain McCurdy :
>> Hi Rory,
>>
>> It seems there is sync drift between the first two oscils. oscili  
>> does
>> indeed improve this and removes some of the general grunginess.
>> Using table seems an improvement also:
>>
>> accph phasor 1/8
>> accents table accph, 3, 1
>> accents    = accents*20000
>>
>> aenvph phasor 1
>> aenv table aenvph, 2, 1
>> aenv = aenv * accents
>>
>> ...but over a long period of time there is still a subtle drift.
>>
>> A sledgehammer approach is to set both oscils to 1/8 and use this  
>> as f-table
>> 2:
>> f2 0 [1024*8] 5 0.01 24 1 1000 0.01 24 1 1000 0.01 24 1 1000 0.01  
>> 24 1 1000
>> 0.01 24 1 1000 0.01 24 1 1000 0.01 24 1 1000 0.01 24 1 1000 0.01
>>
>> Sorry didn't get to see you last Thursday, I think your employers are
>> working you too hard at the moment.
>> Iain
>>
>>
>>> From: rorywalsh@ear.ie
>>> Date: Wed, 28 Oct 2009 09:55:13 +0000
>>> To: csound@lists.bath.ac.uk
>>> Subject: [Csnd] simple questions...
>>>
>>> I've no idea why the following instrument results in clicks? The
>>> frequency of the main envelope is 1Hz with accents being applied  
>>> from
>>> a function table with 8 items at 1/8Hz, something is not right in  
>>> the
>>> relationship between the two but I can't think of what it is, I know
>>> it's most likely something really stupid so please go easy on me...
>>>
>>> 
>>> 
>>> 
>>> 
>>> sr = 44100
>>> ksmps = 128
>>> nchnls = 1
>>>
>>>
>>> instr 1
>>> accents oscil 20000, 1/8, 3
>>> aenv oscil accents, 1, 2
>>> aout oscil aenv, 150, 1
>>> out aout
>>> endin
>>>
>>> 
>>> 
>>> f1 0 1024 10 1
>>> f2 0 1024 5 0.01 24 1 1000 0.01
>>> f3 0 8 2 1 .2 .2 .2 1 .2 .2 .2
>>> i1 0 20
>>>
>>> 
>>> 
>>>
>>>
>>> Send bugs reports to this list.
>>> To unsubscribe, send email sympa@lists.bath.ac.uk with body  
>>> "unsubscribe
>>> csound"
>>
>> ________________________________
>> New Windows 7: Find the right PC for you. Learn more.
>
>
> Send bugs reports to this list.
> To unsubscribe, send email sympa@lists.bath.ac.uk with body  
> "unsubscribe csound"



Send bugs reports to this list.
To unsubscribe, send email sympa@lists.bath.ac.uk with body "unsubscribe csound"