Csound Csound-dev Csound-tekno Search About

[Csnd] oscil1 [BUMP]

Date2011-01-11 15:09
FromRory Walsh
Subject[Csnd] oscil1 [BUMP]
Can anyone explain why ksmps has to be greater than 1 for this to
behave as expected? As it stands it will only print the first value
from the table?



-odevaudio


sr = 44100
ksmps = 1

instr 1
k1 oscil1 0, 10000, ftlen(1), 1
printk2 k1
endin


f1 0 512 10 1
i1 0 100




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"

Date2011-01-11 15:11
Fromjpff@cs.bath.ac.uk
Subject[Csnd] Re: oscil1 [BUMP]
t know but was about to look


> Can anyone explain why ksmps has to be greater than 1 for this to
> behave as expected? As it stands it will only print the first value
> from the table?
>
> 
> 
> -odevaudio
> 
> 
> sr = 44100
> ksmps = 1
>
> instr 1
> k1 oscil1 0, 10000, ftlen(1), 1
> printk2 k1
> endin
> 
> 
> f1 0 512 10 1
> i1 0 100
> 
> 
>
>
> 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"

Date2011-01-11 15:17
FromRory Walsh
Subject[Csnd] Re: Re: oscil1 [BUMP]
Sorry John, I wasn't trying to be pushy. I just thought that it had
slipped under the radar the first time round..


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"

Date2011-01-11 15:27
Fromjpff@cs.bath.ac.uk
Subject[Csnd] Re: oscil1 [BUMP]
Simple anser is that tne ophase is incremented by

    p->kinc = (int32) (csound->kicvt / *p->idur);

which in this case is zero.  So phase never moves

    csound->kicvt is defines as (MYFLT) FMAXLEN / p->l_ekr

FMAXLEN is 0x1000000 ans p->l_ekr is same as kr

Will loo further, but this is original code I think

==John ff




> Can anyone explain why ksmps has to be greater than 1 for this to
> behave as expected? As it stands it will only print the first value
> from the table?
>
> 
> 
> -odevaudio
> 
> 
> sr = 44100
> ksmps = 1
>
> instr 1
> k1 oscil1 0, 10000, ftlen(1), 1
> printk2 k1
> endin
> 
> 
> f1 0 512 10 1
> i1 0 100
> 
> 
>
>
> 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"