ddg.mono Reference

Monophonic Synth Controller for Virtual Synths

ddg.mono

Description

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

Arguments

note priority [int]

Optional

An optional integer argument in the range 0 - 2 can be used to specify note priority. The mode settings are:

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.

Attributes

legatomode [atom_long]

Sets the legato mode.

Possible values:

0 = 'Retrigger' ( Retrigger mode )
Retrigger on each keypress (default).

1 = 'Legato' ( Legato mode )
Retrigger on new note only.

2 = 'Last Step'

mode [atom_long]

Sets the note priority mode.

Possible values:

0 = 'Last Note'
1 = 'High Note'
2 = 'Low Note'

Common Box Attributes

Messages

int

Arguments

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)

Arguments

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).

See Also

Name Description
kslider
midiin
midiparse
notein
Max MIDI Tutorial 2: MIDI Note Management Max MIDI Tutorial 2: MIDI Note Management