use of blue.mixer.ChannelList in project blue by kunstmusik.
the class BlueProjectPropertyChangeListener method attachListeners.
protected void attachListeners(BlueProject project) {
if (project == null) {
return;
}
Score score = project.getData().getScore();
Mixer mixer = project.getData().getMixer();
for (LayerGroup<? extends Layer> lg : score) {
if (lg instanceof AudioLayerGroup) {
AudioLayerGroup alg = (AudioLayerGroup) lg;
ChannelList channelList = findChannelListForAudioLayerGroup(mixer, alg);
lg.addLayerGroupListener(layerGroupListener);
AudioLayerGroupBinding binding = new AudioLayerGroupBinding(alg, channelList);
layerGroupBindings.put(alg, binding);
for (AudioLayer layer : alg) {
Channel channel = ChannelList.findChannelByAssociation(channelList, layer.getUniqueId());
if (channel != null) {
layerBindings.put(layer, new AudioLayerChannelBinding(layer, channel));
}
}
}
}
score.addListener(scoreListener);
}
Aggregations