Csound Csound-dev Csound-tekno Search About

[Csnd] fltk, Fltabs, sensekey

Date2008-01-18 01:33
FromLou Cohen
Subject[Csnd] fltk, Fltabs, sensekey
fltk, Fltabs, sensekey Hi, everyone,

In the enclosed csd file, I have used fltk builtin to csound to set up a panel. I want to capture keystrokes using sensekey.

With the enclosed file, you will see that instrument 1, which is attempting to capture keystrokes, sees none of them.

If I comment out the FLtabs statement (and the matching FLtabsEnd statement), instrument 1 sees all keystrokes.

Does this mean that sensekey and FLtabs are incompatible? or is there a way I can use both?

all the best,
Lou Cohen

<CsoundSynthesizer>
<CsInstruments>


;***************************************************/
islidercolumn        init        5        ;x-coord of left edge of column of knobs, etc.
itabverticaloffset    init        20        ;space required at top of panel for tabs to be visible

imycinemadisplaywidth       init        1680
imycinemadisplayheight       init        1050
ipanelwidth        init        1000        ;default width of improvisor panel
ipanelheight        init        700        ;default height of improvisor panel
ipanelx            init    imycinemadisplaywidth - ipanelwidth ;default x position of left edge of panel
ipanely            init        20        ;default y position of top of panel
ipanelright        init        ipanelwidth
ipanelbottom        init        ipanelheight
igrpimprwidth           init            ipanelwidth
igrpimprheight        init        ipanelheight
igrpimpx        init        0
igrpimpy        init        itabverticaloffset

FLpanel        "Improviser", ipanelwidth, ipanelheight, ipanelx, ipanely, 0 ,1 ;***** start of container
FLscroll    ipanelwidth, ipanelheight, 0,0
FLtabs        ipanelwidth-50, ipanelheight, 5, 5
FLgroup        "improviser", igrpimprwidth, igrpimprheight, igrpimpx, igrpimpy, 1
FLgroupEnd
FLtabsEnd
FLscrollEnd
FLpanelEnd        ;***** end of container
FLrun            ;***** runs the widget thread, it is always required!

instr 1
kres, kkeydown    sensekey

printk2 kres
printk2 kkeydown,5
endin
</CsInstruments>
<CsScore>
f1 0 512 10 1

i1 0 8888 10000 100
</CsScore>

</CsoundSynthesizer>


---------------------------
Permanent email:           loucohen@jolc.net
Music and video:            http://ruccas.org/wiki.pl/Lou_Cohen
More music and video:   http://www.youtube.com/loucohen
Astronomy:                    http://www.jolc.net
----------------------------


Date2008-01-18 01:39
From"Oeyvind Brandtsegg"
Subject[Csnd] Re: fltk, Fltabs, sensekey
AttachmentsNone  

Date2008-01-18 12:04
FromLou Cohen
Subject[Csnd] Re: Re: fltk, Fltabs, sensekey
Re: [Csnd] Re: fltk, Fltabs, sensekey FLkeyIn doesn’t appear in my copy of the csound ref. manual. There is an opcode called FLkeyb, described as experimental, with no information regarding its parameters.

I’m using 5.04. Perhaps FLkeyIn was implemented in a later version of csound?

-Lou


On 1/17/08 20:39, "Oeyvind Brandtsegg     " <obrandts@gmail.com> wrote:

Maybe you can use FLkeyIn instead of sensekey ?
Never tried it myself, but it seems it should work.
Oeyvind

