Navigation
API > API/Plugins > API/Plugins/HarmonixMetasound
Tracks incoming note messages and sends note offs when a note would become "stuck" because of a filter change
| Name | FStuckNoteGuard |
| Type | class |
| Header File | /Engine/Plugins/Runtime/Harmonix/Source/HarmonixMetasound/Public/HarmonixMetasound/MidiOps/StuckNoteGuard.h |
| Include Path | #include "HarmonixMetasound/MidiOps/StuckNoteGuard.h" |
Syntax
class FStuckNoteGuard
Typedefs
| Name | Type | Remarks | Include Path |
|---|---|---|---|
| FIncludeNotePredicate | TFunctionRef< bool(const HarmonixMetasound::FMidiStreamEvent &Event)> | HarmonixMetasound/MidiOps/StuckNoteGuard.h | |
| FUnstickNoteFn | TFunction< void(const HarmonixMetasound::FMidiStreamEvent &)> | HarmonixMetasound/MidiOps/StuckNoteGuard.h |
Variables
Protected
| Name | Type | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|---|
| ActiveNotes | TArray< HarmonixMetasound::FMidiStreamEvent > | HarmonixMetasound/MidiOps/StuckNoteGuard.h |
Functions
Public
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
void Process
(
const HarmonixMetasound::FMidiStream& InStream, |
Track incoming note messages and send note offs for notes that would have become "stuck" because the caller's filter changed. | HarmonixMetasound/MidiOps/StuckNoteGuard.h | |
void UnstickNotes
(
const HarmonixMetasound::FMidiStream& StreamToCompare, |
If any active notes we're tracking are no longer present in the input stream, trigger a function so the caller can turn them off. | HarmonixMetasound/MidiOps/StuckNoteGuard.h |