This is a Max for Live MIDI utility designed to solve common problems when building sampled instruments inside Ableton instrument racks.
When instruments rely on multiple sample layers triggered by different playing situations (legato, release, sustain pedal, etc.), standard MIDI routing often makes these behaviours difficult to implement cleanly.
This device provides a set of transition-aware triggers that react to note states, sustain pedal states, note count changes, etc.
The goal is to make complex sampled instruments easier to build directly in Ableton without external samplers.
As I'm writing this, I'm still occasionally fixing bugs and revising the architecture behind it.
The download includes the device itself, example presets and a rack demonstrating a typical configuration.
It works mainly by filtering the inputs to let only notes pass under certain conditions and doing some off-on conversions or tracking operations.
Typical problems it can solve:
Handling legato notes
Specific legatos (for example one semitone up)
Hammer-on or pull-off style transitions
Release or damper samples only when all notes are released
Samples that trigger only when sustain pedal is on or off (eg sympathetic strings)
Pedal mechanical sounds triggered at pedal press or release
Events triggered when number of notes increases or decreases
Velocity behaviour derived from previous notes
Velocity change with longer legato duration (plucked string decay simulation)
Automatic stopping of notes under defined conditions
Protection against unwanted simultaneous triggers (eg damper and immediate new note)