Search in sources :

Example 6 with EffectsChain

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);
}
Also used : EffectsChain(blue.mixer.EffectsChain) ParameterList(blue.automation.ParameterList) Parameter(blue.automation.Parameter) Automatable(blue.automation.Automatable)

Example 7 with EffectsChain

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();
    }
}
Also used : EffectsChain(blue.mixer.EffectsChain) Automatable(blue.automation.Automatable)

Aggregations

EffectsChain (blue.mixer.EffectsChain)7 Automatable (blue.automation.Automatable)3 ParameterList (blue.automation.ParameterList)2 Parameter (blue.automation.Parameter)1 Effect (blue.mixer.Effect)1 Send (blue.mixer.Send)1 ArrayList (java.util.ArrayList)1 JMenu (javax.swing.JMenu)1 JMenuItem (javax.swing.JMenuItem)1