Anklang-0.3.0-1416-gfa8ce8d2 anklang-0.3.0-1416-gfa8ce8d2
ASE — Anklang Sound Engine (C++)

« « « Anklang Documentation
Loading...
Searching...
No Matches
clip.hh
Go to the documentation of this file.
1 // This Source Code Form is licensed MPL-2.0: http://mozilla.org/MPL/2.0
2#pragma once
3
4#include <ase/trkn-utils.hh>
5#include <ase/project.hh>
6
7namespace Ase {
8
9class ClipImpl : public GadgetImpl, public virtual Clip {
10 friend class TrackImpl;
11private:
15protected:
16 explicit ClipImpl (tracktion::Clip &clip);
17 virtual ~ClipImpl ();
18 ssize_t clip_index () const;
19 ClipNoteS all_notes () const override;
20 void all_notes (const ClipNoteS &notes) override;
21public:
22 String name () const override;
23 void name (const std::string &n) override;
24 ClipPosition position () const override;
25 void position (const ClipPosition &position) override;
26 double start_beat () const override;
27 void start_beat (double) override;
28 double end_beat () const override;
29 void end_beat (double) override;
30 ClipNoteS list_all_notes () override;
31 ClipNoteS change_batch (const ClipNoteS &notes, const String &undogroup) override;
32 bool muted () const override;
33 void muted (bool muted) override;
34 float volume () const override;
35 void volume (float db) override;
36 float pan () const override;
37 void pan (float pan) override;
38 void update_telemetry ();
39 void remove_self () override;
40 TelemetryFieldS telemetry () const override;
41 StringS read_only_properties () const override;
42 static ClipImplP from_trkn (tracktion::Clip&);
44};
45
46} // Ase
ClipNoteS list_all_notes() override
List all notes of this Clip, changes on notify:notes.
Definition clip.cc:175
float pan() const override
Get audio clip pan (-1.0 to 1.0), 0 for other clips.
Definition clip.cc:279
StringS read_only_properties() const override
List x()/x (v) properties that this object can't change, their setters ignore the value or warn.
Definition clip.cc:298
bool muted() const override
Check if clip is muted.
Definition clip.cc:233
TelemetryFieldS telemetry() const override
Retrieve clip telemetry locations.
Definition clip.cc:309
ClipNoteS change_batch(const ClipNoteS &notes, const String &undogroup) override
Insert id <= 0, delete length_beats == 0; emits notify:notes and notify:all_notes.
Definition clip.cc:335
double end_beat() const override
Clip end in Tracktion beats, changes on notify:end_beat.
Definition clip.cc:221
float volume() const override
Get clip volume in dB.
Definition clip.cc:249
double start_beat() const override
Clip start in Tracktion beats, changes on notify:start_beat.
Definition clip.cc:209
void remove_self() override
Remove self from parent container.
Definition clip.cc:321
Container for MIDI note and control events.
Definition api.hh:255
Base type for classes that have a Property.
Definition gadget.hh:11
Mimick tracktion::engine::SafeSelectable<> for tracktion::Selectable descendants.
Definition trkn-utils.hh:35
Ase::Track implementation.
Definition track.hh:10
#define ASE_DEFINE_MAKE_SHARED(CLASS)
Define a member function static shared_ptr<CLASS> make_shared(ctorargs...);.
Definition cxxaux.hh:274
The Anklang C++ API namespace.
Definition api.hh:8
Tracktion clip position in seconds.
Definition api.hh:248
typedef ssize_t