Csound Csound-dev Csound-tekno Search About

Re: [Csnd] Current Viability of FLTK

Date2013-09-13 02:41
From"Art Hunkins"
SubjectRe: [Csnd] Current Viability of FLTK
Mike,
 
Just a problem with MIDI controllers (I'm not using any notes).
 
On both my XP computers FLTK and MIDI seem incompatible. (In addition to deleting MIDIYoke, I also uninstalled MIDIOx. No difference.)
 
However, a couple of hours ago I went to my (very knowledgeable) neighbor and installed Csound6 on his Windows 7 machine, just like I had on mine. *Everything worked perfectly and as expected* (and just like yours). Go figure.
 
So - sorry for having bothered you. I guess I'll have to upgrade, get a refurb Win 7 desktop, or whatever for testing. (It's probably overdue anyway.) I hate to put anything out without having successfully tested it myself.
 
Art Hunkins
----- Original Message -----
To: Csound
Sent: Thursday, September 12, 2013 7:42 PM
Subject: Re: [Csnd] Current Viability of FLTK

I don't have a hardware MIDI controller except for a Yamaha electronic wind instrument controller. Do you have another example that will work with the EWI and that will suit your purposes? 

I can play some of my own FLTK pieces with the EWI no problem. The Drone-IV example in the AndroidCsound6Examples zip on SourceForge can be played with MIDI by adding -M0 --midi-key=4 --midi-velocity=5 to the CsOptions.

Is it specifically MIDI controllers that are the problem or MIDI note messages also?

Regards,
Mike


===========================
Michael Gogins
Irreducible Productions
http://michaelgogins.tumblr.com
Michael dot Gogins at gmail dot com


On Thu, Sep 12, 2013 at 11:58 AM, Art Hunkins <abhunkin@uncg.edu> wrote:
Mike,
 
Thanks for testing.
 
I'm mystified as to why our systems are getting different results. Obviously Csound is breaking down for me when MIDI devices are queried. Your query is successful; mine never exits, and apparently hangs Csound (though the FLTK display/thread goes merrily on).
 
