Users Manual
CLASS 4
82
End Tori Piano recording
Using the script from previous page, make a script just like the one above. You can record until the Digital Port 3
IR sensor is pressed again. To express this behavior, use the ‘Repeat until~” block. This block repeats the internal
script until certain condition is met. The condition in this case is ‘Is Digital 3 Sensor pressed?”
Which means, it will continue the internal script (recording) until the Digital 3 IR sensor is pressed. After the
recording, if you press the digital 3 IR sensor, Digital 10 port output is off. If the recording is done, the LED con-
nected to digital 10 port will be turned off.
Let me give you an additional explanation on expressing beat with the ‘Beats’ list. When the recording starts, the
timer is initialized and the time continues until recording is finished. In the meantime, if the user presses a note,
the note is stored at the point where it was pressed. The idea is that the timer will play from the beginning and at
the time the sound is stored.
Start
recording
End of
recording
input
Save
input
Save
input
Save
TORI Piano coding activity