Skip to content

Commit

Permalink
"Document" the coin pitches in comments as approximate notes.
Browse files Browse the repository at this point in the history
Yes, this might be useless... but might save time for whoever wants
to... "use" them next.

https://www.youtube.com/watch?v=MT9HFV-dAPI
  • Loading branch information
divVerent committed Mar 5, 2019
1 parent ff4d8ef commit f58cc3e
Showing 1 changed file with 13 additions and 13 deletions.
26 changes: 13 additions & 13 deletions src/object/coin.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit f58cc3e

Please sign in to comment.