It occurred to me that maybe my multiple MIDI devices (I'd about 10 of them) were the problem - but no, after uninstalling all of the installed MIDI drivers (including MIDIYoke and Automaps) the problem remains.
 
So, please just run the attached .csd with a MIDI device attached. You should get sound by raising the first slider/knob. (If you have more than one MIDI device in your system, you'll need to modify -Mxx of course.) The .csd should work even if you have only a single Modulation controller or an Overall Volume knob/slider. For the former, set Controller #1 (on the GUI) to 1; for the latter, to 7.
 
If it works *for you* on Windows, I'll be content. If not, we can investigate further.
 
Thanks for your help with this.
 
Art Hunkins
----- Original Message -----
To: Csound
Sent: Thursday, September 12, 2013 8:22 AM
Subject: Re: [Csnd] Current Viability of FLTK

At work I get the following. If I do not use -M then it works properly. Note: At work I do not have any MIDI device attached. At home I have a professional level USB MIDI interface. 

C:\Program Files (x86)\Csound6\bin>csound FLTKTest.csd
virtual_keyboard real time MIDI plugin for Csound
0dBFS level = 32768.0
Csound version 6.00.1 (double samples) Sep  4 2013
libsndfile-1.0.25
UnifiedCSD:  FLTKTest.csd
STARTING FILE
Creating options
Creating orchestra
Creating score
rtaudio: PortAudio module enabled ...
using callback interface
rtmidi: PortMIDI module enabled
Elapsed time at end of orchestra compile: real: 0.011s, CPU: 0.011s
sorting score ...
        ... done
Elapsed time at end of score sort: real: 0.013s, CPU: 0.013s
Csound version 6.00.1 (double samples) Sep  4 2013
midi channel 1 using instr 1
midi channel 2 using instr 2
midi channel 3 using instr 1
midi channel 4 using instr 1
midi channel 5 using instr 1
midi channel 6 using instr 1
midi channel 7 using instr 1
midi channel 8 using instr 1
midi channel 9 using instr 1
midi channel 10 using instr 1
midi channel 11 using instr 1
midi channel 12 using instr 1
midi channel 13 using instr 1
midi channel 14 using instr 1
midi channel 15 using instr 1
midi channel 16 using instr 1
displays suppressed
0dBFS level = 32768.0
WARNING: (fl_setWidgetValuei): not fully implemented yet; exp=1
 *** PortMIDI: error: device number is out of range
 *** error opening MIDI in device: -1 (Unknown MIDI error)
inactive allocs returned to freespace
end of score.              overall amps:      0.0
           overall samples out of range:        0
1 errors in performance
Elapsed time at end of performance: real: 0.055s, CPU: 0.056s
end of widget thread

C:\Program Files (x86)\Csound6\bin>




===========================
Michael Gogins
Irreducible Productions
http://michaelgogins.tumblr.com
Michael dot Gogins at gmail dot com


On Thu, Sep 12, 2013 at 7:28 AM, Michael Gogins <michael.gogins@gmail.com> wrote:

I will repeat my test at work from the SourceForge installer. The current SourceForge installer dated 9/4/2013 is the same as the latest one on my machine.

Regards,

Mike

On Sep 11, 2013 11:37 PM, "Art Hunkins" <abhunkin@uncg.edu> wrote:
Mike,
 
Your console output is different from mine, which I copy below. (Note the autoenable of the virtual MIDI keyboard.) This is the latest Windows installer I can locate on Sourceforge.
 
Yours would seem to be working properly. Can you post it to Sourceforge so it can be publicly available, or put it somewhere where I can get it and make sure it works in my MIDI context?
 
Thanks much -
 
Art Hunkins
 
 
C:\Program Files\Csound6\bin>csound FLTKTest.csd
virtual_keyboard real time MIDI plugin for Csound
0dBFS level = 32768.0
Csound version 6.00.1 (double samples) Sep  4 2013
libsndfile-1.0.25
UnifiedCSD:  FLTKTest.csd
STARTING FILE
Creating options
Creating orchestra
Creating score
rtaudio: PortAudio module enabled ...
using callback interface
rtmidi: PortMIDI module enabled
Elapsed time at end of orchestra compile: real: 0.005s, CPU: 0.0
sorting score ...
        ... done
Elapsed time at end of score sort: real: 0.005s, CPU: 0.000s
Csound version 6.00.1 (double samples) Sep  4 2013
midi channel 1 using instr 1
midi channel 2 using instr 2
midi channel 3 using instr 1
midi channel 4 using instr 1
midi channel 5 using instr 1
midi channel 6 using instr 1
midi channel 7 using instr 1
midi channel 8 using instr 1
midi channel 9 using instr 1
midi channel 10 using instr 1
midi channel 11 using instr 1
midi channel 12 using instr 1
midi channel 13 using instr 1
midi channel 14 using instr 1
midi channel 15 using instr 1
midi channel 16 using instr 1
displays suppressed
0dBFS level = 32768.0
WARNING: (fl_setWidgetValuei): not fully implemented yet; exp=1
Csound tidy up: Interrupt
^C
C:\Program Files\Csound6\bin>
----- Original Message -----
To: Csound
Sent: Wednesday, September 11, 2013 9:07 PM
Subject: Re: [Csnd] Current Viability of FLTK

This works for me just fine in the develop branch, and also with the binaries from my latest WIndows installer, which may be a little more recent the one on SourceForge for 6.00.1, output shown below:

C:\Program Files (x86)\Csound6\bin>csound FLTKTest.csd
virtual_keyboard real time MIDI plugin for Csound
0dBFS level = 32768.0
Csound version 6.00.1 (double samples) Sep  4 2013
libsndfile-1.0.25
UnifiedCSD:  FLTKTest.csd
STARTING FILE
Creating options
Creating orchestra
Creating score
rtaudio: PortAudio module enabled ...
using callback interface
rtmidi: PortMIDI module enabled
Elapsed time at end of orchestra compile: real: 0.014s, CPU: 0.014s
sorting score ...
        ... done
Elapsed time at end of score sort: real: 0.018s, CPU: 0.018s
Csound version 6.00.1 (double samples) Sep  4 2013
midi channel 1 using instr 1
midi channel 2 using instr 2
midi channel 3 using instr 1
midi channel 4 using instr 1
midi channel 5 using instr 1
midi channel 6 using instr 1
midi channel 7 using instr 1
midi channel 8 using instr 1
midi channel 9 using instr 1
midi channel 10 using instr 1
midi channel 11 using instr 1
midi channel 12 using instr 1
midi channel 13 using instr 1
midi channel 14 using instr 1
midi channel 15 using instr 1
midi channel 16 using instr 1
displays suppressed
0dBFS level = 32768.0
WARNING: (fl_setWidgetValuei): not fully implemented yet; exp=1
0: 4- Scarlett 2i4 USB (portmidi)
PortMIDI: Activated input device 0: '4- Scarlett 2i4 USB' (MMSystem)
orch now loaded
audio buffered in 4096 sample-frame blocks
PortAudio V19-devel (built Aug  3 2013 12:54:43)
   0: dac0 (Microsoft Sound Mapper - Output)
   1: dac1 (Line Out (4- Scarlett 2i4 USB))
   2: dac2 (Speakers (VIA High Definition A)
   3: dac3 (SPDIF Interface (TX0) (VIA High)
   4: dac4 (Primary Sound Driver)
   5: dac5 (Line Out (4- Scarlett 2i4 USB))
   6: dac6 (Speakers (VIA High Definition Audio))
   7: dac7 (SPDIF Interface (TX0) (VIA High Definition Audio))
   8: dac8 (Focusrite USB 2.0 Audio Driver)
PortAudio: selected output device 'Line Out (4- Scarlett 2i4 USB)'
writing 4096 sample blks of 64-bit floats to dac
SECTION 1:
new alloc for instr 1:
  rtevent:         T  2.601 TT  2.601 M:      0.0
new alloc for instr 2:
 i2     5.00000
 i2     6.00000
 i2     7.00000
 i2     8.00000
 i2     9.00000
 i2    10.00000
 i2     9.00000
 i2     8.00000
 i2     7.00000
 i2     6.00000
 i2     5.00000
 i2     4.00000
 i2     3.00000
 i2     2.00000
 i2     1.00000
 i2     0.00000
end of widget thread
  rtevent:         T 10.681 TT 10.681 M:      0.0
Score finished in csoundPerform().
inactive allocs returned to freespace
end of score.              overall amps:      0.0
           overall samples out of range:        0
0 errors in performance
Elapsed time at end of performance: real: 10.834s, CPU: 10.834s
closing device
115 4096 sample blks of 64-bit floats written to dac

C:\Program Files (x86)\Csound6\bin>



===========================
Michael Gogins
Irreducible Productions
http://michaelgogins.tumblr.com
Michael dot Gogins at gmail dot com


On Mon, Sep 9, 2013 at 6:22 PM, Art Hunkins <abhunkin@uncg.edu> wrote:
Mike G.,

Concerning FLTK and MIDI in concurrently: I've tested some more with earlier Windows installers, and these work fine. I guess that suggests a problem with the 6.0+ installer.

Distributions tested: 5.06 floats, 5.18D and 5.19D.

5.06 closed out its console run fine; 5.18 and 5.19 required one CTRL-C to shut down the console after closing the FTLK GUI.

Art Hunkins

----- Original Message ----- From: "Victor Lazzarini" <Victor.Lazzarini@nuim.ie>
To: <csound@lists.bath.ac.uk>

Sent: Monday, September 09, 2013 3:47 PM
Subject: Re: [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 <abhunkin@uncg.edu> 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" <abhunkin@uncg.edu>
To: <csound@lists.bath.ac.uk>
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


<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"


<FLTKTest.csd>



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"


=


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"