Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
tree: 5d2d937f03
Fetching contributors…

Cannot retrieve contributors at this time

43 lines (35 sloc) 0.7 kb
<CsoundSynthesizer>
<CsInstruments>
sr = 44100
kr = 44100
ksmps = 1
nchnls = 1
0dbfs = 1.0
instr 1
idur = p3 ; Duration
iamp = p4 ; Amplitude
ifreq = p5 ; Frequency
kenv line iamp, idur, 0 ; Line envelope
a1 vco2 kenv, ifreq, 12, 0.5 ; Triangle wave
out a1
endin
</CsInstruments>
<CsScore bin="./pysco.py">
def phrase():
score('''
i 1 0 0.5 -7 9.02
i 1 + . . 8.07
i 1 + . . 8.09
i 1 + . . 8.11
i 1 + . . 9.00
i 1 + . . 8.09
i 1 + . . 8.11
i 1 + . . 8.07
''')
score('t 0 120')
with cue(0): phrase()
with cue(4): phrase()
pmap('i', 1, 4, dB)
pmap('i', 1, 5, cpspch)
</CsScore>
</CsoundSynthesizer>
Jump to Line
Something went wrong with that request. Please try again.