Csound Csound-dev Csound-tekno Search About

[Csnd] same .csd but different result between gnurootdebian and userland

Date2018-09-15 04:39
From'2+
Subject[Csnd] same .csd but different result between gnurootdebian and userland
hi!

my main rendering platform for csound has been switched to android phones recently and am in the process of updating to userland from gnurootdebian cuz the latter won't work on android8+ anymore

the following .csd works on csound@gnurootdebian(jessie) but gives an error on csound@userland(stretch) complaining that input arguments for kenv_pa and kenv_ni are not incomplete

can someone tell me why?


<CsoundSynthesizer>
<CsOptions>
</CsOptions>
<CsInstruments>
sr = 44100
kr = 4410
ksmps = 10
nchnls = 2
seed  0
giamp = 5.0

instr 1
icps cpsmidinn p4
iamp = 2500.0 + (((p2 + p3) * p4) % 1.0) * 7500.0
idur = 0.2 + (p2 * p3 * p3) % 0.3
isa = (11.23 * icps) % 0.981 + 0.017
iga = (22.34 * icps) % 0.983 + 0.016
ipa = (33.45 * icps) % 0.985 + 0.013
ini = (44.56 * icps) % 0.987 + 0.011
ift_sa      ftgentmp 0, 0, 8192, 10, 1, isa, ipa, 1.0 - isa, iga, 1.0 - ipa, ini, isa * (1.0 - isa)
ift_ga      ftgentmp 0, 0, 8192, 10, 1, iga, 0, 1.0 - iga, 0, 0, 0, iga * (1.0 - iga)
ift_pa      ftgentmp 0, 0, 8192, 10, 1, ipa, 0, 1.0 - ipa, 0, 0, 0, ipa * (1.0 - ipa)
ift_ni      ftgentmp 0, 0, 8192, 10, 1, ini, 0, 1.0 - ini, 0, 0, 0, ini * (1.0 - ini)
kenv_sa     linseg 0, 0.0001, iamp, idur * isa, iamp,  idur * (1.0 - isa) * (1.0 - isa), 0
kenv_ga     linseg 0, 0.0001, iamp, idur * iga, iamp,  idur * (1.0 - iga) * (1.0 - iga), 0
kenv_pa     linseg 0, 0.0001, idur * ipa, iamp,  idur * (1.0 - ipa) * (1.0 - ipa), 0
kenv_ni     linseg 0, 0.0001, idur * ini, iamp,  idur * (1.0 - ini) * (1.0 - ini), 0
asig_sa1    oscil kenv_sa,  2 * icps,     ift_sa, isa * isa
asig_sa2    oscil kenv_sa,  2 * icps,     ift_sa, isa * (1.0 - isa)
asig_ga     oscil kenv_ga,  icps, ift_ga, iga
asig_pa1    oscil kenv_pa,  icps, ift_pa, isa * ipa
asig_pa2    oscil kenv_pa,  icps, ift_pa, isa * (1.0 - ipa)
asig_ni     oscil kenv_ni,  icps, ift_ni, ini
outs        (asig_sa1 + asig_pa2 + asig_ga) * giamp/3, (asig_sa2 + asig_pa1 + asig_ni) * giamp/3
endin

</CsInstruments>
<CsScore>
i1 0.3 5.2 54
i1 0.6 6.2 52
i1 1.3 5.3 44
i1 2.3 5.1 42
i1 4.3 4.2 23
i1 2.7 2.2 34
e
</CsScore>
</CsoundSynthesizer>



Csound mailing list Csound@listserv.heanet.ie 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

Date2018-09-15 08:50
From00000008a49663bc-dmarc-request@LISTSERV.HEANET.IE
SubjectRe: [Csnd] same .csd but different result between gnurootdebian and userland

Hello, 

I dont know why the differense between the systems but kenv_pa and kenv_ni end with time between next value instead the value to ramp to, so one argument is missing.

kenv_pa     linseg

0, ---value

0.0001, --- time

idur * ipa, ---value

iamp, time

idur * (1.0 - ipa) * (1.0 - ipa), ---value

0  ---time


Ciao

Stefano


Il 15 settembre 2018 alle 5.39 '2+ <electriclightheads@GMAIL.COM> ha scritto:

hi!

my main rendering platform for csound has been switched to android phones recently and am in the process of updating to userland from gnurootdebian cuz the latter won't work on android8+ anymore

the following .csd works on csound@gnurootdebian(jessie) but gives an error on csound@userland(stretch) complaining that input arguments for kenv_pa and kenv_ni are not incomplete

can someone tell me why?


<CsoundSynthesizer>
<CsOptions>
</CsOptions>
<CsInstruments>
sr = 44100
kr = 4410
ksmps = 10
nchnls = 2
seed  0
giamp = 5.0

instr 1
icps cpsmidinn p4
iamp = 2500.0 + (((p2 + p3) * p4) % 1.0) * 7500.0
idur = 0.2 + (p2 * p3 * p3) % 0.3
isa = (11.23 * icps) % 0.981 + 0.017
iga = (22.34 * icps) % 0.983 + 0.016
ipa = (33.45 * icps) % 0.985 + 0.013
ini = (44.56 * icps) % 0.987 + 0.011
ift_sa      ftgentmp 0, 0, 8192, 10, 1, isa, ipa, 1.0 - isa, iga, 1.0 - ipa, ini, isa * (1.0 - isa)
ift_ga      ftgentmp 0, 0, 8192, 10, 1, iga, 0, 1.0 - iga, 0, 0, 0, iga * (1.0 - iga)
ift_pa      ftgentmp 0, 0, 8192, 10, 1, ipa, 0, 1.0 - ipa, 0, 0, 0, ipa * (1.0 - ipa)
ift_ni      ftgentmp 0, 0, 8192, 10, 1, ini, 0, 1.0 - ini, 0, 0, 0, ini * (1.0 - ini)
kenv_sa     linseg 0, 0.0001, iamp, idur * isa, iamp,  idur * (1.0 - isa) * (1.0 - isa), 0
kenv_ga     linseg 0, 0.0001, iamp, idur * iga, iamp,  idur * (1.0 - iga) * (1.0 - iga), 0
kenv_pa     linseg 0, 0.0001, idur * ipa, iamp,  idur * (1.0 - ipa) * (1.0 - ipa), 0
kenv_ni     linseg 0, 0.0001, idur * ini, iamp,  idur * (1.0 - ini) * (1.0 - ini), 0
asig_sa1    oscil kenv_sa,  2 * icps,     ift_sa, isa * isa
asig_sa2    oscil kenv_sa,  2 * icps,     ift_sa, isa * (1.0 - isa)
asig_ga     oscil kenv_ga,  icps, ift_ga, iga
asig_pa1    oscil kenv_pa,  icps, ift_pa, isa * ipa
asig_pa2    oscil kenv_pa,  icps, ift_pa, isa * (1.0 - ipa)
asig_ni     oscil kenv_ni,  icps, ift_ni, ini
outs        (asig_sa1 + asig_pa2 + asig_ga) * giamp/3, (asig_sa2 + asig_pa1 + asig_ni) * giamp/3
endin

</CsInstruments>
<CsScore>
i1 0.3 5.2 54
i1 0.6 6.2 52
i1 1.3 5.3 44
i1 2.3 5.1 42
i1 4.3 4.2 23
i1 2.7 2.2 34
e
</CsScore>
</CsoundSynthesizer>



Csound mailing list Csound@listserv.heanet.ie 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

Date2018-09-15 22:16
From'2+
SubjectRe: [Csnd] same .csd but different result between gnurootdebian and userland
oops!
thanx for correction ;)

On Sat, Sep 15, 2018, 16:50 <00000008a49663bc-dmarc-request@listserv.heanet.ie> wrote:

