[chuck-users] ChucK and STDIN

DANIEL MAGNUSZEWSKI dmagnuszewski at mandtbank.com
Wed Jul 12 16:41:50 EDT 2006


Where can I look at the actual code that makes up the KBHit event? Is it
written in C or in ChucK? I'd like to see what that class is actually
doing (behind the scenes) to watch for the keyboard being pressed. 

This is not really what I'm looking for, because I'd like to have other
programs send data into the ChucK program, and not have to send data in
via keyboard.

I'm thinking that OSC may be the best way to get around this- but I'm
not sure. Are there any good intro docs/examples for using OSC (besides,
the docs on OSC's homepage)?

Thanks.

-Dan

>>> ssalazar at princeton.edu 07/12/06 10:05 AM >>>
Hey there,
Theres nothing in the docs about the KBHit class, which can read  
input from the terminal, but there are a few examples of how to use  
it.  Check out:

http://chuck.cs.princeton.edu/doc/examples/event/kb.ck 
http://chuck.cs.princeton.edu/doc/examples/event/kb2.ck 

hope this helps,
spencer

On Jul 11, 2006, at 4:51 PM, DANIEL MAGNUSZEWSKI wrote:

> All,
>
> Is there a way to have a ChucK program take input from STDIN while
> running? I have seen the events page (
> http://chuck.cs.princeton.edu/doc/language/event.html ) where it
> discusses MIDI/OSC events, but I would like to pass information via 

> the
> command line or through a pipe. Does this make sense? Is there a  
> reason
> why this feature is not implemented, or am I just asking for
something
> crazy?!
>
> Thoughts?
>
> Thanks.
>
> -Dan
>
> _______________________________________________
> chuck-users mailing list
> chuck-users at lists.cs.princeton.edu 
> https://lists.cs.princeton.edu/mailman/listinfo/chuck-users 

_______________________________________________
chuck-users mailing list
chuck-users at lists.cs.princeton.edu 
https://lists.cs.princeton.edu/mailman/listinfo/chuck-users 




More information about the chuck-users mailing list