Csound Csound-dev Csound-tekno Search About

[Csnd] Fw: Current Viability of FLTK

Date2013-09-08 00:09
From"Art Hunkins"
Subject[Csnd] Fw: Current Viability of FLTK
I'd really like to hear from Linux and OSX users about whether FLTK can be 
counted on to work on your systems.

As Michael G. says (thanks, Mike), FLTK works fine from the command line in 
Windows (XP on).

If you'd like a simple FLTKTest .csd, I've included one below. It should 
display a small GUI with a Start/Stop button and a counter, which changes 
value each time you click on one of its arrows. (The initial value displayed 
is 5.) However, the new count only appears *on the Csound console output* 
when the FLbutton is turned on (a yellow light appears).

I'd much appreciate some reports from various Linux and OSX systems. TIA.

Art Hunkins





-odac -d




sr = 44100
kr = 2205
ksmps = 20
nchnls = 1

        FLpanel         "FLTK Test", 300, 80, 100, 100
gkb,i0 FLbutton "Start/Stop", 1, 0, 2, 100, 30, 30, 20, -1
gk1,i1 FLcount         "Counter", 0, 10, 1, 1, 2, 113, 30, 155, 20, -1
 FLsetVal_i 5, i1
        FLpanelEnd
        FLrun

 instr 1

knon trigger gkb, 0, 0
knoff trigger gkb, 1, 1
 schedkwhen knon, 0, 0, 2, 0, -1
 schedkwhen knoff, 0, 0, -2, 0, 0

 endin

        instr 2

        printk2 gk1

        endin




i1 0 3600

e





----- Original Message ----- 
From: "Art Hunkins" 
To: 
Sent: Friday, September 06, 2013 1:46 PM
Subject: Current Viability of FLTK


> I'd like advice as to the current viability of FLTK opcodes on reasonably 
> current versions of the three major platforms.
>
> The last time I heard there were lingering (unresolved?) issues with Macs.
>
> Are any issues limited to specific opcodes, or do they render FLTK useless 
> on a particular OS?
>
> Art Hunkins 


Date2013-09-08 02:34
FromDave Phillips
SubjectRe: [Csnd] Fw: Current Viability of FLTK
On 09/07/2013 07:09 PM, Art Hunkins wrote:
> I'd really like to hear from Linux and OSX users about whether FLTK 
> can be counted on to work on your systems.
>
> As Michael G. says (thanks, Mike), FLTK works fine from the command 
> line in Windows (XP on).
>
> If you'd like a simple FLTKTest .csd, I've included one below. It 
> should display a small GUI with a Start/Stop button and a counter, 
> which changes value each time you click on one of its arrows. (The 
> initial value displayed is 5.) However, the new count only appears *on 
> the Csound console output* when the FLbutton is turned on (a yellow 
> light appears).
>
> I'd much appreciate some reports from various Linux and OSX systems. TIA.

Hi Art,

Not using anything FLTK-ish here these days, but your CSD ran and 
behaved perfectly under Cs6, my build on Ubuntu Linux (i586) 12.04.

HTH,

dp


Date2013-09-08 03:59
FromAndres Cabrera
SubjectRe: [Csnd] Fw: Current Viability of FLTK
Hi Art,

I'd be surprised if FLTK didn't work on all platforms from the command line. But it has problems on Windows and OS X (at least) when run inside CsoundQt because of threading issues. The csds should run fine even from CsoundQt if the preferences are set to run FLTK csds in the external terminal (which is the default).

Cheers,
Andrés


On Sat, Sep 7, 2013 at 4:09 PM, Art Hunkins <abhunkin@uncg.edu> wrote:
I'd really like to hear from Linux and OSX users about whether FLTK can be counted on to work on your systems.

As Michael G. says (thanks, Mike), FLTK works fine from the command line in Windows (XP on).

If you'd like a simple FLTKTest .csd, I've included one below. It should display a small GUI with a Start/Stop button and a counter, which changes value each time you click on one of its arrows. (The initial value displayed is 5.) However, the new count only appears *on the Csound console output* when the FLbutton is turned on (a yellow light appears).

I'd much appreciate some reports from various Linux and OSX systems. TIA.

Art Hunkins


<CsoundSynthesizer>
<CsOptions>

-odac -d

</CsOptions>
<CsInstruments>

sr = 44100
kr = 2205
ksmps = 20
nchnls = 1

       FLpanel         "FLTK Test", 300, 80, 100, 100
gkb,i0 FLbutton "Start/Stop", 1, 0, 2, 100, 30, 30, 20, -1
gk1,i1 FLcount         "Counter", 0, 10, 1, 1, 2, 113, 30, 155, 20, -1
FLsetVal_i 5, i1
       FLpanelEnd
       FLrun

instr 1

knon trigger gkb, 0, 0
knoff trigger gkb, 1, 1
schedkwhen knon, 0, 0, 2, 0, -1
schedkwhen knoff, 0, 0, -2, 0, 0

endin

       instr 2

       printk2 gk1

       endin

