dsp

DSP

Description

This is where you send the messages

Arguments

None.

Messages

advancedstatus TEXT_HERE
debug ARG_NAME [int] The word debug, followed by a zero or one, turns debugging on (1) or off (0).
driver ARG_NAME [list] The driver message to dsp is a way to send messages specific to a particular audio driver. For documentation of any driver-specific messages, consult the documentation for the audio driver.
cpulimit ARG_NAME [int] The word cpulimit, followed by a number in the range 0-100, sets a utilization limit for the CPU. Above this limit, MSP will not process audio vectors until the utilization comes back down, causing a click. If the cpu limit is set to either 0 or 100, there will be no limit checking done.
driversetup ARG_NAME [] Opens the Audio Driver Setup window
iomap ARG_NAME [] Opens the I/O Mapping window.
iovs ARG_NAME [int] The word iovs, followed by a number that is a power of 2, sets the I/O vector size.
inremap ARG_NAME [int]ARG_NAME [int] The word inremap, followed by two numbers that specify a physical device input channel number and a logical input channel number, maps the physical device to the logical input channel.
open The word open opens the DSP Status window.
optimize ARG_NAME [int] (Macintosh only) Toggles optimization. On the Macintosh, this is used to control the use of Altivec (G4 processor) optimizations.
override ARG_NAME [list] Toggles override mode. When override mode is enabled, any change to the setting is not saved in the MSP Preferences file. The message override 0 turns override mode off. By default, override is off for all settings. However, some settings are specific to audio drivers and may not be saved by the driver.
outremap ARG_NAME [int]ARG_NAME [int] The word outremap, followed by two numbers that specify a logical device output channel number and a physical output channel number, maps the logical device to the physical output channel.
set ARG_NAME [int] The word set, followed by a zero or one, turns the audio on (1) or off (0). It is equivalent to clicking on a ezadc~ or ezdac~ object.
setdriver ARG_NAME [list] The word setdriver, followed by a number, sets a new audio driver is chosen based on its index into the currently generated menu of drivers created by the adstatus driver object. If the word setdriver is followed by a symbol that names a valid driver, the new driver is selected by name. An additional symbol argument may be used to specify a "subdriver" (e.g., ASIO drivers use ASIO as the name of the driver and PCI-324 as a subdriver name that specifies a specific device).
sigvs ARG_NAME [int] The word sigvs, followed by a number that is a power of 2, sets the I/O signal vector size.
sr ARG_NAME [int] The word sr, followed by a number, sets a new sampling rate In Hertz.
start ARG_NAME [int] The word start turns the audio on.
status The word status opens the DSP Status window.
stop The word stop turns the audio off.
takeover ARG_NAME [int] The word takeover, followed by a zero or one, turns Scheduler in Audio Interrupt mode on (1) or off (0). It is equivalent to clicking on the Scheduler in Overdrive checkbox in the DSP Status window.
timecode ARG_NAME [int] The word timecode followed by a zero or one, starts (1) or stops (0) timecode reading by any audio drivers that support the feature (ASIO 2).
wclose The word wclose closes the DSP Status window.

Attributes

Name Type g/s Description
attr_cpu float (get) Displays a rough estimate of how much of your computer's CPU is being allocated for processing audio in MSP.
attr_cpulimit float Sets a limit (expressed in terms of a percentage of your computer's CPU) to how much signal processing MSP is allowed to do. MSP will not go above the set CPU limit for a sustained period, allowing your computer to perform other tasks without MSP locking them out. The trade-off, however, is that you'll hear clicks in the audio output when the CPU goes over the specified limit. Setting this value to either ‘0’ or ‘100’ will disable CPU limiting.
attr_drivername int This pop-up menu lets you view and select the audio driver for MSP. You can find more specific information about Macintosh audio drivers here, and more information about Windows audio drivers here. Only one audio driver can be selected at any given time. MSP saves the settings for each audio driver separately and will recall the last used audio driver when you restart Max.
attr_dspstate int Toggles turning the DSP on or off
attr_funcalls int (get) Displays an approximate count of how many calculations are being required for each sample of audio.
attr_inchan1 int The pop-up menu is used to map the first logical input channel of I/O in MSP (i.e. the first outlet of the adc~ object) to physical channels used by your audio driver.
attr_inchan2 int The pop-up menu is used to map the second logical input channel of I/O in MSP (i.e. the second outlet of the adc~ object) to physical channels used by your audio driver. The contents of the pop-up menu will vary according to the audio driver you are using.
attr_iovs int Sets the number of audio samples samples that are transferred from the audio interface at one time when MSP is doing its calculations. This number is always set to a power of 2.
attr_numinputs int (get) This value displays the number of available input channels.
attr_numoutputs int (get) This value displays the number of available input channels.
attr_optimize int (Macintosh only) Toggles whether to select vector optimization in MSP when computing audio on processors that support it. Vector optimization allows four samples to be processed within the space of a single instruction. However, not all audio signal processing algorithms can be optimized in this way (e.g., recursive filter algorithms). Leaving this option on when using MSP will enhance CPU utilization and performance, although the exact performance gain depends on the algorithm you are using and the number of MSP objects that implement it that have been vector optimized.
attr_outchan1 int The pop-up menu is used to map the first logical output channel of I/O in MSP (i.e. the first inlet of the dac~ object) to physical channels used by your audio driver. The contents of the pop-up menu will vary according to the audio driver you are using.
attr_outchan2 int The pop-up menu is used to map the second logical output channel of I/O in MSP (i.e. the second inlet of the dac~ object) to physical channels used by your audio driver. The contents of the pop-up menu will vary according to the audio driver you are using.
attr_overdrive int Toggles running Max in Overdrive. When Overdrive is enabled, Max gives priority to timing and MIDI processing over screen drawing and user interface tasks such as responding to mouse clicks. If you are primarily going to be using Max for MIDI or audio processing, Overdrive should be enabled. If you are primarily going to be using Jitter, Overdrive should be disabled.
attr_siai int Toggles running the Max Scheduler in Audio Interrupt when Overdrive is enabled. This feature runs the Max event scheduler immediately before processing a signal vector’s worth of audio. Enabling Sched-uler in Audio Interrupt can greatly improve the timing of audio events that are triggered from control processes or external MIDI input.
attr_sigsused int (get) Displays the number of internal buffers that were needed by MSP to connect the signal objects used in the current signal network. This field will update update whenever you change the number of audio objects or how they are patched together.
attr_sr int The pop-up menu is used to set the audio sampling rate. For full-range audio, the recommended sampling rate is 44.1 kHz. Using a lower rate will reduce the number of samples that MSP has to calculate, thus lightening your computer’s burden, but it will also reduce the frequency range.
attr_vs int Sets the number of audio samples samples that are transferred to the audio interface at one time when MSP is running. This number is always set to a power of 2, and can be less than or equal to the I/O Vector Size, but not more. If the Signal Vector Size is less than the I/O Vector Size, MSP calculates two or more signal vectors in succession for each I/O vector that needs to be calculated.

Information for box attributes common to all objects

Examples

See Also

Name Description