Możesz grać klawiaturą komputera: dolny rząd Z…M (i S D G H J) oraz górny Q…P (i cyfry). Strzałki ←/→ zmieniają oktawę.
Nagranie gotowe. Link:
Jak zapisać melodię
Melodia to zwykły tekst w linku:
https://ADRES-STRONY/?bpm=100&m=E4:4-D4:4-C4:8
- Nuty oddzielaj myślnikiem
-. - Nuta = litera + numer oktawy.
C4to środkowe C,C5o oktawę wyżej. Litery: C D E F G A B (nie H). - Krzyżyk to
s(Fs4= F♯4), bemol tob(Bb3= B♭3). Nie wpisuj#w linku – psuje go. - Długość po dwukropku:
1= szesnastka,2= ósemka,4= ćwierćnuta,8= półnuta,16= cała nuta. Bez liczby = 1. Można ułamki:1.5. - Akord: nuty połączone kropką:
C4.E4.G4:8. - Pauza:
R:4. - Druga liczba = jak długo trzymać klawisz, gdy ma być inaczej niż długość:
C4:4:1– krótko (staccato), następna nuta i tak po 4.C3:0:16–0znaczy „następna nuta zaczyna się razem z tą”, a C3 brzmi 16. Tak robisz bas pod melodią (druga ręka). - Ustawienia w linku:
bpm=tempo (ćwierćnuty na minutę, domyślnie 120),title=tytuł,auto=1– gra sama po chwili (jeśli przeglądarka pozwala na dźwięk; inaczej wystarczy jedno dotknięcie),lang=pllublang=en– język strony. - Zaawansowane:
g=ile kroków ma ćwierćnuta (domyślnie 4). Np.g=3dla trioli. Nagrania z tej strony mająbpm=60&g=100, więc 1 = 1/100 sekundy. - Zakres: od
A0doC8(88 klawiszy). Wielkość liter nie ma znaczenia.
Przykład (Oda do radości, dwie ręce):
https://ADRES-STRONY/?title=Oda&lang=pl&bpm=120&auto=1&m=C3.G3:0:16-E4:4-E4:4-F4:4-G4:4-G2.G3:0:16-G4:4-F4:4-E4:4-D4:4-C3.G3:0:16-C4:4-C4:4-D4:4-E4:4-G2.G3:0:16-E4:6-D4:2-D4:8
Dla modeli AI (np. ChatGPT): zapisz nuty jak wyżej, zbuduj link i daj go użytkownikowi albo go otwórz. Odtwarzanie wymaga przeglądarki z JavaScriptem. W otwartej stronie działa też: piano.play("C4:4-E4:4", {bpm: 100}), piano.stop(), piano.state() (co gra teraz). Wciśnięte klawisze mają klasę down i atrybut data-note; aktualnie grane nuty są też w tekście nad klawiaturą.
How to write a melody
A melody is plain text in the link:
https://SITE-ADDRESS/?bpm=100&m=E4:4-D4:4-C4:8
- Notes are separated with a dash
-. - Note = letter + octave number.
C4is middle C,C5is one octave higher. Letters: C D E F G A B. - Sharp is
s(Fs4= F♯4), flat isb(Bb3= B♭3). Never put#in a link – it breaks it. - Length after a colon:
1= sixteenth,2= eighth,4= quarter,8= half,16= whole note. No number = 1. Decimals work:1.5. - Chord: notes joined with dots:
C4.E4.G4:8. - Rest:
R:4. - A second number = how long the key is held, when it differs from the length:
C4:4:1– short (staccato), the next note still comes after 4.C3:0:16–0means “the next note starts together with this one”, and C3 rings for 16. This is how you put a bass under a melody (the other hand). - Settings in the link:
bpm=tempo (quarter notes per minute, default 120),title=title,auto=1– plays by itself (if the browser allows sound; otherwise one tap is enough),lang=enorlang=pl– page language. - Advanced:
g=steps per quarter note (default 4), e.g.g=3for triplets. Recordings made here usebpm=60&g=100, so 1 = 1/100 second. - Range:
A0toC8(88 keys). Upper or lower case does not matter.
Example (Ode to Joy, two hands):
https://SITE-ADDRESS/?title=Ode%20to%20Joy&lang=en&bpm=120&auto=1&m=C3.G3:0:16-E4:4-E4:4-F4:4-G4:4-G2.G3:0:16-G4:4-F4:4-E4:4-D4:4-C3.G3:0:16-C4:4-C4:4-D4:4-E4:4-G2.G3:0:16-E4:6-D4:2-D4:8
For AI models (e.g. ChatGPT): write the notes as above, build the link and give it to the user, or open it. Playback needs a browser with JavaScript. On the open page you can also call piano.play("C4:4-E4:4", {bpm: 100}), piano.stop(), piano.state() (what is playing now). Pressed keys have the class down and a data-note attribute; the notes playing now are also shown as text above the keyboard.