[Csnd] triglinseg error, I think

Hey hey,
I noticed some odd behaviour with triglinseg. I used it in one instr. If I call the instr again, the resulting envelope doesn't seem right. Here's the relevant code snippet, a demo file is linked below:
...
aEnv = triglinseg:a(kTrig, .5, .02, 0)
Full code:

It only happens once the instrument is called again. Is that a bug or am I missing something?

Best wishes,

Jeanette

yes looks odd for me, too.
i thought it might be an issue in re-using the same instance, but i don't think it is the reason.
perhaps you file an issue?

Hi again,
I shall do so, when I get the desktop out and log in to github.

For the time being I have used lagud to create the simple envelope, which works very well.

Best wishes,

Jeanette

Oct 21 2023, joachim heintz has written:

Hello,
where do I find some information about the triglinseg and lagud? Are they csound7 opcodes?
Best,
Luís

Csound mailing list Send bugs reports to Discussions of bugs and features can be posted here

Hi Luis, yes they are both Csound opcodes. You can find them here:
https://csound.com/docs/manual/index.html

If you scroll down a bit, all the opcodes are listed in alphabetical order.

Best,
Scott

https://soundcloud.com/st-csound

https://youtube.com/@stmusic2164?si=wZqTf5Mg81Jm3Z_W

P.S. they should work as of Csound 6.17 or 6.18.

Hi Scott,

thank you. It looks like I was looking at the wrong manual. This works:
https://csound.com/docs/manual/triglinseg.html

but this doesn’t:
http://www.csounds.com/manual/html/triglinseg.html

Best,
Luís

Csound mailing list Send bugs reports to Discussions of bugs and features can be posted here

There was a fix to these opcodes a while back, I’m not sure it came before the last release. Are you guys building from source?

I’ll take a look, it seems to be in the most recent version…

I guess it’s just that the second manual page link is not working: it points to csounds.com, and that is probably not updated with the latest release

Many thanks Rory! -- I do run a release version. The package as it is in the ArchLinux repos.

Best wishes,

Jeanette

I pushed a fix, and your sample csd is now working fine for me. Thanks for reporting this :slight_smile:

Hi Rory,
many thanks for the super quick fix and the swift replies!

Best wishes,

Jeanette

Oct 22 2023, Rory Walsh has written: