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?
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:
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.
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?
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:
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.
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?
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
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.
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:
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.
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?