Search in sources :

Example 11 with ParameterList

use of blue.automation.ParameterList 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)

Aggregations

ParameterList (blue.automation.ParameterList)11 Automatable (blue.automation.Automatable)5 Parameter (blue.automation.Parameter)5 InstrumentAssignment (blue.InstrumentAssignment)2 Channel (blue.mixer.Channel)2 ChannelList (blue.mixer.ChannelList)2 EffectsChain (blue.mixer.EffectsChain)2 Instrument (blue.orchestra.Instrument)2 OpcodeList (blue.udo.OpcodeList)2 Element (electric.xml.Element)2 Elements (electric.xml.Elements)2 ArrayList (java.util.ArrayList)2 BSBGraphicInterface (blue.orchestra.blueSynthBuilder.BSBGraphicInterface)1 StringChannel (blue.orchestra.blueSynthBuilder.StringChannel)1 HashSet (java.util.HashSet)1 Test (org.junit.Test)1