Csound Csound-dev Csound-tekno Search About

[Csnd] Using FLTK opcodes with Csound 6.18

Date2025-03-18 20:37
FromDaniel <000012ee7ecf92ae-dmarc-request@LISTSERV.HEANET.IE>
Subject[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
        https://github.com/csound/csound/issues
Discussions of bugs and features can be posted here

Date2025-03-19 10:02
FromRisto Kuusisto
SubjectRe: [Csnd] Using FLTK opcodes with Csound 6.18
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:


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

Date2025-03-19 10:11
FromRory Walsh
SubjectRe: [Csnd] Using FLTK opcodes with Csound 6.18
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. 

On Wed, 19 Mar 2025 at 10:03, Risto Kuusisto <rjzkuusisto@gmail.com> wrote:
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:


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

Date2025-03-19 10:14
FromRisto Kuusisto
SubjectRe: [Csnd] Using FLTK opcodes with Csound 6.18
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. 

On Wed, 19 Mar 2025 at 10:03, Risto Kuusisto <rjzkuusisto@gmail.com> wrote:
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:


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

Date2025-03-19 10:30
FromRory Walsh
SubjectRe: [Csnd] Using FLTK opcodes with Csound 6.18
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.

On Wed, 19 Mar 2025 at 10:15, Risto Kuusisto <rjzkuusisto@gmail.com> wrote:
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. 

On Wed, 19 Mar 2025 at 10:03, Risto Kuusisto <rjzkuusisto@gmail.com> wrote:
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:


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

Date2025-03-19 12:04
Fromvlz
SubjectRe: [Csnd] Using FLTK opcodes with Csound 6.18
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

On 19 Mar 2025, at 10:26, Rory Walsh <rorywalsh@ear.ie> wrote:


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.

On Wed, 19 Mar 2025 at 10:15, Risto Kuusisto <rjzkuusisto@gmail.com> wrote:
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. 

On Wed, 19 Mar 2025 at 10:03, Risto Kuusisto <rjzkuusisto@gmail.com> wrote:
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:


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

Date2025-03-19 12:56
FromRichard Knight
SubjectRe: [Csnd] Using FLTK opcodes with Csound 6.18

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

 


On 2025-03-19 12:04, vlz wrote:

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

On 19 Mar 2025, at 10:26, Rory Walsh <rorywalsh@ear.ie> wrote:

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.

On Wed, 19 Mar 2025 at 10:15, Risto Kuusisto <rjzkuusisto@gmail.com> wrote:
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. 

On Wed, 19 Mar 2025 at 10:03, Risto Kuusisto <rjzkuusisto@gmail.com> wrote:
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:
 
 
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

Date2025-03-19 13:43
FromRisto Kuusisto
SubjectRe: [Csnd] Using FLTK opcodes with Csound 6.18
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.

 


On 2025-03-19 12:04, vlz wrote:

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

On 19 Mar 2025, at 10:26, Rory Walsh <rorywalsh@ear.ie> wrote:

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.

On Wed, 19 Mar 2025 at 10:15, Risto Kuusisto <rjzkuusisto@gmail.com> wrote:
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. 

On Wed, 19 Mar 2025 at 10:03, Risto Kuusisto <rjzkuusisto@gmail.com> wrote:
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:
 
 
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