[chuck-users] ChucK and STDIN
DANIEL MAGNUSZEWSKI
dmagnuszewski at mandtbank.com
Wed Jul 12 17:28:02 EDT 2006
Yeah, I've looked into this, and actually used it with some stuff that
I've done via the feedback.pl script
(http://www.perl.com/pub/a/2004/08/31/livecode.html). So I've only
really used it from a user, not a developer/coding standpoint.
>>> mcmahon at ibiblio.org 07/12/06 4:53 PM >>>
On Jul 12, 2006, at 1:41 PM, DANIEL MAGNUSZEWSKI wrote:
> 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)?
Check out http://search.cpan.org/~crenz/Net-OpenSoundControl-0.05/ -
it's a Perl module for doing OSC that specifically has an OSC client
class:
use Net::OpenSoundControl::Client;
my $client = Net::OpenSoundControl::Client->new(
Host => "192.168.3.240", Port => 7777)
or die "Could not start client: $@\n";
# This is a very slow fade-in...
for (0..100) {
$client->send(['/Main/Volume', 'f', $_ / 100]);
sleep(1);
}
Dunno if this helps you out or not ...
--- Joe M.
_______________________________________________
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