[Csnd] Linen idur too short

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

[Csnd] Linen idur too short

fauveboy
Why is it necessary that linen tells you the idur is too short with the
following program?


<CsoundSynthesizer>
<CsOptions>
</CsOptions>
<CsInstruments>

sr = 44100
ksmps = 128
nchnls = 2
0dbfs = 1.0

                instr 1
imodind = p4/20
iattmod = 1/(imodind+1)

kenv linen ampdb(p4),.1, p3,.1; AMP ENV
kmodenv linen imodind, iattmod, p3, .1
asig foscil kenv, cpspch(p5), 1, 1,kmodenv, 1
                outs asig, asig
                endin
               


</CsInstruments>
<CsScore>
f1 0 16384 10 1

; INST ST DUR DB
i 1 0 0.5 -10

        ;PCH
        7.05
       
       

</CsScore>
</CsoundSynthesizer>



--
Sent from: http://csound.1045644.n5.nabble.com/Csound-General-f1093014.html

Csound mailing list
[hidden email]
https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
Send bugs reports to
        https://github.com/csound/csound/issues
Discussions of bugs and features can be posted here
Reply | Threaded
Open this post in threaded view
|

Re: [Csnd] Linen idur too short

jpff
No idea.  Code says

      if (len<(iris<idec?idec:iris))
         csound->Warning(csound, Str("p3 too short in linen"));
where len is the p3 of the instrument


On Thu, 11 Oct 2018, fauveboy wrote:

> Why is it necessary that linen tells you the idur is too short with the
> following program?
>
>
> <CsoundSynthesizer>
> <CsOptions>
> </CsOptions>
> <CsInstruments>
>
> sr = 44100
> ksmps = 128
> nchnls = 2
> 0dbfs = 1.0
>
> instr 1
> imodind = p4/20
> iattmod = 1/(imodind+1)
>
> kenv linen ampdb(p4),.1, p3,.1; AMP ENV
> kmodenv linen imodind, iattmod, p3, .1
> asig foscil kenv, cpspch(p5), 1, 1,kmodenv, 1
> outs asig, asig
> endin
>
>
>
> </CsInstruments>
> <CsScore>
> f1 0 16384 10 1
>
> ; INST ST DUR DB
> i 1 0 0.5 -10
>
> ;PCH
> 7.05
>
>
>
> </CsScore>
> </CsoundSynthesizer>
>
>
>
> --
> Sent from: http://csound.1045644.n5.nabble.com/Csound-General-f1093014.html
>
> Csound mailing list
> [hidden email]
> https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
> Send bugs reports to
>        https://github.com/csound/csound/issues
> Discussions of bugs and features can be posted here
>

Csound mailing list
[hidden email]
https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
Send bugs reports to
        https://github.com/csound/csound/issues
Discussions of bugs and features can be posted here