use of blue.mixer.EffectsChain in project blue by kunstmusik.
the class ParameterHelper method appendAllParametersFromChannel.
private static void appendAllParametersFromChannel(ArrayList<Parameter> params, Channel channel) {
EffectsChain pre = channel.getPreEffects();
for (int i = 0; i < pre.size(); i++) {
ParameterList list = ((Automatable) pre.getElementAt(i)).getParameterList();
params.addAll(list);
}
EffectsChain post = channel.getPostEffects();
for (int i = 0; i < post.size(); i++) {
ParameterList list = ((Automatable) post.getElementAt(i)).getParameterList();
params.addAll(list);
}
Parameter levelParameter = channel.getLevelParameter();
// if(!levelParameter.isAutomationEnabled()) {
// levelParameter.setCompilationVarName(channel.getName());
// }
params.add(levelParameter);
}
use of blue.mixer.EffectsChain in project blue by kunstmusik.
the class ParameterHelper method clearChannelCompilationVar.
private static void clearChannelCompilationVar(Channel channel) {
channel.getLevelParameter().setCompilationVarName(null);
EffectsChain preEffectsChain = channel.getPreEffects();
for (int j = 0; j < preEffectsChain.size(); j++) {
Automatable automatable = (Automatable) preEffectsChain.getElementAt(j);
automatable.getParameterList().clearCompilationVarNames();
}
EffectsChain postEffectsChain = channel.getPostEffects();
for (int j = 0; j < postEffectsChain.size(); j++) {
Automatable automatable = (Automatable) postEffectsChain.getElementAt(j);
automatable.getParameterList().clearCompilationVarNames();
}
}
Aggregations