Hi!
Welcome to the 3rd day* of Advent of Future of Code!.
*
our calendar works in misterious ways
Today we are going to play with MockMechanics a program that allows the creation of complex and interactive mechanisms using only simple building blocks and a graphical and intuitive form of programming.
By focusing on simplicity it encourages experimentation and thinkering: you can develop your ideas as you build them instead of carefully planning ahead.
Your task is to duplicate the 3 key piano of the MockMechanics tutorial video.
The specific part with the piano starts here, but unless you already know MockMechanics, you’ll probably want to watch the whole tutorial before that part to get familiar with all the concepts you’ll need.
If you are really ambitious, try creating the full piano like in this image, you’ll need these key frequencies:
You need java installed, I tried using nix on ubuntu but got an OpenGL error,
installing java locally like this sudo apt install openjdk-18-jdk
was enough
to make it work.
run.sh
Note for Mac users: it may fail to run with an OpenGL error too, if you can find out why let the author know so he can document it for everybody else.
You should try to setup the project and complete the task, you can go further if you want.
And above all, have fun!