On Jan 13, 2007, at 12:27 PM, Roman Haefeli wrote:
On Sat, 2007-01-13 at 10:50 -0500, Martin Peach wrote:
Also you could try changing the checkForInput function so that it
stays there longer: Change: void checkForInput() { if(Serial.available()) { while(Serial.available()) { processInput( (byte)Serial.read() ); } } }to: void checkForInput() { int i = 100; while (--i) { if(Serial.available()) { while(Serial.available()) { processInput( (byte)Serial.read() ); } } } }
this worked for me. messages TO the board don't get delayed anymore. many thanks again.
:-)
Did this cause any added latency? I have seen the problems that you
have pointed out, but I haven't had a chance to debug them. I think
the key is to find ways to make things work at the full speed, rather
than find workarounds.
The processInput() stuff should probably be handled using an
interrupt so output messages don't get dropped. The tricky part
there is to handle output messages without causing jitter in the
input messages. That's the ultimate goal.
.hc
cheers roman
___________________________________________________________ Telefonate ohne weitere Kosten vom PC zum PC: http:// messenger.yahoo.de
PD-list@iem.at mailing list UNSUBSCRIBE and account-management -> http://lists.puredata.info/ listinfo/pd-list
If you are not part of the solution, you are part of the problem.