From 936660b5e6494d6853b167add7a749127e0324b0 Mon Sep 17 00:00:00 2001 From: Matthias Neeracher Date: Sun, 28 Aug 2011 23:38:36 +0200 Subject: [PATCH] Improve chord voicings on playback --- Sources/VLSoundOut.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/Sources/VLSoundOut.cpp b/Sources/VLSoundOut.cpp index 717aadf..92cbefc 100644 --- a/Sources/VLSoundOut.cpp +++ b/Sources/VLSoundOut.cpp @@ -252,11 +252,14 @@ void VLAUSoundOut::PlayNote(const VLNote & note) void VLAUSoundOut::PlayChord(const VLChord & chord) { + // + // TODO: The voicings here are not very realistic + // std::vector notes; for (int i = 0; i < 32; ++i) if (chord.fSteps & (1 << i)) - notes.push_back(chord.fPitch+i); + notes.push_back(chord.fPitch+i%12); if (chord.fRootPitch != VLNote::kNoPitch) notes.push_back(chord.fRootPitch); Play(¬es[0], notes.size());