#include <Instrument.h>
|
enum | Type {
Background
, Bass
, Drum
, Hook
,
Pad
, Percussion
, Stab
, Sticky
,
Stripe
, Transition
} |
|
enum | Mode { Chord
, Event
, Loop
} |
|
enum | State { Draft
, Published
} |
|
◆ Mode
Enumerator |
---|
Chord | |
Event | |
Loop | |
◆ State
Enumerator |
---|
Draft | |
Published | |
◆ Type
Enumerator |
---|
Background | |
Bass | |
Drum | |
Hook | |
Pad | |
Percussion | |
Stab | |
Sticky | |
Stripe | |
Transition | |
◆ Instrument()
XJ::Instrument::Instrument |
( |
| ) |
|
|
default |
◆ parseMode()
◆ parseState()
Parse the Instrument State enum value from a string
- Parameters
-
- Returns
- The Instrument State enum value
◆ parseType()
◆ toString() [1/3]
std::string Instrument::toString |
( |
const Mode & |
mode | ) |
|
|
static |
Convert an Instrument Mode enum value to a string
- Parameters
-
- Returns
- The string representation of the Instrument Mode
◆ toString() [2/3]
std::string Instrument::toString |
( |
const State & |
state | ) |
|
|
static |
Convert an Instrument State enum value to a string
- Parameters
-
- Returns
- The string representation of the Instrument State
◆ toString() [3/3]
std::string Instrument::toString |
( |
const Type & |
type | ) |
|
|
static |
Convert an Instrument Type enum value to a string
- Parameters
-
- Returns
- The string representation of the Instrument Type
◆ toStrings()
const std::vector< std::string > & Instrument::toStrings |
( |
std::vector< Type > |
types | ) |
|
|
static |
Convert a set of Instrument Type enum values to a set of strings
- Parameters
-
- Returns
- The set of strings
◆ config
◆ isDeleted
bool XJ::Instrument::isDeleted {false} |
◆ libraryId
UUID XJ::Instrument::libraryId {} |
◆ mode
Mode XJ::Instrument::mode {} |
◆ name
std::string XJ::Instrument::name {} |
◆ state
State XJ::Instrument::state {} |
◆ type
Type XJ::Instrument::type {} |
◆ updatedAt
◆ volume
float XJ::Instrument::volume {0} |
The documentation for this class was generated from the following files:
- /home/runner/work/xjmusic/xjmusic/engine/include/xjmusic/content/Instrument.h
- /home/runner/work/xjmusic/xjmusic/engine/src/content/Instrument.cpp