/* Getting started.. 1.1 Hello World The 'Basics Chapter' of the Tutorials, will explain the root functionality of CsoundQt. You will find the descriptions as comments directly in the code. This first example is focused on the different comment-types and shows a simple program, which outputs a "Hello World - 440Hz beep" to the computer's audio output and the "Hello World" string to the console. To start it, press the RUN Button in the CsoundQt-toolbar, or choose "Control->Run Csound" from the menu. */ ksmps=32 ; This is a comment! ; Comments describe how things are done, and help to explain the code. ; They are shown in green in CsoundQt. ; Anything after a semicolon will be ignored by Csound, so you can use it for human readable information. /* If you need more space than one line, it's no problem, with those comment signs used here. */ instr 123 ; instr starts an instrument block and refers it to a number. In this case, it is 123. ; You can put comments everywhere, they will not become compiled. prints "Hello World!%n" ; 'prints' will print a string to the Csound console. aSin oscils 0dbfs/4, 440, 0 ; the opcode 'oscils' here generates a 440 Hz sinetone signal at -12dB FS out aSin ; here the signal is assigned to the computer audio output endin i 123 0 1 ; the instrument is called by its number (123) to be played e ; e - ends the score ; written by Alex Hofmann (Nov. 2009) - Incontri HMT-Hannover 1013 279 563 397 true 160 158 162 24 2 250 158 {1802f52a-87e1-4b4e-8d07-4995b2f04435} true 0 -3 Courier 8 0 0 0 255 255 255 25 166 249 164 {7f895e8a-7492-42e7-ac81-27023be7ff44} true 0 -3 left Lucida Grande 18 3 0 0 0 255 255 255 noborder 1 1