Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Sign In with Twitter
  • Modifying amounra Ohm control script for custom controller

    Hi all, I have build a custom controller with the brain2 and i m modifying amounra`s script.  I m no programmer.

    My system is: osx 10.9.2, Brain2, Live 9.1.2
    Until now i m able to communicate with the script, i have re size de "highlight clip trigger"  box AKA "redbox" to fit my controller (16x4), i can move it around. But i can't seem to understand how to assign the midi notes to the grid.  My controller has a matrix of 16x4 but i want a grid of 15x3 to have scene lunch and select track.
    Here is the button matrix part of the script: 

    session = SessionComponent(15, 3) = 'Session_Control'

    session.set_track_bank_buttons(right_button, left_button)

    session.set_scene_bank_buttons(down_button, up_button)

    matrix = ButtonMatrixElement() = 'Button_Matrix'

    scene_launch_notes = [31,47,63]

    scene_launch_buttons = [ ButtonElement(is_momentary, MIDI_NOTE_TYPE, 0, scene_launch_notes[index]) for index in range(3) ]

    #track_stop_buttons = [ ButtonElement(is_momentary, MIDI_NOTE_TYPE, index, 52) for index in range(8) ]

    for index in range(len(scene_launch_buttons)):

    scene_launch_buttons[index].name = 'Scene_'+ str(index) + '_Launch_Button'

    #for index in range(len(track_stop_buttons)):

    # track_stop_buttons[index].name = 'Track_' + str(index) + '_Stop_Button'

    #stop_all_button = ButtonElement(is_momentary, MIDI_NOTE_TYPE, 0, 81) = 'Stop_All_Clips_Button'




    #button_notes = [15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63]

    for scene_index in range(3):

    scene = session.scene(scene_index) = 'Scene_' + str(scene_index)

    button_row = []



    for track_index in range(8):

    button = ButtonElement(is_momentary, MIDI_NOTE_TYPE, CHANNEL, (track_index * 3) + scene_index) = str(track_index) + '_Clip_' + str(scene_index) + '_Button'

    Can someone point me in the right direction? Thanks in advance !