Zrythm v2.0.0-alpha.1
a highly automated and intuitive digital audio workstation
Loading...
Searching...
No Matches
zrythm::dsp::MidiInputSelection Class Reference

MIDI hardware input selection for a track. More...

#include <src/dsp/midi_input_selection.h>

Inheritance diagram for zrythm::dsp::MidiInputSelection:
Collaboration diagram for zrythm::dsp::MidiInputSelection:

Public Member Functions

 MidiInputSelection (QObject *parent=nullptr)
QString deviceIdentifier () const
void setDeviceIdentifier (const QString &identifier)
Q_SIGNAL void deviceIdentifierChanged ()
int midiChannel () const
void setMidiChannel (int ch)
Q_SIGNAL void midiChannelChanged ()

Properties

QString deviceIdentifier
int midiChannel

Friends

bool operator== (const MidiInputSelection &a, const MidiInputSelection &b)
void to_json (nlohmann::json &j, const MidiInputSelection &sel)
void from_json (const nlohmann::json &j, MidiInputSelection &sel)

Detailed Description

MIDI hardware input selection for a track.

Stores which MIDI device and channel to use as input. An empty device name means no input is selected. midiChannel 0 = all channels, 1-16 = specific channel.

Definition at line 26 of file midi_input_selection.h.

Constructor & Destructor Documentation

◆ MidiInputSelection()

zrythm::dsp::MidiInputSelection::MidiInputSelection ( QObject * parent = nullptr)
inlineexplicit

Definition at line 35 of file midi_input_selection.h.

Member Function Documentation

◆ midiChannel()

int zrythm::dsp::MidiInputSelection::midiChannel ( ) const
inline

Definition at line 44 of file midi_input_selection.h.

Property Documentation

◆ deviceIdentifier

QString zrythm::dsp::MidiInputSelection::deviceIdentifier
readwrite

Definition at line 29 of file midi_input_selection.h.

◆ midiChannel

int zrythm::dsp::MidiInputSelection::midiChannel
readwrite

Definition at line 30 of file midi_input_selection.h.


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