Hello, 

I dont know why the differense between the systems but kenv_pa and kenv_ni end with time between next value instead the value to ramp to, so one argument is missing.

kenv_pa     linseg

0, ---value

0.0001, --- time

idur * ipa, ---value

iamp, time

idur * (1.0 - ipa) * (1.0 - ipa), ---value

0  ---time


Ciao

Stefano


Il 15 settembre 2018 alle 5.39 '2+ <electriclightheads@GMAIL.COM> ha scritto:

hi!

my main rendering platform for csound has been switched to android phones recently and am in the process of updating to userland from gnurootdebian cuz the latter won't work on android8+ anymore

the following .csd works on csound@gnurootdebian(jessie) but gives an error on csound@userland(stretch) complaining that input arguments for kenv_pa and kenv_ni are not incomplete

can someone tell me why?


<CsoundSynthesizer>
<CsOptions>
</CsOptions>
<CsInstruments>
sr = 44100
kr = 4410
ksmps = 10
nchnls = 2
seed  0
giamp = 5.0

instr 1
icps cpsmidinn p4
iamp = 2500.0 + (((p2 + p3) * p4) % 1.0) * 7500.0
idur = 0.2 + (p2 * p3 * p3) % 0.3
isa = (11.23 * icps) % 0.981 + 0.017
iga = (22.34 * icps) % 0.983 + 0.016
ipa = (33.45 * icps) % 0.985 + 0.013
ini = (44.56 * icps) % 0.987 + 0.011
ift_sa      ftgentmp 0, 0, 8192, 10, 1, isa, ipa, 1.0 - isa, iga, 1.0 - ipa, ini, isa * (1.0 - isa)
ift_ga      ftgentmp 0, 0, 8192, 10, 1, iga, 0, 1.0 - iga, 0, 0, 0, iga * (1.0 - iga)
ift_pa      ftgentmp 0, 0, 8192, 10, 1, ipa, 0, 1.0 - ipa, 0, 0, 0, ipa * (1.0 - ipa)
ift_ni      ftgentmp 0, 0, 8192, 10, 1, ini, 0, 1.0 - ini, 0, 0, 0, ini * (1.0 - ini)
kenv_sa     linseg 0, 0.0001, iamp, idur * isa, iamp,  idur * (1.0 - isa) * (1.0 - isa), 0
kenv_ga     linseg 0, 0.0001, iamp, idur * iga, iamp,  idur * (1.0 - iga) * (1.0 - iga), 0
kenv_pa     linseg 0, 0.0001, idur * ipa, iamp,  idur * (1.0 - ipa) * (1.0 - ipa), 0
kenv_ni     linseg 0, 0.0001, idur * ini, iamp,  idur * (1.0 - ini) * (1.0 - ini), 0
asig_sa1    oscil kenv_sa,  2 * icps,     ift_sa, isa * isa
asig_sa2    oscil kenv_sa,  2 * icps,     ift_sa, isa * (1.0 - isa)
asig_ga     oscil kenv_ga,  icps, ift_ga, iga
asig_pa1    oscil kenv_pa,  icps, ift_pa, isa * ipa
asig_pa2    oscil kenv_pa,  icps, ift_pa, isa * (1.0 - ipa)
asig_ni     oscil kenv_ni,  icps, ift_ni, ini
outs        (asig_sa1 + asig_pa2 + asig_ga) * giamp/3, (asig_sa2 + asig_pa1 + asig_ni) * giamp/3
endin

</CsInstruments>
<CsScore>
i1 0.3 5.2 54
i1 0.6 6.2 52
i1 1.3 5.3 44
i1 2.3 5.1 42
i1 4.3 4.2 23
i1 2.7 2.2 34
e
</CsScore>
</CsoundSynthesizer>



Csound mailing list Csound@listserv.heanet.ie 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 Csound@listserv.heanet.ie 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 Csound@listserv.heanet.ie 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