Csound Csound-dev Csound-tekno Search About

[Csnd] Fw: Current Viability of FLTK

Date2013-09-09 20:38
From"Art Hunkins"
Subject[Csnd] Fw: Current Viability of FLTK
AttachmentsFLTKTest.csd  
I'm running into a roadblock trying to use an FLTK GUI along with MIDI in. 
I'm wondering if the two are perhaps incompatible, at least with Csound6 - 
latest Windows installer.

The attached FLTKTest.csd tells it all: the addition of -M0 to CsOptions 
(whether a MIDI device is attached or not) causes the GUI data (which 
displays correctly) not to be passed to the Csound instruments, it seems.

Note the fact that with -odac, whether or not an -M flag is included, 
console output shows a virtual MIDI keyboard being selected - which seems 
odd. Perhaps indicating the source of the problem?

I'd also like to know whether this conflict occurs on other platforms, or is 
a "Windows issue."

Thanks for all enlightenment.

Art Hunkins

----- Original Message ----- 
From: "Art Hunkins" 
To: 
Sent: Saturday, September 07, 2013 7:09 PM
Subject: 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-09 20:47
FromVictor Lazzarini
SubjectRe: [Csnd] Current Viability of FLTK
Probably a Windows issue, because the GUI works on OSX with -M0, and Csound responds to it.
On 9 Sep 2013, at 20:38, Art Hunkins  wrote:

> I'm running into a roadblock trying to use an FLTK GUI along with MIDI in. I'm wondering if the two are perhaps incompatible, at least with Csound6 - latest Windows installer.
> 
> The attached FLTKTest.csd tells it all: the addition of -M0 to CsOptions (whether a MIDI device is attached or not) causes the GUI data (which displays correctly) not to be passed to the Csound instruments, it seems.
> 
> Note the fact that with -odac, whether or not an -M flag is included, console output shows a virtual MIDI keyboard being selected - which seems odd. Perhaps indicating the source of the problem?
> 
> I'd also like to know whether this conflict occurs on other platforms, or is a "Windows issue."
> 
> Thanks for all enlightenment.
> 
> Art Hunkins
> 
> ----- Original Message ----- From: "Art Hunkins" 
> To: 
> Sent: Saturday, September 07, 2013 7:09 PM
> Subject: 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
> 
> 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-09 22:26
FromDave Phillips
SubjectRe: [Csnd] Fw: Current Viability of FLTK
On 09/09/2013 03:38 PM, Art Hunkins wrote:
> I'm running into a roadblock trying to use an FLTK GUI along with MIDI 
> in. I'm wondering if the two are perhaps incompatible, at least with 
> Csound6 - latest Windows installer.
>
> The attached FLTKTest.csd tells it all: the addition of -M0 to 
> CsOptions (whether a MIDI device is attached or not) causes the GUI 
> data (which displays correctly) not to be passed to the Csound 
> instruments, it seems.
>
> Note the fact that with -odac, whether or not an -M flag is included, 
> console output shows a virtual MIDI keyboard being selected - which 
> seems odd. Perhaps indicating the source of the problem?
>
> I'd also like to know whether this conflict occurs on other platforms, 
> or is a "Windows issue."
>
> Thanks for all enlightenment.
>
> Art Hunkins

Hi Art,

It crashes here immediately with -M0, -M1, and apparently any other 
combination of -Mnum up to -M9.

-Ma has no effect, the example works fine then.

Cs6, Ubuntu 12.04, 32-bit.

HTH,

dp

>
> ----- Original Message ----- From: "Art Hunkins" 
> To: 
> Sent: Saturday, September 07, 2013 7:09 PM
> Subject: 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
>>
>
> 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"
>
>