[Csnd] Using FLTK opcodes with Csound 6.18

Hi,

I would like to be able to use the FLTK opcodes with the latest version of Csound. Is it possible? If so, could somebody please run me through the steps?

Many thanks,
Daniel

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

Hello Daniel,

I’m using csound 6.17 in Xubuntu 22.04. FLTK opcodes seem to work well still in this version run through CsoundQT.
I suppose there’s no big difference in 6.18.

Here’s a place for several examples of utilising FLTKs:

http://www.iainmccurdy.org/csound.html#FLTK

A kind of a starting-point .csd could be e.g. http://www.iainmccurdy.org/CsoundRealtimeExamples/FLTK/MIDI&FLTK_Combined.csd.
There are quite good comments in that file.
The key-points as I understand it are g-variables for communication between widgets and instruments but also FLrun at the end
the widgets to get the whole UI running.

–Risto

ti 18.3.2025 klo 22.47 Daniel (000012ee7ecf92ae-dmarc-request@listserv.heanet.ie) kirjoitti:

Hi,

I would like to be able to use the FLTK opcodes with the latest version of Csound. Is it possible? If so, could somebody please run me through the steps?

Many thanks,
Daniel

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

You’ll have to use an older version of Csound if you want FLTK widgets. As far as I know the fltk library is no longer compatible with Csound.

So how old ?
In my case:

risto@siivet3:~$ csound --version
–Csound version 6.17 (double samples) 2022-04-08

I haven’t noticed any problems at least in this version.

–Risto

ke 19.3.2025 klo 12.08 Rory Walsh (rorywalsh@ear.ie) kirjoitti:

You’ll have to use an older version of Csound if you want FLTK widgets. As far as I know the fltk library is no longer compatible with Csound.

Hello Daniel,

I’m using csound 6.17 in Xubuntu 22.04. FLTK opcodes seem to work well still in this version run through CsoundQT.
I suppose there’s no big difference in 6.18.

Here’s a place for several examples of utilising FLTKs:

http://www.iainmccurdy.org/csound.html#FLTK

A kind of a starting-point .csd could be e.g. http://www.iainmccurdy.org/CsoundRealtimeExamples/FLTK/MIDI&FLTK_Combined.csd.
There are quite good comments in that file.
The key-points as I understand it are g-variables for communication between widgets and instruments but also FLrun at the end
the widgets to get the whole UI running.

–Risto

ti 18.3.2025 klo 22.47 Daniel (000012ee7ecf92ae-dmarc-request@listserv.heanet.ie) kirjoitti:

Hi,

I would like to be able to use the FLTK opcodes with the latest version of Csound. Is it possible? If so, could somebody please run me through the steps?

Many thanks,
Daniel

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

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

That version should be fine. I think it was around 6.18? I don’t remember the details, but I think it has something to do with how fltk implements threading. I think all of the fltk stuff has moved out of core Csound now.

The problem is on MacOS. It’s not possible to use the FLTK opcodes as currently designed because of the way threading is implemented. The MacOS graphics library has restrictions to this. Without threading there’s no way to use the widgets interactively. This has been the case for over a decade, probably all the way to 6.00 or before.

It should work on Linux, where there are no such restrictions.

Prof. Victor Lazzarini
Maynooth University
Ireland

Does work on Windows too.
The restriction also applies to -+rtmidi=virtual , as the virtual keyboard uses FLTK.

Daniel,
Sorry, I know almost nothing about macOS.
In my case 6.17 was easy - it is the ready-made version that is available in Ubuntu 22.04 package repository.

–Risto

ke 19.3.2025 klo 14.58 Richard Knight (richard@1bpm.net) kirjoitti:

Does work on Windows too.
The restriction also applies to -+rtmidi=virtual , as the virtual keyboard uses FLTK.

The problem is on MacOS. It’s not possible to use the FLTK opcodes as currently designed because of the way threading is implemented. The MacOS graphics library has restrictions to this. Without threading there’s no way to use the widgets interactively. This has been the case for over a decade, probably all the way to 6.00 or before.

It should work on Linux, where there are no such restrictions.

Prof. Victor Lazzarini
Maynooth University
Ireland

That version should be fine. I think it was around 6.18? I don’t remember the details, but I think it has something to do with how fltk implements threading. I think all of the fltk stuff has moved out of core Csound now.

So how old ?
In my case:

risto@siivet3:~$ csound --version
–Csound version 6.17 (double samples) 2022-04-08

I haven’t noticed any problems at least in this version.

–Risto

ke 19.3.2025 klo 12.08 Rory Walsh (rorywalsh@ear.ie) kirjoitti:

You’ll have to use an older version of Csound if you want FLTK widgets. As far as I know the fltk library is no longer compatible with Csound.

Hello Daniel,

I’m using csound 6.17 in Xubuntu 22.04. FLTK opcodes seem to work well still in this version run through CsoundQT.
I suppose there’s no big difference in 6.18.

Here’s a place for several examples of utilising FLTKs:

http://www.iainmccurdy.org/csound.html#FLTK

A kind of a starting-point .csd could be e.g. http://www.iainmccurdy.org/CsoundRealtimeExamples/FLTK/MIDI&FLTK_Combined.csd.
There are quite good comments in that file.
The key-points as I understand it are g-variables for communication between widgets and instruments but also FLrun at the end
the widgets to get the whole UI running.

–Risto

ti 18.3.2025 klo 22.47 Daniel (000012ee7ecf92ae-dmarc-request@listserv.heanet.ie) kirjoitti:

Hi,

I would like to be able to use the FLTK opcodes with the latest version of Csound. Is it possible? If so, could somebody please run me through the steps?

Many thanks,
Daniel

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

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

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