A newer version of Max is available. Click here to access the latest version of this document.

ddg.mono

Monophonic Synth Controller for Virtual Synths

Description

The ddg.mono object provides MIDI message handling for virtual monophonic synths in Max/MSP. It implements last/high/low note priority and legato/retrigger phrasing.

Arguments

Name Type Opt Description
note priority int opt An optional integer argument in the range 0 - 2 can be used to specify note priority (see the mode attribute listing).

Messages

int MIDI-note-value [int]
In first inlet: The number is treated as a pitch value for a MIDI note-on message. Output of the received number and its corresponding velocity value is dependent on the mode attribute and the triggering modes (set using the legato or retrig messages).

In second inlet: The number is stored as a velocity to be paired with pitch numbers received in the left inlet.
  (inlet1) MIDI-velocity-value [int]
In right inlet: The number is stored as a velocity to be paired with pitch numbers received in the left inlet.
clear The clear message will send a note-off message to stop any notes which are currently playing.
laststep The laststep message will cause the ddg.mono object to send a note-off message for the last note played.
legato The legato message will cause the ddg.mono object to send its output only when a new note is played.
retrig The retrig message will cause the ddg.mono object to send its output on each key press (i.e., retriggering previously played notes).

Attributes

Name Type g/s Description
legatomode int Sets the legato mode. The mode settings are as follows:

mode 0 (retrigger): Retrigger on each keypress (default).
mode 1 (legato): Retrigger on new note only.
mode 2 (laststep): Send a noteoff message on last note only.
mode int Sets the note priority mode. The mode settings are as follows:

mode 0: The last note played has priority (default).
mode 1: The highest note played has priority.
mode 2: The lowest note played has priority.

Information for box attributes common to all objects

Examples

See Also

Name Description
kslider Output numbers from a keyboard onscreen
midiin Output received raw MIDI data
midiparse Interpret raw MIDI data
notein Output received MIDI note messages
Max MIDI Tutorial 2: MIDI Note Management Max MIDI Tutorial 2: MIDI Note Management