Skip to content

Commit da22f3b

Browse files
committed
Update readme
1 parent 9a6cbb6 commit da22f3b

File tree

1 file changed

+9
-7
lines changed

1 file changed

+9
-7
lines changed

README.md

Lines changed: 9 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ This project is based on my interest in learning to play the piano in my spare t
1616

1717
- Program *pianoPlayPi.py* is the program to play with Servo motors.
1818
- 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.**
2020

2121
### VIRTUAL PIANO
2222

@@ -68,15 +68,15 @@ If you want to play *ledPi.py* program you need:
6868

6969
### **SET UP HARDWARE CONNECTIONS**
7070

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.
7272

7373
![](doc/images/gpio_buzzer.png)
7474

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.
7676

7777
![](doc/images/gpio_led.png)
7878

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.
8080

8181
![](doc/images/gpio_servo.png)
8282

@@ -104,12 +104,12 @@ If you want to play *ledPi.py* program you need:
104104

105105
```./pianoPlayPi.py partitures/partiture_hand_1.txt partitures/partiture_hand_2.txt```
106106

107-
**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.**
108108

109109
### **MUSIC SHEETS**
110110

111111
<p align=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.
113113
</p>
114114

115115
#### STYLE
@@ -185,7 +185,7 @@ Music Sheets for the piano are composed by a file of tuples (note,tempo), where
185185
</tbody>
186186
</table>
187187

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:
189189

190190
- For one note:
191191

@@ -211,6 +211,8 @@ In addition, you can play two or more notes at the same time if they have the sa
211211
si,n re,n
212212
do2,n do,n
213213
214+
**NOTE: Remember that there are no spaces between notes, they are tab key values (\t).**
215+
214216
### **PIANO FREQUENCIES**
215217
216218
<table style="border:1px solid black;margin-left:auto;margin-right:auto;">

0 commit comments

Comments
 (0)