First, thanks for read. I'm a math teacher in highschool.
If you connect Arduino Uno to Mathematica and press the switch, the value read by DeviceRead is changed to '0' or '1'.
When the switch is pressed using the EmitSound, Sound, and SoundNote functions, the sound corresponding to '1' is output.
And in the end, I want to make an 88-key piano.
However, an error code appears stating that the value of '0' or '1' output by
is not applicable in
What am I missing?
If there is a difference in time that occurs from the moment the switch is pressed and connected to the EmitSound function of Mathematica through the Arduino, how can we overcome it?