</CsInstruments>
<CsScore>

i1 0 3600

e

</CsScore>
</CsoundSynthesizer>


----- Original Message ----- From: "Art Hunkins" <abhunkin@uncg.edu>
To: <csound@lists.bath.ac.uk>
Sent: Friday, September 06, 2013 1:46 PM
Subject: Current Viability of FLTK



I'd like advice as to the current viability of FLTK opcodes on reasonably current versions of the three major platforms.

The last time I heard there were lingering (unresolved?) issues with Macs.

Are any issues limited to specific opcodes, or do they render FLTK useless on a particular OS?

Art Hunkins



Send bugs reports to the Sourceforge bug trackers
csound6:
           https://sourceforge.net/p/csound/tickets/
csound5:
           https://sourceforge.net/p/csound/bugs/
Discussions of bugs and features can be posted here
To unsubscribe, send email sympa@lists.bath.ac.uk with body "unsubscribe csound"




Date2013-09-08 07:26
FromaaB
SubjectRe: [Csnd] Fw: Current Viability of FLTK
AttachmentsNone  

Date2013-09-08 08:18
FromIain McCurdy
SubjectRE: [Csnd] Fw: Current Viability of FLTK
Hi Art,

FLTK works on all platforms. Aside from issues when using it with some frontends, the only real issue when run from the command line is the possibility for FLTK interaction to interrupt realtime audio. This isn't generally a problem on Windows or Linux but is a real problem on OSX. For this reason FLTK widgets cannot be recommended for realtime performance on OSX. The chances of audio interruption are increased if larger interfaces with greater numbers of widgets are created (your simple test example will be unlikely to cause problems), or if widgets are updated at a high rate from within the orchestra (for example by using FLsetVal or FLprintk2).

FLTK is retained in Csound for backwards compatibility but is also useful for simple cross-platform, front-end independent demonstrations and for people who want some GUI from the command line. For critical realtime performance work where a lot of interaction with widgets is expected, CsoundQt, Cabbage or Blue might be preferrable. It is unliklely that FLTK within Csound will be expanded or improved upon as the developer who added most of it has left the project.

Iain

> From: abhunkin@uncg.edu
> To: csound@lists.bath.ac.uk
> Date: Sat, 7 Sep 2013 19:09:09 -0400
> Subject: [Csnd] Fw: Current Viability of FLTK
>
> I'd really like to hear from Linux and OSX users about whether FLTK can be
> counted on to work on your systems.
>
> As Michael G. says (thanks, Mike), FLTK works fine from the command line in
> Windows (XP on).
>
> If you'd like a simple FLTKTest .csd, I've included one below. It should
> display a small GUI with a Start/Stop button and a counter, which changes
> value each time you click on one of its arrows. (The initial value displayed
> is 5.) However, the new count only appears *on the Csound console output*
> when the FLbutton is turned on (a yellow light appears).
>
> I'd much appreciate some reports from various Linux and OSX systems. TIA.
>
> Art Hunkins
>
>
> <CsoundSynthesizer>
> <CsOptions>
>
> -odac -d
>
> </CsOptions>
> <CsInstruments>
>
> sr = 44100
> kr = 2205
> ksmps = 20
> nchnls = 1
>
> FLpanel "FLTK Test", 300, 80, 100, 100
> gkb,i0 FLbutton "Start/Stop", 1, 0, 2, 100, 30, 30, 20, -1
> gk1,i1 FLcount "Counter", 0, 10, 1, 1, 2, 113, 30, 155, 20, -1
> FLsetVal_i 5, i1
> FLpanelEnd
> FLrun
>
> instr 1
>
> knon trigger gkb, 0, 0
> knoff trigger gkb, 1, 1
> schedkwhen knon, 0, 0, 2, 0, -1
> schedkwhen knoff, 0, 0, -2, 0, 0
>
> endin
>
> instr 2
>
> printk2 gk1
>
> endin
>
> </CsInstruments>
> <CsScore>
>
> i1 0 3600
>
> e
>
> </CsScore>
> </CsoundSynthesizer>
>
>
> ----- Original Message -----
> From: "Art Hunkins" <abhunkin@uncg.edu>
> To: <csound@lists.bath.ac.uk>
> Sent: Friday, September 06, 2013 1:46 PM
> Subject: Current Viability of FLTK
>
>
> > I'd like advice as to the current viability of FLTK opcodes on reasonably
> > current versions of the three major platforms.
> >
> > The last time I heard there were lingering (unresolved?) issues with Macs.
> >
> > Are any issues limited to specific opcodes, or do they render FLTK useless
> > on a particular OS?
> >
> > Art Hunkins
>
>
>
> Send bugs reports to the Sourceforge bug trackers
> csound6:
> https://sourceforge.net/p/csound/tickets/
> csound5:
> https://sourceforge.net/p/csound/bugs/
> Discussions of bugs and features can be posted here
> To unsubscribe, send email sympa@lists.bath.ac.uk with body "unsubscribe csound"
>
>