preset/preset_caw.cfg : Added example_03.
This commit is contained in:
parent
4befffc47d
commit
f134c09639
@ -94,7 +94,8 @@
|
||||
{
|
||||
aa:{ osc:{ gain:0.3 }, lfo:lfo1 },
|
||||
bb:{ osc:{ gain:0.4 }, lfo:lfo2 },
|
||||
cc:{ osc2:{ gain:0.1 }, osc0_2: { gain:0.2 }, lfo:lfo3 },
|
||||
cc:{ osc2:{ gain:0.1 }, osc0_2: { gain:0.2 }, lfo:lfo3 },
|
||||
dd:{ osc0_2: { gain:0.5 } }
|
||||
}
|
||||
}
|
||||
}
|
||||
@ -109,10 +110,87 @@
|
||||
presets: {
|
||||
a:{ osc_poly:aa, merge:{ out_gain:0.3 } },
|
||||
b:{ osc_poly:bb, merge:{ out_gain:0.2 } },
|
||||
c:{ osc_poly:cc, merge:{ out_gain:0.1 } },
|
||||
c:{ osc_poly:cc, merge:{ out_gain:0.1 } },
|
||||
d:{ osc_poly:dd }
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
example_03:
|
||||
{
|
||||
network: {
|
||||
|
||||
procs: {
|
||||
|
||||
osc_poly: {
|
||||
class: poly,
|
||||
|
||||
// For het-poly networks the 'count' value given
|
||||
// in the top level proc is the default value for
|
||||
// the poly-count for following networks.
|
||||
// This value may be overriden in the network
|
||||
// definition itself - as it is in this example.
|
||||
args: { count:2, parallel_fl:true },
|
||||
|
||||
network: {
|
||||
net_a: {
|
||||
count: 4, // override higher level 'count'
|
||||
|
||||
procs: {
|
||||
osc: { class: sine_tone, args:{ hz: 100 }},
|
||||
},
|
||||
|
||||
presets:
|
||||
{
|
||||
a: { osc:{ hz:110 } },
|
||||
b: { osc:{ hz:120 } },
|
||||
}
|
||||
},
|
||||
|
||||
net_b: {
|
||||
count 3, // override higher level 'count'
|
||||
procs: {
|
||||
osc: { class: sine_tone, args:{ hz: 200 }},
|
||||
},
|
||||
|
||||
presets:
|
||||
{
|
||||
a: { osc:{hz:220} },
|
||||
b: { osc:{hz:230} }
|
||||
}
|
||||
}
|
||||
},
|
||||
|
||||
presets: {
|
||||
aa: { net_a:a, net_b:a },
|
||||
bb: { net_a:b, net_b:b },
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
// Iterate over the instances of `osc_poly.osc_.out` to create one `audio_merge`
|
||||
// input for every output from the polyphonic network.
|
||||
merge: { class: audio_merge, in:{ in_:osc_poly.osc_.out}, args:{ gain:1, out_gain:0.5 }
|
||||
presets: {
|
||||
a:{ gain:0.3 }
|
||||
b:{ gain:0.2 }
|
||||
}
|
||||
},
|
||||
aout: { class: audio_out, in:{ in:merge.out } args:{ dev_label:"main"} }
|
||||
|
||||
}
|
||||
|
||||
presets: {
|
||||
a:{ osc_poly1:aa, merge:a },
|
||||
b:{ osc_poly0_2:bb, merge:b },
|
||||
c:{ osc_poly:bb, merge:{ out_gain:0.1 } },
|
||||
d:{ osc_poly0:bb, merge:{ out_gain:0.05} }
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user