TOOT 1: Difference between revisions

From OLPC
Jump to navigation Jump to search
Line 17: Line 17:
== score ==
== score ==


{{ Box File toot1.soc | 2=<pre>
{{ Box File | toot1.soc | 2=<pre>
f1 0 4096 10 1 ; use GEN10 to compute a sine wave
f1 0 4096 10 1 ; use GEN10 to compute a sine wave



Revision as of 22:11, 23 March 2008

The first orchestra file, called Toot01.orc contains a single instrument which uses an oscil unit to play a 440Hz sine wave (defined by f1 in the score) at an amplitude of 10000

orchestra

 File: toot1.orc
 instr 1

	a1	oscil	10000, 440, 1

		out	a1

 endin

score

 File: toot1.soc
f1	0	4096	10	1	; use GEN10 to compute a sine wave

;ins	strt	dur

i1	0	4

e