| Super! I look forward to giving it a go.
On 1 November 2010 17:04, matt ingalls wrote:
> hey rory,
>
> i do have the new arduino.
> & i assume as far as the PC side of things nothing is different as the older arduinos
> used usb input too.
>
> anyway i would assume the handling of the actual bus type is handled
> somewhere lower and the POSIX code works for usb and older serial types.
> (i guess i could get out an old computer out of the closet to test with the BASIC Stamp - ugh)
>
> m
>
> On Nov 1, 2010, at 8:33 AM, Rory Walsh wrote:
>
>> Hi Matt. The latest arduino no longer uses the FTDI USB-to-serial
>> driver chip so I'm not sure if one still needs to query serial devices
>> in order to work with the latest arduino? Regardless of that it will
>> be great to have a cross platform serial communication opcode.
>>
>> Rory.
>>
>>
>>
>> On 31 October 2010 22:27, Steven Yi wrote:
>>> Nice! That sounds like a great set of opcodes to have. I'll assume
>>> that the windows api will be different than the Linux and OSX for
>>> device opening, but I think having a feature like this across all
>>> platforms would be great.
>>>
>>> On 10/31/10, matt ingalls wrote:
>>>> hey steven!
>>>> yes generic serial, so something like:
>>>>
>>>> iport serialopen Spath, iBaudrate[, iwritereadperms]
>>>>
>>>> kvalue serialread iport
>>>> String serialread iport
>>>>
>>>> serialwrite iport, kvalue
>>>> serialwrite iport, String
>>>>
>>>> serialflush iport
>>>>
>>>> knum serialavail iport ; returns current # of bytes in input buffer
>>>>
>>>> serialclose iport
>>>>
>>>>
>>>>
>>>> and usage would be something like:
>>>>
>>>> instr myTheremin
>>>>
>>>> kPitch init 440
>>>>
>>>> iPort serialopen ""/dev/tty.usbmodem1d11", 9600
>>>>
>>>> knum serialavail iPort
>>>> if (knum) then
>>>> ; read photoresistor value sent from Arduino
>>>> kPitch serialread iPort ; 8-bit value (0-255)
>>>> kPitch = 50 + 10*kPitch
>>>> endif
>>>>
>>>> kPitch port kPitch, .05
>>>> aout oscili 0dbfs, kPitch, 1
>>>> out aout
>>>>
>>>> endin
>>>>
>>>> On Oct 31, 2010, at 2:20 PM, Steven Yi wrote:
>>>>
>>>>> Hi Matt (and nice to hear from you!)!
>>>>>
>>>>> Echoing Victor, I think this would be neat! Just to verify, is this a
>>>>> generic serial comm opcode then? I'd be happy to help on compiling on
>>>>> windows as well but don't think I have any devices to test with.
>>>>>
>>>>> Thanks!
>>>>> Steven
>>>>>
>>>>> On 10/31/10, matt ingalls wrote:
>>>>>> ive been playing around with an Arduino
>>>>>> ( finally upgraded from a BASIC Stamp - thanks [and hi] Steven! )
>>>>>>
>>>>>> and have some POSIX C code running to communicate with it
>>>>>> -- i would be happy to turn it into some Csound opcodes,
>>>>>> if there isn't something already and it would be useful, and it is not a
>>>>>> problem
>>>>>> for Windows compile.
>>>>>>
>>>>>> (ive seen Jacob Joaquin's videos about using Processing -- but i would
>>>>>> think
>>>>>> these opcodes
>>>>>> would eliminate the middleman...)
>>>>>>
>>>>>> what do yall think?
>>>>>>
>>>>>> -m
>>>>>>
>>>>>> Send bugs reports to the Sourceforge bug tracker
>>>>>> https://sourceforge.net/tracker/?group_id=81968&atid=564599
>>>>>> Discussions of bugs and features can be posted here
>>>>>> To unsubscribe, send email sympa@lists.bath.ac.uk with body "unsubscribe
>>>>>> csound"
>>>>>>
>>>>>>
>>>>>
>>>>> --
>>>>> Sent from my mobile device
>>>>>
>>>>>
>>>>> Send bugs reports to the Sourceforge bug tracker
>>>>> https://sourceforge.net/tracker/?group_id=81968&atid=564599
>>>>> Discussions of bugs and features can be posted here
>>>>> To unsubscribe, send email sympa@lists.bath.ac.uk with body "unsubscribe
>>>>> csound"
>>>>>
>>>>
>>>>
>>>>
>>>> Send bugs reports to the Sourceforge bug tracker
>>>> https://sourceforge.net/tracker/?group_id=81968&atid=564599
>>>> Discussions of bugs and features can be posted here
>>>> To unsubscribe, send email sympa@lists.bath.ac.uk with body "unsubscribe
>>>> csound"
>>>>
>>>>
>>>
>>> --
>>> Sent from my mobile device
>>>
>>>
>>> Send bugs reports to the Sourceforge bug tracker
>>> https://sourceforge.net/tracker/?group_id=81968&atid=564599
>>> Discussions of bugs and features can be posted here
>>> To unsubscribe, send email sympa@lists.bath.ac.uk with body "unsubscribe csound"
>>>
>>>
>>
>>
>> Send bugs reports to the Sourceforge bug tracker
>> https://sourceforge.net/tracker/?group_id=81968&atid=564599
>> Discussions of bugs and features can be posted here
>> To unsubscribe, send email sympa@lists.bath.ac.uk with body "unsubscribe csound"
>>
>
>
>
> Send bugs reports to the Sourceforge bug tracker
> https://sourceforge.net/tracker/?group_id=81968&atid=564599
> Discussions of bugs and features can be posted here
> To unsubscribe, send email sympa@lists.bath.ac.uk with body "unsubscribe csound"
>
>
Send bugs reports to the Sourceforge bug tracker
https://sourceforge.net/tracker/?group_id=81968&atid=564599
Discussions of bugs and features can be posted here
To unsubscribe, send email sympa@lists.bath.ac.uk with body "unsubscribe csound"
|