/* 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
1013279563397true160158162242250158{1802f52a-87e1-4b4e-8d07-4995b2f04435}true0-3
Courier
800025525525525166249164{7f895e8a-7492-42e7-ac81-27023be7ff44}true0-3left
Lucida Grande
183000255255255noborder11