Users Manual
CLASS 4
80
TORI piano recording Coding
Drag the coding locks and make a script like the one above. Did you get it?
First, receive the ‘Record’ broadcast from the top. Then the bottom blocks are executed in order. The reason I
chose 'Record' here is to let you know that it is a script related to recording. When broadcasting, it is helpful to
specify the word related to the script to do complicated coding.
Now let's turn on the digital 10 port's output to let you know that recording has begun. You need to press the
Digital Port 3 infrared sensor for more than 2 seconds before recording starts in the previous step, so the infrared
sensor is still pressed when you receive the 'Record' broadcast. So, wait until the infrared sensor is not pressed (un-
til the input value becomes false). When the user releases the handset, the timer is initialized and recording starts!
Now the LED on your piano is on and the timer is initialized to start recording. Now on the next page, we will code
the script using the list we learned earlier to make a full-scale recording. We will work to make a system that saves
the list for the notes by pressing the button sensor before the IR sensor of Digital Port 3 is pressed and turns off
LED to announce the end.
First, we will learn about the principle of saving note and beat when the 60th note is played.
TORI Piano coding activity