Csound Csound-dev Csound-tekno Search About

Re: [Cs-dev] sensekey

Date2006-11-30 23:48
FromVictor Lazzarini
SubjectRe: [Cs-dev] sensekey
I just looked at the manual and in the FLpanel
entry, ikdbcapture is the last (optional) argument.
(Winhelp 5.03 manual).

Sensekey also seems to work on the command-line. This
little instrument works for me to test it:

instr 1

k2 init 0
k4 init 100
k2 sensekey
if k2 != -1 then
k4 = k2
endif
a1 oscili 10000, (k4*4),1
printk 1, k4
   out a1
endin

Victor

>
> 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
> >
> >>
> >
>  ual.xml?revision=1 >
> >> .2&view=markup>
> >>
> >>
> >>>             and image here:
> >>>
> >>>
> >>>
> >>>
> >
>
http://csound.cvs.sourceforge.net/csound/manual/images/virtualkeyboard.png?revision=1.1&view=markup
> >
> >>
> >
>  rtualkeyboard.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
> >>
> >>
> >>
> >
>
 forge&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
> >>
> >>
> >>
> >
>
 forge&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