forked from gessl/urMus
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathlivecoding_sound_final.lua
More file actions
executable file
·64 lines (49 loc) · 1.25 KB
/
Copy pathlivecoding_sound_final.lua
File metadata and controls
executable file
·64 lines (49 loc) · 1.25 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
pushFreq = FlowBox(FBPush)
pushNon = FlowBox(FBPush)
pushAsymp = FlowBox(FBPush)
pushTau = FlowBox(FBPush)
cmap = FlowBox(FBCMap)
rev = FlowBox(FBPRCRev)
gain = FlowBox(FBGain)
drain = FlowBox(FBDrain)
dac = FlowBox(FBDac)
asymp = FlowBox(FBAsymp)
pushFreq.Out:SetPush(cmap.Out)
pushNon.Out:SetPush(cmap.NonL)
drain.In:SetPull(asymp.Out)
drain.Out:SetPush(gain.Amp)
pushAsymp.Out:SetPush(asymp.In)
pushTau.Out:SetPush(asymp.Tau)
pushTau:Push(0)
gain.In:SetPull(cmap.Out)
dac.In:SetPull(drain.Time)
dac.In:SetPull(gain.Out)
gain.In:RemovePull(cmap.Out)
rev.In:SetPull(cmap.Out)
gain.In:SetPull(rev.Out)
pushLooperGain = FlowBox(FBPush)
looperGain = FlowBox(FBGain)
loopDrain = FlowBox(FBDrain)
loopDrain.In:SetPull(gain.Out)
dac.In:SetPull(loopDrain.Time)
looper = FlowBox(FBLooper)
dac.In:SetPull(looperGain.Out)
looperGain.In:SetPull(looper.Out)
loopDrain.Out:SetPush(looper.In)
pushLooperGain.Out:SetPush(looperGain.Amp)
looperRecord = FlowBox(FBPush)
looperPlay = FlowBox(FBPush)
looperRecord.Out:SetPush(looper.Record)
looperPlay.Out:SetPush(looper.Play)
function record()
looperRecord:Push(1)
end
function endplay()
looperPlay:Push(0)
end
--[[
looperRecord:Push(1)
looperRecord:Push(0)
looperPlay:Push(1)
looperPlay:Push(0)
pushLooperGain:Push(0.4)--]]