XJ music engine  1.9.6
In-game runtime engine for XJ music.
Bar.h
Go to the documentation of this file.
1 // Copyright (c) XJ Music Inc. (https://xjmusic.com) All Rights Reserved.
2 
3 #ifndef XJMUSIC_MUSIC_BAR_H
4 #define XJMUSIC_MUSIC_BAR_H
5 
6 #include <vector>
7 
8 namespace XJ {
9 
10  class Bar {
11  private:
12  static std::vector<int> FACTORS_TO_TEST;
13 
14  public:
15  int beats;
16 
21  explicit Bar(const int &beats);
22 
27  static Bar of(const int &beats);
28 
34  [[nodiscard]] int computeSubsectionBeats(int subBeats) const;
35  };
36 
37 }// namespace XJ
38 
39 #endif// XJMUSIC_MUSIC_BAR_H
Definition: Bar.h:10
int computeSubsectionBeats(int subBeats) const
Definition: Bar.cpp:24
int beats
Definition: Bar.h:15
Bar(const int &beats)
Definition: Bar.cpp:14
static Bar of(const int &beats)
Definition: Bar.cpp:19
Definition: ActiveAudio.h:11