Skip to content

Predefined automation (in arrangement) gets overridden via ofxAbletonLive #3

@polyclick

Description

@polyclick

Ok, so when you have this Ableton Live Set which has some predefined automation going on in the arrangement view; the automation gets overridden (grays out) when the first automation change in the arrangement view got send over to LiveOSC into this addon.

I think the problem is related to ofxAbletonLiveParameter in which you detect parameter changes (from outside -> in) but then, when a change is detected; the value gets resent to Ableton via an OSC message.

void ofxAbletonLiveParameter::setValue(float value)
{
    parameter->set(value);
    ofxOscMessage msg;
    msg.setAddress(oscAddress);
    if (!skipTrack) {
        msg.addIntArg(track);
    }
    msg.addIntArg(device);
    msg.addIntArg(index);
    msg.addFloatArg(value);
    sender->sendMessage(msg);     // <----- trouble when ableton is sending over paramter change to this addon
}

void ofxAbletonLiveParameter::parameterChanged(float & value)
{
  setValue(parameter->get());
}

should be:

void ofxAbletonLiveParameter::parameterChanged(float & value)
{
  parameter->set(parameter->get());     // only setting the value, not resending it
}

I hope I'm correct, at least, my problem is solved by changing this line. :D

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions