debug patches?

17 views
Skip to first unread message

Mark Harris

unread,
Apr 18, 2015, 2:12:04 PM4/18/15
to axolot...@googlegroups.com
hi, 

is there anyway for the axoloti board to send back debug text to the connected client when live?

specifically, when Im running sub patches with multiple voices, sometimes Id like to get information back about whats going on with a particular voice...
I cannot easily send it back via an outlet, as all voices would drive that outlet.

the only thing I can think of doing so far, is to use polyindex to drive a switch to output the data to N outlets... 
but this would possibly get cumbersome if trying to debug a few different variables...

thoughts?


note: this is really occurred as i was doing poly multi stuff, and so different voices behave differently, I recognise usually, you can just debug one voice directly with dials/scopes.
I think a debug 'statement' would also be useful when developing new .axo objects.  

(I think the arduino has this kind of debug function, as Ive seen it on linnstrument videos)

Johannes Taelman

unread,
Apr 18, 2015, 4:37:02 PM4/18/15
to Mark Harris, axolot...@googlegroups.com
Hi Mark,

You can print a text message from within an object to the log window with
TransmitTextMessage("hello world");

for printing variable you can use:
TransmitTextMessageHeader();
chprintf((BaseSequentialStream *)&SDU1, ...);
chSequentialStreamPut((BaseSequentialStream *)&SDU1, 0);

where ... are printf-style arguments

Printing continuously at dsp-rate will cause underruns, since once the stream buffer is full it will block execution until there is space again. So only print "significant events", don't try to dump data at block rate.

Live interacting with parameters and readback to dials/scopes of (polyphonics) sub-patches is still a complex issue to deal with...

Using patch/polyindex to selectively output data from within one voice to one outlet should work.

--
You received this message because you are subscribed to the Google Groups "axoloti-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to axoloti-user...@googlegroups.com.
To post to this group, send email to axolot...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/axoloti-users/5b7d391d-8c40-452f-9dbd-1339b3ccac7b%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply all
Reply to author
Forward
0 new messages