Skip to content

Mono Legato

Mono Legato

Import

import "_IVLS/std-library/nodes/voice-logics/legato/mono-legato.ksp"

Node: Stl.MonoLegato

Uses: Init, NoteOn, NoteOff

Overview

Mono Legato

Single-voice legato implementation that maintains a per-thread voice stack.

LIBRARY: std-library/nodes/voice-logics/legato

On each NoteOn, the most recently sounding voice is linked as the legato source for the new voice. On NoteOff, if the released note was the topmost voice in the buffer, the previous voice in the stack is cloned and re-triggered, providing seamless mono legato behaviour. Stl.LegatoSwitch is a companion node that releases any existing source voice at NoteOn to prevent voice accumulation in switch-style legato products.

API

Nodes

Name Description
node Stl.LegatoSwitch Companion switch node that releases the existing source voice when a new legato ...
node Stl.MonoLegato Implements mono legato: tracks a per-thread voice stack and links adjacent voice...

Defines

Name Description
define Stl.Legato += Stl.MonoLegato, Stl.LegatoSwitch Adds Stl.MonoLegato and Stl.LegatoSwitch to the Stl.Legato composition chain.

Nodes

node Stl.LegatoSwitch

Callbacks: NoteOn

Companion switch node that releases the existing source voice when a new legato is detected at NoteOn.


node Stl.MonoLegato

Callbacks: Init, NoteOn, NoteOff

Implements mono legato: tracks a per-thread voice stack and links adjacent voices as legato pairs.


Defines

define Stl.Legato += Stl.MonoLegato, Stl.LegatoSwitch

Adds Stl.MonoLegato and Stl.LegatoSwitch to the Stl.Legato composition chain.


Example

// TODO: Add usage example

See Also