Csound Csound-dev Csound-tekno Search About

Re: [Cs-dev] [Csnd] sensekey and Sugar (OLPC)

Date2009-05-08 03:43
From"Art Hunkins"
SubjectRe: [Cs-dev] [Csnd] sensekey and Sugar (OLPC)
Andres,

How about this (I'm grasping now!):

def onKeyPress(self, widget, event):
  self.csound.SetChannel("ascii",event)

Then, in the csd (with no sensekey):

gkasc init 0

gkasc chnget "ascii"
ktrig   trigger gkasc, .5, 0
          if ktrig == 0 goto skip
gkasc = 0
;rest of "ascii-related code" goes here
skip:

----- Original Message ----- 
From: "Andres Cabrera" 
To: "Art Hunkins" 
Sent: Thursday, May 07, 2009 9:42 PM
Subject: Re: [Cs-dev] [Csnd] sensekey and Sugar (OLPC)


On Thu, May 7, 2009 at 8:23 PM, Art Hunkins  wrote:
> Andres,
>
> I think I prefer your first suggestion (quoted below). (I wouldn't begin 
> to
> know how or where to do things in c.)
>
> Can you suggest the code to pass each keystroke to a channel, and via
> chnexport to sensekey?
>

You can't... You can pass he pressed keys through the software bus and
receive them in your csd using invalue or chnget (depending on which
software bus you are using).

Cheers,
Andrés 


------------------------------------------------------------------------------
The NEW KODAK i700 Series Scanners deliver under ANY circumstances! Your
production scanning environment may not be a perfect world - but thanks to
Kodak, there's a perfect scanner to get the job done! With the NEW KODAK i700
Series Scanner you'll get full speed at 300 dpi even with all image 
processing features enabled. http://p.sf.net/sfu/kodak-com
_______________________________________________
Csound-devel mailing list
Csound-devel@lists.sourceforge.net