From f58cc3e8d8fc5743fc9e1f7fe9a80a5ba28859dd Mon Sep 17 00:00:00 2001 From: Rudolf Polzer Date: Mon, 4 Mar 2019 22:52:20 -0500 Subject: [PATCH] "Document" the coin pitches in comments as approximate notes. Yes, this might be useless... but might save time for whoever wants to... "use" them next. https://www.youtube.com/watch?v=MT9HFV-dAPI --- src/object/coin.cpp | 26 +++++++++++++------------- 1 file changed, 13 insertions(+), 13 deletions(-) diff --git a/src/object/coin.cpp b/src/object/coin.cpp index a3bbf565dda..c0eccc83e6b 100644 --- a/src/object/coin.cpp +++ b/src/object/coin.cpp @@ -120,43 +120,43 @@ Coin::collect() } else { switch ((pitch_one - tile) % 7) { case -6: - pitch = 1.f/2; + pitch = 1.f/2; // C break; case -5: - pitch = 5.f/8; + pitch = 5.f/8; // E break; case -4: - pitch = 4.f/6; + pitch = 4.f/6; // F break; case -3: - pitch = 3.f/4; + pitch = 3.f/4; // G break; case -2: - pitch = 5.f/6; + pitch = 5.f/6; // A break; case -1: - pitch = 9.f/10; + pitch = 9.f/10; // Bb break; case 0: - pitch = 1.f; + pitch = 1.f; // c break; case 1: - pitch = 9.f/8; + pitch = 9.f/8; // d break; case 2: - pitch = 5.f/4; + pitch = 5.f/4; // e break; case 3: - pitch = 4.f/3; + pitch = 4.f/3; // f break; case 4: - pitch = 3.f/2; + pitch = 3.f/2; // g break; case 5: - pitch = 5.f/3; + pitch = 5.f/3; // a break; case 6: - pitch = 9.f/5; + pitch = 9.f/5; // bb break; } last_pitch = pitch;