[PD] string with comma to comport

Mathieu Bouchard matju at artengine.ca
Sat Aug 5 17:37:36 CEST 2006


On Fri, 4 Aug 2006, olsen wrote:

> "!SC", Channel, Ramp, pw.LOWBYTE, pw.HIGHBYTE, $0D.
> as "!SC" is the header, $0D the terminator and the other integers, the 
> desired 'message' should look like this ["!SC",1,2,250,750,CR]
> but how could i get pd to send this string to the comport?
> ev'rything i tried separates messages on the comma...
> any idea around?

I just made a new external called [join_with_comma]. Here's the
source code:

GridFlow::FObject.subclass("join_with_comma",1,1) do
   def _0_list(*list)
     send_out 0,:symbol,list.join(",").intern
   end
end

  _ _ __ ___ _____ ________ _____________ _____________________ ...
| Mathieu Bouchard - tél:+1.514.383.3801 - http://artengine.ca/matju
| Freelance Digital Arts Engineer, Montréal QC Canada


More information about the Pd-list mailing list