Csound Csound-dev Csound-tekno Search About

Re: [Cs-dev] sensekey

Date2006-12-01 14:34
From"Art Hunkins"
SubjectRe: [Cs-dev] sensekey
Thanks, Jonathan.

Your example works fine in Windows. My problem was simply that I was trying
to use sensekey directly (no FLTK) within Lettuce. This apparently is the
only thing that "doesn't work in Windows."

Art Hunkins

----- Original Message ----- 
From: "Jonathan Murphy" 
To: "Art Hunkins" 
Cc: "Developer discussions" 
Sent: Thursday, November 30, 2006 6:44 PM
Subject: Re: [Cs-dev] sensekey



Yes, it does. It says:

"If the ikbdcapture flag is set, the window captures keyboard events,
 and sends them to all sensekey. This flag modifies the behavior of
 sensekey, and makes it receive events from the FLTK window instead of
 stdin."

Here is an example, the keys should light up the buttons corresponding
to their ASCII value. Hope this helps (and that it's not really broken
under windows).

Jonathan.









  sr     =  48000
  ksmps     =  64
  nchnls    =  2


; ikbdcapture flag set to 1
  ikey     init      1

    FLpanel   "sensekey", 740, 340, 100, 250, 2, ikey
  gkasc, giasc FLbutBank 2, 16, 8, 700, 300, 20, 20, -1
    FLpanelEnd
    FLrun

    instr 1

  kkey     sensekey
  kprint    changed   kkey
    FLsetVal  kprint, kkey, giasc

    endin




i1 0 60
e





"Art Hunkins"  writes:

> Andres,
>
> I'm afraid I still don't "get it."
>
> FLpanel doesn't reference a variable named ikbdcapture; nor does a search
> for that variable come up with anything in the Csound5 help file. Where is
> this variable explained?
>
> I don't suppose you are referring to FLvalue, and passing it an idisp
value
> through ihandle (I think this output has to be from another widget, in any
> case).
>
> Also, does this mean that unless you are using FLTK widgets (I'm currently
> using only Lettuce which is not FLTK) that sensekey is not available (in
> Windows)?
>
> I'd surely like to explore sensekey as a MIDI control substitute in some
> realtime settings - particularly as event triggers. In this context, an
> ASCII keyboard makes a lot more sense than a MIDI keyboard (except for
> button output).
>
> Art Hunkins
>
> ----- Original Message ----- 
> From: "Andres Cabrera" 
> To: "Art Hunkins" ; "Developer discussions"
> 
> Sent: Thursday, November 30, 2006 11:59 AM
> Subject: Re: [Cs-dev] sensekey
>
>
> Hi Art,
> If you create an FLpanel, and set the ikbdcapture flag to 1, this
> FLwindow will capture keyboard events through sensekey.
> Diffamator uses this.
>
> Cheers,
> Andres
>
>
> Art Hunkins wrote:
>> Andres,
>>
>> Regarding sensekey: I only tried the example in the Csound5 help file.
>>
>> Where is Istvan's FLpanel version located? (I'll try it, on WinME as I
did
>> the other.)
>>
>> Art Hunkins
>>
>> ----- Original Message ----- 
>> From: "Andres Cabrera" 
>> To: "Art Hunkins" ; "Developer discussions"
>> 
>> Sent: Thursday, November 30, 2006 9:57 AM
>> Subject: Re: [Cs-dev] Is there a virtual midi controller opcode, or it
> needs
>> to be coded?
>>
>>
>> Hi Art,
>>
>>> Also, in the example printout for sensekey, what in the *world* does
that
>>> large number refer to? Surely not the ASCII value for "q"!
>>>
>> Thanks, changed. q gives 113.
>> However, does sensekey not work even if you use the FLpanel version
>> Istvan did?
>>
>>> The "out" at the bottom of the code example should be "outo".
>>>
>> Fixed, thanks.
>>
>>
>> Cheers,
>> Andrés
>>
>>
>> Art Hunkins wrote:
>>
>>> Andres,
>>>
>>> I can attest that sensekey still does not work in Windows.
>>>
>>> The example, when run, given does output a -1 as expected. However, when
>>>
>> you
>>
>>> press "q" on the ASCII keyboard, it just prints "q" to the screen (as it
>>> normally would).
>>>
>>> Also, in the example printout for sensekey, what in the *world* does
that
>>> large number refer to? Surely not the ASCII value for "q"!
>>>
>>> Art Hunkins
>>>
>>> ----- Original Message ----- 
>>> From: "Andres Cabrera" 
>>> To: "Developer discussions" 
>>> Sent: Wednesday, November 29, 2006 9:08 AM
>>> Subject: Re: [Cs-dev] Is there a virtual midi controller opcode, or it
>>>
>> needs
>>
>>> to be coded?
>>>
>>>
>>> Hi Robson,
>>> If you want to use the keyboard for input, you might want to have a look
>>> at the sensekey opcode.
>>>
>>>
>>> Cheers,
>>> Andrés
>>>
>>> Robson Cozendey wrote:
>>>
>>>
>>>> Hi Steven,
>>>>
>>>> Its in your plans in the future to allow the Virtual Midi Keyboard to
>>>> assign different keystrokes to MIDI Values, defined by the user?
>>>> I´m saying that because, if someone wants to use the keyboard like a
>>>> drumkit (like me), it would be nicer to use the numeric keypad for it,
>>>> instead of the default piano-like setting :)
>>>>
>>>> thx in advance,
>>>> robson
>>>>
>>>>
>>>> On 11/25/06, *Robson Cozendey* >>> > wrote:
>>>>
>>>>     Ok, I could read it in the tagged way :-)
>>>>     Now I´m moving to the general list, thanks for the good news!
>>>>
>>>>
>>>>     On 11/25/06, *Robson Cozendey* >>>     > wrote:
>>>>
>>>>         Thank you, Steven!
>>>>
>>>>         I downloaded the XML manual page, but it´s not being
>>>>         recognized by Internet Explorer. Is it expected, should I get
>>>>         another browser to work?
>>>>
>>>>         thx again,
>>>>         robson
>>>>
>>>>         ps: I know that this discussion is going away of the dev
>>>>         purpose... as soon as possible, I will move it to the general
>>>>         list :-)
>>>>
>>>>
>>>>         On 11/25/06, *Steven Yi* >>>         > wrote:
>>>>
>>>>             Hi Robson,
>>>>
>>>>             Yes, the virtual keyboard is in CVS and also was released
>>>>             in 5.04.
>>>>             There is a manual entry but it wasn't done until after
>>>>             5.04 was
>>>>             released, so you have to get it from CVS.  (You can see
>>>>             the xml here:
>>>>
>>>>
>>>>
>>>>
>>
>
http://csound.cvs.sourceforge.net/csound/manual/midi/virtual.xml?revision=1.2&view=markup
>>
>>>
>>
>
>
>>> .2&view=markup>
>>>
>>>
>>>>             and image here:
>>>>
>>>>
>>>>
>>>>
>>
>
http://csound.cvs.sourceforge.net/csound/manual/images/virtualkeyboard.png?revision=1.1&view=markup
>>
>>>
>>
>
>
>>> revision=1.1&view=markup>
>>>
>>>
>>>>             steven
>>>>
>>>>
>>>>             On 11/25/06, Robson Cozendey <
>>>>             robson.cozendey.rj@gmail.com
>>>>             > wrote:
>>>>             >
>>>>             > Hello everyone,
>>>>             >
>>>>             > Thanks for the help on building CSound, in the other
>>>>             topic :)
>>>>             >
>>>>             > One of the reasons I entered the list, is that I did not
>>>>             found an opcode
>>>>             > with the functionality I needed, so I wondered that I
>>>>             would need to code it,
>>>>             > so here I am.
>>>>             >
>>>>             > The opcode I need and didn´t found was a virtual midi
>>>>             controller, that would
>>>>             > turn the PC keyboard into a midi controller, and each
>>>>             keystroke would send a
>>>>             > midi message to CSound.
>>>>             >
>>>>             > But before starting it, I would like to know if I didn´t
>>>>             missed something,
>>>>             > maybe already exists such an opcode, and I would not need
>>>>             to re-invent the
>>>>             > wheel
>>>>             >
>>>>             > I´m saying that because I read (in the Steven Yi deferred
>>>>             plug-in topic)
>>>>             > that he was working on some sort of a virtual keyboard
>>>>             driver, so maybe
>>>>             > somewhere inside CSound there is such a functionality
>>>>             already. I would be
>>>>             > glad to find that is such a case
>>>>             > Otherwise, I would start my homework asap...
>>>>             >
>>>>             > thanks in advance,
>>>>             > robson
>>>>
>>>>
>>>>
>>>
>>>
>>>
>>>
>>>
>>>
>>>
>>>
>>>
>>>
>>>
>>
>
 > -------------------------------------------------------------------------
>>
>>>>             > Take Surveys. Earn Cash. Influence the Future of IT
>>>>             > Join SourceForge.net's Techsay panel and you'll get the
>>>>             chance to share your
>>>>             > opinions on IT & business topics through brief surveys -
>>>>             and earn cash
>>>>             >
>>>>
>>>>
>>>
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
>>>
>>>
>>>
>>
>

>>
>>>>             >
>>>>             > _______________________________________________
>>>>             > Csound-devel mailing list
>>>>             > Csound-devel@lists.sourceforge.net
>>>>             
>>>>             > https://lists.sourceforge.net/lists/listinfo/csound-devel
>>>>             
>>>>             >
>>>>             >
>>>>             >
>>>>
>>>>             -----------------------------------------------------------
-
> -
>>>>
>> -
>>
>>> -----------
>>>
>>>
>>>>             Take Surveys. Earn Cash. Influence the Future of IT
>>>>             Join SourceForge.net's Techsay panel and you'll get the
>>>>             chance to share your
>>>>             opinions on IT & business topics through brief surveys -
>>>>             and earn cash
>>>>
>>>>
>>>>
>>>
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
>>>
>>>
>>>
>>
>

>>
>>>>             _______________________________________________
>>>>             Csound-devel mailing list
>>>>             Csound-devel@lists.sourceforge.net
>>>>             
>>>>             https://lists.sourceforge.net/lists/listinfo/csound-devel
>>>>             
>>>>
>>>>
>>>>
>>>>
>>>> -----------------------------------------------------------------------
-
>>>>
>>>> -----------------------------------------------------------------------
-
> -
>>>> Take Surveys. Earn Cash. Influence the Future of IT
>>>> Join SourceForge.net's Techsay panel and you'll get the chance to share
>>>>
>>>>
>>> your
>>>
>>>
>>>> opinions on IT & business topics through brief surveys - and earn cash
>>>>
> http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
>>>> -----------------------------------------------------------------------
-
>>>>
>>>> _______________________________________________
>>>> Csound-devel mailing list
>>>> Csound-devel@lists.sourceforge.net
>>>> https://lists.sourceforge.net/lists/listinfo/csound-devel
>>>>
>>>>
>>>>
>>> ------------------------------------------------------------------------
-
>>> Take Surveys. Earn Cash. Influence the Future of IT
>>> Join SourceForge.net's Techsay panel and you'll get the chance to share
>>>
>> your
>>
>>> opinions on IT & business topics through brief surveys - and earn cash
>>>
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
>>> _______________________________________________
>>> Csound-devel mailing list
>>> Csound-devel@lists.sourceforge.net
>>> https://lists.sourceforge.net/lists/listinfo/csound-devel
>>>
>>>
>>> ------------------------------------------------------------------------
-
>>> Take Surveys. Earn Cash. Influence the Future of IT
>>> Join SourceForge.net's Techsay panel and you'll get the chance to share
>>>
>> your
>>
>>> opinions on IT & business topics through brief surveys - and earn cash
>>>
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
>>> _______________________________________________
>>> Csound-devel mailing list
>>> Csound-devel@lists.sourceforge.net
>>> https://lists.sourceforge.net/lists/listinfo/csound-devel
>>>
>>>
>>>
>>
>>
>> -------------------------------------------------------------------------
>> Take Surveys. Earn Cash. Influence the Future of IT
>> Join SourceForge.net's Techsay panel and you'll get the chance to share
> your
>> opinions on IT & business topics through brief surveys - and earn cash
>> http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
>> _______________________________________________
>> Csound-devel mailing list
>> Csound-devel@lists.sourceforge.net
>> https://lists.sourceforge.net/lists/listinfo/csound-devel
>>
>>
>> -------------------------------------------------------------------------
>> Take Surveys. Earn Cash. Influence the Future of IT
>> Join SourceForge.net's Techsay panel and you'll get the chance to share
> your
>> opinions on IT & business topics through brief surveys - and earn cash
>> http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
>> _______________________________________________
>> Csound-devel mailing list
>> Csound-devel@lists.sourceforge.net
>> https://lists.sourceforge.net/lists/listinfo/csound-devel
>>
>>
>
>
> -------------------------------------------------------------------------
> Take Surveys. Earn Cash. Influence the Future of IT
> Join SourceForge.net's Techsay panel and you'll get the chance to share
your
> opinions on IT & business topics through brief surveys - and earn cash
> http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
> _______________________________________________
> Csound-devel mailing list
> Csound-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/csound-devel
>
>
> -------------------------------------------------------------------------
> Take Surveys. Earn Cash. Influence the Future of IT
> Join SourceForge.net's Techsay panel and you'll get the chance to share
your
> opinions on IT & business topics through brief surveys - and earn cash
> http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
> _______________________________________________
> Csound-devel mailing list
> Csound-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/csound-devel

-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Csound-devel mailing list
Csound-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/csound-devel


-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Csound-devel mailing list
Csound-devel@lists.sourceforge.net

Date2006-12-01 15:15
FromVictor Lazzarini
SubjectRe: [Cs-dev] sensekey
But it does work on Windows, with/without FLTK. It doesn't work with 
Lettuce, which
is a different thing.

Victor

