What is public void controlEvent(ControlEvent e)??????
in
Contributed Library Questions
•
1 year ago
My sister is trying to make a DJ mixer in Processing with ControlP5 and then control some images she has from clubs in Europe.
I think the below is part of the audio programming for the mixer part.
I'm not familiar with what this code means. Is this some type of send/receive loop so the program knows if a mixer channel has had actitvity. Any psedeudo code / comments to each code line would help.
public void controlEvent(ControlEvent e)
{
if ( e.controller().label() == "Mixer1" )
{
mixerCH1[ e.controller().id() ] = e.controller().value() == 0.0 ? false : true;
}
}
{
if ( e.controller().label() == "Mixer1" )
{
mixerCH1[ e.controller().id() ] = e.controller().value() == 0.0 ? false : true;
}
}
Merci from Montreal
1