List of DSP messages

AlexandreAudio's icon

Hi,

I'm looking for a list of DSP messages to control the sample rate, vector size, input loop back... For my projects I use ASIO drivers (ASIO4ALL, Hammerfall...), I have to control the basic configuration (sample rate, IO vector size... as in Audio status window) but I also have to control the input/microphone loop back (sidetone) dynamically.

I didn't found any documentation or thread in the forum. I found "dsp open" for audio status window and "dsp sr" for sample rate.


;
dsp open

;
dsp sr 32000


Thank you for you help.

Source Audio's icon

https://docs.cycling74.com/max8/vignettes/messages_to_dsp
also worth taking a look at for other stuff:
https://docs.cycling74.com/max8/vignettes/messages_to_max

if there is anything you can't achieve after reading the docs,
post what it is here.
There are also more tricks with that stuff.
This :
"I also have to control the input/microphone loop back (sidetone) dynamically."

you probably mean hardware latency free direct monitoring.
That is not possible from Max as far as I know....
But maybe with some scripting ...

AlexandreAudio's icon

Thank you SOURCE AUDIO.

About the loop back, yes this is the direct monitoring. I found this (old) documentation about it: https://docs.cycling74.com/max6/dynamic/c74_docs.html#mspaudioio

; dsp driver monitor 1 1 Patches input 1 to output 1 at unity gain with center pan.

; dsp driver monitor 1 0 Turns off input 1

; dsp driver monitor 1 4 2. -1. patches input 1 to output 4 with 6dB gain panned to the left

It seems to work in max 8, but your documentation doesn't mention it so the list is probably not exhaustive :(

Source Audio's icon

I see - that is ASIO and Windows only
new documentation also includes that but in different section than messages to DSP.

https://docs.cycling74.com/max8/tutorials/04_mspaudioio

Shows again how complicted max documentation structure is, that
in my opininon did not manage to follow the growth of max functions
added over years.

Jean-Francois Charles's icon

Xavier, most of the options you mention are controlled with the [adstatus] object rather than with messages to Max. Maybe you already know this, but the Audio Status window is a patch: unlock it and explore.
Like Source Audio, I think that loopback functions are proprietary settings that are not exposed to Max per se. But if you really need to control it from Max, check the manual. For instance with RME, check how you can control the Loopback in TotalMix via MIDI control.