At 14:34 01/12/2006, you wrote:
>Thanks, Jonathan.
>
>Your example works fine in Windows. My problem was simply that I was trying
>to use sensekey directly (no FLTK) within Lettuce. This apparently is the
>only thing that "doesn't work in Windows."
>
>Art Hunkins
>
>----- Original Message -----
>From: "Jonathan Murphy" 
>To: "Art Hunkins" 
>Cc: "Developer discussions" 
>Sent: Thursday, November 30, 2006 6:44 PM
>Subject: Re: [Cs-dev] sensekey
>
>
>
>Yes, it does. It says:
>
>"If the ikbdcapture flag is set, the window captures keyboard events,
>  and sends them to all sensekey. This flag modifies the behavior of
>  sensekey, and makes it receive events from the FLTK window instead of
>  stdin."
>
>Here is an example, the keys should light up the buttons corresponding
>to their ASCII value. Hope this helps (and that it's not really broken
>under windows).
>
>Jonathan.
>
>
>
>
>
>
>
>
>
>   sr     =  48000
>   ksmps     =  64
>   nchnls    =  2
>
>
>; ikbdcapture flag set to 1
>   ikey     init      1
>
>     FLpanel   "sensekey", 740, 340, 100, 250, 2, ikey
>   gkasc, giasc FLbutBank 2, 16, 8, 700, 300, 20, 20, -1
>     FLpanelEnd
>     FLrun
>
>     instr 1
>
>   kkey     sensekey
>   kprint    changed   kkey
>     FLsetVal  kprint, kkey, giasc
>
>     endin
>
>
>
>
>i1 0 60
>e
>
>
>
>
>
>"Art Hunkins"  writes:
>
> > Andres,
> >
> > I'm afraid I still don't "get it."
> >
> > FLpanel doesn't reference a variable named ikbdcapture; nor does a search
> > for that variable come up with anything in the Csound5 help file. Where is
> > this variable explained?
> >
> > I don't suppose you are referring to FLvalue, and passing it an idisp
>value
> > through ihandle (I think this output has to be from another widget, in any
> > case).
> >
> > Also, does this mean that unless you are using FLTK widgets (I'm currently
> > using only Lettuce which is not FLTK) that sensekey is not available (in
> > Windows)?
> >
> > I'd surely like to explore sensekey as a MIDI control substitute in some
> > realtime settings - particularly as event triggers. In this context, an
> > ASCII keyboard makes a lot more sense than a MIDI keyboard (except for
> > button output).
> >
> > Art Hunkins
> >
> > ----- Original Message -----
> > From: "Andres Cabrera" 
> > To: "Art Hunkins" ; "Developer discussions"
> > 
> > Sent: Thursday, November 30, 2006 11:59 AM
> > Subject: Re: [Cs-dev] sensekey
> >
> >
> > Hi Art,
> > If you create an FLpanel, and set the ikbdcapture flag to 1, this
> > FLwindow will capture keyboard events through sensekey.
> > Diffamator uses this.
> >
> > Cheers,
> > Andres
> >
> >
> > Art Hunkins wrote:
> >> Andres,
> >>
> >> Regarding sensekey: I only tried the example in the Csound5 help file.
> >>
> >> Where is Istvan's FLpanel version located? (I'll try it, on WinME as I
>did
> >> the other.)
> >>
> >> Art Hunkins
> >>
> >> ----- Original Message -----
> >> From: "Andres Cabrera" 
> >> To: "Art Hunkins" ; "Developer discussions"
> >> 
> >> Sent: Thursday, November 30, 2006 9:57 AM
> >> Subject: Re: [Cs-dev] Is there a virtual midi controller opcode, or it
> > needs
> >> to be coded?
> >>
> >>
> >> Hi Art,
> >>
> >>> Also, in the example printout for sensekey, what in the *world* does
>that
> >>> large number refer to? Surely not the ASCII value for "q"!
> >>>
> >> Thanks, changed. q gives 113.
> >> However, does sensekey not work even if you use the FLpanel version
> >> Istvan did?
> >>
> >>> The "out" at the bottom of the code example should be "outo".
> >>>
> >> Fixed, thanks.
> >>
> >>
> >> Cheers,
> >> Andrés
> >>
> >>
> >> Art Hunkins wrote:
> >>
> >>> Andres,
> >>>
> >>> I can attest that sensekey still does not work in Windows.
> >>>
> >>> The example, when run, given does output a -1 as expected. However, when
> >>>
> >> you
> >>
> >>> press "q" on the ASCII keyboard, it just prints "q" to the screen (as it
> >>> normally would).
> >>>
> >>> Also, in the example printout for sensekey, what in the *world* does
>that
> >>> large number refer to? Surely not the ASCII value for "q"!
> >>>
> >>> Art Hunkins
> >>>
> >>> ----- Original Message -----
> >>> From: "Andres Cabrera" 
> >>> To: "Developer discussions" 
> >>> Sent: Wednesday, November 29, 2006 9:08 AM
> >>> Subject: Re: [Cs-dev] Is there a virtual midi controller opcode, or it
> >>>
> >> needs
> >>
> >>> to be coded?
> >>>
> >>>
> >>> Hi Robson,
> >>> If you want to use the keyboard for input, you might want to have a look
> >>> at the sensekey opcode.
> >>>
> >>>
> >>> Cheers,
> >>> Andrés
> >>>
> >>> Robson Cozendey wrote:
> >>>
> >>>
> >>>> Hi Steven,
> >>>>
> >>>> Its in your plans in the future to allow the Virtual Midi Keyboard to
> >>>> assign different keystrokes to MIDI Values, defined by the user?
> >>>> I´m saying that because, if someone wants to use the keyboard like a
> >>>> drumkit (like me), it would be nicer to use the numeric keypad for it,
> >>>> instead of the default piano-like setting :)
> >>>>
> >>>> thx in advance,
> >>>> robson
> >>>>
> >>>>
> >>>> On 11/25/06, *Robson Cozendey*  >>>> > wrote:
> >>>>
> >>>>     Ok, I could read it in the tagged way :-)
> >>>>     Now I´m moving to the general list, thanks for the good news!
> >>>>
> >>>>
> >>>>     On 11/25/06, *Robson Cozendey*  >>>>     > wrote:
> >>>>
> >>>>         Thank you, Steven!
> >>>>
> >>>>         I downloaded the XML manual page, but it´s not being
> >>>>         recognized by Internet Explorer. Is it expected, should I get
> >>>>         another browser to work?
> >>>>
> >>>>         thx again,
> >>>>         robson
> >>>>
> >>>>         ps: I know that this discussion is going away of the dev
> >>>>         purpose... as soon as possible, I will move it to the general
> >>>>         list :-)
> >>>>
> >>>>
> >>>>         On 11/25/06, *Steven Yi*  >>>>         > wrote:
> >>>>
> >>>>             Hi Robson,
> >>>>
> >>>>             Yes, the virtual keyboard is in CVS and also was released
> >>>>             in 5.04.
> >>>>             There is a manual entry but it wasn't done until after
> >>>>             5.04 was
> >>>>             released, so you have to get it from CVS.  (You can see
> >>>>             the xml here:
> >>>>
> >>>>
> >>>>
> >>>>
> >>
> >
>http://csound.cvs.sourceforge.net/csound/manual/midi/virtual.xml?revision=1.2&view=markup
> >>
> >>>
> >>
> >
>>
> >>> .2&view=markup>
> >>>
> >>>
> >>>>             and image here:
> >>>>
> >>>>
> >>>>
> >>>>
> >>
> >
>http://csound.cvs.sourceforge.net/csound/manual/images/virtualkeyboard.png?revision=1.1&view=markup
> >>
> >>>
> >>
> >
>>
> >>> revision=1.1&view=markup>
> >>>
> >>>
> >>>>             steven
> >>>>
> >>>>
> >>>>             On 11/25/06, Robson Cozendey <
> >>>>             robson.cozendey.rj@gmail.com
> >>>>             > wrote:
> >>>>             >
> >>>>             > Hello everyone,
> >>>>             >
> >>>>             > Thanks for the help on building CSound, in the other
> >>>>             topic :)
> >>>>             >
> >>>>             > One of the reasons I entered the list, is that I did not
> >>>>             found an opcode
> >>>>             > with the functionality I needed, so I wondered that I
> >>>>             would need to code it,
> >>>>             > so here I am.
> >>>>             >
> >>>>             > The opcode I need and didn´t found was a virtual midi
> >>>>             controller, that would
> >>>>             > turn the PC keyboard into a midi controller, and each
> >>>>             keystroke would send a
> >>>>             > midi message to CSound.
> >>>>             >
> >>>>             > But before starting it, I would like to know if I didn´t
> >>>>             missed something,
> >>>>             > maybe already exists such an opcode, and I would not need
> >>>>             to re-invent the
> >>>>             > wheel
> >>>>             >
> >>>>             > I´m saying that because I read (in the Steven Yi deferred
> >>>>             plug-in topic)
> >>>>             > that he was working on some sort of a virtual keyboard
> >>>>             driver, so maybe
> >>>>             > somewhere inside CSound there is such a functionality
> >>>>             already. I would be
> >>>>             > glad to find that is such a case
> >>>>             > Otherwise, I would start my homework asap...
> >>>>             >
> >>>>             > thanks in advance,
> >>>>             > robson
> >>>>
> >>>>
> >>>>
> >>>
> >>>
> >>>
> >>>
> >>>
> >>>
> >>>
> >>>
> >>>
> >>>
> >>>
> >>
> >
>  > -------------------------------------------------------------------------
> >>
> >>>>             > Take Surveys. Earn Cash. Influence the Future of IT
> >>>>             > Join SourceForge.net's Techsay panel and you'll get the
> >>>>             chance to share your
> >>>>             > opinions on IT & business topics through brief surveys -
> >>>>             and earn cash
> >>>>             >
> >>>>
> >>>>
> >>>
>http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
> >>>
> >>>
> >>>
> >>
> >
>
> >>
> >>>>             >
> >>>>             > _______________________________________________
> >>>>             > Csound-devel mailing list
> >>>>             > Csound-devel@lists.sourceforge.net
> >>>>             
> >>>>             > https://lists.sourceforge.net/lists/listinfo/csound-devel
> >>>>             
> >>>>             >
> >>>>             >
> >>>>             >
> >>>>
> >>>>             -----------------------------------------------------------
>-
> > -
> >>>>
> >> -
> >>
> >>> -----------
> >>>
> >>>
> >>>>             Take Surveys. Earn Cash. Influence the Future of IT
> >>>>             Join SourceForge.net's Techsay panel and you'll get the
> >>>>             chance to share your
> >>>>             opinions on IT & business topics through brief surveys -
> >>>>             and earn cash
> >>>>
> >>>>
> >>>>
> >>>
>http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
> >>>
> >>>
> >>>
> >>
> >
>
> >>
> >>>>             _______________________________________________
> >>>>             Csound-devel mailing list
> >>>>             Csound-devel@lists.sourceforge.net
> >>>>             
> >>>>             https://lists.sourceforge.net/lists/listinfo/csound-devel
> >>>>             
> >>>>
> >>>>
> >>>>
> >>>>
> >>>> -----------------------------------------------------------------------
>-
> >>>>
> >>>> -----------------------------------------------------------------------
>-
> > -
> >>>> Take Surveys. Earn Cash. Influence the Future of IT
> >>>> Join SourceForge.net's Techsay panel and you'll get the chance to share
> >>>>
> >>>>
> >>> your
> >>>
> >>>
> >>>> opinions on IT & business topics through brief surveys - and earn cash
> >>>>
> > http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
> >>>> -----------------------------------------------------------------------
>-
> >>>>
> >>>> _______________________________________________
> >>>> Csound-devel mailing list
> >>>> Csound-devel@lists.sourceforge.net
> >>>> https://lists.sourceforge.net/lists/listinfo/csound-devel
> >>>>
> >>>>
> >>>>
> >>> ------------------------------------------------------------------------
>-
> >>> Take Surveys. Earn Cash. Influence the Future of IT
> >>> Join SourceForge.net's Techsay panel and you'll get the chance to share
> >>>
> >> your
> >>
> >>> opinions on IT & business topics through brief surveys - and earn cash
> >>>
>http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
> >>> _______________________________________________
> >>> Csound-devel mailing list
> >>> Csound-devel@lists.sourceforge.net
> >>> https://lists.sourceforge.net/lists/listinfo/csound-devel
> >>>
> >>>
> >>> ------------------------------------------------------------------------
>-
> >>> Take Surveys. Earn Cash. Influence the Future of IT
> >>> Join SourceForge.net's Techsay panel and you'll get the chance to share
> >>>
> >> your
> >>
> >>> opinions on IT & business topics through brief surveys - and earn cash
> >>>
>http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
> >>> _______________________________________________
> >>> Csound-devel mailing list
> >>> Csound-devel@lists.sourceforge.net
> >>> https://lists.sourceforge.net/lists/listinfo/csound-devel
> >>>
> >>>
> >>>
> >>
> >>
> >> -------------------------------------------------------------------------
> >> Take Surveys. Earn Cash. Influence the Future of IT
> >> Join SourceForge.net's Techsay panel and you'll get the chance to share
> > your
> >> opinions on IT & business topics through brief surveys - and earn cash
> >> http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
> >> _______________________________________________
> >> Csound-devel mailing list
> >> Csound-devel@lists.sourceforge.net
> >> https://lists.sourceforge.net/lists/listinfo/csound-devel
> >>
> >>
> >> -------------------------------------------------------------------------
> >> Take Surveys. Earn Cash. Influence the Future of IT
> >> Join SourceForge.net's Techsay panel and you'll get the chance to share
> > your
> >> opinions on IT & business topics through brief surveys - and earn cash
> >> http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
> >> _______________________________________________
> >> Csound-devel mailing list
> >> Csound-devel@lists.sourceforge.net
> >> https://lists.sourceforge.net/lists/listinfo/csound-devel
> >>
> >>
> >
> >
> > -------------------------------------------------------------------------
> > Take Surveys. Earn Cash. Influence the Future of IT
> > Join SourceForge.net's Techsay panel and you'll get the chance to share
>your
> > opinions on IT & business topics through brief surveys - and earn cash
> > http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
> > _______________________________________________
> > Csound-devel mailing list
> > Csound-devel@lists.sourceforge.net
> > https://lists.sourceforge.net/lists/listinfo/csound-devel
> >
> >
> > -------------------------------------------------------------------------
> > Take Surveys. Earn Cash. Influence the Future of IT
> > Join SourceForge.net's Techsay panel and you'll get the chance to share
>your
> > opinions on IT & business topics through brief surveys - and earn cash
> > http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
> > _______________________________________________
> > Csound-devel mailing list
> > Csound-devel@lists.sourceforge.net
> > https://lists.sourceforge.net/lists/listinfo/csound-devel
>
>-------------------------------------------------------------------------
>Take Surveys. Earn Cash. Influence the Future of IT
>Join SourceForge.net's Techsay panel and you'll get the chance to share your
>opinions on IT & business topics through brief surveys - and earn cash
>http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
>_______________________________________________
>Csound-devel mailing list
>Csound-devel@lists.sourceforge.net
>https://lists.sourceforge.net/lists/listinfo/csound-devel
>
>
>-------------------------------------------------------------------------
>Take Surveys. Earn Cash. Influence the Future of IT
>Join SourceForge.net's Techsay panel and you'll get the chance to share your
>opinions on IT & business topics through brief surveys - and earn cash
>http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
>_______________________________________________
>Csound-devel mailing list
>Csound-devel@lists.sourceforge.net
>https://lists.sourceforge.net/lists/listinfo/csound-devel

Victor Lazzarini
Music Technology Laboratory
Music Department
National University of Ireland, Maynooth 


-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Csound-devel mailing list
Csound-devel@lists.sourceforge.net

Date2006-12-01 15:26
FromDavid Akbari
SubjectRe: [Cs-dev] sensekey
Does Lettuce also use its own audio callbacks ?

I'm just curious and I haven't used the software in a while....


-David

On Dec 1, 2006, at 9:15 AM, Victor Lazzarini wrote:

> But it does work on Windows, with/without FLTK. It doesn't work with
> Lettuce, which
> is a different thing.
>
> Victor
>
> At 14:34 01/12/2006, you wrote:
>> Thanks, Jonathan.
>>
>> Your example works fine in Windows. My problem was simply that I was  
>> trying
>> to use sensekey directly (no FLTK) within Lettuce. This apparently is  
>> the
>> only thing that "doesn't work in Windows."
>>
>> Art Hunkins
>>
>> ----- Original Message -----
>> From: "Jonathan Murphy" 
>> To: "Art Hunkins" 
>> Cc: "Developer discussions" 
>> Sent: Thursday, November 30, 2006 6:44 PM
>> Subject: Re: [Cs-dev] sensekey
>>
>>
>>
>> Yes, it does. It says:
>>
>> "If the ikbdcapture flag is set, the window captures keyboard events,
>>  and sends them to all sensekey. This flag modifies the behavior of
>>  sensekey, and makes it receive events from the FLTK window instead of
>>  stdin."
>>
>> Here is an example, the keys should light up the buttons corresponding
>> to their ASCII value. Hope this helps (and that it's not really broken
>> under windows).
>>
>> Jonathan.
>>
>> 
>>
>> 
>>
>> 
>>
>> 
>>
>>   sr     =  48000
>>   ksmps     =  64
>>   nchnls    =  2
>>
>>
>> ; ikbdcapture flag set to 1
>>   ikey     init      1
>>
>>     FLpanel   "sensekey", 740, 340, 100, 250, 2, ikey
>>   gkasc, giasc FLbutBank 2, 16, 8, 700, 300, 20, 20, -1
>>     FLpanelEnd
>>     FLrun
>>
>>     instr 1
>>
>>   kkey     sensekey
>>   kprint    changed   kkey
>>     FLsetVal  kprint, kkey, giasc
>>
>>     endin
>>
>> 
>>
>> 
>> i1 0 60
>> e
>> 
>>
>> 
>>
>>
>> "Art Hunkins"  writes:
>>
>>> Andres,
>>>
>>> I'm afraid I still don't "get it."
>>>
>>> FLpanel doesn't reference a variable named ikbdcapture; nor does a  
>>> search
>>> for that variable come up with anything in the Csound5 help file.  
>>> Where is
>>> this variable explained?
>>>
>>> I don't suppose you are referring to FLvalue, and passing it an idisp
>> value
>>> through ihandle (I think this output has to be from another widget,  
>>> in any
>>> case).
>>>
>>> Also, does this mean that unless you are using FLTK widgets (I'm  
>>> currently
>>> using only Lettuce which is not FLTK) that sensekey is not available  
>>> (in
>>> Windows)?
>>>
>>> I'd surely like to explore sensekey as a MIDI control substitute in  
>>> some
>>> realtime settings - particularly as event triggers. In this context,  
>>> an
>>> ASCII keyboard makes a lot more sense than a MIDI keyboard (except  
>>> for
>>> button output).
>>>
>>> Art Hunkins
>>>
>>> ----- Original Message -----
>>> From: "Andres Cabrera" 
>>> To: "Art Hunkins" ; "Developer discussions"
>>> 
>>> Sent: Thursday, November 30, 2006 11:59 AM
>>> Subject: Re: [Cs-dev] sensekey
>>>
>>>
>>> Hi Art,
>>> If you create an FLpanel, and set the ikbdcapture flag to 1, this
>>> FLwindow will capture keyboard events through sensekey.
>>> Diffamator uses this.
>>>
>>> Cheers,
>>> Andres
>>>
>>>
>>> Art Hunkins wrote:
>>>> Andres,
>>>>
>>>> Regarding sensekey: I only tried the example in the Csound5 help  
>>>> file.
>>>>
>>>> Where is Istvan's FLpanel version located? (I'll try it, on WinME  
>>>> as I
>> did
>>>> the other.)
>>>>
>>>> Art Hunkins
>>>>
>>>> ----- Original Message -----
>>>> From: "Andres Cabrera" 
>>>> To: "Art Hunkins" ; "Developer discussions"
>>>> 
>>>> Sent: Thursday, November 30, 2006 9:57 AM
>>>> Subject: Re: [Cs-dev] Is there a virtual midi controller opcode, or  
>>>> it
>>> needs
>>>> to be coded?
>>>>
>>>>
>>>> Hi Art,
>>>>
>>>>> Also, in the example printout for sensekey, what in the *world*  
>>>>> does
>> that
>>>>> large number refer to? Surely not the ASCII value for "q"!
>>>>>
>>>> Thanks, changed. q gives 113.
>>>> However, does sensekey not work even if you use the FLpanel version
>>>> Istvan did?
>>>>
>>>>> The "out" at the bottom of the code example should be "outo".
>>>>>
>>>> Fixed, thanks.
>>>>
>>>>
>>>> Cheers,
>>>> Andrés
>>>>
>>>>
>>>> Art Hunkins wrote:
>>>>
>>>>> Andres,
>>>>>
>>>>> I can attest that sensekey still does not work in Windows.
>>>>>
>>>>> The example, when run, given does output a -1 as expected.  
>>>>> However, when
>>>>>
>>>> you
>>>>
>>>>> press "q" on the ASCII keyboard, it just prints "q" to the screen  
>>>>> (as it
>>>>> normally would).
>>>>>
>>>>> Also, in the example printout for sensekey, what in the *world*  
>>>>> does
>> that
>>>>> large number refer to? Surely not the ASCII value for "q"!
>>>>>
>>>>> Art Hunkins
>>>>>
>>>>> ----- Original Message -----
>>>>> From: "Andres Cabrera" 
>>>>> To: "Developer discussions" 
>>>>> Sent: Wednesday, November 29, 2006 9:08 AM
>>>>> Subject: Re: [Cs-dev] Is there a virtual midi controller opcode,  
>>>>> or it
>>>>>
>>>> needs
>>>>
>>>>> to be coded?
>>>>>
>>>>>
>>>>> Hi Robson,
>>>>> If you want to use the keyboard for input, you might want to have  
>>>>> a look
>>>>> at the sensekey opcode.
>>>>>
>>>>>
>>>>> Cheers,
>>>>> Andrés
>>>>>
>>>>> Robson Cozendey wrote:
>>>>>
>>>>>
>>>>>> Hi Steven,
>>>>>>
>>>>>> Its in your plans in the future to allow the Virtual Midi  
>>>>>> Keyboard to
>>>>>> assign different keystrokes to MIDI Values, defined by the user?
>>>>>> I´m saying that because, if someone wants to use the keyboard  
>>>>>> like a
>>>>>> drumkit (like me), it would be nicer to use the numeric keypad  
>>>>>> for it,
>>>>>> instead of the default piano-like setting :)
>>>>>>
>>>>>> thx in advance,
>>>>>> robson
>>>>>>
>>>>>>
>>>>>> On 11/25/06, *Robson Cozendey* >>>>> > wrote:
>>>>>>
>>>>>>     Ok, I could read it in the tagged way :-)
>>>>>>     Now I´m moving to the general list, thanks for the good news!
>>>>>>
>>>>>>
>>>>>>     On 11/25/06, *Robson Cozendey* >>>>>     > wrote:
>>>>>>
>>>>>>         Thank you, Steven!
>>>>>>
>>>>>>         I downloaded the XML manual page, but it´s not being
>>>>>>         recognized by Internet Explorer. Is it expected, should I  
>>>>>> get
>>>>>>         another browser to work?
>>>>>>
>>>>>>         thx again,
>>>>>>         robson
>>>>>>
>>>>>>         ps: I know that this discussion is going away of the dev
>>>>>>         purpose... as soon as possible, I will move it to the  
>>>>>> general
>>>>>>         list :-)
>>>>>>
>>>>>>
>>>>>>         On 11/25/06, *Steven Yi* >>>>>         > wrote:
>>>>>>
>>>>>>             Hi Robson,
>>>>>>
>>>>>>             Yes, the virtual keyboard is in CVS and also was  
>>>>>> released
>>>>>>             in 5.04.
>>>>>>             There is a manual entry but it wasn't done until after
>>>>>>             5.04 was
>>>>>>             released, so you have to get it from CVS.  (You can  
>>>>>> see
>>>>>>             the xml here:
>>>>>>
>>>>>>
>>>>>>
>>>>>>
>>>>
>>>
>> http://csound.cvs.sourceforge.net/csound/manual/midi/virtual.xml? 
>> revision=1.2&view=markup
>>>>
>>>>>
>>>>
>>>
>> > revision=1>>
>>>>> .2&view=markup>
>>>>>
>>>>>
>>>>>>             and image here:
>>>>>>
>>>>>>
>>>>>>
>>>>>>
>>>>
>>>
>> http://csound.cvs.sourceforge.net/csound/manual/images/ 
>> virtualkeyboard.png?revision=1.1&view=markup
>>>>
>>>>>
>>>>
>>>
>> > virtualkeyboard.png?>>
>>>>> revision=1.1&view=markup>
>>>>>
>>>>>
>>>>>>             steven
>>>>>>
>>>>>>
>>>>>>             On 11/25/06, Robson Cozendey <
>>>>>>             robson.cozendey.rj@gmail.com
>>>>>>             > wrote:
>>>>>>>
>>>>>>> Hello everyone,
>>>>>>>
>>>>>>> Thanks for the help on building CSound, in the other
>>>>>>             topic :)
>>>>>>>
>>>>>>> One of the reasons I entered the list, is that I did not
>>>>>>             found an opcode
>>>>>>> with the functionality I needed, so I wondered that I
>>>>>>             would need to code it,
>>>>>>> so here I am.
>>>>>>>
>>>>>>> The opcode I need and didn´t found was a virtual midi
>>>>>>             controller, that would
>>>>>>> turn the PC keyboard into a midi controller, and each
>>>>>>             keystroke would send a
>>>>>>> midi message to CSound.
>>>>>>>
>>>>>>> But before starting it, I would like to know if I didn´t
>>>>>>             missed something,
>>>>>>> maybe already exists such an opcode, and I would not need
>>>>>>             to re-invent the
>>>>>>> wheel
>>>>>>>
>>>>>>> I´m saying that because I read (in the Steven Yi deferred
>>>>>>             plug-in topic)
>>>>>>> that he was working on some sort of a virtual keyboard
>>>>>>             driver, so maybe
>>>>>>> somewhere inside CSound there is such a functionality
>>>>>>             already. I would be
>>>>>>> glad to find that is such a case
>>>>>>> Otherwise, I would start my homework asap...
>>>>>>>
>>>>>>> thanks in advance,
>>>>>>> robson
>>>>>>
>>>>>>
>>>>>>
>>>>>
>>>>>
>>>>>
>>>>>
>>>>>
>>>>>
>>>>>
>>>>>
>>>>>
>>>>>
>>>>>
>>>>
>>>
>>> --------------------------------------------------------------------- 
>>> ----
>>>>
>>>>>>> Take Surveys. Earn Cash. Influence the Future of IT
>>>>>>> Join SourceForge.net's Techsay panel and you'll get the
>>>>>>             chance to share your
>>>>>>> opinions on IT & business topics through brief surveys -
>>>>>>             and earn cash
>>>>>>>
>>>>>>
>>>>>>
>>>>>
>> http://www.techsay.com/default.php? 
>> page=join.php&p=sourceforge&CID=DEVDEV
>>>>>
>>>>>
>>>>>
>>>>
>>>
>> > page=join.php&p=sourceforge&CID=DEVDEV>
>>>>
>>>>>>>
>>>>>>> _______________________________________________
>>>>>>> Csound-devel mailing list
>>>>>>> Csound-devel@lists.sourceforge.net
>>>>>>             
>>>>>>> https://lists.sourceforge.net/lists/listinfo/csound-devel
>>>>>>              
>>>>>> 
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>
>>>>>>              
>>>>>> -----------------------------------------------------------
>> -
>>> -
>>>>>>
>>>> -
>>>>
>>>>> -----------
>>>>>
>>>>>
>>>>>>             Take Surveys. Earn Cash. Influence the Future of IT
>>>>>>             Join SourceForge.net's Techsay panel and you'll get  
>>>>>> the
>>>>>>             chance to share your
>>>>>>             opinions on IT & business topics through brief  
>>>>>> surveys -
>>>>>>             and earn cash
>>>>>>
>>>>>>
>>>>>>
>>>>>
>> http://www.techsay.com/default.php? 
>> page=join.php&p=sourceforge&CID=DEVDEV
>>>>>
>>>>>
>>>>>
>>>>
>>>
>> > page=join.php&p=sourceforge&CID=DEVDEV>
>>>>
>>>>>>             _______________________________________________
>>>>>>             Csound-devel mailing list
>>>>>>             Csound-devel@lists.sourceforge.net
>>>>>>             
>>>>>>              
>>>>>> https://lists.sourceforge.net/lists/listinfo/csound-devel
>>>>>>              
>>>>>> 
>>>>>>
>>>>>>
>>>>>>
>>>>>>
>>>>>> ------------------------------------------------------------------ 
>>>>>> -----
>> -
>>>>>>
>>>>>> ------------------------------------------------------------------ 
>>>>>> -----
>> -
>>> -
>>>>>> Take Surveys. Earn Cash. Influence the Future of IT
>>>>>> Join SourceForge.net's Techsay panel and you'll get the chance to  
>>>>>> share
>>>>>>
>>>>>>
>>>>> your
>>>>>
>>>>>
>>>>>> opinions on IT & business topics through brief surveys - and earn  
>>>>>> cash
>>>>>>
>>> http://www.techsay.com/default.php? 
>>> page=join.php&p=sourceforge&CID=DEVDEV
>>>>>> ------------------------------------------------------------------ 
>>>>>> -----
>> -
>>>>>>
>>>>>> _______________________________________________
>>>>>> Csound-devel mailing list
>>>>>> Csound-devel@lists.sourceforge.net
>>>>>> https://lists.sourceforge.net/lists/listinfo/csound-devel
>>>>>>
>>>>>>
>>>>>>
>>>>> ------------------------------------------------------------------- 
>>>>> -----
>> -
>>>>> Take Surveys. Earn Cash. Influence the Future of IT
>>>>> Join SourceForge.net's Techsay panel and you'll get the chance to  
>>>>> share
>>>>>
>>>> your
>>>>
>>>>> opinions on IT & business topics through brief surveys - and earn  
>>>>> cash
>>>>>
>> http://www.techsay.com/default.php? 
>> page=join.php&p=sourceforge&CID=DEVDEV
>>>>> _______________________________________________
>>>>> Csound-devel mailing list
>>>>> Csound-devel@lists.sourceforge.net
>>>>> https://lists.sourceforge.net/lists/listinfo/csound-devel
>>>>>
>>>>>
>>>>> ------------------------------------------------------------------- 
>>>>> -----
>> -
>>>>> Take Surveys. Earn Cash. Influence the Future of IT
>>>>> Join SourceForge.net's Techsay panel and you'll get the chance to  
>>>>> share
>>>>>
>>>> your
>>>>
>>>>> opinions on IT & business topics through brief surveys - and earn  
>>>>> cash
>>>>>
>> http://www.techsay.com/default.php? 
>> page=join.php&p=sourceforge&CID=DEVDEV
>>>>> _______________________________________________
>>>>> Csound-devel mailing list
>>>>> Csound-devel@lists.sourceforge.net
>>>>> https://lists.sourceforge.net/lists/listinfo/csound-devel
>>>>>
>>>>>
>>>>>
>>>>
>>>>
>>>> -------------------------------------------------------------------- 
>>>> -----
>>>> Take Surveys. Earn Cash. Influence the Future of IT
>>>> Join SourceForge.net's Techsay panel and you'll get the chance to  
>>>> share
>>> your
>>>> opinions on IT & business topics through brief surveys - and earn  
>>>> cash
>>>> http://www.techsay.com/default.php? 
>>>> page=join.php&p=sourceforge&CID=DEVDEV
>>>> _______________________________________________
>>>> Csound-devel mailing list
>>>> Csound-devel@lists.sourceforge.net
>>>> https://lists.sourceforge.net/lists/listinfo/csound-devel
>>>>
>>>>
>>>> -------------------------------------------------------------------- 
>>>> -----
>>>> Take Surveys. Earn Cash. Influence the Future of IT
>>>> Join SourceForge.net's Techsay panel and you'll get the chance to  
>>>> share
>>> your
>>>> opinions on IT & business topics through brief surveys - and earn  
>>>> cash
>>>> http://www.techsay.com/default.php? 
>>>> page=join.php&p=sourceforge&CID=DEVDEV
>>>> _______________________________________________
>>>> Csound-devel mailing list
>>>> Csound-devel@lists.sourceforge.net
>>>> https://lists.sourceforge.net/lists/listinfo/csound-devel
>>>>
>>>>
>>>
>>>
>>> --------------------------------------------------------------------- 
>>> ----
>>> Take Surveys. Earn Cash. Influence the Future of IT
>>> Join SourceForge.net's Techsay panel and you'll get the chance to  
>>> share
>> your
>>> opinions on IT & business topics through brief surveys - and earn  
>>> cash
>>> http://www.techsay.com/default.php? 
>>> page=join.php&p=sourceforge&CID=DEVDEV
>>> _______________________________________________
>>> Csound-devel mailing list
>>> Csound-devel@lists.sourceforge.net
>>> https://lists.sourceforge.net/lists/listinfo/csound-devel
>>>
>>>
>>> --------------------------------------------------------------------- 
>>> ----
>>> Take Surveys. Earn Cash. Influence the Future of IT
>>> Join SourceForge.net's Techsay panel and you'll get the chance to  
>>> share
>> your
>>> opinions on IT & business topics through brief surveys - and earn  
>>> cash
>>> http://www.techsay.com/default.php? 
>>> page=join.php&p=sourceforge&CID=DEVDEV
>>> _______________________________________________
>>> Csound-devel mailing list
>>> Csound-devel@lists.sourceforge.net
>>> https://lists.sourceforge.net/lists/listinfo/csound-devel
>>
>> ---------------------------------------------------------------------- 
>> ---
>> Take Surveys. Earn Cash. Influence the Future of IT
>> Join SourceForge.net's Techsay panel and you'll get the chance to  
>> share your
>> opinions on IT & business topics through brief surveys - and earn cash
>> http://www.techsay.com/default.php? 
>> page=join.php&p=sourceforge&CID=DEVDEV
>> _______________________________________________
>> Csound-devel mailing list
>> Csound-devel@lists.sourceforge.net
>> https://lists.sourceforge.net/lists/listinfo/csound-devel
>>
>>
>> ---------------------------------------------------------------------- 
>> ---
>> Take Surveys. Earn Cash. Influence the Future of IT
>> Join SourceForge.net's Techsay panel and you'll get the chance to  
>> share your
>> opinions on IT & business topics through brief surveys - and earn cash
>> http://www.techsay.com/default.php? 
>> page=join.php&p=sourceforge&CID=DEVDEV
>> _______________________________________________
>> Csound-devel mailing list
>> Csound-devel@lists.sourceforge.net
>> https://lists.sourceforge.net/lists/listinfo/csound-devel
>
> Victor Lazzarini
> Music Technology Laboratory
> Music Department
> National University of Ireland, Maynooth
>
>
> ----------------------------------------------------------------------- 
> --
> Take Surveys. Earn Cash. Influence the Future of IT
> Join SourceForge.net's Techsay panel and you'll get the chance to  
> share your
> opinions on IT & business topics through brief surveys - and earn cash
> http://www.techsay.com/default.php? 
> page=join.php&p=sourceforge&CID=DEVDEV
> _______________________________________________
> Csound-devel mailing list
> Csound-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/csound-devel
>


