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

Replaces the complete note event set of one note clip. More...

#include <command.hpp>

Public Attributes

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

Detailed Description

Replaces the complete note event set of one note clip.

This is the ordinary, durable edit emitted by higher-level note transforms: the journal never records a callback invocation. The expected value makes replay conflict-aware, while swapping expected/replacement is the exact inverse used by undo.

The modifier arrays are optional. An authoring caller leaves both empty and the reducer carries the clip's existing modifiers across, dropping only the ones whose note the replacement removes. A reducer-built inverse fills them in, because the modifiers of a removed note are exactly what the note array alone cannot say: replacement_modifiers is the complete set to install and expected_modifiers is the set the clip must currently carry, gating the modifiers the same way the note arrays gate the notes.

Member Data Documentation

◆ clip_id

ItemId pulp::timeline::ReplaceNoteContent::clip_id

◆ expected

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

◆ expected_modifiers

std::vector<NoteModifier> pulp::timeline::ReplaceNoteContent::expected_modifiers

◆ replacement

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

◆ replacement_modifiers

std::vector<NoteModifier> pulp::timeline::ReplaceNoteContent::replacement_modifiers

◆ sequence_id

ItemId pulp::timeline::ReplaceNoteContent::sequence_id

◆ track_id

ItemId pulp::timeline::ReplaceNoteContent::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