forked from ChomeNS/chomens-bot-java
actually do how minecraft did it
This commit is contained in:
parent
9c3ed7f078
commit
783243ad06
1 changed files with 3 additions and 1 deletions
|
@ -291,7 +291,9 @@ public class MusicPlayerPlugin extends Bot.Listener {
|
|||
|
||||
float key = note.pitch;
|
||||
|
||||
final double floatingPitch = 0.5 * (Math.pow(2, ((key + (pitch / 10)) / 12)));
|
||||
// totally didn't look at the minecraft code and found the note block pitch thingy so i totallydidnotskidded™ it
|
||||
final double floatingPitch = Math.pow(2.0, ((key + (pitch / 10)) - 12) / 12.0);
|
||||
// final double floatingPitch = 0.5 * (Math.pow(2, ((key + (pitch / 10)) / 12)));
|
||||
|
||||
// totallynotskidded from opennbs
|
||||
int blockPosition = 0;
|
||||
|
|
Loading…
Reference in a new issue