-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Csound-devel mailing list
Csound-devel@lists.sourceforge.net

Date2006-12-01 15:40
FromRory Walsh
SubjectRe: [Cs-dev] sensekey
No and I don't think that's something which I'm interested in doing either.

Rory.


David Akbari wrote:
> Does Lettuce also use its own audio callbacks ?
> 
> I'm just curious and I haven't used the software in a while....
> 
> 
> -David
> 
> On Dec 1, 2006, at 9:15 AM, Victor Lazzarini wrote:
> 
>> But it does work on Windows, with/without FLTK. It doesn't work with
>> Lettuce, which
>> is a different thing.
>>
>> Victor
>>
>> At 14:34 01/12/2006, you wrote:
>>> Thanks, Jonathan.
>>>
>>> Your example works fine in Windows. My problem was simply that I was  
>>> trying
>>> to use sensekey directly (no FLTK) within Lettuce. This apparently is  
>>> the
>>> only thing that "doesn't work in Windows."
>>>
>>> Art Hunkins
>>>
>>> ----- Original Message -----
>>> From: "Jonathan Murphy" 
>>> To: "Art Hunkins" 
>>> Cc: "Developer discussions" 
>>> Sent: Thursday, November 30, 2006 6:44 PM
>>> Subject: Re: [Cs-dev] sensekey
>>>
>>>
>>>
>>> Yes, it does. It says:
>>>
>>> "If the ikbdcapture flag is set, the window captures keyboard events,
>>>  and sends them to all sensekey. This flag modifies the behavior of
>>>  sensekey, and makes it receive events from the FLTK window instead of
>>>  stdin."
>>>
>>> Here is an example, the keys should light up the buttons corresponding
>>> to their ASCII value. Hope this helps (and that it's not really broken
>>> under windows).
>>>
>>> Jonathan.
>>>
>>> 
>>>
>>> 
>>>
>>> 
>>>
>>> 
>>>
>>>   sr     =  48000
>>>   ksmps     =  64
>>>   nchnls    =  2
>>>
>>>
>>> ; ikbdcapture flag set to 1
>>>   ikey     init      1
>>>
>>>     FLpanel   "sensekey", 740, 340, 100, 250, 2, ikey
>>>   gkasc, giasc FLbutBank 2, 16, 8, 700, 300, 20, 20, -1
>>>     FLpanelEnd
>>>     FLrun
>>>
>>>     instr 1
>>>
>>>   kkey     sensekey
>>>   kprint    changed   kkey
>>>     FLsetVal  kprint, kkey, giasc
>>>
>>>     endin
>>>
>>> 
>>>
>>> 
>>> i1 0 60
>>> e
>>> 
>>>
>>> 
>>>
>>>
>>> "Art Hunkins"  writes:
>>>
>>>> Andres,
>>>>
>>>> I'm afraid I still don't "get it."
>>>>
>>>> FLpanel doesn't reference a variable named ikbdcapture; nor does a  
>>>> search
>>>> for that variable come up with anything in the Csound5 help file.  
>>>> Where is
>>>> this variable explained?
>>>>
>>>> I don't suppose you are referring to FLvalue, and passing it an idisp
>>> value
>>>> through ihandle (I think this output has to be from another widget,  
>>>> in any
>>>> case).
>>>>
>>>> Also, does this mean that unless you are using FLTK widgets (I'm  
>>>> currently
>>>> using only Lettuce which is not FLTK) that sensekey is not available  
>>>> (in
>>>> Windows)?
>>>>
>>>> I'd surely like to explore sensekey as a MIDI control substitute in  
>>>> some
>>>> realtime settings - particularly as event triggers. In this context,  
>>>> an
>>>> ASCII keyboard makes a lot more sense than a MIDI keyboard (except  
>>>> for
>>>> button output).
>>>>
>>>> Art Hunkins
>>>>
>>>> ----- Original Message -----
>>>> From: "Andres Cabrera" 
>>>> To: "Art Hunkins" ; "Developer discussions"
>>>> 
>>>> Sent: Thursday, November 30, 2006 11:59 AM
>>>> Subject: Re: [Cs-dev] sensekey
>>>>
>>>>
>>>> Hi Art,
>>>> If you create an FLpanel, and set the ikbdcapture flag to 1, this
>>>> FLwindow will capture keyboard events through sensekey.
>>>> Diffamator uses this.
>>>>
>>>> Cheers,
>>>> Andres
>>>>
>>>>
>>>> Art Hunkins wrote:
>>>>> Andres,
>>>>>
>>>>> Regarding sensekey: I only tried the example in the Csound5 help  
>>>>> file.
>>>>>
>>>>> Where is Istvan's FLpanel version located? (I'll try it, on WinME  
>>>>> as I
>>> did
>>>>> the other.)
>>>>>
>>>>> Art Hunkins
>>>>>
>>>>> ----- Original Message -----
>>>>> From: "Andres Cabrera" 
>>>>> To: "Art Hunkins" ; "Developer discussions"
>>>>> 
>>>>> Sent: Thursday, November 30, 2006 9:57 AM
>>>>> Subject: Re: [Cs-dev] Is there a virtual midi controller opcode, or  
>>>>> it
>>>> needs
>>>>> to be coded?
>>>>>
>>>>>
>>>>> Hi Art,
>>>>>
>>>>>> Also, in the example printout for sensekey, what in the *world*  
>>>>>> does
>>> that
>>>>>> large number refer to? Surely not the ASCII value for "q"!
>>>>>>
>>>>> Thanks, changed. q gives 113.
>>>>> However, does sensekey not work even if you use the FLpanel version
>>>>> Istvan did?
>>>>>
>>>>>> The "out" at the bottom of the code example should be "outo".
>>>>>>
>>>>> Fixed, thanks.
>>>>>
>>>>>
>>>>> Cheers,
>>>>> Andrés
>>>>>
>>>>>
>>>>> Art Hunkins wrote:
>>>>>
>>>>>> Andres,
>>>>>>
>>>>>> I can attest that sensekey still does not work in Windows.
>>>>>>
>>>>>> The example, when run, given does output a -1 as expected.  
>>>>>> However, when
>>>>>>
>>>>> you
>>>>>
>>>>>> press "q" on the ASCII keyboard, it just prints "q" to the screen  
>>>>>> (as it
>>>>>> normally would).
>>>>>>
>>>>>> Also, in the example printout for sensekey, what in the *world*  
>>>>>> does
>>> that
>>>>>> large number refer to? Surely not the ASCII value for "q"!
>>>>>>
>>>>>> Art Hunkins
>>>>>>
>>>>>> ----- Original Message -----
>>>>>> From: "Andres Cabrera" 
>>>>>> To: "Developer discussions" 
>>>>>> Sent: Wednesday, November 29, 2006 9:08 AM
>>>>>> Subject: Re: [Cs-dev] Is there a virtual midi controller opcode,  
>>>>>> or it
>>>>>>
>>>>> needs
>>>>>
>>>>>> to be coded?
>>>>>>
>>>>>>
>>>>>> Hi Robson,
>>>>>> If you want to use the keyboard for input, you might want to have  
>>>>>> a look
>>>>>> at the sensekey opcode.
>>>>>>
>>>>>>
>>>>>> Cheers,
>>>>>> Andrés
>>>>>>
>>>>>> Robson Cozendey wrote:
>>>>>>
>>>>>>
>>>>>>> Hi Steven,
>>>>>>>
>>>>>>> Its in your plans in the future to allow the Virtual Midi  
>>>>>>> Keyboard to
>>>>>>> assign different keystrokes to MIDI Values, defined by the user?
>>>>>>> I´m saying that because, if someone wants to use the keyboard  
>>>>>>> like a
>>>>>>> drumkit (like me), it would be nicer to use the numeric keypad  
>>>>>>> for it,
>>>>>>> instead of the default piano-like setting :)
>>>>>>>
>>>>>>> thx in advance,
>>>>>>> robson
>>>>>>>
>>>>>>>
>>>>>>> On 11/25/06, *Robson Cozendey* >>>>>> > wrote:
>>>>>>>
>>>>>>>     Ok, I could read it in the tagged way :-)
>>>>>>>     Now I´m moving to the general list, thanks for the good news!
>>>>>>>
>>>>>>>
>>>>>>>     On 11/25/06, *Robson Cozendey* >>>>>>     > wrote:
>>>>>>>
>>>>>>>         Thank you, Steven!
>>>>>>>
>>>>>>>         I downloaded the XML manual page, but it´s not being
>>>>>>>         recognized by Internet Explorer. Is it expected, should I  
>>>>>>> get
>>>>>>>         another browser to work?
>>>>>>>
>>>>>>>         thx again,
>>>>>>>         robson
>>>>>>>
>>>>>>>         ps: I know that this discussion is going away of the dev
>>>>>>>         purpose... as soon as possible, I will move it to the  
>>>>>>> general
>>>>>>>         list :-)
>>>>>>>
>>>>>>>
>>>>>>>         On 11/25/06, *Steven Yi* >>>>>>         > wrote:
>>>>>>>
>>>>>>>             Hi Robson,
>>>>>>>
>>>>>>>             Yes, the virtual keyboard is in CVS and also was  
>>>>>>> released
>>>>>>>             in 5.04.
>>>>>>>             There is a manual entry but it wasn't done until after
>>>>>>>             5.04 was
>>>>>>>             released, so you have to get it from CVS.  (You can  
>>>>>>> see
>>>>>>>             the xml here:
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>>
>>> http://csound.cvs.sourceforge.net/csound/manual/midi/virtual.xml? 
>>> revision=1.2&view=markup
>>> >> revision=1>>
>>>>>> .2&view=markup>
>>>>>>
>>>>>>
>>>>>>>             and image here:
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>>
>>> http://csound.cvs.sourceforge.net/csound/manual/images/ 
>>> virtualkeyboard.png?revision=1.1&view=markup
>>> >> virtualkeyboard.png?>>
>>>>>> revision=1.1&view=markup>
>>>>>>
>>>>>>
>>>>>>>             steven
>>>>>>>
>>>>>>>
>>>>>>>             On 11/25/06, Robson Cozendey <
>>>>>>>             robson.cozendey.rj@gmail.com
>>>>>>>             > wrote:
>>>>>>>> Hello everyone,
>>>>>>>>
>>>>>>>> Thanks for the help on building CSound, in the other
>>>>>>>             topic :)
>>>>>>>> One of the reasons I entered the list, is that I did not
>>>>>>>             found an opcode
>>>>>>>> with the functionality I needed, so I wondered that I
>>>>>>>             would need to code it,
>>>>>>>> so here I am.
>>>>>>>>
>>>>>>>> The opcode I need and didn´t found was a virtual midi
>>>>>>>             controller, that would
>>>>>>>> turn the PC keyboard into a midi controller, and each
>>>>>>>             keystroke would send a
>>>>>>>> midi message to CSound.
>>>>>>>>
>>>>>>>> But before starting it, I would like to know if I didn´t
>>>>>>>             missed something,
>>>>>>>> maybe already exists such an opcode, and I would not need
>>>>>>>             to re-invent the
>>>>>>>> wheel
>>>>>>>>
>>>>>>>> I´m saying that because I read (in the Steven Yi deferred
>>>>>>>             plug-in topic)
>>>>>>>> that he was working on some sort of a virtual keyboard
>>>>>>>             driver, so maybe
>>>>>>>> somewhere inside CSound there is such a functionality
>>>>>>>             already. I would be
>>>>>>>> glad to find that is such a case
>>>>>>>> Otherwise, I would start my homework asap...
>>>>>>>>
>>>>>>>> thanks in advance,
>>>>>>>> robson
>>>>>>>
>>>>>>>
>>>>>>
>>>>>>
>>>>>>
>>>>>>
>>>>>>
>>>>>>
>>>>>>
>>>>>>
>>>>>>
>>>>>>
>>>> --------------------------------------------------------------------- 
>>>> ----
>>>>>>>> Take Surveys. Earn Cash. Influence the Future of IT
>>>>>>>> Join SourceForge.net's Techsay panel and you'll get the
>>>>>>>             chance to share your
>>>>>>>> opinions on IT & business topics through brief surveys -
>>>>>>>             and earn cash
>>>>>>>
>>> http://www.techsay.com/default.php? 
>>> page=join.php&p=sourceforge&CID=DEVDEV
>>>>>>
>>>>>>
>>> >> page=join.php&p=sourceforge&CID=DEVDEV>
>>>>>>>> _______________________________________________
>>>>>>>> Csound-devel mailing list
>>>>>>>> Csound-devel@lists.sourceforge.net
>>>>>>>             
>>>>>>>> https://lists.sourceforge.net/lists/listinfo/csound-devel
>>>>>>>              
>>>>>>> 
>>>>>>>>
>>>>>>>>
>>>>>>>              
>>>>>>> -----------------------------------------------------------
>>> -
>>>> -
>>>>> -
>>>>>
>>>>>> -----------
>>>>>>
>>>>>>
>>>>>>>             Take Surveys. Earn Cash. Influence the Future of IT
>>>>>>>             Join SourceForge.net's Techsay panel and you'll get  
>>>>>>> the
>>>>>>>             chance to share your
>>>>>>>             opinions on IT & business topics through brief  
>>>>>>> surveys -
>>>>>>>             and earn cash
>>>>>>>
>>>>>>>
>>>>>>>
>>> http://www.techsay.com/default.php? 
>>> page=join.php&p=sourceforge&CID=DEVDEV
>>>>>>
>>>>>>
>>> >> page=join.php&p=sourceforge&CID=DEVDEV>
>>>>>>>             _______________________________________________
>>>>>>>             Csound-devel mailing list
>>>>>>>             Csound-devel@lists.sourceforge.net
>>>>>>>             
>>>>>>>              
>>>>>>> https://lists.sourceforge.net/lists/listinfo/csound-devel
>>>>>>>              
>>>>>>> 
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>> ------------------------------------------------------------------ 
>>>>>>> -----
>>> -
>>>>>>> ------------------------------------------------------------------ 
>>>>>>> -----
>>> -
>>>> -
>>>>>>> Take Surveys. Earn Cash. Influence the Future of IT
>>>>>>> Join SourceForge.net's Techsay panel and you'll get the chance to  
>>>>>>> share
>>>>>>>
>>>>>>>
>>>>>> your
>>>>>>
>>>>>>
>>>>>>> opinions on IT & business topics through brief surveys - and earn  
>>>>>>> cash
>>>>>>>
>>>> http://www.techsay.com/default.php? 
>>>> page=join.php&p=sourceforge&CID=DEVDEV
>>>>>>> ------------------------------------------------------------------ 
>>>>>>> -----
>>> -
>>>>>>> _______________________________________________
>>>>>>> Csound-devel mailing list
>>>>>>> Csound-devel@lists.sourceforge.net
>>>>>>> https://lists.sourceforge.net/lists/listinfo/csound-devel
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>> ------------------------------------------------------------------- 
>>>>>> -----
>>> -
>>>>>> Take Surveys. Earn Cash. Influence the Future of IT
>>>>>> Join SourceForge.net's Techsay panel and you'll get the chance to  
>>>>>> share
>>>>>>
>>>>> your
>>>>>
>>>>>> opinions on IT & business topics through brief surveys - and earn  
>>>>>> cash
>>>>>>
>>> http://www.techsay.com/default.php? 
>>> page=join.php&p=sourceforge&CID=DEVDEV
>>>>>> _______________________________________________
>>>>>> Csound-devel mailing list
>>>>>> Csound-devel@lists.sourceforge.net
>>>>>> https://lists.sourceforge.net/lists/listinfo/csound-devel
>>>>>>
>>>>>>
>>>>>> ------------------------------------------------------------------- 
>>>>>> -----
>>> -
>>>>>> Take Surveys. Earn Cash. Influence the Future of IT
>>>>>> Join SourceForge.net's Techsay panel and you'll get the chance to  
>>>>>> share
>>>>>>
>>>>> your
>>>>>
>>>>>> opinions on IT & business topics through brief surveys - and earn  
>>>>>> cash
>>>>>>
>>> http://www.techsay.com/default.php? 
>>> page=join.php&p=sourceforge&CID=DEVDEV
>>>>>> _______________________________________________
>>>>>> Csound-devel mailing list
>>>>>> Csound-devel@lists.sourceforge.net
>>>>>> https://lists.sourceforge.net/lists/listinfo/csound-devel
>>>>>>
>>>>>>
>>>>>>
>>>>>
>>>>> -------------------------------------------------------------------- 
>>>>> -----
>>>>> Take Surveys. Earn Cash. Influence the Future of IT
>>>>> Join SourceForge.net's Techsay panel and you'll get the chance to  
>>>>> share
>>>> your
>>>>> opinions on IT & business topics through brief surveys - and earn  
>>>>> cash
>>>>> http://www.techsay.com/default.php? 
>>>>> page=join.php&p=sourceforge&CID=DEVDEV
>>>>> _______________________________________________
>>>>> Csound-devel mailing list
>>>>> Csound-devel@lists.sourceforge.net
>>>>> https://lists.sourceforge.net/lists/listinfo/csound-devel
>>>>>
>>>>>
>>>>> -------------------------------------------------------------------- 
>>>>> -----
>>>>> Take Surveys. Earn Cash. Influence the Future of IT
>>>>> Join SourceForge.net's Techsay panel and you'll get the chance to  
>>>>> share
>>>> your
>>>>> opinions on IT & business topics through brief surveys - and earn  
>>>>> cash
>>>>> http://www.techsay.com/default.php? 
>>>>> page=join.php&p=sourceforge&CID=DEVDEV
>>>>> _______________________________________________
>>>>> Csound-devel mailing list
>>>>> Csound-devel@lists.sourceforge.net
>>>>> https://lists.sourceforge.net/lists/listinfo/csound-devel
>>>>>
>>>>>
>>>>
>>>> --------------------------------------------------------------------- 
>>>> ----
>>>> Take Surveys. Earn Cash. Influence the Future of IT
>>>> Join SourceForge.net's Techsay panel and you'll get the chance to  
>>>> share
>>> your
>>>> opinions on IT & business topics through brief surveys - and earn  
>>>> cash
>>>> http://www.techsay.com/default.php? 
>>>> page=join.php&p=sourceforge&CID=DEVDEV
>>>> _______________________________________________
>>>> Csound-devel mailing list
>>>> Csound-devel@lists.sourceforge.net
>>>> https://lists.sourceforge.net/lists/listinfo/csound-devel
>>>>
>>>>
>>>> --------------------------------------------------------------------- 
>>>> ----
>>>> Take Surveys. Earn Cash. Influence the Future of IT
>>>> Join SourceForge.net's Techsay panel and you'll get the chance to  
>>>> share
>>> your
>>>> opinions on IT & business topics through brief surveys - and earn  
>>>> cash
>>>> http://www.techsay.com/default.php? 
>>>> page=join.php&p=sourceforge&CID=DEVDEV
>>>> _______________________________________________
>>>> Csound-devel mailing list
>>>> Csound-devel@lists.sourceforge.net
>>>> https://lists.sourceforge.net/lists/listinfo/csound-devel
>>> ---------------------------------------------------------------------- 
>>> ---
>>> Take Surveys. Earn Cash. Influence the Future of IT
>>> Join SourceForge.net's Techsay panel and you'll get the chance to  
>>> share your
>>> opinions on IT & business topics through brief surveys - and earn cash
>>> http://www.techsay.com/default.php? 
>>> page=join.php&p=sourceforge&CID=DEVDEV
>>> _______________________________________________
>>> Csound-devel mailing list
>>> Csound-devel@lists.sourceforge.net
>>> https://lists.sourceforge.net/lists/listinfo/csound-devel
>>>
>>>
>>> ---------------------------------------------------------------------- 
>>> ---
>>> Take Surveys. Earn Cash. Influence the Future of IT
>>> Join SourceForge.net's Techsay panel and you'll get the chance to  
>>> share your
>>> opinions on IT & business topics through brief surveys - and earn cash
>>> http://www.techsay.com/default.php? 
>>> page=join.php&p=sourceforge&CID=DEVDEV
>>> _______________________________________________
>>> Csound-devel mailing list
>>> Csound-devel@lists.sourceforge.net
>>> https://lists.sourceforge.net/lists/listinfo/csound-devel
>> Victor Lazzarini
>> Music Technology Laboratory
>> Music Department
>> National University of Ireland, Maynooth
>>
>>
>> ----------------------------------------------------------------------- 
>> --
>> Take Surveys. Earn Cash. Influence the Future of IT
>> Join SourceForge.net's Techsay panel and you'll get the chance to  
>> share your
>> opinions on IT & business topics through brief surveys - and earn cash
>> http://www.techsay.com/default.php? 
>> page=join.php&p=sourceforge&CID=DEVDEV
>> _______________________________________________
>> Csound-devel mailing list
>> Csound-devel@lists.sourceforge.net
>> https://lists.sourceforge.net/lists/listinfo/csound-devel
>>
> 
> 
> -------------------------------------------------------------------------
> Take Surveys. Earn Cash. Influence the Future of IT
> Join SourceForge.net's Techsay panel and you'll get the chance to share your
> opinions on IT & business topics through brief surveys - and earn cash
> http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
> _______________________________________________
> Csound-devel mailing list
> Csound-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/csound-devel
> 

