Skip to content

Instantly share code, notes, and snippets.

@Enkerli
Created January 22, 2016 00:08
Show Gist options
  • Save Enkerli/7ba24a7883d2433c281f to your computer and use it in GitHub Desktop.
Save Enkerli/7ba24a7883d2433c281f to your computer and use it in GitHub Desktop.
Controlling #SonicPi from Minecraft
use_synth :pretty_bell
loop do
x=mc_get_pos[0]
y=mc_get_pos[1]
z=mc_get_pos[2]
play [x, y+30, z]
sleep 2
end
@Enkerli
Copy link
Author

Enkerli commented Jan 22, 2016

Requires a #RasPi with Minecraft Pi. But it works: moving around the Minecraft world changes the values of the three notes in the chord.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment