4 + 5
// Evaluation by pressing [ENTER]

/*
multi line comment
f da
dsf kh

*/

3 / 4

3.dump		// receiver.message notation

sqrt(9) 	// functional notation
// function(arguments)

9.sqrt

pow(2,3)		
2 ** 3			// binary operator notation (symbolical)
2.pow(3)
2 pow: 3		// binary operator notation
2pow:3 		// does  work !
2 pow:3
2**3
2+3
2+					// doesn't work!

10.rand
rand(10)

rrand(10, 100)
10.rrand(100)
exprand(10, 100)
rrand(10.0, 100.0)
10 rrand: 100

-3
3.neg
neg(3)

[ 60, 62, 64, 65, 67, 69, 71, 72 ]
[ 60, 62, 64, 65, 67, 69, 71, 72 ].dump
[ 60, 62, 64, 65, 67, 69, 71, 72 ].size

3.1.dump
3.class
3.0.class
[3].class
Array.browse

7.bad
Integer.help

[ 60, 62, 64, 65, 67, 69, 71, 72 ]
[ 0, 2, 4, 5, 7, 9, 11, 12] + 62

440 * ( 2 ** (-9 / 12 ))
440 * pow(2, -9/12)

2 + 3 * 4
2 + (3 * 4)
3 * 4 + 2
2 + 3.sqrt
(2 + 3).sqrt

440 * ( 2 ** (-9 / 12 ))
440 * 2 ** -9 / 12
60.midicps  // cpsmidi, ampdb, dbamp, midiratio

440.cpsmidi
([ 0, 2, 4, 5, 7, 9, 11, 12] + 62).midicps
([ 0, 2, 4, 5, 7, 9, 11, 12] + 62).midicps.round
([ 0, 2, 4, 5, 7, 9, 11, 12] + 62).midicps.round(0.01)
round(midicps([ 0, 2, 4, 5, 7, 9, 11, 12] + 62), 0.01)
([ 0, 2, 4, 5, 7, 9, 11, 12] + 62).midicps.round(0.01).sqrt

[0,1,2,3,4,5,6,7,8,9,10,11,12]

Array.series(13, 0, 1)
3.sqrt
Integer.sqrt
[0,1,2,3,4,5,6,7,8,9,10,11,12].sqrt

Array.series(13, 0, 1) + 60
Array.series(13, 60, 1) 
Array.series(4, 60, 0.5) 
Array.series(4, 60, 12) 

Array.geom(4, 2, 2)
Array.geom(4, 1, 3/2)

Array.rand(12, 48, 72)
Array.rand(12, 48.0, 72).round(0.1)
5.rand

s.boot
s.quit

Server.default

Server.default = Server.local

s
s.dump
s.class

{ SinOsc.ar(200, 0, 0.3) }.play

{ SinOsc.ar(60.midicps, 0, 0.3) }.play

pi
1/0
{ SinOsc.ar(60.midicps, pi/2, 0.3) }.play

{ SinOsc.ar(60.midicps, pi/2, 1.1) }.play

{ SinOsc.ar(60.midicps, pi/2, 1.1) }.scope

{ SinOsc.ar(60.midicps, pi/2, -6.dbamp) }.play

{ SinOsc.ar(Line.kr(60, 72, 10).midicps, pi/2, -6.dbamp) }.play

{ SinOsc.ar(Line.kr(60, 72, 10).midicps, pi/2, Line.kr(0, -40, 10).dbamp) }.play

{ SinOsc.ar(Line.kr(60, 72, 10).midicps, pi/2, Line.kr(1, 0, 10)) }.play

s.sampleRate

3.sqrt
{ SinOsc.ar }.play

{ Saw.ar(60.midicps, 0.3) }.play
{ Saw.ar(60.midicps, 0.3) }.scope

{ Pulse.ar(60.midicps, 0.8, 1) }.scope

{ Pulse.ar(60.midicps, Line.kr(0.01, 0.99, 10), 0.3) }.play

{ Saw.ar( 400 + SinOsc.ar(5, 0, 11), 0.5) }.play

(400.cpsmidi - 0.5).midicps

{ Saw.ar( 400 + SinOsc.ar(5, 0, XLine.kr(0.01, 11, 5)), 0.5) }.play

{ Saw.ar( Pulse.ar( 2, 0.5, 5, 60).midicps ) }.play

s.sampleRate / 2 / 3

{ Pulse.ar(8000, 0.8, 1) }.scope(bufsize: 4096, zoom: 0.1)

{ Saw.ar( LFPulse.ar( 2, 0, 0.5, 5, 60).midicps ) }.play

{ WhiteNoise.ar(0.2) }.play; // rrand(-0.2, 0.2)

{ Saw.ar( LFNoise0.ar( 9, 5, 60).midicps ) }.play
{ Saw.ar( LFNoise1.ar( 9, 5, 60).midicps ) }.play
{ LFNoise0.ar(s.sampleRate) }.play
{ WhiteNoise.ar(1) }.play

{ LFNoise0.ar(90) }.scope
{ Saw.ar( LFNoise2.ar( 9, 5, 60).midicps ) }.play; { WhiteNoise.ar(1) }.play

{ SinOsc.ar(rrand(200.0, 1000.0), 0, 0.1) }.play

25.do({ arg i; i.postln })
do(25, { arg i; i.postln })

25.do { { SinOsc.ar(rrand(200.0, 1000.0), 0, 0.1) }.play }

SCView.browse

Pen