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

Which channels and which message kinds a panic covers. More...

#include <panic.hpp>

Public Member Functions

constexpr bool includes_channel (unsigned channel) const

Static Public Member Functions

static constexpr PanicScope release_only ()
 Panic that lets release tails ring out (no CC 120).

Public Attributes

std::uint16_t channel_mask = 0xFFFFu
 Bit n set means channel n (0-15) is included. Default: all 16.
bool all_sound_off = true
 Immediate-stop CC 120. Clear for a release-only panic.
bool all_notes_off = true
bool reset_all_controllers = true
bool sustain_off = true
bool pitch_bend_centre = true

Detailed Description

Which channels and which message kinds a panic covers.

Member Function Documentation

◆ includes_channel()

bool pulp::midi::PanicScope::includes_channel ( unsigned channel) const
inlineconstexpr

◆ release_only()

constexpr PanicScope pulp::midi::PanicScope::release_only ( )
inlinestaticconstexpr

Panic that lets release tails ring out (no CC 120).

Member Data Documentation

◆ all_notes_off

bool pulp::midi::PanicScope::all_notes_off = true

◆ all_sound_off

bool pulp::midi::PanicScope::all_sound_off = true

Immediate-stop CC 120. Clear for a release-only panic.

◆ channel_mask

std::uint16_t pulp::midi::PanicScope::channel_mask = 0xFFFFu

Bit n set means channel n (0-15) is included. Default: all 16.

◆ pitch_bend_centre

bool pulp::midi::PanicScope::pitch_bend_centre = true

◆ reset_all_controllers

bool pulp::midi::PanicScope::reset_all_controllers = true

◆ sustain_off

bool pulp::midi::PanicScope::sustain_off = true

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