| 1 |
/* Getting started.. 1.2 Basic Document Structure |
| 2 |
|
| 3 |
This file explains the "Document Structure". If you press run, you won't hear anything! |
| 4 |
|
| 5 |
A Csound document is structured in four main sections. Each sections is opened with a <xyz> tag and closed with </xyz> tag. Every Csound file starts with a <CsoundSynthesizer> tag, and ends with </CsoundSynthesizer>, only text that is inbetween, will be compiled by Csound. |
| 6 |
*/ |
| 7 |
|
| 8 |
<CsoundSynthesizer> ; START OF A CSOUND FILE |
| 9 |
|
| 10 |
<CsOptions> ; OPTIONS |
| 11 |
; If you run Csound from CsoundQt, you can set options in the 'Preferences' menu more comfortably. |
| 12 |
; Read more details in the Csound Manual under: 1.Overview->The Csound Command->Comand-line Flags (by Category). |
| 13 |
</CsOptions> ;close OPTIONS |
| 14 |
|
| 15 |
|
| 16 |
<CsInstruments> ; INSTRUMENT SECTION |
| 17 |
; The instrumentheader section, specifies global options for instrument performance. |
| 18 |
sr = 44100 ; the samplerate for audiosignals is set to 44100 Hz (calculations per second) |
| 19 |
ksmps = 128 ; is the number of samples per control-block, -> ~345 Hz is the controlrate (sr/ksmps = controlrate HZ) |
| 20 |
nchnls = 2 ; the number of output channels is set to 2 (stereo) |
| 21 |
0dbfs = 1 ; the maximum output level before clipping (0dB FS) is set to 1, so the amplitude range is 0-1 |
| 22 |
|
| 23 |
; Now you can define your instruments |
| 24 |
instr 1 ; first instrument |
| 25 |
; this is empty, so nothing will be played |
| 26 |
endin |
| 27 |
|
| 28 |
instr 2 ; second instrument |
| 29 |
; this is also empty, so nothing will be played |
| 30 |
endin |
| 31 |
</CsInstruments> ;ends the INSTUMENT SECTION |
| 32 |
|
| 33 |
|
| 34 |
<CsScore> ; SCORE |
| 35 |
; instruments will be triggered here but this is empty as well |
| 36 |
e |
| 37 |
</CsScore> ; ends the SCORE |
| 38 |
</CsoundSynthesizer> ; ending of CSOUND FILE |
| 39 |
this will not become compiled :-), so I don't need the comment sign |
| 40 |
; written by Alex Hofmann (Nov. 2009) - Incontri HMT-Hannover |
| 41 |
<bsbPanel> |
| 42 |
<label>Widgets</label> |
| 43 |
<objectName/> |
| 44 |
<x>1013</x> |
| 45 |
<y>279</y> |
| 46 |
<width>563</width> |
| 47 |
<height>397</height> |
| 48 |
<visible>true</visible> |
| 49 |
<uuid/> |
| 50 |
<bgcolor mode="background"> |
| 51 |
<r>160</r> |
| 52 |
<g>158</g> |
| 53 |
<b>162</b> |
| 54 |
</bgcolor> |
| 55 |
<bsbObject version="2" type="BSBDisplay"> |
| 56 |
<objectName/> |
| 57 |
<x>51</x> |
| 58 |
<y>30</y> |
| 59 |
<width>80</width> |
| 60 |
<height>25</height> |
| 61 |
<uuid>{12de81e4-fac6-4001-b773-b19de1632c09}</uuid> |
| 62 |
<visible>true</visible> |
| 63 |
<midichan>0</midichan> |
| 64 |
<midicc>-3</midicc> |
| 65 |
<label>empty :-)</label> |
| 66 |
<alignment>left</alignment> |
| 67 |
<font>Lucida Grande</font> |
| 68 |
<fontsize>10</fontsize> |
| 69 |
<precision>3</precision> |
| 70 |
<color> |
| 71 |
<r>0</r> |
| 72 |
<g>0</g> |
| 73 |
<b>0</b> |
| 74 |
</color> |
| 75 |
<bgcolor mode="nobackground"> |
| 76 |
<r>255</r> |
| 77 |
<g>255</g> |
| 78 |
<b>255</b> |
| 79 |
</bgcolor> |
| 80 |
<bordermode>border</bordermode> |
| 81 |
<borderradius>1</borderradius> |
| 82 |
<borderwidth>1</borderwidth> |
| 83 |
</bsbObject> |
| 84 |
</bsbPanel> |
| 85 |
<bsbPresets> |
| 86 |
</bsbPresets> |