nouveaux sons
This commit is contained in:
parent
5c65b99604
commit
4bbdbfe6e4
62 changed files with 51 additions and 67 deletions
|
@ -8,12 +8,13 @@
|
|||
void generateTilePattern(std::vector<std::pair<float, int>> new_notes,
|
||||
const AudioEmitter &audio_emitter) {
|
||||
int i = -1;
|
||||
float beatDuration = 60.f / audio_emitter.tempo;
|
||||
for (auto note : new_notes) {
|
||||
i++;
|
||||
if (i % 4 != 0) // skip les 3/4 des notes (je suis trop nul sinon)
|
||||
continue;
|
||||
// if (i % 4 != 0) // skip les 3/4 des notes (je suis trop nul sinon)
|
||||
// continue;
|
||||
float start_time = note.first;
|
||||
NotePlaceEnum notePlace = static_cast<NotePlaceEnum>(i % 3);
|
||||
NoteTile::create(start_time, 0.5, notePlace, audio_emitter.getTime());
|
||||
NoteTile::create(start_time, beatDuration, notePlace, audio_emitter.getTime());
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue