Answering to my previous post, and just remembered there was a HID object... I guess I could use that... thanks, Eduard
right, but I'm not sure I can open any device with it... How could I open a device I know its name but not the number to use in hid::openJoystick( int )? e.g. /dev/cu.usb-838, could be such devicename. thanks eduard On Jun 30, 2006, at 1:38 AM, Kassen wrote:
On 6/30/06, eduard aylon
wrote: Answering to my previous post, and just remembered there was a HID object... I guess I could use that...
You should. The HID object is realy nice and it's way too easy to have loads of fun with it. _______________________________________________ chuck-users mailing list chuck-users@lists.cs.princeton.edu https://lists.cs.princeton.edu/mailman/listinfo/chuck-users
Hey there,
Serial port support has been suggested before, so maybe some sort of generic API for device access as a byte stream would be useful. This is pretty straightforward in Linux with /dev, Windows has RawInput which might do the trick, but OS X might not be so easy.
spencer
----- Original Message -----
From: eduard aylon
right, but I'm not sure I can open any device with it... How could I open a device I know its name but not the number to use in hid::openJoystick( int )? e.g. /dev/cu.usb-838, could be such devicename.
thanks
eduard
On Jun 30, 2006, at 1:38 AM, Kassen wrote:
On 6/30/06, eduard aylon
wrote: Answering to my previous post, and just remembered there was a HID object... I guess I could use that...
You should. The HID object is realy nice and it's way too easy to have loads of fun with it. _______________________________________________ chuck-users mailing list chuck-users@lists.cs.princeton.edu https://lists.cs.princeton.edu/mailman/listinfo/chuck-users
_______________________________________________ chuck-users mailing list chuck-users@lists.cs.princeton.edu https://lists.cs.princeton.edu/mailman/listinfo/chuck-users
On 6/30/06, Spencer D Salazar (ssalazar@Princeton.EDU)
Hey there, Serial port support has been suggested before, so maybe some sort of generic API for device access as a byte stream would be useful. This is pretty straightforward in Linux with /dev, Windows has RawInput which might do the trick, but OS X might not be so easy.
Serial port would be interesting because you can write to it which would open the way for leds (and lighting rigs and robots and........). What I'd actually like as well is realy simple; I'd like to be able to write to the scroll-lock led. I'd realy like to make the scroll-lock key blink once on the sequence's "one", I actually considered doing a small program for that in Pascal or something and calling it from ChucK. Writing to leds on a HID device would be nice too, basically what I do want is some visual feedback but I don't want to be staring at the schreen while making music if it's not nesicary. Maybe I'm the only one who wants to do something to the scroll-lock led though; in that case it doesn't make any sense to spend time on it for you guys. BTW, doesn't OSX deal with devices like the other *nixes do? Why on earth not? Kas.
On 6/30/06, Kassen
Serial port would be interesting because you can write to it which would open the way for leds (and lighting rigs and robots and........).
I think the parallel port is far more interesting since it has a lot of ins and outs, which can be controlled asynchronously.
What I'd actually like as well is realy simple; I'd like to be able to write to the scroll-lock led. I'd realy like to make the scroll-lock key blink once on the sequence's "one", I actually considered doing a small program for that in Pascal or something and calling it from ChucK. Should be relatively easy to do with an STK that calls the API.
Writing to leds on a HID device would be nice too, basically what I do want is some visual feedback but I don't want to be staring at the schreen while making music if it's not nesicary. Same thing there. (Or possibly some parallel port custom hardware solution - see above.)
Maybe I'm the only one who wants to do something to the scroll-lock led though; in that case it doesn't make any sense to spend time on it for you guys. No, it's a good idea.
BTW, doesn't OSX deal with devices like the other *nixes do? Why on earth not? I'm not totally sure, but it seems that new macs have ditched the classical serial port, and goes for USB only. And to use USB, you need a USB controller, which makes things more complicated.
/nitro2k01 -- -----BEGIN 2ROT13 MESSAGE----- The blog of nitro2k01: http://soundandcomplete.wordpress.com/ Sätt på ett par flipflops, vippa på rumpan och gör det här till en minnesvärd sommar! -----END 2ROT13 MESSAGE-----
On 6/30/06, nitro2k01
I'm not totally sure, but it seems that new macs have ditched the classical serial port, and goes for USB only. And to use USB, you need a USB controller, which makes things more complicated.
AH! Ok, but that actually makes some sense for general purpose laptops these days. I thought Spencer was saying OSX threw the whole way in which Unix abstracts devices out of the window. I would have frowned at that. sorry about that. I'm a bit on my toes about the new Mac laptops, I want one because they are a Nix on the sort of cpu I'm used to and have actual documentation and soundcard drivers so that makes sense to me but some stuff about them is "different" (as apple put it) and I'm not all that clear on what stuff is different and how. Can't you have oldfashioned ports on a usb conection and have the OS take care of the abstraction layers? Anyway, to concence my main argument; ChucK is good for custom sequencers and sequencers benefit from blinking leds. I'm in favour of anything that connects blinking leds to ChucK, preferably without the need for looking up realy complicated stuff though some soldering would be ok. ;¬) Kas.
On 6/30/06, Kassen
Can't you have oldfashioned ports on a usb conection and have the OS take care of the abstraction layers? You could do that, but it would require you to build (or find) a device with a USB controller to do the job for you, which'll cost you time, and a little money. (As opposed to the PC's parallell port where you more or less would be fine with a few pieces of wire and a few diodes.) But it's all a matter of dedication, of course, you wouldn't be the first one to create a USB device.
/nitro2k01 -- -----BEGIN 2ROT13 MESSAGE----- The blog of nitro2k01: http://soundandcomplete.wordpress.com/ Sätt på ett par flipflops, vippa på rumpan och gör det här till en minnesvärd sommar! -----END 2ROT13 MESSAGE-----
Well, my own (wintel) laptop has paralel, serial and USB already so I'll be fine for now. What I meant was that I was under the impression that computer shops would sell usb-paralel converters for a few bucks that would have generalised drivers and would make the whole point of the new Macs lacking old ports moot. I mean; cameras, joypads and heaven knows what plug into computers without the need for any drivers these days so I asumed the same whould hold true for ports. I would be very surprised if that wouldn't be true. I'd also be surprised if this would cost more then 10 or so Euro. This would give everybody blinking leds as opposed to just those with laptops that have oldfashioned ports (which is getting increasingly rare regardless of of the brand). Kas.
You could do that, but it would require you to build (or find) a device with a USB controller to do the job for you, which'll cost you time, and a little money. (As opposed to the PC's parallell port where you more or less would be fine with a few pieces of wire and a few diodes.) But it's all a matter of dedication, of course, you wouldn't be the first one to create a USB device.
Are there any hardware hackers in the crowd? I would love to hear
about the crazy interfaces anyone has connected to Chuck. I've
started an experimental music/multimedia group here in NYC quite
recently and people have some interest in using computers with
homebrew interfaces. (By the way, I'm introducing them to Chuck ;-)
) Anyway, I'd love to hear some anecdotes about adventures with Chuck
and human interface hardware. Or pictures?
Oh, and anyone in area who wants to participate is more than welcome.
Cheers,
Mike
On 6/30/06, Kassen
Well, my own (wintel) laptop has paralel, serial and USB already so I'll be fine for now. What I meant was that I was under the impression that computer shops would sell usb-paralel converters for a few bucks that would have generalised drivers and would make the whole point of the new Macs lacking old ports moot. I mean; cameras, joypads and heaven knows what plug into computers without the need for any drivers these days so I asumed the same whould hold true for ports. I would be very surprised if that wouldn't be true. I'd also be surprised if this would cost more then 10 or so Euro.
This would give everybody blinking leds as opposed to just those with laptops that have oldfashioned ports (which is getting increasingly rare regardless of of the brand).
Kas.
You could do that, but it would require you to build (or find) a device with a USB controller to do the job for you, which'll cost you time, and a little money. (As opposed to the PC's parallell port where you more or less would be fine with a few pieces of wire and a few diodes.) But it's all a matter of dedication, of course, you wouldn't be the first one to create a USB device.
_______________________________________________ chuck-users mailing list chuck-users@lists.cs.princeton.edu https://lists.cs.princeton.edu/mailman/listinfo/chuck-users
-- "ooh aah bleep" -miraton
Mike, i'd be interested in participating. not a hardware hacker per say but i have been making experimental audio work for quite some time. actually just started a record label a couple of months ago (http://phaserprone.com) --> website is currently being overhauled... my own solo stuff is at: http://hsdom.com - jochen On Jun 30, 2006, at 2:57 PM, mike clemow wrote:
Are there any hardware hackers in the crowd? I would love to hear about the crazy interfaces anyone has connected to Chuck. I've started an experimental music/multimedia group here in NYC quite recently and people have some interest in using computers with homebrew interfaces. (By the way, I'm introducing them to Chuck ;-) ) Anyway, I'd love to hear some anecdotes about adventures with Chuck and human interface hardware. Or pictures?
Oh, and anyone in area who wants to participate is more than welcome.
Cheers, Mike
On 6/30/06, Kassen
wrote: Well, my own (wintel) laptop has paralel, serial and USB already so I'll be fine for now. What I meant was that I was under the impression that computer shops would sell usb-paralel converters for a few bucks that would have generalised drivers and would make the whole point of the new Macs lacking old ports moot. I mean; cameras, joypads and heaven knows what plug into computers without the need for any drivers these days so I asumed the same whould hold true for ports. I would be very surprised if that wouldn't be true. I'd also be surprised if this would cost more then 10 or so Euro.
This would give everybody blinking leds as opposed to just those with laptops that have oldfashioned ports (which is getting increasingly rare regardless of of the brand).
Kas.
You could do that, but it would require you to build (or find) a device with a USB controller to do the job for you, which'll cost you time, and a little money. (As opposed to the PC's parallell port where you more or less would be fine with a few pieces of wire and a few diodes.) But it's all a matter of dedication, of course, you wouldn't be the first one to create a USB device.
_______________________________________________ chuck-users mailing list chuck-users@lists.cs.princeton.edu https://lists.cs.princeton.edu/mailman/listinfo/chuck-users
--
"ooh aah bleep" -miraton _______________________________________________ chuck-users mailing list chuck-users@lists.cs.princeton.edu https://lists.cs.princeton.edu/mailman/listinfo/chuck-users
\ jochen|at|jochenhartmann.com jochen.hartmann|at|gmail.com http://jochenhartmann.com | http://quilted.org \\
What I'd actually like as well is realy simple; I'd like to be able to write to the scroll-lock led. I'd realy like to make the scroll-lock key blink once on the sequence's "one", I actually considered doing a small program for that in Pascal or something and calling it from ChucK.
Writing to leds on a HID device would be nice too, basically what I do want is some visual feedback but I don't want to be staring at the schreen while making music if it's not nesicary.
HidIn with mouse and keyboard support is on its way (probably next release), and a new HidOut object is also in the works, which would allow easy programmatic access to keyboard LEDs and also force feedback effects in joysticks.
BTW, doesn't OSX deal with devices like the other *nixes do? Why on earth not?
Actually I think it might; i dont have my mac handy so i cant check at the moment. If it does that would make it not so tricky, contrary to my previous email. Nobody in Mac Dev land really talks about it though, and the current mac HID stuff in chuck uses a different API, so i forgot about that... :/ spencer
participants (6)
-
eduard aylon
-
jochen.hartmann
-
Kassen
-
mike clemow
-
nitro2k01
-
Spencer D Salazar (ssalazar@Princeton.EDU)