Trying to do better but it's hard
This commit is contained in:
@ -71,19 +71,11 @@ const LIVECODING_TEMPLATE: CsoundTemplate = {
|
||||
id: 'livecoding',
|
||||
name: 'Live Coding',
|
||||
mode: 'livecoding',
|
||||
content: `<CsoundSynthesizer>
|
||||
<CsOptions>
|
||||
-odac
|
||||
</CsOptions>
|
||||
<CsInstruments>
|
||||
|
||||
sr = 48000
|
||||
ksmps = 32
|
||||
nchnls = 2
|
||||
0dbfs = 1
|
||||
|
||||
; Press Cmd/Ctrl+E on the full document first to initialize
|
||||
; Then evaluate individual blocks to trigger sounds
|
||||
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
|
||||
|
||||
@ -119,14 +111,12 @@ instr 99
|
||||
gaReverb = 0
|
||||
endin
|
||||
|
||||
</CsInstruments>
|
||||
<CsScore>
|
||||
; Start reverb (always on)
|
||||
i 99 0 -1
|
||||
</CsScore>
|
||||
</CsoundSynthesizer>
|
||||
|
||||
|
||||
; LIVE CODING EXAMPLES
|
||||
; === LIVE CODING EXAMPLES ===
|
||||
; Select a block and press Ctrl+E to evaluate
|
||||
|
||||
; Basic note
|
||||
i 1 0 2 440 0.3
|
||||
@ -146,7 +136,7 @@ i 2 1.5 0.5 130.81 0.4
|
||||
; Long note for channel control
|
||||
i 1 0 30 440 0.3
|
||||
|
||||
; Change frequency while playing
|
||||
; Change frequency while playing (select and evaluate)
|
||||
freq = 440
|
||||
|
||||
freq = 554.37
|
||||
|
||||
Reference in New Issue
Block a user