Piano: Difference between revisions
From wikiluntti
(→Melody) |
No edit summary |
||
Line 1: | Line 1: | ||
== | == Piano == | ||
Sonic Pi plays all piano keys. The command <code>play 70</code> means the 70th key, <code>play 71</code> plays the next to the right. Sonic Pi plays also decimal notes, try <code>play 71.67</code>. Also, you can play multiple notes at the time: | Sonic Pi plays all piano keys. The command <code>play 70</code> means the 70th key, <code>play 71</code> plays the next to the right. Sonic Pi plays also decimal notes, try <code>play 71.67</code>. Also, you can play multiple notes at the time: | ||
Line 22: | Line 22: | ||
play 79 | play 79 | ||
</syntaxhighlight> | </syntaxhighlight> | ||
== Notes == | |||
[[File:Klaviatur-3-en.svg|thumb|https://upload.wikimedia.org/wikipedia/commons/c/c0/Klaviatur-3-en.svg]] |
Revision as of 16:39, 12 October 2020
Piano
Sonic Pi plays all piano keys. The command play 70
means the 70th key, play 71
plays the next to the right. Sonic Pi plays also decimal notes, try play 71.67
. Also, you can play multiple notes at the time:
play 72
play 75
play 79
Melody
Use sleep
command in between.
s = 0.5
play 72
sleep s
play 75
sleep s
play 79