Users Manual

CLASS 4
84
Recording ‘71st’ note
Using a script from previous page, make a script shown above.
The contents of the input of the digital 2-button sensor were covered in the previous simple playback piano. The
principle is the same as the button sensor connected to the analog port. The condition for ‘If~’ button for digital
2 button sensor is ‘is digital 2 sensor pressed?’ When you press the Digital 2 sensor, the timer time of that press is
stored in the ‘Beats’ list and it plays 71st note. Then it adds 71st note to the ‘notes’ list. With the same reason as
the 60th note, 71st note is saved as ‘B’ into the list. Wait until the digital 2 button sensor value becomes 'false'
because you should play it only once.
The difference between an analog sensor and a digital sensor is that the analog sensor determines the size of the
value and the digital sensor determines if the value is true or false, principle and contents are the same.
TORI Piano coding activity