-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Csound-devel mailing list
Csound-devel@lists.sourceforge.net

Date2006-12-01 15:48
FromRory Walsh
SubjectRe: [Cs-dev] sensekey
By the way, out of curiosity, does MacCsound does this?

> David Akbari wrote:
>> Does Lettuce also use its own audio callbacks ?
>>
>> I'm just curious and I haven't used the software in a while....
>>
>>
>> -David
>>
>> On Dec 1, 2006, at 9:15 AM, Victor Lazzarini wrote:
>>
>>> But it does work on Windows, with/without FLTK. It doesn't work with
>>> Lettuce, which
>>> is a different thing.
>>>
>>> Victor
>>>
>>> At 14:34 01/12/2006, you wrote:
>>>> Thanks, Jonathan.
>>>>
>>>> Your example works fine in Windows. My problem was simply that I was  
>>>> trying
>>>> to use sensekey directly (no FLTK) within Lettuce. This apparently is  
>>>> the
>>>> only thing that "doesn't work in Windows."
>>>>
>>>> Art Hunkins
>>>>
>>>> ----- Original Message -----
>>>> From: "Jonathan Murphy" 
>>>> To: "Art Hunkins" 
>>>> Cc: "Developer discussions" 
>>>> Sent: Thursday, November 30, 2006 6:44 PM
>>>> Subject: Re: [Cs-dev] sensekey
>>>>
>>>>
>>>>
>>>> Yes, it does. It says:
>>>>
>>>> "If the ikbdcapture flag is set, the window captures keyboard events,
>>>>  and sends them to all sensekey. This flag modifies the behavior of
>>>>  sensekey, and makes it receive events from the FLTK window instead of
>>>>  stdin."
>>>>
>>>> Here is an example, the keys should light up the buttons corresponding
>>>> to their ASCII value. Hope this helps (and that it's not really broken
>>>> under windows).
>>>>
>>>> Jonathan.
>>>>
>>>> 
>>>>
>>>> 
>>>>
>>>> 
>>>>
>>>> 
>>>>
>>>>   sr     =  48000
>>>>   ksmps     =  64
>>>>   nchnls    =  2
>>>>
>>>>
>>>> ; ikbdcapture flag set to 1
>>>>   ikey     init      1
>>>>
>>>>     FLpanel   "sensekey", 740, 340, 100, 250, 2, ikey
>>>>   gkasc, giasc FLbutBank 2, 16, 8, 700, 300, 20, 20, -1
>>>>     FLpanelEnd
>>>>     FLrun
>>>>
>>>>     instr 1
>>>>
>>>>   kkey     sensekey
>>>>   kprint    changed   kkey
>>>>     FLsetVal  kprint, kkey, giasc
>>>>
>>>>     endin
>>>>
>>>> 
>>>>
>>>> 
>>>> i1 0 60
>>>> e
>>>> 
>>>>
>>>> 
>>>>
>>>>
>>>> "Art Hunkins"  writes:
>>>>
>>>>> Andres,
>>>>>
>>>>> I'm afraid I still don't "get it."
>>>>>
>>>>> FLpanel doesn't reference a variable named ikbdcapture; nor does a  
>>>>> search
>>>>> for that variable come up with anything in the Csound5 help file.  
>>>>> Where is
>>>>> this variable explained?
>>>>>
>>>>> I don't suppose you are referring to FLvalue, and passing it an idisp
>>>> value
>>>>> through ihandle (I think this output has to be from another widget,  
>>>>> in any
>>>>> case).
>>>>>
>>>>> Also, does this mean that unless you are using FLTK widgets (I'm  
>>>>> currently
>>>>> using only Lettuce which is not FLTK) that sensekey is not available  
>>>>> (in
>>>>> Windows)?
>>>>>
>>>>> I'd surely like to explore sensekey as a MIDI control substitute in  
>>>>> some
>>>>> realtime settings - particularly as event triggers. In this context,  
>>>>> an
>>>>> ASCII keyboard makes a lot more sense than a MIDI keyboard (except  
>>>>> for
>>>>> button output).
>>>>>
>>>>> Art Hunkins
>>>>>
>>>>> ----- Original Message -----
>>>>> From: "Andres Cabrera" 
>>>>> To: "Art Hunkins" ; "Developer discussions"
>>>>> 
>>>>> Sent: Thursday, November 30, 2006 11:59 AM
>>>>> Subject: Re: [Cs-dev] sensekey
>>>>>
>>>>>
>>>>> Hi Art,
>>>>> If you create an FLpanel, and set the ikbdcapture flag to 1, this
>>>>> FLwindow will capture keyboard events through sensekey.
>>>>> Diffamator uses this.
>>>>>
>>>>> Cheers,
>>>>> Andres
>>>>>
>>>>>
>>>>> Art Hunkins wrote:
>>>>>> Andres,
>>>>>>
>>>>>> Regarding sensekey: I only tried the example in the Csound5 help  
>>>>>> file.
>>>>>>
>>>>>> Where is Istvan's FLpanel version located? (I'll try it, on WinME  
>>>>>> as I
>>>> did
>>>>>> the other.)
>>>>>>
>>>>>> Art Hunkins
>>>>>>
>>>>>> ----- Original Message -----
>>>>>> From: "Andres Cabrera" 
>>>>>> To: "Art Hunkins" ; "Developer discussions"
>>>>>> 
>>>>>> Sent: Thursday, November 30, 2006 9:57 AM
>>>>>> Subject: Re: [Cs-dev] Is there a virtual midi controller opcode, or  
>>>>>> it
>>>>> needs
>>>>>> to be coded?
>>>>>>
>>>>>>
>>>>>> Hi Art,
>>>>>>
>>>>>>> Also, in the example printout for sensekey, what in the *world*  
>>>>>>> does
>>>> that
>>>>>>> large number refer to? Surely not the ASCII value for "q"!
>>>>>>>
>>>>>> Thanks, changed. q gives 113.
>>>>>> However, does sensekey not work even if you use the FLpanel version
>>>>>> Istvan did?
>>>>>>
>>>>>>> The "out" at the bottom of the code example should be "outo".
>>>>>>>
>>>>>> Fixed, thanks.
>>>>>>
>>>>>>
>>>>>> Cheers,
>>>>>> Andrés
>>>>>>
>>>>>>
>>>>>> Art Hunkins wrote:
>>>>>>
>>>>>>> Andres,
>>>>>>>
>>>>>>> I can attest that sensekey still does not work in Windows.
>>>>>>>
>>>>>>> The example, when run, given does output a -1 as expected.  
>>>>>>> However, when
>>>>>>>
>>>>>> you
>>>>>>
>>>>>>> press "q" on the ASCII keyboard, it just prints "q" to the screen  
>>>>>>> (as it
>>>>>>> normally would).
>>>>>>>
>>>>>>> Also, in the example printout for sensekey, what in the *world*  
>>>>>>> does
>>>> that
>>>>>>> large number refer to? Surely not the ASCII value for "q"!
>>>>>>>
>>>>>>> Art Hunkins
>>>>>>>
>>>>>>> ----- Original Message -----
>>>>>>> From: "Andres Cabrera" 
>>>>>>> To: "Developer discussions" 
>>>>>>> Sent: Wednesday, November 29, 2006 9:08 AM
>>>>>>> Subject: Re: [Cs-dev] Is there a virtual midi controller opcode,  
>>>>>>> or it
>>>>>>>
>>>>>> needs
>>>>>>
>>>>>>> to be coded?
>>>>>>>
>>>>>>>
>>>>>>> Hi Robson,
>>>>>>> If you want to use the keyboard for input, you might want to have  
>>>>>>> a look
>>>>>>> at the sensekey opcode.
>>>>>>>
>>>>>>>
>>>>>>> Cheers,
>>>>>>> Andrés
>>>>>>>
>>>>>>> Robson Cozendey wrote:
>>>>>>>
>>>>>>>
>>>>>>>> Hi Steven,
>>>>>>>>
>>>>>>>> Its in your plans in the future to allow the Virtual Midi  
>>>>>>>> Keyboard to
>>>>>>>> assign different keystrokes to MIDI Values, defined by the user?
>>>>>>>> I´m saying that because, if someone wants to use the keyboard  
>>>>>>>> like a
>>>>>>>> drumkit (like me), it would be nicer to use the numeric keypad  
>>>>>>>> for it,
>>>>>>>> instead of the default piano-like setting :)
>>>>>>>>
>>>>>>>> thx in advance,
>>>>>>>> robson
>>>>>>>>
>>>>>>>>
>>>>>>>> On 11/25/06, *Robson Cozendey* >>>>>>> > wrote:
>>>>>>>>
>>>>>>>>     Ok, I could read it in the tagged way :-)
>>>>>>>>     Now I´m moving to the general list, thanks for the good news!
>>>>>>>>
>>>>>>>>
>>>>>>>>     On 11/25/06, *Robson Cozendey* >>>>>>>     > wrote:
>>>>>>>>
>>>>>>>>         Thank you, Steven!
>>>>>>>>
>>>>>>>>         I downloaded the XML manual page, but it´s not being
>>>>>>>>         recognized by Internet Explorer. Is it expected, should I  
>>>>>>>> get
>>>>>>>>         another browser to work?
>>>>>>>>
>>>>>>>>         thx again,
>>>>>>>>         robson
>>>>>>>>
>>>>>>>>         ps: I know that this discussion is going away of the dev
>>>>>>>>         purpose... as soon as possible, I will move it to the  
>>>>>>>> general
>>>>>>>>         list :-)
>>>>>>>>
>>>>>>>>
>>>>>>>>         On 11/25/06, *Steven Yi* >>>>>>>         > wrote:
>>>>>>>>
>>>>>>>>             Hi Robson,
>>>>>>>>
>>>>>>>>             Yes, the virtual keyboard is in CVS and also was  
>>>>>>>> released
>>>>>>>>             in 5.04.
>>>>>>>>             There is a manual entry but it wasn't done until after
>>>>>>>>             5.04 was
>>>>>>>>             released, so you have to get it from CVS.  (You can  
>>>>>>>> see
>>>>>>>>             the xml here:
>>>>>>>>
>>>>>>>>
>>>>>>>>
>>>>>>>>
>>>> http://csound.cvs.sourceforge.net/csound/manual/midi/virtual.xml? 
>>>> revision=1.2&view=markup
>>>> >>> revision=1>>
>>>>>>> .2&view=markup>
>>>>>>>
>>>>>>>
>>>>>>>>             and image here:
>>>>>>>>
>>>>>>>>
>>>>>>>>
>>>>>>>>
>>>> http://csound.cvs.sourceforge.net/csound/manual/images/ 
>>>> virtualkeyboard.png?revision=1.1&view=markup
>>>> >>> virtualkeyboard.png?>>
>>>>>>> revision=1.1&view=markup>
>>>>>>>
>>>>>>>
>>>>>>>>             steven
>>>>>>>>
>>>>>>>>
>>>>>>>>             On 11/25/06, Robson Cozendey <
>>>>>>>>             robson.cozendey.rj@gmail.com
>>>>>>>>             > wrote:
>>>>>>>>> Hello everyone,
>>>>>>>>>
>>>>>>>>> Thanks for the help on building CSound, in the other
>>>>>>>>             topic :)
>>>>>>>>> One of the reasons I entered the list, is that I did not
>>>>>>>>             found an opcode
>>>>>>>>> with the functionality I needed, so I wondered that I
>>>>>>>>             would need to code it,
>>>>>>>>> so here I am.
>>>>>>>>>
>>>>>>>>> The opcode I need and didn´t found was a virtual midi
>>>>>>>>             controller, that would
>>>>>>>>> turn the PC keyboard into a midi controller, and each
>>>>>>>>             keystroke would send a
>>>>>>>>> midi message to CSound.
>>>>>>>>>
>>>>>>>>> But before starting it, I would like to know if I didn´t
>>>>>>>>             missed something,
>>>>>>>>> maybe already exists such an opcode, and I would not need
>>>>>>>>             to re-invent the
>>>>>>>>> wheel
>>>>>>>>>
>>>>>>>>> I´m saying that because I read (in the Steven Yi deferred
>>>>>>>>             plug-in topic)
>>>>>>>>> that he was working on some sort of a virtual keyboard
>>>>>>>>             driver, so maybe
>>>>>>>>> somewhere inside CSound there is such a functionality
>>>>>>>>             already. I would be
>>>>>>>>> glad to find that is such a case
>>>>>>>>> Otherwise, I would start my homework asap...
>>>>>>>>>
>>>>>>>>> thanks in advance,
>>>>>>>>> robson
>>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>>
>>>>> --------------------------------------------------------------------- 
>>>>> ----
>>>>>>>>> Take Surveys. Earn Cash. Influence the Future of IT
>>>>>>>>> Join SourceForge.net's Techsay panel and you'll get the
>>>>>>>>             chance to share your
>>>>>>>>> opinions on IT & business topics through brief surveys -
>>>>>>>>             and earn cash
>>>>>>>>
>>>> http://www.techsay.com/default.php? 
>>>> page=join.php&p=sourceforge&CID=DEVDEV
>>>>>>>
>>>> >>> page=join.php&p=sourceforge&CID=DEVDEV>
>>>>>>>>> _______________________________________________
>>>>>>>>> Csound-devel mailing list
>>>>>>>>> Csound-devel@lists.sourceforge.net
>>>>>>>>             
>>>>>>>>> https://lists.sourceforge.net/lists/listinfo/csound-devel
>>>>>>>>              
>>>>>>>> 
>>>>>>>>>
>>>>>>>>              
>>>>>>>> -----------------------------------------------------------
>>>> -
>>>>> -
>>>>>> -
>>>>>>
>>>>>>> -----------
>>>>>>>
>>>>>>>
>>>>>>>>             Take Surveys. Earn Cash. Influence the Future of IT
>>>>>>>>             Join SourceForge.net's Techsay panel and you'll get  
>>>>>>>> the
>>>>>>>>             chance to share your
>>>>>>>>             opinions on IT & business topics through brief  
>>>>>>>> surveys -
>>>>>>>>             and earn cash
>>>>>>>>
>>>>>>>>
>>>>>>>>
>>>> http://www.techsay.com/default.php? 
>>>> page=join.php&p=sourceforge&CID=DEVDEV
>>>>>>>
>>>> >>> page=join.php&p=sourceforge&CID=DEVDEV>
>>>>>>>>             _______________________________________________
>>>>>>>>             Csound-devel mailing list
>>>>>>>>             Csound-devel@lists.sourceforge.net
>>>>>>>>             
>>>>>>>>              
>>>>>>>> https://lists.sourceforge.net/lists/listinfo/csound-devel
>>>>>>>>              
>>>>>>>> 
>>>>>>>>
>>>>>>>>
>>>>>>>>
>>>>>>>>
>>>>>>>> ------------------------------------------------------------------ 
>>>>>>>> -----
>>>> -
>>>>>>>> ------------------------------------------------------------------ 
>>>>>>>> -----
>>>> -
>>>>> -
>>>>>>>> Take Surveys. Earn Cash. Influence the Future of IT
>>>>>>>> Join SourceForge.net's Techsay panel and you'll get the chance to  
>>>>>>>> share
>>>>>>>>
>>>>>>>>
>>>>>>> your
>>>>>>>
>>>>>>>
>>>>>>>> opinions on IT & business topics through brief surveys - and earn  
>>>>>>>> cash
>>>>>>>>
>>>>> http://www.techsay.com/default.php? 
>>>>> page=join.php&p=sourceforge&CID=DEVDEV
>>>>>>>> ------------------------------------------------------------------ 
>>>>>>>> -----
>>>> -
>>>>>>>> _______________________________________________
>>>>>>>> Csound-devel mailing list
>>>>>>>> Csound-devel@lists.sourceforge.net
>>>>>>>> https://lists.sourceforge.net/lists/listinfo/csound-devel
>>>>>>>>
>>>>>>>>
>>>>>>>>
>>>>>>> ------------------------------------------------------------------- 
>>>>>>> -----
>>>> -
>>>>>>> Take Surveys. Earn Cash. Influence the Future of IT
>>>>>>> Join SourceForge.net's Techsay panel and you'll get the chance to  
>>>>>>> share
>>>>>>>
>>>>>> your
>>>>>>
>>>>>>> opinions on IT & business topics through brief surveys - and earn  
>>>>>>> cash
>>>>>>>
>>>> http://www.techsay.com/default.php? 
>>>> page=join.php&p=sourceforge&CID=DEVDEV
>>>>>>> _______________________________________________
>>>>>>> Csound-devel mailing list
>>>>>>> Csound-devel@lists.sourceforge.net
>>>>>>> https://lists.sourceforge.net/lists/listinfo/csound-devel
>>>>>>>
>>>>>>>
>>>>>>> ------------------------------------------------------------------- 
>>>>>>> -----
>>>> -
>>>>>>> Take Surveys. Earn Cash. Influence the Future of IT
>>>>>>> Join SourceForge.net's Techsay panel and you'll get the chance to  
>>>>>>> share
>>>>>>>
>>>>>> your
>>>>>>
>>>>>>> opinions on IT & business topics through brief surveys - and earn  
>>>>>>> cash
>>>>>>>
>>>> http://www.techsay.com/default.php? 
>>>> page=join.php&p=sourceforge&CID=DEVDEV
>>>>>>> _______________________________________________
>>>>>>> Csound-devel mailing list
>>>>>>> Csound-devel@lists.sourceforge.net
>>>>>>> https://lists.sourceforge.net/lists/listinfo/csound-devel
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>> -------------------------------------------------------------------- 
>>>>>> -----
>>>>>> Take Surveys. Earn Cash. Influence the Future of IT
>>>>>> Join SourceForge.net's Techsay panel and you'll get the chance to  
>>>>>> share
>>>>> your
>>>>>> opinions on IT & business topics through brief surveys - and earn  
>>>>>> cash
>>>>>> http://www.techsay.com/default.php? 
>>>>>> page=join.php&p=sourceforge&CID=DEVDEV
>>>>>> _______________________________________________
>>>>>> Csound-devel mailing list
>>>>>> Csound-devel@lists.sourceforge.net
>>>>>> https://lists.sourceforge.net/lists/listinfo/csound-devel
>>>>>>
>>>>>>
>>>>>> -------------------------------------------------------------------- 
>>>>>> -----
>>>>>> Take Surveys. Earn Cash. Influence the Future of IT
>>>>>> Join SourceForge.net's Techsay panel and you'll get the chance to  
>>>>>> share
>>>>> your
>>>>>> opinions on IT & business topics through brief surveys - and earn  
>>>>>> cash
>>>>>> http://www.techsay.com/default.php? 
>>>>>> page=join.php&p=sourceforge&CID=DEVDEV
>>>>>> _______________________________________________
>>>>>> Csound-devel mailing list
>>>>>> Csound-devel@lists.sourceforge.net
>>>>>> https://lists.sourceforge.net/lists/listinfo/csound-devel
>>>>>>
>>>>>>
>>>>> --------------------------------------------------------------------- 
>>>>> ----
>>>>> Take Surveys. Earn Cash. Influence the Future of IT
>>>>> Join SourceForge.net's Techsay panel and you'll get the chance to  
>>>>> share
>>>> your
>>>>> opinions on IT & business topics through brief surveys - and earn  
>>>>> cash
>>>>> http://www.techsay.com/default.php? 
>>>>> page=join.php&p=sourceforge&CID=DEVDEV
>>>>> _______________________________________________
>>>>> Csound-devel mailing list
>>>>> Csound-devel@lists.sourceforge.net
>>>>> https://lists.sourceforge.net/lists/listinfo/csound-devel
>>>>>
>>>>>
>>>>> --------------------------------------------------------------------- 
>>>>> ----
>>>>> Take Surveys. Earn Cash. Influence the Future of IT
>>>>> Join SourceForge.net's Techsay panel and you'll get the chance to  
>>>>> share
>>>> your
>>>>> opinions on IT & business topics through brief surveys - and earn  
>>>>> cash
>>>>> http://www.techsay.com/default.php? 
>>>>> page=join.php&p=sourceforge&CID=DEVDEV
>>>>> _______________________________________________
>>>>> Csound-devel mailing list
>>>>> Csound-devel@lists.sourceforge.net
>>>>> https://lists.sourceforge.net/lists/listinfo/csound-devel
>>>> ---------------------------------------------------------------------- 
>>>> ---
>>>> Take Surveys. Earn Cash. Influence the Future of IT
>>>> Join SourceForge.net's Techsay panel and you'll get the chance to  
>>>> share your
>>>> opinions on IT & business topics through brief surveys - and earn cash
>>>> http://www.techsay.com/default.php? 
>>>> page=join.php&p=sourceforge&CID=DEVDEV
>>>> _______________________________________________
>>>> Csound-devel mailing list
>>>> Csound-devel@lists.sourceforge.net
>>>> https://lists.sourceforge.net/lists/listinfo/csound-devel
>>>>
>>>>
>>>> ---------------------------------------------------------------------- 
>>>> ---
>>>> Take Surveys. Earn Cash. Influence the Future of IT
>>>> Join SourceForge.net's Techsay panel and you'll get the chance to  
>>>> share your
>>>> opinions on IT & business topics through brief surveys - and earn cash
>>>> http://www.techsay.com/default.php? 
>>>> page=join.php&p=sourceforge&CID=DEVDEV
>>>> _______________________________________________
>>>> Csound-devel mailing list
>>>> Csound-devel@lists.sourceforge.net
>>>> https://lists.sourceforge.net/lists/listinfo/csound-devel
>>> Victor Lazzarini
>>> Music Technology Laboratory
>>> Music Department
>>> National University of Ireland, Maynooth
>>>
>>>
>>> ----------------------------------------------------------------------- 
>>> --
>>> Take Surveys. Earn Cash. Influence the Future of IT
>>> Join SourceForge.net's Techsay panel and you'll get the chance to  
>>> share your
>>> opinions on IT & business topics through brief surveys - and earn cash
>>> http://www.techsay.com/default.php? 
>>> page=join.php&p=sourceforge&CID=DEVDEV
>>> _______________________________________________
>>> Csound-devel mailing list
>>> Csound-devel@lists.sourceforge.net
>>> https://lists.sourceforge.net/lists/listinfo/csound-devel
>>>
>>
>> -------------------------------------------------------------------------
>> Take Surveys. Earn Cash. Influence the Future of IT
>> Join SourceForge.net's Techsay panel and you'll get the chance to share your
>> opinions on IT & business topics through brief surveys - and earn cash
>> http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
>> _______________________________________________
>> Csound-devel mailing list
>> Csound-devel@lists.sourceforge.net
>> https://lists.sourceforge.net/lists/listinfo/csound-devel
>>
> 
> -------------------------------------------------------------------------
> Take Surveys. Earn Cash. Influence the Future of IT
> Join SourceForge.net's Techsay panel and you'll get the chance to share your
> opinions on IT & business topics through brief surveys - and earn cash
> http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
> _______________________________________________
> Csound-devel mailing list
> Csound-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/csound-devel
> 

