Pulp 1.88.0
Cross-platform audio plugin framework
Loading...
Searching...
No Matches
pulp::timeline::SetNoteEvents Struct Reference

Replaces the values of a named subset of one note clip's notes. More...

#include <command.hpp>

Public Attributes

ItemId sequence_id
ItemId track_id
ItemId clip_id
std::vector< NoteEvent > expected
std::vector< NoteEvent > replacement

Detailed Description

Replaces the values of a named subset of one note clip's notes.

The identity set is invariant: replacement names exactly the notes expected names, pairwise by index, so the command inserts nothing, removes nothing, and touches no identity at all. That is what makes it the shape a drag emits. It carries only the notes under the gesture, where ReplaceNoteContent gates on the clip's entire current note set and so costs the whole array per frame; and swapping expected and replacement is the exact inverse with no set difference to derive.

expected is the optimistic gate, one entry per note, each equal to that note's current value in every field. Notes the payload does not name keep the values they had. So do the clip's modifiers, their seed, and its expression lanes: no note leaves the clip, so no modifier is left keying a note that is gone, and the payload needs no modifier arrays of its own.

Member Data Documentation

◆ clip_id

ItemId pulp::timeline::SetNoteEvents::clip_id

◆ expected

std::vector<NoteEvent> pulp::timeline::SetNoteEvents::expected

◆ replacement

std::vector<NoteEvent> pulp::timeline::SetNoteEvents::replacement

◆ sequence_id

ItemId pulp::timeline::SetNoteEvents::sequence_id

◆ track_id

ItemId pulp::timeline::SetNoteEvents::track_id

The documentation for this struct was generated from the following file:
  • /home/runner/work/pulp/pulp/core/timeline/include/pulp/timeline/command.hpp