Loading...
Searching...
No Matches

Classes

struct  held_note
 
struct  Layer
 
struct  Presenter
 

Public Types

enum  event_flag : int { flag_none = 0 , flag_retrigger = 1 , flag_orphan = 2 }
 
enum class  msg_kind {
  note_on , note_off , poly_pressure , control_change ,
  program_change , aftertouch , pitch_bend , system
}
 
using tick = halp::tick_musical
 

Public Member Functions

 halp_meta (name, "MIDI display") halp_meta(c_name
 
MidiDisplay halp_meta (category, "Monitoring") halp_meta(author
 
MidiDisplay ossia score halp_meta (manual_url, "") halp_meta(description
 
MidiDisplay ossia score Visualize the MIDI messages going through a port halp_meta (uuid, "a2b6c7f1-3d54-4e9a-9c21-8f0d5e73b104") halp_flag(fully_custom_item)
 
void prepare (halp::setup s) noexcept
 
void operator() (halp::tick_musical t)
 
int track (uint8_t status, uint8_t d1, uint8_t d2, float t) noexcept
 

Static Public Member Functions

static double recommended_height ()
 
static msg_kind kind_of (int status, int data2) noexcept
 
static QString note_name (int pitch)
 

Public Attributes

struct { 
 
   halp::midi_bus<"in">   midi 
 
   halp::hslider_f32<"Window", halp::range{0.5f, 60.f, 8.f}>   window 
 
inputs 
 
struct { 
 
enum widget 
 
      events 
 
outputs 
 
double m_rate = 48000.
 
int64_t m_frames = 0
 
double m_last_push = -1e9
 
float m_seq = 0.f
 
std::deque< std::array< float, fields_per_event > > m_ring
 
std::array< std::array< held_note, 128 >, 16 > m_held_notes {}
 

Static Public Attributes

static constexpr double retain_seconds = 1.0
 
static constexpr double heartbeat_seconds = 0.03
 
static constexpr int max_events = 512
 
static constexpr int fields_per_event = 6
 
static constexpr int header_fields = 3
 
static constexpr double stuck_after_seconds = 2.
 

Member Function Documentation

◆ track()

int Ui::MidiDisplay::Node::track ( uint8_t  status,
uint8_t  d1,
uint8_t  d2,
float  t 
)
inlinenoexcept

Pairs a message against the running held-note state, returning what is anomalous about it.


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