Translate

Now, play around. Change the rates - what happens when you use high values, or small values or negative values? See what happens when you change the `rate:` value for the `:ambi_choir` sample just slightly (say to `0.29`). What happens if you choose a really small `sleep` value? See if you can make it go so fast your computer will stop with an error because it can't keep up (if that happens, just choose a bigger `sleep` time and hit `Run` again).
SourceTranslationState
20
Press the `Run` button again
Apasa din nou pe 'Executa'
21
Notice how the drum speed has changed.
Observi ca viteza s-a schimbat.
22
Finally, *remember this moment*, this is the first time you've live coded with Sonic Pi and it's unlikely to be your last...
*Tine minte momentul asta*, e prima data cand ai programat live, dar probabil nu va fi ultima...
23
Ok, that was simple enough. Let's add something else into the mix. Above `sample :bd_haus` add the line `sample :ambi_choir, rate: 0.3`. Your code should look like this:
OK, a fost destul de simplu. Sa mai adaugam ceva. Deasupra liniei 'sample :bd_haus' adauga linia `sample :ambi_choir, rate: 0.3`. Codul ar trebui sa arate asa acum:
24
live_loop :flibble do
sample :ambi_choir, rate: 0.3
sample :bd_haus, rate: 1
sleep 1
end
```
live_loop :flibble do
sample :ambi_choir, rate: 0.3
sample :bd_haus, rate: 1
sleep 1
end
```
25
Now, play around. Change the rates - what happens when you use high values, or small values or negative values? See what happens when you change the `rate:` value for the `:ambi_choir` sample just slightly (say to `0.29`). What happens if you choose a really small `sleep` value? See if you can make it go so fast your computer will stop with an error because it can't keep up (if that happens, just choose a bigger `sleep` time and hit `Run` again).
Acum poti sa te joci. Schimba valorile pentru ritm - ce se intampla cand folosesti valori mai mari sau mai mici, sau valori negative? Vezi ce se intampla cand schimbi 'rate:' pentru ':ambi_choir' doar putin (sa zicem la 0.29). Ce se intampla daca alegi o valoare foarte mica pentru 'sleep'? Vezi daca poti sa il faci sa se miste atat de repede incat calculatorul sa dea o eroare fiindca nu poate tine pasul (in cazul asta alege o valoare mai mare prentru 'sleep si apasa din nou 'Run').
26
Try commenting one of the `sample` lines out by adding a `#` to the beginning:
Incearca sa transformi in comentariu una dintre liniile 'sample' adaugand un '#' la inceput:
27
live_loop :flibble do
sample :ambi_choir, rate: 0.3
# sample :bd_haus, rate: 1
sleep 1
end
```
live_loop :flibble do
sample :ambi_choir, rate: 0.3
# sample :bd_haus, rate: 1
sleep 1
end
```
28
Notice how it tells the computer to ignore it, so we don't hear it. This is called a comment. In Sonic Pi we can use comments to remove and add things into the mix.
Observi ca i-am spus calculatorului sa ignore acea linie, deci nu o vom auzi. Acesta se numeste comentariu. In Sonic Pi putem folosi comentariile pentru a adauga sau inlatura sunete.
29
Finally, let me leave you something fun to play with. Take the code below, and copy it into a spare buffer. Now, don't try to understand it too much other than see that there are two loops - so two things going round at the same time. Now, do what you do best - experiment and play around. Here are some suggestions:
La final, iti voi lasa ceva distractiv cu care sa te joci. Ia codul de mai jos si copiaza-l intr-un buffer gol. Deocamdata nu incerca sa intelegi prea mult, remarca doar ca sunt doua bucle - deci doua lucruri care se reiau in acelasi timp. Acum fa ceea ce faci cel mai bine - experimenteaza si joaca-te cu codul. Uite cateva sugestii:
30
Try changing the blue `rate:` values to hear the sample sound change.
Incearca sa schimbi valorile afisate cu albastru pentru 'rate:' si vezi cum se schimba sunetul.

Loading…

Loading…

threewater2 6 months ago Source string comment

rate应该翻译为什么?

Glossary

Source Translation
Run Executa
sample esantion

Source information

Source string location
01.1-Live-Coding.md:51
Source string age
2 years ago
Translation file
etc/doc/lang/sonic-pi-tutorial-ro.po, string 25
String priority
Medium