clangd auto-format
This commit is contained in:
parent
a9c8643318
commit
7c95e8c693
4 changed files with 350 additions and 305 deletions
|
@ -4,31 +4,32 @@
|
|||
#include <vector>
|
||||
|
||||
class AudioEmitter {
|
||||
private:
|
||||
std::unique_ptr<FMOD::System> system;
|
||||
FMOD::Channel* timer{ nullptr };
|
||||
std::vector <std::unique_ptr<FMOD::Sound>> chords;
|
||||
std::vector<std::unique_ptr<FMOD::Sound>> drums;
|
||||
std::vector<std::unique_ptr<FMOD::Sound>> notes;
|
||||
int tempo{ 170 };
|
||||
std::vector<std::vector<float>> markov_matrix_chords;
|
||||
std::vector<std::vector<float>> markov_matrix_melody;
|
||||
int nbr_melo_max{ 4 };
|
||||
int current_beat{ 0 };
|
||||
std::vector<std::vector<float>> rythmes;
|
||||
int index_note;
|
||||
std::vector<int> chordProgression;
|
||||
std::vector<FMOD::Channel*> activeChannels;
|
||||
public:
|
||||
AudioEmitter();
|
||||
void generateMusic();
|
||||
void audioUpdate();
|
||||
void audioEnd();
|
||||
int firstChord();
|
||||
int nextChord(int currentChord);
|
||||
int firstNote();
|
||||
int nextNote(int currentNote);
|
||||
int noteSecondaire(int note);
|
||||
float getTime();
|
||||
float timeBeforeNewGeneration{ 0.2f };
|
||||
};
|
||||
private:
|
||||
std::unique_ptr<FMOD::System> system;
|
||||
FMOD::Channel *timer{nullptr};
|
||||
std::vector<std::unique_ptr<FMOD::Sound>> chords;
|
||||
std::vector<std::unique_ptr<FMOD::Sound>> drums;
|
||||
std::vector<std::unique_ptr<FMOD::Sound>> notes;
|
||||
int tempo{170};
|
||||
std::vector<std::vector<float>> markov_matrix_chords;
|
||||
std::vector<std::vector<float>> markov_matrix_melody;
|
||||
int nbr_melo_max{4};
|
||||
int current_beat{0};
|
||||
std::vector<std::vector<float>> rythmes;
|
||||
int index_note;
|
||||
std::vector<int> chordProgression;
|
||||
std::vector<FMOD::Channel *> activeChannels;
|
||||
|
||||
public:
|
||||
AudioEmitter();
|
||||
void generateMusic();
|
||||
void audioUpdate();
|
||||
void audioEnd();
|
||||
int firstChord();
|
||||
int nextChord(int currentChord);
|
||||
int firstNote();
|
||||
int nextNote(int currentNote);
|
||||
int noteSecondaire(int note);
|
||||
float getTime();
|
||||
float timeBeforeNewGeneration{0.2f};
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue