XJ music engine  1.9.6
In-game runtime engine for XJ music.
InstrumentConfig.h
Go to the documentation of this file.
1 
2 // Copyright (c) XJ Music Inc. (https://xjmusic.com) All Rights Reserved.
3 
4 #ifndef XJMUSIC_INSTRUMENT_CONFIG_H
5 #define XJMUSIC_INSTRUMENT_CONFIG_H
6 
7 #include <string>
8 #include <vector>
9 
11 
12 namespace XJ {
13 
14  class InstrumentConfig : public ConfigParser {
15  public:
16  static const std::string DEFAULT;
17 
18  explicit InstrumentConfig();
19 
20  explicit InstrumentConfig(const std::string &input);
21 
24  bool isOneShot;
26  bool isTonal;
28  std::vector<std::string> oneShotObserveLengthOfEvents;
29 
34  [[nodiscard]] std::string toString() const;
35 
39  [[nodiscard]] static std::string getDefaultString();
40 
46  [[nodiscard]] bool oneShotObserveLengthOfEventsContains(const std::string &eventName) const;
47  };
48 
49 }// namespace XJ
50 
51 #endif//XJMUSIC_INSTRUMENT_CONFIG_H
Definition: ConfigParser.h:222
Definition: InstrumentConfig.h:14
std::string toString() const
Definition: InstrumentConfig.cpp:47
bool isAudioSelectionPersistent
Definition: InstrumentConfig.h:22
int releaseMillis
Definition: InstrumentConfig.h:27
bool isOneShot
Definition: InstrumentConfig.h:24
std::vector< std::string > oneShotObserveLengthOfEvents
Definition: InstrumentConfig.h:28
bool isTonal
Definition: InstrumentConfig.h:26
static std::string getDefaultString()
Definition: InstrumentConfig.cpp:72
bool isOneShotCutoffEnabled
Definition: InstrumentConfig.h:25
InstrumentConfig()
Definition: InstrumentConfig.cpp:26
static const std::string DEFAULT
Definition: InstrumentConfig.h:16
bool isMultiphonic
Definition: InstrumentConfig.h:23
bool oneShotObserveLengthOfEventsContains(const std::string &eventName) const
Definition: InstrumentConfig.cpp:77
Definition: ActiveAudio.h:11