This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* 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 | |
*/ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<CsoundSynthesizer> | |
<CsOptions> | |
-+rtaudio=jack -odac | |
</CsOptions> | |
<CsInstruments> | |
; Initialize the global variables. | |
sr = 44100 | |
ksmps = 32 | |
nchnls = 2 | |
0dbfs = 1 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<h1>Hello World!</h1> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<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 |