openAVproductions / openAV-Luppp

Luppp is a live performance tool, created by OpenAV productions.
http://openavproductions.com/luppp
GNU General Public License v3.0
258 stars 45 forks source link

Midi Binding for Clear Clip #134

Closed georgkrause closed 6 years ago

georgkrause commented 7 years ago

I want to clear a clip with my midi controller.

sub26nico commented 7 years ago

+1

georgkrause commented 6 years ago

@harryhaaren this commit has a new issue: old midi binding maps wont work anymore. at least the grid launch events does not have any effect anymore.

I checked the version directly before this commit, there it is still working.

georgkrause commented 6 years ago

The problem is, that all midi binding maps created before miss that active field. when we release this, we need to provide a tool which can edit the midi maps to work again or find a way make this old maps still working with the new version.

also, the midi learn function need to create valid maps (not the case at the moment)

harryhaaren commented 6 years ago

@georgkrause thanks for the latest updated just above: yes good point, the "loading" code should probably error check, and if there's no active section, to ignore the clear-clip functionality. I'll add a tag to this issue to remind that this is a bug. Thanks!

georgkrause commented 6 years ago

The problem here is, that in src/controller/binding.hxx:31:

public:
    Binding() : status(0), data(0), action(0), active(-1),
        track(-2),scene(-1),send(-1)
    {
        ID = privateID++;
    }

The default for active is set to -1.

To fix this it seems to be as easy as setting the default to 1 if there is no reason against (i tested, works for me). Will file the PR tomorrow.

georgkrause commented 6 years ago

Well, this PR fixes the Bug for existing MIDI Maps, but there is still a problem in the bind process of luppp. i tried to bind a button of my apc mini to a clip, its working but the button always clears the clip. I will investigate.

georgkrause commented 6 years ago

Should be solved by 817dd63.