Translate

To modify the playback rate of a sample we need to use the `rate:` opt:
SourceTranslationState
1782
Try to establish a practice routine which incorporates as many of these ideas as possible. Try to keep the sessions as fun as possible but be aware that some practice sessions will be hard and feel a little like work. However, it will all be worth it once you've created your first piece or given your first performance. Remember, practice is the key to success!
ここで紹介したアイデアを可能な限り取り込んだ練習ルーチンを確立するようにしてください。練習セッションは可能な限り楽しくしておくべきですが、ときには練習セッションは過酷で仕事のように感じることもあるでしょう。しかしながら、一度初めての作品を完成させたり、初めてのパフォーマンスを成功させたりしたら、練習はその価値があったと言えるでしょう。覚えておいてください、練習は成功の鍵なのです!
1783
A.17 Sample Stretching
A.12 サンプルをスライスする
1784
Sample Stretching
サンプルをスライスする
1785
When people discover Sonic Pi, one of the first things they learn is how simple it is to play pre-recorded sounds using the `sample` function. For example, you can play an industrial drum loop, hear the sound of a choir or even listen to a vinyl scratch all via a single line of code. However, many people don't realise that you can actually vary the speed that the sample is played back at for some powerful effects and a whole new level of control over your recorded sounds. So, fire up a copy of Sonic Pi and let's get started stretching some samples!
1786
Slowing Samples Down
サンプル
1787
To modify the playback rate of a sample we need to use the `rate:` opt:
1788
sample :guit_em9, rate: 1
sample :guit_em9, rate: 1
1789
If we specify a `rate:` of `1` then the sample is played back at the normal rate. If we want to play it back at half speed we simply use a `rate:` of `0.5`:
1790
Notice that this has two effects on the audio. Firstly the sample sounds lower in pitch and secondly it takes twice as long to play back (see the sidebar for an explanation of why this is the case). We can even choose lower and lower rates moving towards `0`, so a `rate:` of `0.25` is a quarter speed, `0.1` is a tenth of the speed, etc. Try playing with some low rates and see if you can turn the sound into a low rumble.
choose:選択
1791
Speeding Samples Up
サンプル
1792
In addition to making the sound longer and lower using a small rate, we can use higher rates to make the sound shorter and higher. Let's play with a drum loop this time. First, take a listen to how it sounds at the default rate of `1`:

Loading…

Loading…

Glossary

Source Translation
playback rate 再生レート
rate レート
Sample Packs サンプルパック

Source information

Source string location
A.17-sample-stretching.md:16
Source string age
a year ago
Translation file
etc/doc/lang/sonic-pi-tutorial-ja.po, string 1787
String priority
Medium