Zrythm v2.0.0-DEV
a highly automated and intuitive digital audio workstation
Loading...
Searching...
No Matches
zrythm::structure::tracks::PianoRollTrackMixin Class Reference

Mixin for a piano roll-based track. More...

#include <src/structure/tracks/piano_roll_track.h>

Inheritance diagram for zrythm::structure::tracks::PianoRollTrackMixin:
Collaboration diagram for zrythm::structure::tracks::PianoRollTrackMixin:

Public Member Functions

 PianoRollTrackMixin (QObject *parent=nullptr)
std::uint8_t midiChannel () const
void setMidiChannel (std::uint8_t midi_ch)
Q_SIGNAL void midiChannelChanged (std::uint8_t midi_ch)
bool passthroughMidiInput () const
void setPassthroughMidiInput (bool passthrough)
Q_SIGNAL void passthroughMidiInputChanged (bool passthrough)
bool drumMode () const
void setDrumMode (bool drum_mode)
Q_SIGNAL void drumModeChanged (bool drum_mode)
bool allow_only_specific_midi_channels () const
auto & midi_channels_to_allow () const
void transform_midi_inputs_func (dsp::MidiEventVector &events) const
 Callback to be used as TrackProcessor's transform function.

Properties

bool drumMode
bool passthroughMidiInput
std::uint8_t midiChannel

Friends

void to_json (nlohmann::json &j, const PianoRollTrackMixin &track)
void from_json (const nlohmann::json &j, PianoRollTrackMixin &track)
void init_from (PianoRollTrackMixin &obj, const PianoRollTrackMixin &other, utils::ObjectCloneType clone_type)

Detailed Description

Mixin for a piano roll-based track.

Definition at line 16 of file piano_roll_track.h.

Member Function Documentation

◆ allow_only_specific_midi_channels()

bool zrythm::structure::tracks::PianoRollTrackMixin::allow_only_specific_midi_channels ( ) const
inline

Definition at line 70 of file piano_roll_track.h.

◆ drumMode()

bool zrythm::structure::tracks::PianoRollTrackMixin::drumMode ( ) const
inline

Definition at line 57 of file piano_roll_track.h.

◆ midi_channels_to_allow()

auto & zrythm::structure::tracks::PianoRollTrackMixin::midi_channels_to_allow ( ) const
inline

Definition at line 74 of file piano_roll_track.h.

◆ midiChannel()

std::uint8_t zrythm::structure::tracks::PianoRollTrackMixin::midiChannel ( ) const
inline

Definition at line 33 of file piano_roll_track.h.

◆ passthroughMidiInput()

bool zrythm::structure::tracks::PianoRollTrackMixin::passthroughMidiInput ( ) const
inline

Definition at line 46 of file piano_roll_track.h.

◆ setDrumMode()

void zrythm::structure::tracks::PianoRollTrackMixin::setDrumMode ( bool drum_mode)
inline

Definition at line 58 of file piano_roll_track.h.

◆ setMidiChannel()

void zrythm::structure::tracks::PianoRollTrackMixin::setMidiChannel ( std::uint8_t midi_ch)
inline

Definition at line 34 of file piano_roll_track.h.

◆ setPassthroughMidiInput()

void zrythm::structure::tracks::PianoRollTrackMixin::setPassthroughMidiInput ( bool passthrough)
inline

Definition at line 47 of file piano_roll_track.h.

◆ transform_midi_inputs_func()

void zrythm::structure::tracks::PianoRollTrackMixin::transform_midi_inputs_func ( dsp::MidiEventVector & events) const
inline

Callback to be used as TrackProcessor's transform function.

Definition at line 79 of file piano_roll_track.h.

◆ from_json

void from_json ( const nlohmann::json & j,
PianoRollTrackMixin & track )
friend

Definition at line 100 of file piano_roll_track.h.

◆ to_json

void to_json ( nlohmann::json & j,
const PianoRollTrackMixin & track )
friend

Definition at line 93 of file piano_roll_track.h.

Property Documentation

◆ drumMode

bool zrythm::structure::tracks::PianoRollTrackMixin::drumMode
readwrite

Definition at line 19 of file piano_roll_track.h.

◆ midiChannel

std::uint8_t zrythm::structure::tracks::PianoRollTrackMixin::midiChannel
readwrite

Definition at line 21 of file piano_roll_track.h.

◆ passthroughMidiInput

bool zrythm::structure::tracks::PianoRollTrackMixin::passthroughMidiInput
readwrite

Definition at line 20 of file piano_roll_track.h.


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