Get Signal values in Javascript
Hi,
I want to use the signal output from the cycle~ object in a javascript (jsui) object. Is it prossible to get the signal into the jsui object?
I connected the cycle~ outlet to the jsui inlet. Message methods like "function anything(v) ..." do not work because the cycle~ object does not constantly send values to the jsui object. How can I get all the signal values from cycle~ to modify them in jsui?
Thanks!
Jucy Li
That is the way MSP objects work. They do not send individual values at sampling rate. MSP objects need to be embedded into the MSP signal chain to do their audio processing, and this embedding process involves a series of specialized MSP messages. The details are documented in the SDK, but the short answer is that "striped patch cords" and "normal patch cords" are simply not interchangeable.
You can get audio signals into Jitter using jit.catch~, and you could try jit.spill to convert those to a list for use with jsui. I'm not sure you'll get acceptable performance, though.
Thanks for your answer, it helped me a lot!