Skip to content

Instantly share code, notes, and snippets.

<CsoundSynthesizer>
<CsInstruments>
ksmps = 64
0dbfs = 1
instr 2
aDeclick linseg 0, .1, 1, 10, 1
; creates a unique channel with same
; name as game object
SChannel strcpy p5
kDistance chnget SChannel
<h1>Hello World!</h1>
<CsoundSynthesizer>
<CsOptions>
-+rtaudio=jack -odac
</CsOptions>
<CsInstruments>
; Initialize the global variables.
sr = 44100
ksmps = 32
nchnls = 2
0dbfs = 1
/* Example 7
This example loads a Csound instrument and alters its frequency using SetChannel()
Typical command line to build this:
g++ example7.cpp ../../csound/interfaces/csPerfThread.cpp -o test -I ../../csound/include/ -I ../../csound/interfaces -lcsound64 -lsndfile
RoryWalsh 2016
*/