arximboldi / mixco

Mixco is a framework for creating hardware controller scripts for the amazing Mixxx DJ software
http://sinusoid.es/mixco
GNU General Public License v3.0
29 stars 6 forks source link

NanoKontrol2 Maxmizie Library with syncTempo #8

Open hibiarata opened 6 years ago

hibiarata commented 6 years ago

I want "maxmize library" as Nano Kontrol2. So I tried to add code and compile as below. But "maximize_library" (SET + REC(●) ) does not work properly.. How do I define this 2way functions?

  • The play and record buttons synchronize to the other track. The play button can be held to enable master synchronization for the deck.

        @sync.when @decks.activator(i), g, "sync_enabled"
        @syncTempo
          .when @decks.activator(i), g, "beatsync"
          .else.when(@marker, g, "maximize_library")
kellertobias commented 5 years ago

I assume that you get the error in mixx that this._transformed is undefined.

I solved it by adding a transformation in the transformation mapping for maximize_library

var t = mixco.transform
t.mappings["maximize_library"] = t.binaryT
arximboldi commented 5 years ago

Sorry for the late reply. Cool that you found the workaround! Wondering why does it work on Nano Kontrol 2. Or maybe it is broken there too...?