Translate

Synth Options: Amp and Pan
28/260
SourceTranslationState
106
Remember to put the colon `:` in front of your note name so that it goes pink. Also, you can specify the octave by adding a number after the note name:
Kom ihåg att sätt ett kolon `:` framför namnet på tonen, så att den blir rosafärgad. Man kan även ange oktav genom att lägga till en siffra efter tonens namn:
107
play :C3
sleep 0.5
play :D3
sleep 0.5
play :E4
play :C3
sleep 0.5
play :D3
sleep 0.5
play :E4
108
If you want to make a note sharp, add an `s` after the note name such as `play :Fs3` and if you want to make a note flat, add a `b` such as `play :Eb3`.
Om du vill göra tonen en halvton högre, lägg i så fall till ett `s` efter tonens namn, såsom `play :Fs3`. Vill du istället göra tonen en halvton lägre, lägg i så fall till ett `b` såsom `play :Eb3`.
109
Now go *crazy* and have fun making your own tunes.
Ha nu *riktigt kul* när du gör dina egna låtar.
110
2.2 Synth Options
2.2 Syntens tillval
111
Synth Options: Amp and Pan
Syntens tillval: amp och pan
112
As well as allowing you to control which note to play or which sample to trigger, Sonic Pi provides a whole range of options to craft and control the sounds. We'll be covering many of these in this tutorial and there's extensive documentation for each in the help system. However, for now we'll introduce two of the most useful: *amplitude* and *pan*. First, let's look at what options actually are.
Förutom att låta dig bestämma vilken ton som skall spelas eller vilken sampling som skall startas, så ger dig Sonic Pi möjlighet att skruva på och kontrollera ljudet.
113
Options
114
Sonic Pi supports the notion of options (or opts for short) for its synths. Opts are controls you pass to `play` which modify and control aspects of the sound you hear. Each synth has its own set of opts for finely tuning its sound. However, there are common sets of opts shared by many sounds such as `amp:` and envelope opts (covered in another section).
115
Opts have two major parts, their name (the name of the control) and their value (the value you want to set the control at). For example, you might have a opt called `cheese:` and want to set it with a value of `1`.
116
Opts are passed to calls to `play` by using a comma `,` and then the name of the opt such as `amp:` (don't forget the colon `:`) and then a space and the value of the opt. For example:

Loading…

Loading…

Glossary

Source Translation
No related strings found in the glossary.

Source information

Source string location
02.2-Synth-Params.md:3
Source string age
3 years ago
Translation file
etc/doc/lang/sonic-pi-tutorial-sv.po, string 111
String priority
Medium