/ HALion Developer Resource / HALion Script / Reference /

Note Expression Types

Description

Enumerator to identify the different note expression types.

❕ The note expression types volume, pan and tuning are pre-assigned internally and respond immediately. The custom note expression types must be assigned manually in the modulation matrix before they can be used.

Available in: Processor.

Note Expression Types

IndexName
1NoteExpressionType.volume
2NoteExpressionType.pan
3NoteExpressionType.tuning
4NoteExpressionType.custom1
5NoteExpressionType.custom2
6NoteExpressionType.custom3
7NoteExpressionType.custom4
8NoteExpressionType.custom5
9NoteExpressionType.custom6
10NoteExpressionType.custom7
11NoteExpressionType.custom8

Example

-- Detect the type of note expression.

function onNoteExpression(event)
    if event.noteExpressionType == NoteExpressionType.volume then
        print('Note Expression of type "Volume" received!')
    elseif event.noteExpressionType == NoteExpressionType.pan then
        print('Note Expression of type "Pan" received!')
    elseif event.noteExpressionType == NoteExpressionType.tuning then
        print('Note Expression of type "Tuning" received!')
    elseif event.noteExpressionType > 3 then
        print('Note Expression of type "Custom" received!')
    end
end

See also: onNoteExpression, changeNoteExpression, getNoteExpression, getNoteExpressionProperties