[Csnd] Csound-QT Problems and Questions

Hello Everybody!

Yesterday i luckily noticed that there is the 1.1.1 Version of QT. At university we used the previous version but i never got friends with it.
I always had the problem, that QT overrides my flags in the .csd. But actually i really like the editor and the possibility to build a GUI. So i thought i give it a chance again.
But the problems still exists.

This morning i’ve tried to set it up, so that i just can use the widget part of it and just do anything else in the .csd file.

Csound version 6.18
CsoundQT 1.1.1.
MacOs 12.6.3.

My settings are:
- Realtime Audio
- Override unchecked
- ignore CsOptions unchecked
- Realtime MIDI
- Override unchecked
- Ignore CsOptions unchecked
- Offline Rendering
- Override unchecked
- Ignore CsOptions unchecked
- Advanced
- everything unchecked

I created a simple example. This doesn’t run in QT. I tried it with ‚Run Csound‘ and ‚Run in Term‘. Both didn’t work. And the console also tells me that it also still wants to render a file - which was a really old setting in the QT config.
When i run this externally via terminal it runs as it should.
I don’t know where the problem is.

This is the file:

<CsoundSynthesizer>
<CsOptions>
-odac4 -+rtaudio=coreaudio
</CsOptions>
<CsInstruments>

sr = 44100
ksmps = 64
nchnls = 2
nchnls_i = 1
0dbfs = 1

;----------------------------------------
instr 1

asin poscil3 0.9, 440

outs asin, asin

endin

</CsInstruments>
<CsScore>
i1 0 5
</CsScore>
</CsoundSynthesizer>

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

i guess that this option in your csd file causes the problem:
-odac4 -+rtaudio=coreaudio

i'd recommend to remove it and then use this in the "RT Audio" settings:
-o dac (= use system default)
-i adc (same)

as RT Audio Module i use portaudio for mac. best works jack in my experience.

Thanks for your reply, Joachim!

I found out that there is some kind of ‚Bug‘ (?) inside QT.
I’ve updated QT from 0.9 to 1.1.1. and i never used it intensively. So after the update it kept my settings from the old QT version and i did not had to click anything there.
But what was visible in the config was not actually the config settings. By trial and error i clicked here and there and landed at my described setting again and then it worked like it should have from the beginning.

Now i’m quiet happy with QT. It is really a major update and i love the new stuff like the dark-mode and auto-completion. The only thing i miss is the functionality from Sublime like edditting multiple Variables at once or to insert predefined snippets of code.

Also i love how easy it is to work with the Widgets. The only thing there i miss is like a Volume-Meter for single a-variables. Is there a way to create something like this?

Here is my first GUI i created with QT for a live-performance. Not completely finished yet:

Greetings,
Philipp

Hi,

Thanks for the report and great you find CsoundQt useful! An impressive GUI, as well.

To realize an audio meter you can use a normal meter (the Controller widget) and just feed the value from your arate amplitude signal converted to k-rate to its channel. Something like:

amp follow2 asig, 0.05, 0.05

chnset k(amp), “level”

or as one-liner

chnset k(follow2:a(asig, 0.05, 0.05)), “level”

Or use rms opcode if that serves you better, that is already k-rate.

Have you already discovered how comfortable widgets’ MIDI learn is to build live performance instruments? That is how I mostly use CsoundQt in everyday practice.

Best!

tarmo

Kontakt Philipp Neumann (<kontakt@philippneumann.eu>) kirjutas kuupäeval E, 27. märts 2023 kell 13:39:

Thanks for your reply, Joachim!

I found out that there is some kind of ‚Bug‘ (?) inside QT.
I’ve updated QT from 0.9 to 1.1.1. and i never used it intensively. So after the update it kept my settings from the old QT version and i did not had to click anything there.
But what was visible in the config was not actually the config settings. By trial and error i clicked here and there and landed at my described setting again and then it worked like it should have from the beginning.

Now i’m quiet happy with QT. It is really a major update and i love the new stuff like the dark-mode and auto-completion. The only thing i miss is the functionality from Sublime like edditting multiple Variables at once or to insert predefined snippets of code.

Also i love how easy it is to work with the Widgets. The only thing there i miss is like a Volume-Meter for single a-variables. Is there a way to create something like this?

Here is my first GUI i created with QT for a live-performance. Not completely finished yet:

Greetings,
Philipp

i guess that this option in your csd file causes the problem:
-odac4 -+rtaudio=coreaudio

i’d recommend to remove it and then use this in the “RT Audio” settings:
-o dac (= use system default)
-i adc (same)

as RT Audio Module i use portaudio for mac. best works jack in my experience.

-odac4 -+rtaudio=coreaudio

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

Good that you could solve it.

As to Audio Meter, I miss it, too. So I built a UDO for it:

It is also included in many of the examples, for instance
Examples > CsoundQt > Live Collection

best regards -
  joachim