This is a re-post with a code tag.
This time is the first time to use code tags. If I'm wrong, please tell me.
MusicIntrument_Keyboard Errors
Thank you very much for your comment.
I replaced "inputsPins" ,"buttonState" "lastButtonState" as follows.
inputPins[i]
buttonState[i]
lastButtonState[i]
The number of errors has decreased.
But still there are 3 error messages.
For example,
In the void loop()
if (buttonState[i] == HIGH) {
noteOn(0,note,100);
The line
noteOn(0,note,100);
is highlighted and there are messages as
" invalid conversion from 'int' to 'byte' "
" initializing argument 2 of 'noteOn(byte,byte,byte)' "
In my understanding, talkMIDI() is a message with 3 bytes.
How do you define the data type of noteOn()?
I feel I'm getting better with your help.
I'm looking forward your reply.
Thank you very much.