[Csnd] Jacko-opcodes questions

Dear list,

on my trip to investigate the Jack audio driver (which now works fine for me) I came across the jacko set of opcodes and I would like to give it a try. However rendering stops although I have installed Csound 6.17 with Jack support. Still Csound does seem not to recognize the Jack-opcodes. This is what I did:

———————————————————————————————- The header looks that way:

-odac -iadc ; realtime audio I/O

sr = 48000
kr = 375
ksmps = 128
nchnls_i = 22
nchnls = 16
0dbfs = 1

JackoInit “default”, “csound”

They are not distributed with the Csound sources.
They are in

https://github.com/csound/plugins

Csound provides jack IO through its IO module, which is in the main repository. Any plugins that have dependencies (except for OSC) are in the plugins repository, and that includes these jacko opcodes.

Dear Victor,

do I then have to build and install the plugins-folder from the develop-branch? I did not find them at the master-branch of https://github.com/csound/plugins .

So maybe stickeng to the master branch this time was wrong regarding the Jacko-opcodes?

Best,

Jan Jacob

sound | movement | object | space
sonic architecture | site: http://www.sonicarchitecture.de
spatial electronic composition | higher order ambisonic music

yes, develop branch or you can download the latest source release, it should be there.

I’ve merged the release tag into master, so that’s updated now, you can use that.

Thanks a lot, Victor, I will try it out…

Jan Jacob

sound | movement | object | space
sonic architecture | site: http://www.sonicarchitecture.de
spatial electronic composition | higher order ambisonic music

Thanks Victor,

I got a cmake-error while updating:

After doing...
janjacobhofmann@janjacobhofmann-ThinkPad-T430:/usr/local/lib/csound/plugins64-6.0/plugins/build$ sudo make

I got this output (among other that looks quite promising):

CMake Error at CMakeLists.txt:285 (add_subdirectory):
The source directory

/usr/local/lib/csound/plugins64\-6\.0/plugins/stk

does not contain a CMakeLists.txt file.

Is there something missing or did I ran into something because I am updating Csound plugins for the first time in my life?

Best,

Jan Jacob

sound | movement | object | space
sonic architecture | site: http://www.sonicarchitecture.de
spatial electronic composition | higher order ambisonic music

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

yep, the merge seemed to have left these files behind. I fixed it now.

Great, thanks, Victor! The install from the master-branch now worked fine! And the Jacko-opcodes now get recognized by Csound…

Best,

Jan Jacob

sound | movement | object | space
sonic architecture | site: http://www.sonicarchitecture.de
spatial electronic composition | higher order ambisonic music

Dear list,

I guess I am quite close to get the Jacko-opcodes working.
Has anyone already got experience with the correct setting of ksmps
for Jacko-opcodes?

On JackCtl I set 256 as the buffer size. It’s the only setting that seems to work.

I understood that I have to set ksmps equal to the buffer size
However this would mean a kr of 187,5 which is not possible as far as I know.

But now I get the output…

Jack buffer size 256 != Csound ksmps 128, exiting…
(see below)
…and Csound does not continue.

Any hints?

Cheers,

Jan Jacob

Ksmps must be an integer. Mr can be anything

Get TypeApp for Android

Hi!

Leave kr out, since both kr and ksmps are not needed and try to set ksmps=32 that is a good value in most cases.

It shohuld be power of two, so 1, 2, 4, 8 etc are fine but it cannot be bigger than the jack buffer size, 256 in your case.

tarmo

Kontakt John ff (<jpff@codemist.co.uk>) kirjutas kuupäeval K, 23. veebruar 2022 kell 13:11:

Ksmps must be an integer. Mr can be anything

Get TypeApp for Android

Dear list,

I guess I am quite close to get the Jacko-opcodes working.
Has anyone already got experience with the correct setting of ksmps
for Jacko-opcodes?

On JackCtl I set 256 as the buffer size. It’s the only setting that seems to work.

I understood that I have to set ksmps equal to the buffer size
However this would mean a kr of 187,5 which is not possible as far as I know.

But now I get the output…

Jack buffer size 256 != Csound ksmps 128, exiting…
(see below)
…and Csound does not continue.

Any hints?

Cheers,

Jan Jacob

———————————————————
HEADER STATEMENTS
Jack buffer size 256 != Csound ksmps 128, exiting…

<CsoundSynthesizer>
<CsOptions>
-odac -iadc ; realtime audio I/O
</CsOptions>
<CsInstruments>

sr = 4800
kr = 375
ksmps = 128
nchnls_i = 22
nchnls = 16
0dbfs = 1

JackoInit „default", "csound"

————————————————————
CSOUND OUTPUT
rtaudio: JACK module enabled

Elapsed time at end of orchestra compile: real: 0.011s, CPU: 0.011s
sorting score ...
... done
Elapsed time at end of score sort: real: 0.011s, CPU: 0.011s
--Csound version 6.17 (double samples) Feb 6 2022
[commit: f5b4258794a82c99f7d85f1807c6638f2e80ccac]
sr = 48000.0, kr = 375.000, ksmps = 128
0dBFS level = 1.0, A4 tuning = 440.0
Created Jack client "csound" for Jack server "default".
Jack buffer size 256 != Csound ksmps 128, exiting…
————————————————————

sound         |         movement         |         object         |        space
sonic architecture       |        site: [http://www.sonicarchitecture.de](http://www.sonicarchitecture.de)
spatial electronic composition   |    higher order ambisonic music
Csound mailing list
[Csound@listserv.heanet.ie](mailto:Csound@listserv.heanet.ie)
[https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND](https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND)
Send bugs reports to
        [https://github.com/csound/csound/issues](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

Dear John and Tarmo,

ah, I now see that every power of 2 number <= 128 will work. Thanks for your hints!
I also do see now that the content of the Csound-Output changes rather
according the way I do patch the applications to be connected with each other.

This message comes if I do connect the different applications via a patch:

Dear list,

I now found the way (with kind help of Fons Adriaensen) to get the Jacko-opcodes working and I guess I could contribute to the CsoundQt-wiki now some hints.
I guess a separate section about the Jacko-opcodes would be useful...or should I enhance the part about Jack on that subject?
What do you think, Joachim?

Cheers,

Jan Jacob

Dear John and Tarmo,

ah, I now see that every power of 2 number <= 128 will work. Thanks for your hints!
I also do see now that the content of the Csound-Output changes rather
according the way I do patch the applications to be connected with each other.

This message comes if I do connect the different applications via a patch:

yes i think a new wiki page for this should be better.
or perhaps in the csound wiki rather than the csoundqt wiki?
(i don't know if you did something csoundqt specific ...)
cheers -
  j

Dear list,

the Jacko-opcodes are now working fine for me. I added a page at the Csound-wiki putting my experiences into it how to make them work:

Thanks to all those who helped me to get acquainted with them.

Best,

Jan Jacob

sound | movement | object | space
sonic architecture | site: http://www.sonicarchitecture.de
spatial electronic composition | higher order ambisonic music

Csound mailing list
Csound@listserv.heanet.ie
https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
Send bugs reports to
        Issues · csound/csound · GitHub
Discussions of bugs and features can be posted here

Thanks for clarifying these things in the Wiki, Jan Jacob. I’m glad these are working for you now.

Best,
Mike

thanks for this!

can you perhaps add the link(s) under the first item?

cheers -
  joachim