Zrythm v2.0.0-DEV
a highly automated and intuitive digital audio workstation
Loading...
Searching...
No Matches
midi_track.h
1// SPDX-FileCopyrightText: © 2019-2021, 2024-2025 Alexandros Theodotou <alex@zrythm.org>
2// SPDX-License-Identifier: LicenseRef-ZrythmLicense
3
4#pragma once
5
6#include "structure/tracks/track.h"
7
8namespace zrythm::structure::tracks
9{
10class MidiTrack final : public Track
11{
12 Q_OBJECT
13 QML_ELEMENT
14 QML_UNCREATABLE ("")
15
16public:
17 MidiTrack (FinalTrackDependencies dependencies);
18
19 friend void init_from (
20 MidiTrack &obj,
21 const MidiTrack &other,
22 utils::ObjectCloneType clone_type);
23
24private:
25 friend void to_json (nlohmann::json &j, const MidiTrack &track)
26 {
27 to_json (j, static_cast<const Track &> (track));
28 }
29 friend void from_json (const nlohmann::json &j, MidiTrack &track)
30 {
31 from_json (j, static_cast<Track &> (track));
32 }
33};
34}
Track(Type type, PortType in_signal_type, PortType out_signal_type, TrackFeatures enabled_features, BaseTrackDependencies dependencies)
Constructor to be used by subclasses.