[chuck-users] serial communication and chuck

ethan cowan ecowan at terpmail.umd.edu
Sun Mar 4 16:54:21 EST 2012


Hi All,

While this is by no means a solution, I have had some success using serial
to midi converters.
Mainly, I have used this to map a gyroscope reading from arduino in to
midi, which was then
read by ChucK. Overall, this method is rather temperamental and
unpredictable,
though sometimes that yields interesting results.

I have not yet looked around to see what similar things have been done,
though I
presume there is a better solution somewhere.


Ethan


On Sun, Mar 4, 2012 at 4:52 PM, Dan Trueman <dtrueman at princeton.edu> wrote:

> totally! would be great for it to have serial!
>
> On Mar 4, 2012, at 4:46 PM, Scott Smallwood wrote:
>
> > I agree that OSC is good to teach - and I always do... but again, most
> of my students are beginners, and my preferred approach is teach a sound
> programming environment, then map controllers via laptop controls, MIDI,
> then HID, then raw sensors via serial / Arduino.  It's just a nice package.
> >
> > THEN OSC comes into play for interfacing between iphones, other
> environments, wireless devices, etc.
> >
> > But you are correct:  it's really important to introduce these protocols
> as early as possible so that students can navigate all of these
> environments effortlessly...
> >
> > The other issue is really just ChucK's selling point.  It is the only
> sound programming environment I know of that doesn't have any serial i/o
> capability... and it seems like a good idea to me to address this.
> >
> > Anyway, that's my 2 cents...
> >
> > --ss
> >
> > On 2012-03-04, at 2:09 PM, trzewiczek wrote:
> >
> >> Hi,
> >>
> >> I'm not C++ dev, so I won't help you with the serial implementation,
> but from the teaching
> >> perspective I think it's a very good idea (and actually some
> opportunity) to teach beginers solving problems with different
> >> tools and use interoperability protocols
> >> like OSC or MIDI. The very next time your
> >> students need some graphics or camera as a sensor, they know it's easy
> to use some
> >> other tools, like Processing and connect it
> >> with ChucK or whatever they use. There is a lot of good commercial
> software that works
> >> just fine with these protocols, so then
> >> after the course is over, your student will be used to connecting
> software in all directions. The classic example for me is
> >> using Modul8 - OSX VJing software that has
> >> quite a complete OSC namespace, so you can
> >> easily use it with SC3 or ChucK to create
> >> advanced, interactive visualizations during
> >> the performance.
> >>
> >> trzewiczek
> >>
> >>
> >>
> >> On Sun, 4 Mar 2012, Stephen David Beck wrote:
> >>
> >>> I have a similar situation with a class that we are teaching. But the
> students have already learned Processing basics and ChucK basics before
> they do Arduino. So getting them to connect the Arduino to ChucK using
> Processing and OSC is not a problem.
> >>>
> >>> But I would be equally interested in a serial communication solution.
> >>>
> >>> Steve
> >>>
> >>> Sent from my iPad. Please forgive any typos.
> >>>
> >>> ===============
> >>> Stephen David Beck
> >>> Haymon Professor of Music
> >>> Director, AVATAR Initiative for Digital Media
> >>> Louisiana State University
> >>> Baton Rouge, LA. 70803
> >>>
> >>> http://avatar.lsu.edu
> >>>
> >>> O: 225-578-2594
> >>> C: 225-223-0344
> >>> skype/iChat: sdbeck
> >>>
> >>> On Mar 4, 2012, at 12:10 PM, Scott Smallwood <
> scott.smallwood at ualberta.ca> wrote:
> >>>
> >>>> Hey all,
> >>>>
> >>>> I'm wondering if anyone on this list knows whether there are any
> plans to (finally) implement serial communication in ChucK?
> >>>>
> >>>> I ask because, as someone who has been teaching Arduino-related
> things, I've basically stopped teaching ChucK in favour of Pd, simply
> because there isn't any way to get communication happening between ChucK
> and Arduino except through a third environment (like Processing via OSC or
> something).
> >>>>
> >>>> I understand that it isn't that difficult to do this via OSC and
> Processing (or java or whatever), but it introduces an unfortunate
> stumbling block for beginners, and I find that it is just easier to teach
> in an environment that has native serial communication abilities (like Pd,
> Supercollider, etc).  But really, I'd MUCH rather teach ChucK, as I find
> that it is such a good teaching language and has so many out-of-the-box
> features thanks to the native implementation of percolate...
> >>>>
> >>>> I posed this question a couple of years ago and it seemed like there
> was lots of interest in making this happen, but as far as I know, nobody
> has stepped up.
> >>>>
> >>>> Any thoughts?
> >>>>
> >>>> --ss
> >>>>
> >>>> [ - ] - [ - ] - [ - ] - [ - ] - [ - ] - [ - ] - [ - ] - [ - ] - [ - ]
> >>>>
> >>>> S c o t t   S m a l l w o o d
> >>>>
> >>>> composer, sound artist
> >>>> faculty of arts, u of alberta
> >>>>
> >>>> scott.smallwood at ualberta.ca
> >>>> http://www.scott-smallwood.com
> >>>> http://www.ecnedive.com
> >>>>
> >>>> _______________________________________________
> >>>> 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
> >>>
> >> _______________________________________________
> >> chuck-users mailing list
> >> chuck-users at lists.cs.princeton.edu
> >> https://lists.cs.princeton.edu/mailman/listinfo/chuck-users
> >>
> >
> > [ - ] - [ - ] - [ - ] - [ - ] - [ - ] - [ - ] - [ - ] - [ - ] - [ - ]
> >
> > S c o t t   S m a l l w o o d
> >
> >  composer, sound artist
> >  faculty of arts, u of alberta
> >
> >  scott.smallwood at ualberta.ca
> >  http://www.scott-smallwood.com
> >  http://www.ecnedive.com
> >
> > _______________________________________________
> > 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
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.cs.princeton.edu/pipermail/chuck-users/attachments/20120304/bf451ad8/attachment.html>


More information about the chuck-users mailing list