-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Csound-devel mailing list
Csound-devel@lists.sourceforge.net

Date2006-12-01 15:52
FromVictor Lazzarini
SubjectRe: [Cs-dev] sensekey
yep. It seems that it is able to do a good job of audio
because it calls performksmps() or performbuffer() from
the coreaudio callback, dispensing with intermediary buffering.
But Matt can fill in the details.

Victor

At 15:48 01/12/2006, you wrote:
>By the way, out of curiosity, does MacCsound does this?
>
> > David Akbari wrote:
> >> Does Lettuce also use its own audio callbacks ?
> >>
> >> I'm just curious and I haven't used the software in a while....
> >>
> >>
> >> -David
> >>
> >> On Dec 1, 2006, at 9:15 AM, Victor Lazzarini wrote:
> >>
> >>> But it does work on Windows, with/without FLTK. It doesn't work with
> >>> Lettuce, which
> >>> is a different thing.
> >>>
> >>> Victor
> >>>
> >>> At 14:34 01/12/2006, you wrote:
> >>>> Thanks, Jonathan.
> >>>>
> >>>> Your example works fine in Windows. My problem was simply that I was
> >>>> trying
> >>>> to use sensekey directly (no FLTK) within Lettuce. This apparently is
> >>>> the
> >>>> only thing that "doesn't work in Windows."
> >>>>
> >>>> Art Hunkins
> >>>>
> >>>> ----- Original Message -----
> >>>> From: "Jonathan Murphy" 
> >>>> To: "Art Hunkins" 
> >>>> Cc: "Developer discussions" 
> >>>> Sent: Thursday, November 30, 2006 6:44 PM
> >>>> Subject: Re: [Cs-dev] sensekey
> >>>>
> >>>>
> >>>>
> >>>> Yes, it does. It says:
> >>>>
> >>>> "If the ikbdcapture flag is set, the window captures keyboard events,
> >>>>  and sends them to all sensekey. This flag modifies the behavior of
> >>>>  sensekey, and makes it receive events from the FLTK window instead of
> >>>>  stdin."
> >>>>
> >>>> Here is an example, the keys should light up the buttons corresponding
> >>>> to their ASCII value. Hope this helps (and that it's not really broken
> >>>> under windows).
> >>>>
> >>>> Jonathan.
> >>>>
> >>>> 
> >>>>
> >>>> 
> >>>>
> >>>> 
> >>>>
> >>>> 
> >>>>
> >>>>   sr     =  48000
> >>>>   ksmps     =  64
> >>>>   nchnls    =  2
> >>>>
> >>>>
> >>>> ; ikbdcapture flag set to 1
> >>>>   ikey     init      1
> >>>>
> >>>>     FLpanel   "sensekey", 740, 340, 100, 250, 2, ikey
> >>>>   gkasc, giasc FLbutBank 2, 16, 8, 700, 300, 20, 20, -1
> >>>>     FLpanelEnd
> >>>>     FLrun
> >>>>
> >>>>     instr 1
> >>>>
> >>>>   kkey     sensekey
> >>>>   kprint    changed   kkey
> >>>>     FLsetVal  kprint, kkey, giasc
> >>>>
> >>>>     endin
> >>>>
> >>>> 
> >>>>
> >>>> 
> >>>> i1 0 60
> >>>> e
> >>>> 
> >>>>
> >>>> 
> >>>>
> >>>>
> >>>> "Art Hunkins"  writes:
> >>>>
> >>>>> Andres,
> >>>>>
> >>>>> I'm afraid I still don't "get it."
> >>>>>
> >>>>> FLpanel doesn't reference a variable named ikbdcapture; nor does a
> >>>>> search
> >>>>> for that variable come up with anything in the Csound5 help file.
> >>>>> Where is
> >>>>> this variable explained?
> >>>>>
> >>>>> I don't suppose you are referring to FLvalue, and passing it an idisp
> >>>> value
> >>>>> through ihandle (I think this output has to be from another widget,
> >>>>> in any
> >>>>> case).
> >>>>>
> >>>>> Also, does this mean that unless you are using FLTK widgets (I'm
> >>>>> currently
> >>>>> using only Lettuce which is not FLTK) that sensekey is not available
> >>>>> (in
> >>>>> Windows)?
> >>>>>
> >>>>> I'd surely like to explore sensekey as a MIDI control substitute in
> >>>>> some
> >>>>> realtime settings - particularly as event triggers. In this context,
> >>>>> an
> >>>>> ASCII keyboard makes a lot more sense than a MIDI keyboard (except
> >>>>> for
> >>>>> button output).
> >>>>>
> >>>>> Art Hunkins
> >>>>>
> >>>>> ----- Original Message -----
> >>>>> From: "Andres Cabrera" 
> >>>>> To: "Art Hunkins" ; "Developer discussions"
> >>>>> 
> >>>>> Sent: Thursday, November 30, 2006 11:59 AM
> >>>>> Subject: Re: [Cs-dev] sensekey
> >>>>>
> >>>>>
> >>>>> Hi Art,
> >>>>> If you create an FLpanel, and set the ikbdcapture flag to 1, this
> >>>>> FLwindow will capture keyboard events through sensekey.
> >>>>> Diffamator uses this.
> >>>>>
> >>>>> Cheers,
> >>>>> Andres
> >>>>>
> >>>>>
> >>>>> Art Hunkins wrote:
> >>>>>> Andres,
> >>>>>>
> >>>>>> Regarding sensekey: I only tried the example in the Csound5 help
> >>>>>> file.
> >>>>>>
> >>>>>> Where is Istvan's FLpanel version located? (I'll try it, on WinME
> >>>>>> as I
> >>>> did
> >>>>>> the other.)
> >>>>>>
> >>>>>> Art Hunkins
> >>>>>>
> >>>>>> ----- Original Message -----
> >>>>>> From: "Andres Cabrera" 
> >>>>>> To: "Art Hunkins" ; "Developer discussions"
> >>>>>> 
> >>>>>> Sent: Thursday, November 30, 2006 9:57 AM
> >>>>>> Subject: Re: [Cs-dev] Is there a virtual midi controller opcode, or
> >>>>>> it
> >>>>> needs
> >>>>>> to be coded?
> >>>>>>
> >>>>>>
> >>>>>> Hi Art,
> >>>>>>
> >>>>>>> Also, in the example printout for sensekey, what in the *world*
> >>>>>>> does
> >>>> that
> >>>>>>> large number refer to? Surely not the ASCII value for "q"!
> >>>>>>>
> >>>>>> Thanks, changed. q gives 113.
> >>>>>> However, does sensekey not work even if you use the FLpanel version
> >>>>>> Istvan did?
> >>>>>>
> >>>>>>> The "out" at the bottom of the code example should be "outo".
> >>>>>>>
> >>>>>> Fixed, thanks.
> >>>>>>
> >>>>>>
> >>>>>> Cheers,
> >>>>>> Andrés
> >>>>>>
> >>>>>>
> >>>>>> Art Hunkins wrote:
> >>>>>>
> >>>>>>> Andres,
> >>>>>>>
> >>>>>>> I can attest that sensekey still does not work in Windows.
> >>>>>>>
> >>>>>>> The example, when run, given does output a -1 as expected.
> >>>>>>> However, when
> >>>>>>>
> >>>>>> you
> >>>>>>
> >>>>>>> press "q" on the ASCII keyboard, it just prints "q" to the screen
> >>>>>>> (as it
> >>>>>>> normally would).
> >>>>>>>
> >>>>>>> Also, in the example printout for sensekey, what in the *world*
> >>>>>>> does
> >>>> that
> >>>>>>> large number refer to? Surely not the ASCII value for "q"!
> >>>>>>>
> >>>>>>> Art Hunkins
> >>>>>>>
> >>>>>>> ----- Original Message -----
> >>>>>>> From: "Andres Cabrera" 
> >>>>>>> To: "Developer discussions" 
> >>>>>>> Sent: Wednesday, November 29, 2006 9:08 AM
> >>>>>>> Subject: Re: [Cs-dev] Is there a virtual midi controller opcode,
> >>>>>>> or it
> >>>>>>>
> >>>>>> needs
> >>>>>>
> >>>>>>> to be coded?
> >>>>>>>
> >>>>>>>
> >>>>>>> Hi Robson,
> >>>>>>> If you want to use the keyboard for input, you might want to have
> >>>>>>> a look
> >>>>>>> at the sensekey opcode.
> >>>>>>>
> >>>>>>>
> >>>>>>> Cheers,
> >>>>>>> Andrés
> >>>>>>>
> >>>>>>> Robson Cozendey wrote:
> >>>>>>>
> >>>>>>>
> >>>>>>>> Hi Steven,
> >>>>>>>>
> >>>>>>>> Its in your plans in the future to allow the Virtual Midi
> >>>>>>>> Keyboard to
> >>>>>>>> assign different keystrokes to MIDI Values, defined by the user?
> >>>>>>>> I´m saying that because, if someone wants to use the keyboard
> >>>>>>>> like a
> >>>>>>>> drumkit (like me), it would be nicer to use the numeric keypad
> >>>>>>>> for it,
> >>>>>>>> instead of the default piano-like setting :)
> >>>>>>>>
> >>>>>>>> thx in advance,
> >>>>>>>> robson
> >>>>>>>>
> >>>>>>>>
> >>>>>>>> On 11/25/06, *Robson Cozendey*  >>>>>>>> > wrote:
> >>>>>>>>
> >>>>>>>>     Ok, I could read it in the tagged way :-)
> >>>>>>>>     Now I´m moving to the general list, thanks for the good news!
> >>>>>>>>
> >>>>>>>>
> >>>>>>>>     On 11/25/06, *Robson Cozendey*  >>>>>>>>     > wrote:
> >>>>>>>>
> >>>>>>>>         Thank you, Steven!
> >>>>>>>>
> >>>>>>>>         I downloaded the XML manual page, but it´s not being
> >>>>>>>>         recognized by Internet Explorer. Is it expected, should I
> >>>>>>>> get
> >>>>>>>>         another browser to work?
> >>>>>>>>
> >>>>>>>>         thx again,
> >>>>>>>>         robson
> >>>>>>>>
> >>>>>>>>         ps: I know that this discussion is going away of the dev
> >>>>>>>>         purpose... as soon as possible, I will move it to the
> >>>>>>>> general
> >>>>>>>>         list :-)
> >>>>>>>>
> >>>>>>>>
> >>>>>>>>         On 11/25/06, *Steven Yi*  >>>>>>>>         > wrote:
> >>>>>>>>
> >>>>>>>>             Hi Robson,
> >>>>>>>>
> >>>>>>>>             Yes, the virtual keyboard is in CVS and also was
> >>>>>>>> released
> >>>>>>>>             in 5.04.
> >>>>>>>>             There is a manual entry but it wasn't done until after
> >>>>>>>>             5.04 was
> >>>>>>>>             released, so you have to get it from CVS.  (You can
> >>>>>>>> see
> >>>>>>>>             the xml here:
> >>>>>>>>
> >>>>>>>>
> >>>>>>>>
> >>>>>>>>
> >>>> http://csound.cvs.sourceforge.net/csound/manual/midi/virtual.xml?
> >>>> revision=1.2&view=markup
> >>>> 
> >>> 
> revision=1>>
> >>>>>>> .2&view=markup>
> >>>>>>>
> >>>>>>>
> >>>>>>>>             and image here:
> >>>>>>>>
> >>>>>>>>
> >>>>>>>>
> >>>>>>>>
> >>>> http://csound.cvs.sourceforge.net/csound/manual/images/
> >>>> virtualkeyboard.png?revision=1.1&view=markup
> >>>> >>> 
> virtualkeyboard.png?>>
> >>>>>>> revision=1.1&view=markup>
> >>>>>>>
> >>>>>>>
> >>>>>>>>             steven
> >>>>>>>>
> >>>>>>>>
> >>>>>>>>             On 11/25/06, Robson Cozendey <
> >>>>>>>>             robson.cozendey.rj@gmail.com
> >>>>>>>>             > wrote:
> >>>>>>>>> Hello everyone,
> >>>>>>>>>
> >>>>>>>>> Thanks for the help on building CSound, in the other
> >>>>>>>>             topic :)
> >>>>>>>>> One of the reasons I entered the list, is that I did not
> >>>>>>>>             found an opcode
> >>>>>>>>> with the functionality I needed, so I wondered that I
> >>>>>>>>             would need to code it,
> >>>>>>>>> so here I am.
> >>>>>>>>>
> >>>>>>>>> The opcode I need and didn´t found was a virtual midi
> >>>>>>>>             controller, that would
> >>>>>>>>> turn the PC keyboard into a midi controller, and each
> >>>>>>>>             keystroke would send a
> >>>>>>>>> midi message to CSound.
> >>>>>>>>>
> >>>>>>>>> But before starting it, I would like to know if I didn´t
> >>>>>>>>             missed something,
> >>>>>>>>> maybe already exists such an opcode, and I would not need
> >>>>>>>>             to re-invent the
> >>>>>>>>> wheel
> >>>>>>>>>
> >>>>>>>>> I´m saying that because I read (in the Steven Yi deferred
> >>>>>>>>             plug-in topic)
> >>>>>>>>> that he was working on some sort of a virtual keyboard
> >>>>>>>>             driver, so maybe
> >>>>>>>>> somewhere inside CSound there is such a functionality
> >>>>>>>>             already. I would be
> >>>>>>>>> glad to find that is such a case
> >>>>>>>>> Otherwise, I would start my homework asap...
> >>>>>>>>>
> >>>>>>>>> thanks in advance,
> >>>>>>>>> robson
> >>>>>>>>
> >>>>>>>
> >>>>>>>
> >>>>>>>
> >>>>>>>
> >>>>>>>
> >>>>>>>
> >>>>>>>
> >>>>>>>
> >>>>>>>
> >>>>> ---------------------------------------------------------------------
> >>>>> ----
> >>>>>>>>> Take Surveys. Earn Cash. Influence the Future of IT
> >>>>>>>>> Join SourceForge.net's Techsay panel and you'll get the
> >>>>>>>>             chance to share your
> >>>>>>>>> opinions on IT & business topics through brief surveys -
> >>>>>>>>             and earn cash
> >>>>>>>>
> >>>> http://www.techsay.com/default.php?
> >>>> page=join.php&p=sourceforge&CID=DEVDEV
> >>>>>>>
> >>>> >>> 
> page=join.php&p=sourceforge&CID=DEVDEV>
> >>>>>>>>> _______________________________________________
> >>>>>>>>> Csound-devel mailing list
> >>>>>>>>> Csound-devel@lists.sourceforge.net
> >>>>>>>>             
> >>>>>>>>> https://lists.sourceforge.net/lists/listinfo/csound-devel
> >>>>>>>>
> >>>>>>>> 
> >>>>>>>>>
> >>>>>>>>
> >>>>>>>> -----------------------------------------------------------
> >>>> -
> >>>>> -
> >>>>>> -
> >>>>>>
> >>>>>>> -----------
> >>>>>>>
> >>>>>>>
> >>>>>>>>             Take Surveys. Earn Cash. Influence the Future of IT
> >>>>>>>>             Join SourceForge.net's Techsay panel and you'll get
> >>>>>>>> the
> >>>>>>>>             chance to share your
> >>>>>>>>             opinions on IT & business topics through brief
> >>>>>>>> surveys -
> >>>>>>>>             and earn cash
> >>>>>>>>
> >>>>>>>>
> >>>>>>>>
> >>>> http://www.techsay.com/default.php?
> >>>> page=join.php&p=sourceforge&CID=DEVDEV
> >>>>>>>
> >>>> >>> 
> page=join.php&p=sourceforge&CID=DEVDEV>
> >>>>>>>>             _______________________________________________
> >>>>>>>>             Csound-devel mailing list
> >>>>>>>>             Csound-devel@lists.sourceforge.net
> >>>>>>>>             
> >>>>>>>>
> >>>>>>>> https://lists.sourceforge.net/lists/listinfo/csound-devel
> >>>>>>>>
> >>>>>>>> 
> >>>>>>>>
> >>>>>>>>
> >>>>>>>>
> >>>>>>>>
> >>>>>>>> ------------------------------------------------------------------
> >>>>>>>> -----
> >>>> -
> >>>>>>>> ------------------------------------------------------------------
> >>>>>>>> -----
> >>>> -
> >>>>> -
> >>>>>>>> Take Surveys. Earn Cash. Influence the Future of IT
> >>>>>>>> Join SourceForge.net's Techsay panel and you'll get the chance to
> >>>>>>>> share
> >>>>>>>>
> >>>>>>>>
> >>>>>>> your
> >>>>>>>
> >>>>>>>
> >>>>>>>> opinions on IT & business topics through brief surveys - and earn
> >>>>>>>> cash
> >>>>>>>>
> >>>>> http://www.techsay.com/default.php?
> >>>>> page=join.php&p=sourceforge&CID=DEVDEV
> >>>>>>>> ------------------------------------------------------------------
> >>>>>>>> -----
> >>>> -
> >>>>>>>> _______________________________________________
> >>>>>>>> Csound-devel mailing list
> >>>>>>>> Csound-devel@lists.sourceforge.net
> >>>>>>>> https://lists.sourceforge.net/lists/listinfo/csound-devel
> >>>>>>>>
> >>>>>>>>
> >>>>>>>>
> >>>>>>> -------------------------------------------------------------------
> >>>>>>> -----
> >>>> -
> >>>>>>> Take Surveys. Earn Cash. Influence the Future of IT
> >>>>>>> Join SourceForge.net's Techsay panel and you'll get the chance to
> >>>>>>> share
> >>>>>>>
> >>>>>> your
> >>>>>>
> >>>>>>> opinions on IT & business topics through brief surveys - and earn
> >>>>>>> cash
> >>>>>>>
> >>>> http://www.techsay.com/default.php?
> >>>> page=join.php&p=sourceforge&CID=DEVDEV
> >>>>>>> _______________________________________________
> >>>>>>> Csound-devel mailing list
> >>>>>>> Csound-devel@lists.sourceforge.net
> >>>>>>> https://lists.sourceforge.net/lists/listinfo/csound-devel
> >>>>>>>
> >>>>>>>
> >>>>>>> -------------------------------------------------------------------
> >>>>>>> -----
> >>>> -
> >>>>>>> Take Surveys. Earn Cash. Influence the Future of IT
> >>>>>>> Join SourceForge.net's Techsay panel and you'll get the chance to
> >>>>>>> share
> >>>>>>>
> >>>>>> your
> >>>>>>
> >>>>>>> opinions on IT & business topics through brief surveys - and earn
> >>>>>>> cash
> >>>>>>>
> >>>> http://www.techsay.com/default.php?
> >>>> page=join.php&p=sourceforge&CID=DEVDEV
> >>>>>>> _______________________________________________
> >>>>>>> Csound-devel mailing list
> >>>>>>> Csound-devel@lists.sourceforge.net
> >>>>>>> https://lists.sourceforge.net/lists/listinfo/csound-devel
> >>>>>>>
> >>>>>>>
> >>>>>>>
> >>>>>> --------------------------------------------------------------------
> >>>>>> -----
> >>>>>> Take Surveys. Earn Cash. Influence the Future of IT
> >>>>>> Join SourceForge.net's Techsay panel and you'll get the chance to
> >>>>>> share
> >>>>> your
> >>>>>> opinions on IT & business topics through brief surveys - and earn
> >>>>>> cash
> >>>>>> http://www.techsay.com/default.php?
> >>>>>> page=join.php&p=sourceforge&CID=DEVDEV
> >>>>>> _______________________________________________
> >>>>>> Csound-devel mailing list
> >>>>>> Csound-devel@lists.sourceforge.net
> >>>>>> https://lists.sourceforge.net/lists/listinfo/csound-devel
> >>>>>>
> >>>>>>
> >>>>>> --------------------------------------------------------------------
> >>>>>> -----
> >>>>>> Take Surveys. Earn Cash. Influence the Future of IT
> >>>>>> Join SourceForge.net's Techsay panel and you'll get the chance to
> >>>>>> share
> >>>>> your
> >>>>>> opinions on IT & business topics through brief surveys - and earn
> >>>>>> cash
> >>>>>> http://www.techsay.com/default.php?
> >>>>>> page=join.php&p=sourceforge&CID=DEVDEV
> >>>>>> _______________________________________________
> >>>>>> Csound-devel mailing list
> >>>>>> Csound-devel@lists.sourceforge.net
> >>>>>> https://lists.sourceforge.net/lists/listinfo/csound-devel
> >>>>>>
> >>>>>>
> >>>>> ---------------------------------------------------------------------
> >>>>> ----
> >>>>> Take Surveys. Earn Cash. Influence the Future of IT
> >>>>> Join SourceForge.net's Techsay panel and you'll get the chance to
> >>>>> share
> >>>> your
> >>>>> opinions on IT & business topics through brief surveys - and earn
> >>>>> cash
> >>>>> http://www.techsay.com/default.php?
> >>>>> page=join.php&p=sourceforge&CID=DEVDEV
> >>>>> _______________________________________________
> >>>>> Csound-devel mailing list
> >>>>> Csound-devel@lists.sourceforge.net
> >>>>> https://lists.sourceforge.net/lists/listinfo/csound-devel
> >>>>>
> >>>>>
> >>>>> ---------------------------------------------------------------------
> >>>>> ----
> >>>>> Take Surveys. Earn Cash. Influence the Future of IT
> >>>>> Join SourceForge.net's Techsay panel and you'll get the chance to
> >>>>> share
> >>>> your
> >>>>> opinions on IT & business topics through brief surveys - and earn
> >>>>> cash
> >>>>> http://www.techsay.com/default.php?
> >>>>> page=join.php&p=sourceforge&CID=DEVDEV
> >>>>> _______________________________________________
> >>>>> Csound-devel mailing list
> >>>>> Csound-devel@lists.sourceforge.net
> >>>>> https://lists.sourceforge.net/lists/listinfo/csound-devel
> >>>> ----------------------------------------------------------------------
> >>>> ---
> >>>> Take Surveys. Earn Cash. Influence the Future of IT
> >>>> Join SourceForge.net's Techsay panel and you'll get the chance to
> >>>> share your
> >>>> opinions on IT & business topics through brief surveys - and earn cash
> >>>> http://www.techsay.com/default.php?
> >>>> page=join.php&p=sourceforge&CID=DEVDEV
> >>>> _______________________________________________
> >>>> Csound-devel mailing list
> >>>> Csound-devel@lists.sourceforge.net
> >>>> https://lists.sourceforge.net/lists/listinfo/csound-devel
> >>>>
> >>>>
> >>>> ----------------------------------------------------------------------
> >>>> ---
> >>>> Take Surveys. Earn Cash. Influence the Future of IT
> >>>> Join SourceForge.net's Techsay panel and you'll get the chance to
> >>>> share your
> >>>> opinions on IT & business topics through brief surveys - and earn cash
> >>>> http://www.techsay.com/default.php?
> >>>> page=join.php&p=sourceforge&CID=DEVDEV
> >>>> _______________________________________________
> >>>> Csound-devel mailing list
> >>>> Csound-devel@lists.sourceforge.net
> >>>> https://lists.sourceforge.net/lists/listinfo/csound-devel
> >>> Victor Lazzarini
> >>> Music Technology Laboratory
> >>> Music Department
> >>> National University of Ireland, Maynooth
> >>>
> >>>
> >>> -----------------------------------------------------------------------
> >>> --
> >>> Take Surveys. Earn Cash. Influence the Future of IT
> >>> Join SourceForge.net's Techsay panel and you'll get the chance to
> >>> share your
> >>> opinions on IT & business topics through brief surveys - and earn cash
> >>> http://www.techsay.com/default.php?
> >>> page=join.php&p=sourceforge&CID=DEVDEV
> >>> _______________________________________________
> >>> Csound-devel mailing list
> >>> Csound-devel@lists.sourceforge.net
> >>> https://lists.sourceforge.net/lists/listinfo/csound-devel
> >>>
> >>
> >> -------------------------------------------------------------------------
> >> Take Surveys. Earn Cash. Influence the Future of IT
> >> Join SourceForge.net's Techsay panel and you'll get the chance to 
> share your
> >> opinions on IT & business topics through brief surveys - and earn cash
> >> http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
> >> _______________________________________________
> >> Csound-devel mailing list
> >> Csound-devel@lists.sourceforge.net
> >> https://lists.sourceforge.net/lists/listinfo/csound-devel
> >>
> >
> > -------------------------------------------------------------------------
> > Take Surveys. Earn Cash. Influence the Future of IT
> > Join SourceForge.net's Techsay panel and you'll get the chance to share 
> your
> > opinions on IT & business topics through brief surveys - and earn cash
> > http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
> > _______________________________________________
> > Csound-devel mailing list
> > Csound-devel@lists.sourceforge.net
> > https://lists.sourceforge.net/lists/listinfo/csound-devel
> >
>
>-------------------------------------------------------------------------
>Take Surveys. Earn Cash. Influence the Future of IT
>Join SourceForge.net's Techsay panel and you'll get the chance to share your
>opinions on IT & business topics through brief surveys - and earn cash
>http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
>_______________________________________________
>Csound-devel mailing list
>Csound-devel@lists.sourceforge.net
>https://lists.sourceforge.net/lists/listinfo/csound-devel

Victor Lazzarini
Music Technology Laboratory
Music Department
National University of Ireland, Maynooth 


-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Csound-devel mailing list
Csound-devel@lists.sourceforge.net