nouveaux sons

This commit is contained in:
antpoms 2025-06-14 17:47:10 +02:00
parent 5c65b99604
commit 4bbdbfe6e4
62 changed files with 51 additions and 67 deletions

View file

@ -13,7 +13,6 @@ private:
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};
@ -24,6 +23,7 @@ private:
std::vector<FMOD::Channel *> activeChannels;
public:
int tempo{ 170 };
AudioEmitter();
std::vector<std::pair<float, int>> generateMusic();
void audioUpdate();
@ -35,5 +35,5 @@ public:
int noteSecondaire(int note);
float getTimeTempo() const;
float getTime() const;
float timeBeforeNewGeneration{0.2f};
float timeBeforeNewGeneration{4.f};
};