Create a gist now

Instantly share code, notes, and snippets.

What would you like to do?
Detuned Oscillators
Jacob Joaquin
October 7, 2010
jacobjoaquin@gmail.com
csoundblog.com
<CsoundSynthesizer>
<CsInstruments>
sr = 44100
kr = 4410
ksmps = 10
nchnls = 1
0dbfs = 1.0
instr 1
iamp = p4 ; Amplitude
ipch = cpspch(p5) ; Pitch
idetune = p6 ; Detune amount
a1 vco2 1, ipch * idetune, 0
a2 vco2 1, ipch * (1 / idetune), 0
out (a1 + a2) * iamp * 0.5
endin
</CsInstruments>
<CsScore>
i 1 0 3 0.707 8.07 1
i 1 + . . . 1.00025
i 1 + . . . 1.0005
i 1 + . . . 1.001
i 1 + . . . 1.002
i 1 + . . . 1.004
i 1 + . . . 1.008
i 1 + . . . 1.016
i 1 + . . . 1.032
</CsScore>
</CsoundSynthesizer>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment