Classes

struct  chord_type
 

Public Types

enum  Chord {
  Maj , Min , Sus2 , Sus4 ,
  Dim , Aug
}
 
using midi_out = halp::midi_out_bus<"out", libremidi::message >
 
using tick = halp::tick_musical
 

Public Member Functions

 halp_meta (name, "Chord") halp_meta(c_name
 
Chord halp_meta (category, "Midi") halp_meta(author
 
Chord ossia score halp_meta (manual_url, "https://ossia.io/score-docs/processes/midi-utilities.html#chord") halp_meta(description
 
Chord ossia score Generate a chord from a single note halp_meta (uuid, "F0904279-EA26-48DB-B0DF-F68FE3091DA1")
 
void operator() (const halp::tick_musical &tk)
 

Static Public Member Functions

template<typename T >
static void startChord (const T &chord, const libremidi::message &m, const std::size_t num, midi_out &op)
 
template<typename T >
static void stopChord (const T &chord, const libremidi::message &m, const std::size_t num, midi_out &op)
 
template<typename F >
static void dispatchChord (std::string_view chord, const libremidi::message &m, int num, midi_out &op, F &&f)
 

Public Attributes

struct {
   halp::midi_bus<"in", libremidi::message >   midi
 
   halp::hslider_i32<"Num. Notes", halp::irange{1, 5, 3}>   num
 
   halp::enum_t< Chord, "Chord">   chord
 
inputs
 
struct {
   midi_out   midi
 
outputs
 
ossia::flat_map< uint8_t, std::vector< chord_type > > chords
 

Static Public Attributes

static constexpr const std::array< int, 5 > major7 {0, 4, 7, 11, 12}
 
static constexpr const std::array< int, 5 > minor7 {0, 3, 7, 10, 12}
 
static constexpr const std::array< int, 5 > sus2 {0, 2, 7, 9, 12}
 
static constexpr const std::array< int, 5 > sus4 {0, 5, 7, 9, 12}
 
static constexpr const std::array< int, 5 > dim {0, 3, 6, 9, 12}
 
static constexpr const std::array< int, 5 > aug {0, 4, 8, 10, 12}
 

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