3 #ifndef XJMUSIC_FABRICATOR_SEGMENT_UTILS_H
4 #define XJMUSIC_FABRICATOR_SEGMENT_UTILS_H
33 static std::optional<const SegmentChoice *>
43 static std::optional<const SegmentChoice *>
60 static std::optional<const Segment *>
getLastCrafted(
const std::vector<const Segment *> &segments);
68 static std::optional<const Segment *>
getLast(
const std::vector<const Segment *> &segments);
76 static std::vector<const Segment *>
getCrafted(
const std::vector<const Segment *> &segments);
96 unsigned long long fromChainMicros,
97 unsigned long long toChainMicros);
111 unsigned long long atChainMicros,
112 unsigned long long thresholdMicros);
Type
Definition: Instrument.h:16
Type
Definition: Program.h:16
Definition: SegmentChoice.h:15
Definition: SegmentChordVoicing.h:16
Definition: SegmentUtils.h:22
static std::vector< const Segment * > getCrafted(const std::vector< const Segment * > &segments)
Definition: SegmentUtils.cpp:59
static std::string describe(const SegmentChoice &choice)
Definition: SegmentUtils.cpp:101
static std::optional< const SegmentChoice * > findFirstOfType(const std::set< const SegmentChoice * > &segmentChoices, Program::Type type)
Definition: SegmentUtils.cpp:9
static long getEndAtChainMicros(const Segment *segment)
Definition: SegmentUtils.cpp:120
static std::string getStorageFilename(const Segment *segment, const std::string &extension)
Definition: SegmentUtils.cpp:91
static std::string getIdentifier(const Segment *segment)
Definition: SegmentUtils.cpp:32
static long getDurationMinMicros(std::vector< Segment > &segments)
Definition: SegmentUtils.cpp:139
static std::optional< const Segment * > getLast(const std::vector< const Segment * > &segments)
Definition: SegmentUtils.cpp:49
static bool isSameButUpdated(const Segment *s1, const Segment *s2)
Definition: SegmentUtils.cpp:126
static std::optional< const Segment * > getLastCrafted(const std::vector< const Segment * > &segments)
Definition: SegmentUtils.cpp:40
static bool containsAnyValidNotes(const SegmentChordVoicing *voicing)
Definition: SegmentUtils.cpp:68
static bool isSpanning(const Segment *segment, unsigned long long fromChainMicros, unsigned long long toChainMicros)
Definition: SegmentUtils.cpp:73
static bool isIntersecting(const Segment *segment, unsigned long long atChainMicros, unsigned long long thresholdMicros)
Definition: SegmentUtils.cpp:82
Definition: ActiveAudio.h:11