Zrythm v2.0.0-alpha.1+31.4967fd053471
a highly automated and intuitive digital audio workstation
Loading...
Searching...
No Matches
zrythm::dsp::MidiEventView Struct Reference

Non-owning view into a MIDI event stored in a MidiEventBuffer. More...

#include <src/dsp/midi_event_buffer.h>

Public Member Functions

units::sample_u32_t time () const noexcept
 Event timestamp as a sample offset within the current processing cycle.
std::span< const midi_byte_tdata () const noexcept

Friends

class MidiEventBuffer

Detailed Description

Non-owning view into a MIDI event stored in a MidiEventBuffer.

Lightweight and trivially copyable — holds a raw pointer into the buffer's contiguous storage. Only valid while the buffer is not cleared or destroyed.

Definition at line 29 of file midi_event_buffer.h.

Member Function Documentation

◆ data()

std::span< const midi_byte_t > zrythm::dsp::MidiEventView::data ( ) const
inlinenoexcept

Definition at line 37 of file midi_event_buffer.h.

◆ time()

units::sample_u32_t zrythm::dsp::MidiEventView::time ( ) const
inlinenoexcept

Event timestamp as a sample offset within the current processing cycle.

Definition at line 32 of file midi_event_buffer.h.

◆ MidiEventBuffer

friend class MidiEventBuffer
friend

Definition at line 43 of file midi_event_buffer.h.


The documentation for this struct was generated from the following file: