You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+9-7Lines changed: 9 additions & 7 deletions
Original file line number
Diff line number
Diff line change
@@ -16,7 +16,7 @@ This project is based on my interest in learning to play the piano in my spare t
16
16
17
17
- Program *pianoPlayPi.py* is the program to play with Servo motors.
18
18
- Folder *partitures* contains example music sheets to play with previous program.
19
-
-**Actual version of the code supports only multiple notes with same tempo in the same thread. Multi-thread is supported for simulate two virtual hands with their own music sheet.**
19
+
-**Actual version of the code supports only multiple notes with same tempo in the same thread. Multi-thread is supported for simulate two virtual hands with their own music sheet. Additionally, the actual implementation corresponds to two notes for each servo motor because the actual prototype doesn't have enough space between piano keys.**
20
20
21
21
### VIRTUAL PIANO
22
22
@@ -68,15 +68,15 @@ If you want to play *ledPi.py* program you need:
68
68
69
69
### **SET UP HARDWARE CONNECTIONS**
70
70
71
-
- buzzerPi.py:
71
+
- buzzerPi.py: The following image shows how to connect one buzzer to the Raspberry Pi. If you have more than one, you have to connect each one to one of the available GPIO ports of your board and enable it in the code.
72
72
73
73

74
74
75
-
- ledPi.py:
75
+
- ledPi.py: The following image shows how to connect one LED to the channel 0 of the controller. If you have more than one, you have to connect each one to each controller channel.
76
76
77
77

78
78
79
-
- pianoPlayPi.py:
79
+
- pianoPlayPi.py: The following image shows how to connect one servo motor to the channel 0 of the controller. If you have more than one, you have to connect each one to each controller channel.
80
80
81
81

82
82
@@ -104,12 +104,12 @@ If you want to play *ledPi.py* program you need:
**NOTE: Music sheets for dual hand simulated piano, as in real life, shouldn't contains the same notes (or piano key) at the same time, there is no reason to play with two hands the same notes.**
107
+
**NOTE: Music sheets for dual hand simulated piano, as in real life, shouldn't contains the same notes (or piano keys) at the same time, there is no reason to play with two hands the same notes.**
108
108
109
109
### **MUSIC SHEETS**
110
110
111
111
<palign=justify>
112
-
I'm trying to find a lib or website that provides music sheets in plain text for bots or in more complex way, develop a machine learning algorithm to recognise notes in pdf or image based music sheets. The idea is to give to the piano bot the capacity of play any kind of song without having to rewrite it again specifically for him.
112
+
I'm trying to find a lib or website that provides music sheets in plain text for bots or in more complex way, develop a machine learning algorithm to recognise notes in pdf or image based music sheets. The idea is to give the piano bot the capacity of play any kind of song without having to rewrite the music sheet specifically for him.
113
113
</p>
114
114
115
115
#### STYLE
@@ -185,7 +185,7 @@ Music Sheets for the piano are composed by a file of tuples (note,tempo), where
185
185
</tbody>
186
186
</table>
187
187
188
-
In addition, you can play two or more notes at the same time if they have the same tempo in the same thread, separating them with a tab (\t) key value. The file will be like this:
188
+
In addition, you can play two or more notes at the same time if they have the same tempo in the same thread, separating them with a tab value key (\t). The file will be like this:
189
189
190
190
- For one note:
191
191
@@ -211,6 +211,8 @@ In addition, you can play two or more notes at the same time if they have the sa
211
211
si,n re,n
212
212
do2,n do,n
213
213
214
+
**NOTE: Remember that there are no spaces between notes, they are tab key values (\t).**
0 commit comments