stuff
This commit is contained in:
@ -71,24 +71,15 @@ const LIVECODING_TEMPLATE: CsoundTemplate = {
|
||||
id: 'livecoding',
|
||||
name: 'Live Coding',
|
||||
mode: 'livecoding',
|
||||
content: `; LIVE CODING MODE
|
||||
; Engine auto-initializes on first evaluation (Ctrl+E)
|
||||
; Evaluate instruments/opcodes with Ctrl+E to define them
|
||||
; Evaluate score events (i-statements) to trigger sounds
|
||||
; Press Ctrl+. to stop all audio
|
||||
|
||||
gaReverb init 0
|
||||
content: `gaReverb init 0
|
||||
|
||||
instr 1
|
||||
kFreq chnget "freq"
|
||||
kFreq = (kFreq == 0 ? p4 : kFreq)
|
||||
kAmp = p5
|
||||
|
||||
kEnv linsegr 0, 0.01, 1, 0.1, 0.7, 0.2, 0
|
||||
aOsc vco2 kAmp * kEnv, kFreq
|
||||
|
||||
aFilt moogladder aOsc, 2000, 0.3
|
||||
|
||||
outs aFilt, aFilt
|
||||
gaReverb = gaReverb + aFilt * 0.3
|
||||
endin
|
||||
@ -96,12 +87,9 @@ endin
|
||||
instr 2
|
||||
iFreq = p4
|
||||
iAmp = p5
|
||||
|
||||
kEnv linsegr 0, 0.005, 1, 0.05, 0.5, 0.1, 0
|
||||
aOsc vco2 iAmp * kEnv, iFreq, 10
|
||||
|
||||
aFilt butterlp aOsc, 800
|
||||
|
||||
outs aFilt, aFilt
|
||||
endin
|
||||
|
||||
@ -115,10 +103,6 @@ endin
|
||||
i 99 0 -1
|
||||
|
||||
|
||||
; === LIVE CODING EXAMPLES ===
|
||||
; Select a block and press Ctrl+E to evaluate
|
||||
|
||||
; Basic note
|
||||
i 1 0 2 440 0.3
|
||||
|
||||
; Arpeggio
|
||||
@ -134,9 +118,8 @@ i 2 1.0 0.5 164.81 0.4
|
||||
i 2 1.5 0.5 130.81 0.4
|
||||
|
||||
; Long note for channel control
|
||||
i 1 0 30 440 0.3
|
||||
i 1 0 10 440 0.3
|
||||
|
||||
; Change frequency while playing (select and evaluate)
|
||||
freq = 440
|
||||
|
||||
freq = 554.37
|
||||
|
||||
Reference in New Issue
Block a user