Launchpad mini / novation as midi controller in Millumin

Hi, I'm using my launchpad mini as my midi controller for a video setup in Millumin. It's working fine for triggering each column and board. But I would like to also be able to trigger a video by pressing a key and for the video to remain as long as I am holding the button down and then stop when I release. I also want to set a fade in and fade out to this action. These seem to be two different setup but seem compatible. Could anyone explain ? (The launchpad does not have toggles or sliders, just buttons, hence wanting to be able to hold down to keep the video on / release to stop)

Thanks !

Comments

  • Hello @Bonnie31,

    This is possible to have such a behavior with an interaction only.

    First of all, to get a fade in/out when starting/stopping a single media, use a media transition (see this article).

    Then, I think the best way is to program a short JavaScript to do so. Here is an example where you can enter the name of the layer, the index of the column (for the media you want to start) and the keybord key (but this could be a MIDI signal) :

    Parameter.createParameter("layer name", "Layer")
    Parameter.createParameter("column index", 1, true, [1,100])
    Parameter.createParameter("interaction key", "A")
    
    function toggleMedia(value, layerName, columnIndex)
    {
        if( value == 0 )
        {
            Millumin.stopLayerMedia(layerName)
        }
        else
        {
            Millumin.startLayerMedia(layerName, columnIndex)
        }
    }
    
    var lastValue = 0
    onKeyboardEvent = function(event)
    {
        var interactionKey = Parameter.get("interaction key").toLowerCase()
        if( event["key"] == interactionKey && event["modifier"] == "" )
        {
            var value = event["values"][0]
            if( value != lastValue )
            {
                lastValue = value
                var layerName = Parameter.get("layer name")
                var columnIndex = Parameter.get("column index")
                toggleMedia(value, layerName, columnIndex)
            }
        }
    }
    
    
    
    
    


    More info about script in this article.

    Best. Philippe

Sign In or Register to comment.