1
0

feat: add fx method for tracks

This commit is contained in:
2025-06-14 09:01:41 +02:00
parent 13e794f44b
commit fddbf09d99
3 changed files with 19 additions and 3 deletions

View File

@ -3,7 +3,7 @@ Track : Fadable {
/*
TODO: don't instanciate if name already exist ?
*/
var out, <group, <groupFX, <groupSynth, <track, busTrack, busFX, level;
var out, <group, <groupFX, <groupSynth, <track, trackFX, busTrack, busFX, level;
*new {
|out|
@ -38,8 +38,9 @@ Track : Fadable {
group = Group.new(Server.default);
groupSynth = Group.head(group);
groupFX = Group.after(groupSynth);
trackFX = Dictionary();
track = Synth(
\fader,
\fader,
[
in: busTrack.index,
fxIn: busFX.index,
@ -58,6 +59,13 @@ Track : Fadable {
^busFX.index;
}
appendFX {
|fxName, params=#[]|
var fx;
fx = Synth.new(fxName, params ++ [in: this.in, out: this.inFX], this.groupFX);
trackFX.put(fxName, fx);
}
// printOn {
// |stream|
// }