2008/1/18, Lou Cohen <loucohen@jolc.net>:
> Hi, everyone,
>
> In the enclosed csd file, I have used fltk builtin to csound to set up a
> panel. I want to capture keystrokes using sensekey.
>
> With the enclosed file, you will see that instrument 1, which is attempting
> to capture keystrokes, sees none of them.
>
> If I comment out the FLtabs statement (and the matching FLtabsEnd
> statement), instrument 1 sees all keystrokes.
>
> Does this mean that sensekey and FLtabs are incompatible? or is there a way
> I can use both?
>
> all the best,
> Lou Cohen
>
> <CsoundSynthesizer>
> <CsInstruments>
>
>
> ;***************************************************/
> islidercolumn        init        5        ;x-coord of left edge of column of
> knobs, etc.
> itabverticaloffset    init        20        ;space required at top of panel
> for tabs to be visible
>
> imycinemadisplaywidth       init        1680
> imycinemadisplayheight       init        1050
> ipanelwidth        init        1000        ;default width of improvisor
> panel
> ipanelheight        init        700        ;default height of improvisor
> panel
> ipanelx            init    imycinemadisplaywidth - ipanelwidth ;default x
> position of left edge of panel
> ipanely            init        20        ;default y position of top of panel
> ipanelright        init        ipanelwidth
> ipanelbottom        init        ipanelheight
> igrpimprwidth           init            ipanelwidth
> igrpimprheight        init        ipanelheight
> igrpimpx        init        0
> igrpimpy        init        itabverticaloffset
>
> FLpanel        "Improviser", ipanelwidth, ipanelheight, ipanelx, ipanely, 0
> ,1 ;***** start of container
> FLscroll    ipanelwidth, ipanelheight, 0,0
> FLtabs        ipanelwidth-50, ipanelheight, 5, 5
> FLgroup        "improviser", igrpimprwidth, igrpimprheight, igrpimpx,
> igrpimpy, 1
> FLgroupEnd
> FLtabsEnd
> FLscrollEnd
> FLpanelEnd        ;***** end of container
> FLrun            ;***** runs the widget thread, it is always required!
>
> instr 1
> kres, kkeydown    sensekey
>
> printk2 kres
> printk2 kkeydown,5
> endin
> </CsInstruments>
> <CsScore>
> f1 0 512 10 1
>
> i1 0 8888 10000 100
> </CsScore>
>
> </CsoundSynthesizer>
>
>
> ---------------------------
> Permanent email:           loucohen@jolc.net
> Music and video:
> http://ruccas.org/wiki.pl/Lou_Cohen
> More music and video:   http://www.youtube.com/loucohen
> Astronomy:                    http://www.jolc.net
> ----------------------------
>
>


Send bugs reports to this list.
To unsubscribe, send email sympa@lists.bath.ac.uk with body "unsubscribe csound"


---------------------------
Permanent email:           loucohen@jolc.net
Music and video:            http://ruccas.org/wiki.pl/Lou_Cohen
More music and video:   http://www.youtube.com/loucohen
Astronomy:                    http://www.jolc.net
----------------------------


Date2008-01-18 12:12
From"Oeyvind Brandtsegg"
Subject[Csnd] Re: Re: Re: fltk, Fltabs, sensekey
AttachmentsNone  

Date2008-01-18 13:44
FromLou Cohen
Subject[Csnd] FLkeyIn - was: Re: Re: Re: Re: fltk, Fltabs, sensekey
FLkeyIn - was: Re: [Csnd] Re: Re: Re: fltk, Fltabs, sensekey It works!!! many thanks! and thanks for the nice side-effect of bringing into the modern world (5.07)

-Lou

On 1/18/08 7:12, "Oeyvind Brandtsegg     " <obrandts@gmail.com> wrote:

Yes, New in 5.06.

2008/1/18, Lou Cohen <loucohen@jolc.net>:
> FLkeyIn doesn't appear in my copy of the csound ref. manual. There is an
> opcode called FLkeyb, described as experimental, with no information
> regarding its parameters.
>
> I'm using 5.04. Perhaps FLkeyIn was implemented in a later version of
> csound?
>
> -Lou
>
>
>
> On 1/17/08 20:39, "Oeyvind Brandtsegg     " <obrandts@gmail.com> wrote:
>
>
> Maybe you can use FLkeyIn instead of sensekey ?
> Never tried it myself, but it seems it should work.
> Oeyvind
>
> 2008/1/18, Lou Cohen <loucohen@jolc.net>:
> > Hi, everyone,
> >
> > In the enclosed csd file, I have used fltk builtin to csound to set up a
> > panel. I want to capture keystrokes using sensekey.
> >
> > With the enclosed file, you will see that instrument 1, which is
> attempting
> > to capture keystrokes, sees none of them.
> >
> > If I comment out the FLtabs statement (and the matching FLtabsEnd
> > statement), instrument 1 sees all keystrokes.
> >
> > Does this mean that sensekey and FLtabs are incompatible? or is there a
> way
> > I can use both?
> >
> > all the best,
> > Lou Cohen
> >
> > <CsoundSynthesizer>
> > <CsInstruments>
> >
> >
> > ;***************************************************/
> > islidercolumn        init        5        ;x-coord of left edge of column
> of
> > knobs, etc.
> > itabverticaloffset    init        20        ;space required at top of
> panel
> > for tabs to be visible
> >
> > imycinemadisplaywidth       init        1680
> > imycinemadisplayheight       init        1050
> > ipanelwidth        init        1000        ;default width of improvisor
> > panel
> > ipanelheight        init        700        ;default height of improvisor
> > panel
> > ipanelx            init    imycinemadisplaywidth - ipanelwidth ;default x
> > position of left edge of panel
> > ipanely            init        20        ;default y position of top of
> panel
> > ipanelright        init        ipanelwidth
> > ipanelbottom        init        ipanelheight
> > igrpimprwidth           init            ipanelwidth
> > igrpimprheight        init        ipanelheight
> > igrpimpx        init        0
> > igrpimpy        init        itabverticaloffset
> >
> > FLpanel        "Improviser", ipanelwidth, ipanelheight, ipanelx, ipanely,
> 0
> > ,1 ;***** start of container
> > FLscroll    ipanelwidth, ipanelheight, 0,0
> > FLtabs        ipanelwidth-50, ipanelheight, 5, 5
> > FLgroup        "improviser", igrpimprwidth, igrpimprheight, igrpimpx,
> > igrpimpy, 1
> > FLgroupEnd
> > FLtabsEnd
> > FLscrollEnd
> > FLpanelEnd        ;***** end of container
> > FLrun            ;***** runs the widget thread, it is always required!
> >
> > instr 1
> > kres, kkeydown    sensekey
> >
> > printk2 kres
> > printk2 kkeydown,5
> > endin
> > </CsInstruments>
> > <CsScore>
> > f1 0 512 10 1
> >
> > i1 0 8888 10000 100
> > </CsScore>
> >
> > </CsoundSynthesizer>
> >
> >
> > ---------------------------
> > Permanent email:           loucohen@jolc.net
> > Music and video:
> > http://ruccas.org/wiki.pl/Lou_Cohen
> > More music and video:   http://www.youtube.com/loucohen
> > Astronomy:                    http://www.jolc.net
> > ----------------------------
> >
> >
>
>
> Send bugs reports to this list.
> To unsubscribe, send email sympa@lists.bath.ac.uk with body "unsubscribe
> csound"
>
>
> ---------------------------
> Permanent email:           loucohen@jolc.net
> Music and video:
> http://ruccas.org/wiki.pl/Lou_Cohen
> More music and video:   http://www.youtube.com/loucohen
> Astronomy:                    http://www.jolc.net
> ----------------------------
>
>


Send bugs reports to this list.
To unsubscribe, send email sympa@lists.bath.ac.uk with body "unsubscribe csound"


---------------------------
Permanent email:           loucohen@jolc.net
Music and video:            http://ruccas.org/wiki.pl/Lou_Cohen
More music and video:   http://www.youtube.com/loucohen
Astronomy:                    http://www.jolc.net
----------------------------