Drum Mapping In Kontakt 5

Discussion in 'Kontakt' started by lyric8, Dec 18, 2012.

  1. lyric8

    lyric8 Producer

    Joined:
    Sep 12, 2011
    Messages:
    1,124
    Likes Received:
    76
    Dose Some One Know How To Do Drum Mapping In Kontakt 5 i'm trying to find a Tutorial or a Template so i can put a drum kit Kick Clap Snare Hi-Hat etcetera so that they are routed to separate out puts so i can control the volume levels and pan of each sample separately thanks for your time :wink:
     
  2.  
  3. suefreeman

    suefreeman Producer

    Joined:
    Mar 8, 2012
    Messages:
    301
    Likes Received:
    78
    Location:
    Montreal
    That's for the volumes only.
    Here's the script for the first 3 groups
    (copy-paste-apply)
    3 buttons appear for your groups


    got it from here "http://www.native-instruments.com/forum/showthread.php?t=163176"
    and i modified it.

    I am the one saying thank you :
    thanks for asking - cause i need that myself but never got to learn it.

    Code:
    on init
    make_perfview
    declare ui_knob $Volume (0,1000000,1)
    
    set_knob_unit($Volume,$KNOB_UNIT_DB)
    set_knob_label($Volume,get_engine_par_disp($ENGINE_PAR_VOLUME,0,-1,-1))
    $Volume := get_engine_par($ENGINE_PAR_VOLUME,0,-1,-1)
    make_persistent($Volume)
    message("")
    
    declare ui_knob $Volume2 (0,1000000,1)
    
    set_knob_unit($Volume2,$KNOB_UNIT_DB)
    set_knob_label($Volume2,get_engine_par_disp($ENGINE_PAR_VOLUME,1,-1,-1))
    $Volume2 := get_engine_par($ENGINE_PAR_VOLUME,1,-1,-1)
    make_persistent($Volume2)
    message("")
    
    declare ui_knob $Volume3 (0,1000000,1)
    
    set_knob_unit($Volume3,$KNOB_UNIT_DB)
    set_knob_label($Volume3,get_engine_par_disp($ENGINE_PAR_VOLUME,2,-1,-1))
    $Volume3 := get_engine_par($ENGINE_PAR_VOLUME,2,-1,-1)
    make_persistent($Volume3)
    message("")
    
    
    end on
    
    on ui_control ($Volume)
    set_engine_par($ENGINE_PAR_VOLUME,$Volume,0,-1,-1)
    set_knob_label($Volume,get_engine_par_disp($ENGINE_PAR_VOLUME,0,-1,-1))
    end on
    on ui_control ($Volume2)
    set_engine_par($ENGINE_PAR_VOLUME,$Volume2,1,-1,-1)
    set_knob_label($Volume2,get_engine_par_disp($ENGINE_PAR_VOLUME,1,-1,-1))
    end on
    on ui_control ($Volume3)
    set_engine_par($ENGINE_PAR_VOLUME,$Volume3,2,-1,-1)
    set_knob_label($Volume3,get_engine_par_disp($ENGINE_PAR_VOLUME,2,-1,-1))
    end on
    
    
     
  4. suefreeman

    suefreeman Producer

    Joined:
    Mar 8, 2012
    Messages:
    301
    Likes Received:
    78
    Location:
    Montreal
    Here's even better ... exactly what you wanted ... and customizable ...


    very big script --- but worth it --

    Code:
    
    {
    Copyright (C) 2011 Soundfrost Music. All rights reserved.
    http://soundfrostmusic.com/
    
    Redistribution and use in source and binary forms, with or without
    modification, are permitted provided that the following conditions
    are met:
    
    1. Redistributions of source code must retain the above copyright
    notice, this list of conditions and the following disclaimer.
    2. Redistributions in binary form must reproduce the above copyright
    notice, this list of conditions and the following disclaimer in
    the documentation and/or other materials provided with the
    distribution.
    
    THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS''
    AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO,
    THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
    PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS
    BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
    CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
    SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR
    BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
    WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE
    OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN
    IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
    }
    on init
    set_ui_height_px(244)
    make_perfview
    
    declare ui_label $ver(1, 1)
    hide_part($ver, $HIDE_PART_BG)
    set_control_par(get_ui_id($ver), $CONTROL_PAR_WIDTH, 70)
    set_control_par(get_ui_id($ver), $CONTROL_PAR_FONT_TYPE, 16)
    set_text($ver, "ver1.0")
    move_control_px($ver, 148, 8)
    declare ui_label $credit(1, 1)
    hide_part($credit, $HIDE_PART_BG)
    set_control_par(get_ui_id($credit), $CONTROL_PAR_WIDTH, 100)
    set_control_par(get_ui_id($credit), $CONTROL_PAR_FONT_TYPE, 2)
    set_text($credit, "soundfrostmusic.com")
    move_control_px($credit, 520, 224)
    
    set_script_title("GroupMixer12")
    declare ui_label $logo(1, 1)
    hide_part($logo, $HIDE_PART_BG)
    set_control_par(get_ui_id($logo), $CONTROL_PAR_WIDTH, 100)
    set_control_par(get_ui_id($logo), $CONTROL_PAR_FONT_TYPE, 16)
    set_text($logo, "GroupMixer12")
    move_control_px($logo, 60, 8)
    declare ui_label $p1(1, 1)
    hide_part($p1, $HIDE_PART_BG)
    set_control_par(get_ui_id($p1), $CONTROL_PAR_WIDTH, 40)
    set_control_par(get_ui_id($p1), $CONTROL_PAR_FONT_TYPE, 11)
    set_text($p1, "Tr")
    move_control_px($p1, 0, 31)
    declare ui_label $p2(1, 1)
    hide_part($p2, $HIDE_PART_BG)
    set_control_par(get_ui_id($p2), $CONTROL_PAR_WIDTH, 40)
    set_control_par(get_ui_id($p2), $CONTROL_PAR_FONT_TYPE, 11)
    set_text($p2, "Pan")
    move_control_px($p2, 0, 70)
    declare ui_label $p3(1, 1)
    hide_part($p3, $HIDE_PART_BG)
    set_control_par(get_ui_id($p3), $CONTROL_PAR_WIDTH, 40)
    set_control_par(get_ui_id($p3), $CONTROL_PAR_FONT_TYPE, 11)
    set_text($p3, "Vol")
    move_control_px($p3, 0, 150)
    declare ui_label $p4(1, 1)
    hide_part($p4, $HIDE_PART_BG)
    set_control_par(get_ui_id($p4), $CONTROL_PAR_WIDTH, 40)
    set_control_par(get_ui_id($p4), $CONTROL_PAR_FONT_TYPE, 11)
    set_text($p4, "Out")
    move_control_px($p4, 0, 180)
    declare ui_label $p5(1, 1)
    hide_part($p5, $HIDE_PART_BG)
    set_control_par(get_ui_id($p5), $CONTROL_PAR_WIDTH, 40)
    set_control_par(get_ui_id($p5), $CONTROL_PAR_FONT_TYPE, 11)
    set_text($p5, "Grp")
    move_control_px($p5, 0, 204)
    declare $menu_wid := 50
    declare $menu_sx  := 6
    declare $x := 30
    declare $sx := 50
    
    declare $y
    declare $n
    declare $solo := -1
    
    declare %groups[18] := (1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1)
    
    $y := 60
    declare ui_label $no00 (1, 1)
    hide_part($no00, $HIDE_PART_BG)
    set_control_par(get_ui_id($no00), $CONTROL_PAR_WIDTH, 30)
    set_control_par(get_ui_id($no00), $CONTROL_PAR_FONT_TYPE, 2)
    set_control_par(get_ui_id($no00), $CONTROL_PAR_TEXT_ALIGNMENT, 1)
    set_text($no00, 00 + 1)
    move_control_px($no00, $x + $sx * 00 + 2, $y - 30)
    
    declare ui_knob $pan00 (0, 1000000, 1)
    set_knob_defval($pan00, 500000)
    $pan00 := 500000
    hide_part($pan00,	 $HIDE_PART_BG .or. $HIDE_PART_VALUE ...
    .or. $HIDE_PART_TITLE .or. $HIDE_PART_MOD_LIGHT)
    move_control_px($pan00, $x + $sx * 00, $y)
    make_persistent($pan00)
    _read_persistent_var($pan00)
    declare ui_label $pan00_dsp (1, 1)
    set_control_par(get_ui_id($pan00_dsp), $CONTROL_PAR_WIDTH, 30)
    set_control_par(get_ui_id($pan00_dsp), $CONTROL_PAR_FONT_TYPE, 0)
    set_control_par(get_ui_id($pan00_dsp), $CONTROL_PAR_TEXT_ALIGNMENT, 2)
    set_text($pan00_dsp, $pan00 / 10000 - 50)
    move_control_px($pan00_dsp, $x + $sx * 00 + 2, $y - 12)
    
    $y := 100
    declare ui_button $mt00
    set_control_par(get_ui_id($mt00), $CONTROL_PAR_WIDTH, 17)
    set_text($mt00, "M")
    move_control_px($mt00, $x + $sx * 00, $y)
    make_persistent($mt00)
    _read_persistent_var($mt00)
    if ($mt00 = 1)
    %groups[00] := 0
    end if
    
    declare ui_button $sl00
    set_control_par(get_ui_id($sl00), $CONTROL_PAR_WIDTH, 17)
    set_text($sl00, "S")
    move_control_px($sl00, $x + $sx * 00 + 17, $y)
    make_persistent($sl00)
    _read_persistent_var($sl00)
    if ($sl00 = 1)
    $solo := 00
    end if
    
    $y := 204
    declare ui_menu $gr00
    set_control_par(get_ui_id($gr00), $CONTROL_PAR_WIDTH, $menu_wid)
    move_control_px($gr00, $x + $sx * 00 - $menu_sx, $y)
    add_menu_item ($gr00, "--", -1)
    $n := 0
    while ($n < $NUM_GROUPS)
    add_menu_item ($gr00, group_name($n), $n)
    inc($n)
    end while
    if (00 < $NUM_GROUPS)
    $gr00 := 00
    end if
    make_persistent($gr00)
    _read_persistent_var($gr00)
    
    $y := 180
    declare ui_menu $out00
    set_control_par(get_ui_id($out00), $CONTROL_PAR_WIDTH, $menu_wid)
    move_control_px($out00, $x + $sx * 00 - $menu_sx, $y)
    $n := 0
    while ($n < $NUM_OUTPUT_CHANNELS)
    add_menu_item($out00, output_channel_name($n), $n)
    inc($n)
    end while
    add_menu_item($out00, "default", -1)
    make_persistent($out00)
    _read_persistent_var($out00)
    if ($out00 >= $NUM_OUTPUT_CHANNELS)
    $out00 := 0
    set_engine_par($ENGINE_PAR_OUTPUT_CHANNEL, 0, $gr00, -1, -1)
    end if
    
    $y := 140
    declare ui_knob $lvl00 (0, 1000000, 1)
    set_knob_defval($lvl00, 629000)
    if ($gr00 = -1)
    $lvl00 := 0
    else
    $lvl00 := 629000
    end if
    hide_part($lvl00,	 $HIDE_PART_BG .or. $HIDE_PART_VALUE ...
    .or. $HIDE_PART_TITLE .or. $HIDE_PART_MOD_LIGHT)
    move_control_px($lvl00, $x + $sx * 00, $y)
    make_persistent($lvl00)
    _read_persistent_var($lvl00)
    declare ui_label $lvl00_dsp (1, 1)
    set_control_par(get_ui_id($lvl00_dsp), $CONTROL_PAR_WIDTH, 30)
    set_control_par(get_ui_id($lvl00_dsp), $CONTROL_PAR_FONT_TYPE, 0)
    set_control_par(get_ui_id($lvl00_dsp), $CONTROL_PAR_TEXT_ALIGNMENT, 2)
    set_text($lvl00_dsp, $lvl00 / 10000 - 0)
    move_control_px($lvl00_dsp, $x + $sx * 00 + 2, $y - 12)
    
    $y := 60
    declare ui_label $no01 (1, 1)
    hide_part($no01, $HIDE_PART_BG)
    set_control_par(get_ui_id($no01), $CONTROL_PAR_WIDTH, 30)
    set_control_par(get_ui_id($no01), $CONTROL_PAR_FONT_TYPE, 2)
    set_control_par(get_ui_id($no01), $CONTROL_PAR_TEXT_ALIGNMENT, 1)
    set_text($no01, 01 + 1)
    move_control_px($no01, $x + $sx * 01 + 2, $y - 30)
    
    declare ui_knob $pan01 (0, 1000000, 1)
    set_knob_defval($pan01, 500000)
    $pan01 := 500000
    hide_part($pan01,	 $HIDE_PART_BG .or. $HIDE_PART_VALUE ...
    .or. $HIDE_PART_TITLE .or. $HIDE_PART_MOD_LIGHT)
    move_control_px($pan01, $x + $sx * 01, $y)
    make_persistent($pan01)
    _read_persistent_var($pan01)
    declare ui_label $pan01_dsp (1, 1)
    set_control_par(get_ui_id($pan01_dsp), $CONTROL_PAR_WIDTH, 30)
    set_control_par(get_ui_id($pan01_dsp), $CONTROL_PAR_FONT_TYPE, 0)
    set_control_par(get_ui_id($pan01_dsp), $CONTROL_PAR_TEXT_ALIGNMENT, 2)
    set_text($pan01_dsp, $pan01 / 10000 - 50)
    move_control_px($pan01_dsp, $x + $sx * 01 + 2, $y - 12)
    
    $y := 100
    declare ui_button $mt01
    set_control_par(get_ui_id($mt01), $CONTROL_PAR_WIDTH, 17)
    set_text($mt01, "M")
    move_control_px($mt01, $x + $sx * 01, $y)
    make_persistent($mt01)
    _read_persistent_var($mt01)
    if ($mt01 = 1)
    %groups[01] := 0
    end if
    
    declare ui_button $sl01
    set_control_par(get_ui_id($sl01), $CONTROL_PAR_WIDTH, 17)
    set_text($sl01, "S")
    move_control_px($sl01, $x + $sx * 01 + 17, $y)
    make_persistent($sl01)
    _read_persistent_var($sl01)
    if ($sl01 = 1)
    $solo := 01
    end if
    
    $y := 204
    declare ui_menu $gr01
    set_control_par(get_ui_id($gr01), $CONTROL_PAR_WIDTH, $menu_wid)
    move_control_px($gr01, $x + $sx * 01 - $menu_sx, $y)
    add_menu_item ($gr01, "--", -1)
    $n := 0
    while ($n < $NUM_GROUPS)
    add_menu_item ($gr01, group_name($n), $n)
    inc($n)
    end while
    if (01 < $NUM_GROUPS)
    $gr01 := 01
    end if
    make_persistent($gr01)
    _read_persistent_var($gr01)
    
    $y := 180
    declare ui_menu $out01
    set_control_par(get_ui_id($out01), $CONTROL_PAR_WIDTH, $menu_wid)
    move_control_px($out01, $x + $sx * 01 - $menu_sx, $y)
    $n := 0
    while ($n < $NUM_OUTPUT_CHANNELS)
    add_menu_item($out01, output_channel_name($n), $n)
    inc($n)
    end while
    add_menu_item($out01, "default", -1)
    make_persistent($out01)
    _read_persistent_var($out01)
    if ($out01 >= $NUM_OUTPUT_CHANNELS)
    $out01 := 0
    set_engine_par($ENGINE_PAR_OUTPUT_CHANNEL, 0, $gr01, -1, -1)
    end if
    
    $y := 140
    declare ui_knob $lvl01 (0, 1000000, 1)
    set_knob_defval($lvl01, 629000)
    if ($gr01 = -1)
    $lvl01 := 0
    else
    $lvl01 := 629000
    end if
    hide_part($lvl01,	 $HIDE_PART_BG .or. $HIDE_PART_VALUE ...
    .or. $HIDE_PART_TITLE .or. $HIDE_PART_MOD_LIGHT)
    move_control_px($lvl01, $x + $sx * 01, $y)
    make_persistent($lvl01)
    _read_persistent_var($lvl01)
    declare ui_label $lvl01_dsp (1, 1)
    set_control_par(get_ui_id($lvl01_dsp), $CONTROL_PAR_WIDTH, 30)
    set_control_par(get_ui_id($lvl01_dsp), $CONTROL_PAR_FONT_TYPE, 0)
    set_control_par(get_ui_id($lvl01_dsp), $CONTROL_PAR_TEXT_ALIGNMENT, 2)
    set_text($lvl01_dsp, $lvl01 / 10000 - 0)
    move_control_px($lvl01_dsp, $x + $sx * 01 + 2, $y - 12)
    
    $y := 60
    declare ui_label $no02 (1, 1)
    hide_part($no02, $HIDE_PART_BG)
    set_control_par(get_ui_id($no02), $CONTROL_PAR_WIDTH, 30)
    set_control_par(get_ui_id($no02), $CONTROL_PAR_FONT_TYPE, 2)
    set_control_par(get_ui_id($no02), $CONTROL_PAR_TEXT_ALIGNMENT, 1)
    set_text($no02, 02 + 1)
    move_control_px($no02, $x + $sx * 02 + 2, $y - 30)
    
    declare ui_knob $pan02 (0, 1000000, 1)
    set_knob_defval($pan02, 500000)
    $pan02 := 500000
    hide_part($pan02,	 $HIDE_PART_BG .or. $HIDE_PART_VALUE ...
    .or. $HIDE_PART_TITLE .or. $HIDE_PART_MOD_LIGHT)
    move_control_px($pan02, $x + $sx * 02, $y)
    make_persistent($pan02)
    _read_persistent_var($pan02)
    declare ui_label $pan02_dsp (1, 1)
    set_control_par(get_ui_id($pan02_dsp), $CONTROL_PAR_WIDTH, 30)
    set_control_par(get_ui_id($pan02_dsp), $CONTROL_PAR_FONT_TYPE, 0)
    set_control_par(get_ui_id($pan02_dsp), $CONTROL_PAR_TEXT_ALIGNMENT, 2)
    set_text($pan02_dsp, $pan02 / 10000 - 50)
    move_control_px($pan02_dsp, $x + $sx * 02 + 2, $y - 12)
    
    $y := 100
    declare ui_button $mt02
    set_control_par(get_ui_id($mt02), $CONTROL_PAR_WIDTH, 17)
    set_text($mt02, "M")
    move_control_px($mt02, $x + $sx * 02, $y)
    make_persistent($mt02)
    _read_persistent_var($mt02)
    if ($mt02 = 1)
    %groups[02] := 0
    end if
    
    declare ui_button $sl02
    set_control_par(get_ui_id($sl02), $CONTROL_PAR_WIDTH, 17)
    set_text($sl02, "S")
    move_control_px($sl02, $x + $sx * 02 + 17, $y)
    make_persistent($sl02)
    _read_persistent_var($sl02)
    if ($sl02 = 1)
    $solo := 02
    end if
    
    $y := 204
    declare ui_menu $gr02
    set_control_par(get_ui_id($gr02), $CONTROL_PAR_WIDTH, $menu_wid)
    move_control_px($gr02, $x + $sx * 02 - $menu_sx, $y)
    add_menu_item ($gr02, "--", -1)
    $n := 0
    while ($n < $NUM_GROUPS)
    add_menu_item ($gr02, group_name($n), $n)
    inc($n)
    end while
    if (02 < $NUM_GROUPS)
    $gr02 := 02
    end if
    make_persistent($gr02)
    _read_persistent_var($gr02)
    
    $y := 180
    declare ui_menu $out02
    set_control_par(get_ui_id($out02), $CONTROL_PAR_WIDTH, $menu_wid)
    move_control_px($out02, $x + $sx * 02 - $menu_sx, $y)
    $n := 0
    while ($n < $NUM_OUTPUT_CHANNELS)
    add_menu_item($out02, output_channel_name($n), $n)
    inc($n)
    end while
    add_menu_item($out02, "default", -1)
    make_persistent($out02)
    _read_persistent_var($out02)
    if ($out02 >= $NUM_OUTPUT_CHANNELS)
    $out02 := 0
    set_engine_par($ENGINE_PAR_OUTPUT_CHANNEL, 0, $gr02, -1, -1)
    end if
    
    $y := 140
    declare ui_knob $lvl02 (0, 1000000, 1)
    set_knob_defval($lvl02, 629000)
    if ($gr02 = -1)
    $lvl02 := 0
    else
    $lvl02 := 629000
    end if
    hide_part($lvl02,	 $HIDE_PART_BG .or. $HIDE_PART_VALUE ...
    .or. $HIDE_PART_TITLE .or. $HIDE_PART_MOD_LIGHT)
    move_control_px($lvl02, $x + $sx * 02, $y)
    make_persistent($lvl02)
    _read_persistent_var($lvl02)
    declare ui_label $lvl02_dsp (1, 1)
    set_control_par(get_ui_id($lvl02_dsp), $CONTROL_PAR_WIDTH, 30)
    set_control_par(get_ui_id($lvl02_dsp), $CONTROL_PAR_FONT_TYPE, 0)
    set_control_par(get_ui_id($lvl02_dsp), $CONTROL_PAR_TEXT_ALIGNMENT, 2)
    set_text($lvl02_dsp, $lvl02 / 10000 - 0)
    move_control_px($lvl02_dsp, $x + $sx * 02 + 2, $y - 12)
    
    $y := 60
    declare ui_label $no03 (1, 1)
    hide_part($no03, $HIDE_PART_BG)
    set_control_par(get_ui_id($no03), $CONTROL_PAR_WIDTH, 30)
    set_control_par(get_ui_id($no03), $CONTROL_PAR_FONT_TYPE, 2)
    set_control_par(get_ui_id($no03), $CONTROL_PAR_TEXT_ALIGNMENT, 1)
    set_text($no03, 03 + 1)
    move_control_px($no03, $x + $sx * 03 + 2, $y - 30)
    
    declare ui_knob $pan03 (0, 1000000, 1)
    set_knob_defval($pan03, 500000)
    $pan03 := 500000
    hide_part($pan03,	 $HIDE_PART_BG .or. $HIDE_PART_VALUE ...
    .or. $HIDE_PART_TITLE .or. $HIDE_PART_MOD_LIGHT)
    move_control_px($pan03, $x + $sx * 03, $y)
    make_persistent($pan03)
    _read_persistent_var($pan03)
    declare ui_label $pan03_dsp (1, 1)
    set_control_par(get_ui_id($pan03_dsp), $CONTROL_PAR_WIDTH, 30)
    set_control_par(get_ui_id($pan03_dsp), $CONTROL_PAR_FONT_TYPE, 0)
    set_control_par(get_ui_id($pan03_dsp), $CONTROL_PAR_TEXT_ALIGNMENT, 2)
    set_text($pan03_dsp, $pan03 / 10000 - 50)
    move_control_px($pan03_dsp, $x + $sx * 03 + 2, $y - 12)
    
    $y := 100
    declare ui_button $mt03
    set_control_par(get_ui_id($mt03), $CONTROL_PAR_WIDTH, 17)
    set_text($mt03, "M")
    move_control_px($mt03, $x + $sx * 03, $y)
    make_persistent($mt03)
    _read_persistent_var($mt03)
    if ($mt03 = 1)
    %groups[03] := 0
    end if
    
    declare ui_button $sl03
    set_control_par(get_ui_id($sl03), $CONTROL_PAR_WIDTH, 17)
    set_text($sl03, "S")
    move_control_px($sl03, $x + $sx * 03 + 17, $y)
    make_persistent($sl03)
    _read_persistent_var($sl03)
    if ($sl03 = 1)
    $solo := 03
    end if
    
    $y := 204
    declare ui_menu $gr03
    set_control_par(get_ui_id($gr03), $CONTROL_PAR_WIDTH, $menu_wid)
    move_control_px($gr03, $x + $sx * 03 - $menu_sx, $y)
    add_menu_item ($gr03, "--", -1)
    $n := 0
    while ($n < $NUM_GROUPS)
    add_menu_item ($gr03, group_name($n), $n)
    inc($n)
    end while
    if (03 < $NUM_GROUPS)
    $gr03 := 03
    end if
    make_persistent($gr03)
    _read_persistent_var($gr03)
    
    $y := 180
    declare ui_menu $out03
    set_control_par(get_ui_id($out03), $CONTROL_PAR_WIDTH, $menu_wid)
    move_control_px($out03, $x + $sx * 03 - $menu_sx, $y)
    $n := 0
    while ($n < $NUM_OUTPUT_CHANNELS)
    add_menu_item($out03, output_channel_name($n), $n)
    inc($n)
    end while
    add_menu_item($out03, "default", -1)
    make_persistent($out03)
    _read_persistent_var($out03)
    if ($out03 >= $NUM_OUTPUT_CHANNELS)
    $out03 := 0
    set_engine_par($ENGINE_PAR_OUTPUT_CHANNEL, 0, $gr03, -1, -1)
    end if
    
    $y := 140
    declare ui_knob $lvl03 (0, 1000000, 1)
    set_knob_defval($lvl03, 629000)
    if ($gr03 = -1)
    $lvl03 := 0
    else
    $lvl03 := 629000
    end if
    hide_part($lvl03,	 $HIDE_PART_BG .or. $HIDE_PART_VALUE ...
    .or. $HIDE_PART_TITLE .or. $HIDE_PART_MOD_LIGHT)
    move_control_px($lvl03, $x + $sx * 03, $y)
    make_persistent($lvl03)
    _read_persistent_var($lvl03)
    declare ui_label $lvl03_dsp (1, 1)
    set_control_par(get_ui_id($lvl03_dsp), $CONTROL_PAR_WIDTH, 30)
    set_control_par(get_ui_id($lvl03_dsp), $CONTROL_PAR_FONT_TYPE, 0)
    set_control_par(get_ui_id($lvl03_dsp), $CONTROL_PAR_TEXT_ALIGNMENT, 2)
    set_text($lvl03_dsp, $lvl03 / 10000 - 0)
    move_control_px($lvl03_dsp, $x + $sx * 03 + 2, $y - 12)
    
    $y := 60
    declare ui_label $no04 (1, 1)
    hide_part($no04, $HIDE_PART_BG)
    set_control_par(get_ui_id($no04), $CONTROL_PAR_WIDTH, 30)
    set_control_par(get_ui_id($no04), $CONTROL_PAR_FONT_TYPE, 2)
    set_control_par(get_ui_id($no04), $CONTROL_PAR_TEXT_ALIGNMENT, 1)
    set_text($no04, 04 + 1)
    move_control_px($no04, $x + $sx * 04 + 2, $y - 30)
    
    declare ui_knob $pan04 (0, 1000000, 1)
    set_knob_defval($pan04, 500000)
    $pan04 := 500000
    hide_part($pan04,	 $HIDE_PART_BG .or. $HIDE_PART_VALUE ...
    .or. $HIDE_PART_TITLE .or. $HIDE_PART_MOD_LIGHT)
    move_control_px($pan04, $x + $sx * 04, $y)
    make_persistent($pan04)
    _read_persistent_var($pan04)
    declare ui_label $pan04_dsp (1, 1)
    set_control_par(get_ui_id($pan04_dsp), $CONTROL_PAR_WIDTH, 30)
    set_control_par(get_ui_id($pan04_dsp), $CONTROL_PAR_FONT_TYPE, 0)
    set_control_par(get_ui_id($pan04_dsp), $CONTROL_PAR_TEXT_ALIGNMENT, 2)
    set_text($pan04_dsp, $pan04 / 10000 - 50)
    move_control_px($pan04_dsp, $x + $sx * 04 + 2, $y - 12)
    
    $y := 100
    declare ui_button $mt04
    set_control_par(get_ui_id($mt04), $CONTROL_PAR_WIDTH, 17)
    set_text($mt04, "M")
    move_control_px($mt04, $x + $sx * 04, $y)
    make_persistent($mt04)
    _read_persistent_var($mt04)
    if ($mt04 = 1)
    %groups[04] := 0
    end if
    
    declare ui_button $sl04
    set_control_par(get_ui_id($sl04), $CONTROL_PAR_WIDTH, 17)
    set_text($sl04, "S")
    move_control_px($sl04, $x + $sx * 04 + 17, $y)
    make_persistent($sl04)
    _read_persistent_var($sl04)
    if ($sl04 = 1)
    $solo := 04
    end if
    
    $y := 204
    declare ui_menu $gr04
    set_control_par(get_ui_id($gr04), $CONTROL_PAR_WIDTH, $menu_wid)
    move_control_px($gr04, $x + $sx * 04 - $menu_sx, $y)
    add_menu_item ($gr04, "--", -1)
    $n := 0
    while ($n < $NUM_GROUPS)
    add_menu_item ($gr04, group_name($n), $n)
    inc($n)
    end while
    if (04 < $NUM_GROUPS)
    $gr04 := 04
    end if
    make_persistent($gr04)
    _read_persistent_var($gr04)
    
    $y := 180
    declare ui_menu $out04
    set_control_par(get_ui_id($out04), $CONTROL_PAR_WIDTH, $menu_wid)
    move_control_px($out04, $x + $sx * 04 - $menu_sx, $y)
    $n := 0
    while ($n < $NUM_OUTPUT_CHANNELS)
    add_menu_item($out04, output_channel_name($n), $n)
    inc($n)
    end while
    add_menu_item($out04, "default", -1)
    make_persistent($out04)
    _read_persistent_var($out04)
    if ($out04 >= $NUM_OUTPUT_CHANNELS)
    $out04 := 0
    set_engine_par($ENGINE_PAR_OUTPUT_CHANNEL, 0, $gr04, -1, -1)
    end if
    
    $y := 140
    declare ui_knob $lvl04 (0, 1000000, 1)
    set_knob_defval($lvl04, 629000)
    if ($gr04 = -1)
    $lvl04 := 0
    else
    $lvl04 := 629000
    end if
    hide_part($lvl04,	 $HIDE_PART_BG .or. $HIDE_PART_VALUE ...
    .or. $HIDE_PART_TITLE .or. $HIDE_PART_MOD_LIGHT)
    move_control_px($lvl04, $x + $sx * 04, $y)
    make_persistent($lvl04)
    _read_persistent_var($lvl04)
    declare ui_label $lvl04_dsp (1, 1)
    set_control_par(get_ui_id($lvl04_dsp), $CONTROL_PAR_WIDTH, 30)
    set_control_par(get_ui_id($lvl04_dsp), $CONTROL_PAR_FONT_TYPE, 0)
    set_control_par(get_ui_id($lvl04_dsp), $CONTROL_PAR_TEXT_ALIGNMENT, 2)
    set_text($lvl04_dsp, $lvl04 / 10000 - 0)
    move_control_px($lvl04_dsp, $x + $sx * 04 + 2, $y - 12)
    
    $y := 60
    declare ui_label $no05 (1, 1)
    hide_part($no05, $HIDE_PART_BG)
    set_control_par(get_ui_id($no05), $CONTROL_PAR_WIDTH, 30)
    set_control_par(get_ui_id($no05), $CONTROL_PAR_FONT_TYPE, 2)
    set_control_par(get_ui_id($no05), $CONTROL_PAR_TEXT_ALIGNMENT, 1)
    set_text($no05, 05 + 1)
    move_control_px($no05, $x + $sx * 05 + 2, $y - 30)
    
    declare ui_knob $pan05 (0, 1000000, 1)
    set_knob_defval($pan05, 500000)
    $pan05 := 500000
    hide_part($pan05,	 $HIDE_PART_BG .or. $HIDE_PART_VALUE ...
    .or. $HIDE_PART_TITLE .or. $HIDE_PART_MOD_LIGHT)
    move_control_px($pan05, $x + $sx * 05, $y)
    make_persistent($pan05)
    _read_persistent_var($pan05)
    declare ui_label $pan05_dsp (1, 1)
    set_control_par(get_ui_id($pan05_dsp), $CONTROL_PAR_WIDTH, 30)
    set_control_par(get_ui_id($pan05_dsp), $CONTROL_PAR_FONT_TYPE, 0)
    set_control_par(get_ui_id($pan05_dsp), $CONTROL_PAR_TEXT_ALIGNMENT, 2)
    set_text($pan05_dsp, $pan05 / 10000 - 50)
    move_control_px($pan05_dsp, $x + $sx * 05 + 2, $y - 12)
    
    $y := 100
    declare ui_button $mt05
    set_control_par(get_ui_id($mt05), $CONTROL_PAR_WIDTH, 17)
    set_text($mt05, "M")
    move_control_px($mt05, $x + $sx * 05, $y)
    make_persistent($mt05)
    _read_persistent_var($mt05)
    if ($mt05 = 1)
    %groups[05] := 0
    end if
    
    declare ui_button $sl05
    set_control_par(get_ui_id($sl05), $CONTROL_PAR_WIDTH, 17)
    set_text($sl05, "S")
    move_control_px($sl05, $x + $sx * 05 + 17, $y)
    make_persistent($sl05)
    _read_persistent_var($sl05)
    if ($sl05 = 1)
    $solo := 05
    end if
    
    $y := 204
    declare ui_menu $gr05
    set_control_par(get_ui_id($gr05), $CONTROL_PAR_WIDTH, $menu_wid)
    move_control_px($gr05, $x + $sx * 05 - $menu_sx, $y)
    add_menu_item ($gr05, "--", -1)
    $n := 0
    while ($n < $NUM_GROUPS)
    add_menu_item ($gr05, group_name($n), $n)
    inc($n)
    end while
    if (05 < $NUM_GROUPS)
    $gr05 := 05
    end if
    make_persistent($gr05)
    _read_persistent_var($gr05)
    
    $y := 180
    declare ui_menu $out05
    set_control_par(get_ui_id($out05), $CONTROL_PAR_WIDTH, $menu_wid)
    move_control_px($out05, $x + $sx * 05 - $menu_sx, $y)
    $n := 0
    while ($n < $NUM_OUTPUT_CHANNELS)
    add_menu_item($out05, output_channel_name($n), $n)
    inc($n)
    end while
    add_menu_item($out05, "default", -1)
    make_persistent($out05)
    _read_persistent_var($out05)
    if ($out05 >= $NUM_OUTPUT_CHANNELS)
    $out05 := 0
    set_engine_par($ENGINE_PAR_OUTPUT_CHANNEL, 0, $gr05, -1, -1)
    end if
    
    $y := 140
    declare ui_knob $lvl05 (0, 1000000, 1)
    set_knob_defval($lvl05, 629000)
    if ($gr05 = -1)
    $lvl05 := 0
    else
    $lvl05 := 629000
    end if
    hide_part($lvl05,	 $HIDE_PART_BG .or. $HIDE_PART_VALUE ...
    .or. $HIDE_PART_TITLE .or. $HIDE_PART_MOD_LIGHT)
    move_control_px($lvl05, $x + $sx * 05, $y)
    make_persistent($lvl05)
    _read_persistent_var($lvl05)
    declare ui_label $lvl05_dsp (1, 1)
    set_control_par(get_ui_id($lvl05_dsp), $CONTROL_PAR_WIDTH, 30)
    set_control_par(get_ui_id($lvl05_dsp), $CONTROL_PAR_FONT_TYPE, 0)
    set_control_par(get_ui_id($lvl05_dsp), $CONTROL_PAR_TEXT_ALIGNMENT, 2)
    set_text($lvl05_dsp, $lvl05 / 10000 - 0)
    move_control_px($lvl05_dsp, $x + $sx * 05 + 2, $y - 12)
    
    $y := 60
    declare ui_label $no06 (1, 1)
    hide_part($no06, $HIDE_PART_BG)
    set_control_par(get_ui_id($no06), $CONTROL_PAR_WIDTH, 30)
    set_control_par(get_ui_id($no06), $CONTROL_PAR_FONT_TYPE, 2)
    set_control_par(get_ui_id($no06), $CONTROL_PAR_TEXT_ALIGNMENT, 1)
    set_text($no06, 06 + 1)
    move_control_px($no06, $x + $sx * 06 + 2, $y - 30)
    
    declare ui_knob $pan06 (0, 1000000, 1)
    set_knob_defval($pan06, 500000)
    $pan06 := 500000
    hide_part($pan06,	 $HIDE_PART_BG .or. $HIDE_PART_VALUE ...
    .or. $HIDE_PART_TITLE .or. $HIDE_PART_MOD_LIGHT)
    move_control_px($pan06, $x + $sx * 06, $y)
    make_persistent($pan06)
    _read_persistent_var($pan06)
    declare ui_label $pan06_dsp (1, 1)
    set_control_par(get_ui_id($pan06_dsp), $CONTROL_PAR_WIDTH, 30)
    set_control_par(get_ui_id($pan06_dsp), $CONTROL_PAR_FONT_TYPE, 0)
    set_control_par(get_ui_id($pan06_dsp), $CONTROL_PAR_TEXT_ALIGNMENT, 2)
    set_text($pan06_dsp, $pan06 / 10000 - 50)
    move_control_px($pan06_dsp, $x + $sx * 06 + 2, $y - 12)
    
    $y := 100
    declare ui_button $mt06
    set_control_par(get_ui_id($mt06), $CONTROL_PAR_WIDTH, 17)
    set_text($mt06, "M")
    move_control_px($mt06, $x + $sx * 06, $y)
    make_persistent($mt06)
    _read_persistent_var($mt06)
    if ($mt06 = 1)
    %groups[06] := 0
    end if
    
    declare ui_button $sl06
    set_control_par(get_ui_id($sl06), $CONTROL_PAR_WIDTH, 17)
    set_text($sl06, "S")
    move_control_px($sl06, $x + $sx * 06 + 17, $y)
    make_persistent($sl06)
    _read_persistent_var($sl06)
    if ($sl06 = 1)
    $solo := 06
    end if
    
    $y := 204
    declare ui_menu $gr06
    set_control_par(get_ui_id($gr06), $CONTROL_PAR_WIDTH, $menu_wid)
    move_control_px($gr06, $x + $sx * 06 - $menu_sx, $y)
    add_menu_item ($gr06, "--", -1)
    $n := 0
    while ($n < $NUM_GROUPS)
    add_menu_item ($gr06, group_name($n), $n)
    inc($n)
    end while
    if (06 < $NUM_GROUPS)
    $gr06 := 06
    end if
    make_persistent($gr06)
    _read_persistent_var($gr06)
    
    $y := 180
    declare ui_menu $out06
    set_control_par(get_ui_id($out06), $CONTROL_PAR_WIDTH, $menu_wid)
    move_control_px($out06, $x + $sx * 06 - $menu_sx, $y)
    $n := 0
    while ($n < $NUM_OUTPUT_CHANNELS)
    add_menu_item($out06, output_channel_name($n), $n)
    inc($n)
    end while
    add_menu_item($out06, "default", -1)
    make_persistent($out06)
    _read_persistent_var($out06)
    if ($out06 >= $NUM_OUTPUT_CHANNELS)
    $out06 := 0
    set_engine_par($ENGINE_PAR_OUTPUT_CHANNEL, 0, $gr06, -1, -1)
    end if
    
    $y := 140
    declare ui_knob $lvl06 (0, 1000000, 1)
    set_knob_defval($lvl06, 629000)
    if ($gr06 = -1)
    $lvl06 := 0
    else
    $lvl06 := 629000
    end if
    hide_part($lvl06,	 $HIDE_PART_BG .or. $HIDE_PART_VALUE ...
    .or. $HIDE_PART_TITLE .or. $HIDE_PART_MOD_LIGHT)
    move_control_px($lvl06, $x + $sx * 06, $y)
    make_persistent($lvl06)
    _read_persistent_var($lvl06)
    declare ui_label $lvl06_dsp (1, 1)
    set_control_par(get_ui_id($lvl06_dsp), $CONTROL_PAR_WIDTH, 30)
    set_control_par(get_ui_id($lvl06_dsp), $CONTROL_PAR_FONT_TYPE, 0)
    set_control_par(get_ui_id($lvl06_dsp), $CONTROL_PAR_TEXT_ALIGNMENT, 2)
    set_text($lvl06_dsp, $lvl06 / 10000 - 0)
    move_control_px($lvl06_dsp, $x + $sx * 06 + 2, $y - 12)
    
    $y := 60
    declare ui_label $no07 (1, 1)
    hide_part($no07, $HIDE_PART_BG)
    set_control_par(get_ui_id($no07), $CONTROL_PAR_WIDTH, 30)
    set_control_par(get_ui_id($no07), $CONTROL_PAR_FONT_TYPE, 2)
    set_control_par(get_ui_id($no07), $CONTROL_PAR_TEXT_ALIGNMENT, 1)
    set_text($no07, 07 + 1)
    move_control_px($no07, $x + $sx * 07 + 2, $y - 30)
    
    declare ui_knob $pan07 (0, 1000000, 1)
    set_knob_defval($pan07, 500000)
    $pan07 := 500000
    hide_part($pan07,	 $HIDE_PART_BG .or. $HIDE_PART_VALUE ...
    .or. $HIDE_PART_TITLE .or. $HIDE_PART_MOD_LIGHT)
    move_control_px($pan07, $x + $sx * 07, $y)
    make_persistent($pan07)
    _read_persistent_var($pan07)
    declare ui_label $pan07_dsp (1, 1)
    set_control_par(get_ui_id($pan07_dsp), $CONTROL_PAR_WIDTH, 30)
    set_control_par(get_ui_id($pan07_dsp), $CONTROL_PAR_FONT_TYPE, 0)
    set_control_par(get_ui_id($pan07_dsp), $CONTROL_PAR_TEXT_ALIGNMENT, 2)
    set_text($pan07_dsp, $pan07 / 10000 - 50)
    move_control_px($pan07_dsp, $x + $sx * 07 + 2, $y - 12)
    
    $y := 100
    declare ui_button $mt07
    set_control_par(get_ui_id($mt07), $CONTROL_PAR_WIDTH, 17)
    set_text($mt07, "M")
    move_control_px($mt07, $x + $sx * 07, $y)
    make_persistent($mt07)
    _read_persistent_var($mt07)
    if ($mt07 = 1)
    %groups[07] := 0
    end if
    
    declare ui_button $sl07
    set_control_par(get_ui_id($sl07), $CONTROL_PAR_WIDTH, 17)
    set_text($sl07, "S")
    move_control_px($sl07, $x + $sx * 07 + 17, $y)
    make_persistent($sl07)
    _read_persistent_var($sl07)
    if ($sl07 = 1)
    $solo := 07
    end if
    
    $y := 204
    declare ui_menu $gr07
    set_control_par(get_ui_id($gr07), $CONTROL_PAR_WIDTH, $menu_wid)
    move_control_px($gr07, $x + $sx * 07 - $menu_sx, $y)
    add_menu_item ($gr07, "--", -1)
    $n := 0
    while ($n < $NUM_GROUPS)
    add_menu_item ($gr07, group_name($n), $n)
    inc($n)
    end while
    if (07 < $NUM_GROUPS)
    $gr07 := 07
    end if
    make_persistent($gr07)
    _read_persistent_var($gr07)
    
    $y := 180
    declare ui_menu $out07
    set_control_par(get_ui_id($out07), $CONTROL_PAR_WIDTH, $menu_wid)
    move_control_px($out07, $x + $sx * 07 - $menu_sx, $y)
    $n := 0
    while ($n < $NUM_OUTPUT_CHANNELS)
    add_menu_item($out07, output_channel_name($n), $n)
    inc($n)
    end while
    add_menu_item($out07, "default", -1)
    make_persistent($out07)
    _read_persistent_var($out07)
    if ($out07 >= $NUM_OUTPUT_CHANNELS)
    $out07 := 0
    set_engine_par($ENGINE_PAR_OUTPUT_CHANNEL, 0, $gr07, -1, -1)
    end if
    
    $y := 140
    declare ui_knob $lvl07 (0, 1000000, 1)
    set_knob_defval($lvl07, 629000)
    if ($gr07 = -1)
    $lvl07 := 0
    else
    $lvl07 := 629000
    end if
    hide_part($lvl07,	 $HIDE_PART_BG .or. $HIDE_PART_VALUE ...
    .or. $HIDE_PART_TITLE .or. $HIDE_PART_MOD_LIGHT)
    move_control_px($lvl07, $x + $sx * 07, $y)
    make_persistent($lvl07)
    _read_persistent_var($lvl07)
    declare ui_label $lvl07_dsp (1, 1)
    set_control_par(get_ui_id($lvl07_dsp), $CONTROL_PAR_WIDTH, 30)
    set_control_par(get_ui_id($lvl07_dsp), $CONTROL_PAR_FONT_TYPE, 0)
    set_control_par(get_ui_id($lvl07_dsp), $CONTROL_PAR_TEXT_ALIGNMENT, 2)
    set_text($lvl07_dsp, $lvl07 / 10000 - 0)
    move_control_px($lvl07_dsp, $x + $sx * 07 + 2, $y - 12)
    
    $y := 60
    declare ui_label $no08 (1, 1)
    hide_part($no08, $HIDE_PART_BG)
    set_control_par(get_ui_id($no08), $CONTROL_PAR_WIDTH, 30)
    set_control_par(get_ui_id($no08), $CONTROL_PAR_FONT_TYPE, 2)
    set_control_par(get_ui_id($no08), $CONTROL_PAR_TEXT_ALIGNMENT, 1)
    set_text($no08, 08 + 1)
    move_control_px($no08, $x + $sx * 08 + 2, $y - 30)
    
    declare ui_knob $pan08 (0, 1000000, 1)
    set_knob_defval($pan08, 500000)
    $pan08 := 500000
    hide_part($pan08,	 $HIDE_PART_BG .or. $HIDE_PART_VALUE ...
    .or. $HIDE_PART_TITLE .or. $HIDE_PART_MOD_LIGHT)
    move_control_px($pan08, $x + $sx * 08, $y)
    make_persistent($pan08)
    _read_persistent_var($pan08)
    declare ui_label $pan08_dsp (1, 1)
    set_control_par(get_ui_id($pan08_dsp), $CONTROL_PAR_WIDTH, 30)
    set_control_par(get_ui_id($pan08_dsp), $CONTROL_PAR_FONT_TYPE, 0)
    set_control_par(get_ui_id($pan08_dsp), $CONTROL_PAR_TEXT_ALIGNMENT, 2)
    set_text($pan08_dsp, $pan08 / 10000 - 50)
    move_control_px($pan08_dsp, $x + $sx * 08 + 2, $y - 12)
    
    $y := 100
    declare ui_button $mt08
    set_control_par(get_ui_id($mt08), $CONTROL_PAR_WIDTH, 17)
    set_text($mt08, "M")
    move_control_px($mt08, $x + $sx * 08, $y)
    make_persistent($mt08)
    _read_persistent_var($mt08)
    if ($mt08 = 1)
    %groups[08] := 0
    end if
    
    declare ui_button $sl08
    set_control_par(get_ui_id($sl08), $CONTROL_PAR_WIDTH, 17)
    set_text($sl08, "S")
    move_control_px($sl08, $x + $sx * 08 + 17, $y)
    make_persistent($sl08)
    _read_persistent_var($sl08)
    if ($sl08 = 1)
    $solo := 08
    end if
    
    $y := 204
    declare ui_menu $gr08
    set_control_par(get_ui_id($gr08), $CONTROL_PAR_WIDTH, $menu_wid)
    move_control_px($gr08, $x + $sx * 08 - $menu_sx, $y)
    add_menu_item ($gr08, "--", -1)
    $n := 0
    while ($n < $NUM_GROUPS)
    add_menu_item ($gr08, group_name($n), $n)
    inc($n)
    end while
    if (08 < $NUM_GROUPS)
    $gr08 := 08
    end if
    make_persistent($gr08)
    _read_persistent_var($gr08)
    
    $y := 180
    declare ui_menu $out08
    set_control_par(get_ui_id($out08), $CONTROL_PAR_WIDTH, $menu_wid)
    move_control_px($out08, $x + $sx * 08 - $menu_sx, $y)
    $n := 0
    while ($n < $NUM_OUTPUT_CHANNELS)
    add_menu_item($out08, output_channel_name($n), $n)
    inc($n)
    end while
    add_menu_item($out08, "default", -1)
    make_persistent($out08)
    _read_persistent_var($out08)
    if ($out08 >= $NUM_OUTPUT_CHANNELS)
    $out08 := 0
    set_engine_par($ENGINE_PAR_OUTPUT_CHANNEL, 0, $gr08, -1, -1)
    end if
    
    $y := 140
    declare ui_knob $lvl08 (0, 1000000, 1)
    set_knob_defval($lvl08, 629000)
    if ($gr08 = -1)
    $lvl08 := 0
    else
    $lvl08 := 629000
    end if
    hide_part($lvl08,	 $HIDE_PART_BG .or. $HIDE_PART_VALUE ...
    .or. $HIDE_PART_TITLE .or. $HIDE_PART_MOD_LIGHT)
    move_control_px($lvl08, $x + $sx * 08, $y)
    make_persistent($lvl08)
    _read_persistent_var($lvl08)
    declare ui_label $lvl08_dsp (1, 1)
    set_control_par(get_ui_id($lvl08_dsp), $CONTROL_PAR_WIDTH, 30)
    set_control_par(get_ui_id($lvl08_dsp), $CONTROL_PAR_FONT_TYPE, 0)
    set_control_par(get_ui_id($lvl08_dsp), $CONTROL_PAR_TEXT_ALIGNMENT, 2)
    set_text($lvl08_dsp, $lvl08 / 10000 - 0)
    move_control_px($lvl08_dsp, $x + $sx * 08 + 2, $y - 12)
    
    $y := 60
    declare ui_label $no09 (1, 1)
    hide_part($no09, $HIDE_PART_BG)
    set_control_par(get_ui_id($no09), $CONTROL_PAR_WIDTH, 30)
    set_control_par(get_ui_id($no09), $CONTROL_PAR_FONT_TYPE, 2)
    set_control_par(get_ui_id($no09), $CONTROL_PAR_TEXT_ALIGNMENT, 1)
    set_text($no09, 09 + 1)
    move_control_px($no09, $x + $sx * 09 + 2, $y - 30)
    
    declare ui_knob $pan09 (0, 1000000, 1)
    set_knob_defval($pan09, 500000)
    $pan09 := 500000
    hide_part($pan09,	 $HIDE_PART_BG .or. $HIDE_PART_VALUE ...
    .or. $HIDE_PART_TITLE .or. $HIDE_PART_MOD_LIGHT)
    move_control_px($pan09, $x + $sx * 09, $y)
    make_persistent($pan09)
    _read_persistent_var($pan09)
    declare ui_label $pan09_dsp (1, 1)
    set_control_par(get_ui_id($pan09_dsp), $CONTROL_PAR_WIDTH, 30)
    set_control_par(get_ui_id($pan09_dsp), $CONTROL_PAR_FONT_TYPE, 0)
    set_control_par(get_ui_id($pan09_dsp), $CONTROL_PAR_TEXT_ALIGNMENT, 2)
    set_text($pan09_dsp, $pan09 / 10000 - 50)
    move_control_px($pan09_dsp, $x + $sx * 09 + 2, $y - 12)
    
    $y := 100
    declare ui_button $mt09
    set_control_par(get_ui_id($mt09), $CONTROL_PAR_WIDTH, 17)
    set_text($mt09, "M")
    move_control_px($mt09, $x + $sx * 09, $y)
    make_persistent($mt09)
    _read_persistent_var($mt09)
    if ($mt09 = 1)
    %groups[09] := 0
    end if
    
    declare ui_button $sl09
    set_control_par(get_ui_id($sl09), $CONTROL_PAR_WIDTH, 17)
    set_text($sl09, "S")
    move_control_px($sl09, $x + $sx * 09 + 17, $y)
    make_persistent($sl09)
    _read_persistent_var($sl09)
    if ($sl09 = 1)
    $solo := 09
    end if
    
    $y := 204
    declare ui_menu $gr09
    set_control_par(get_ui_id($gr09), $CONTROL_PAR_WIDTH, $menu_wid)
    move_control_px($gr09, $x + $sx * 09 - $menu_sx, $y)
    add_menu_item ($gr09, "--", -1)
    $n := 0
    while ($n < $NUM_GROUPS)
    add_menu_item ($gr09, group_name($n), $n)
    inc($n)
    end while
    if (09 < $NUM_GROUPS)
    $gr09 := 09
    end if
    make_persistent($gr09)
    _read_persistent_var($gr09)
    
    $y := 180
    declare ui_menu $out09
    set_control_par(get_ui_id($out09), $CONTROL_PAR_WIDTH, $menu_wid)
    move_control_px($out09, $x + $sx * 09 - $menu_sx, $y)
    $n := 0
    while ($n < $NUM_OUTPUT_CHANNELS)
    add_menu_item($out09, output_channel_name($n), $n)
    inc($n)
    end while
    add_menu_item($out09, "default", -1)
    make_persistent($out09)
    _read_persistent_var($out09)
    if ($out09 >= $NUM_OUTPUT_CHANNELS)
    $out09 := 0
    set_engine_par($ENGINE_PAR_OUTPUT_CHANNEL, 0, $gr09, -1, -1)
    end if
    
    $y := 140
    declare ui_knob $lvl09 (0, 1000000, 1)
    set_knob_defval($lvl09, 629000)
    if ($gr09 = -1)
    $lvl09 := 0
    else
    $lvl09 := 629000
    end if
    hide_part($lvl09,	 $HIDE_PART_BG .or. $HIDE_PART_VALUE ...
    .or. $HIDE_PART_TITLE .or. $HIDE_PART_MOD_LIGHT)
    move_control_px($lvl09, $x + $sx * 09, $y)
    make_persistent($lvl09)
    _read_persistent_var($lvl09)
    declare ui_label $lvl09_dsp (1, 1)
    set_control_par(get_ui_id($lvl09_dsp), $CONTROL_PAR_WIDTH, 30)
    set_control_par(get_ui_id($lvl09_dsp), $CONTROL_PAR_FONT_TYPE, 0)
    set_control_par(get_ui_id($lvl09_dsp), $CONTROL_PAR_TEXT_ALIGNMENT, 2)
    set_text($lvl09_dsp, $lvl09 / 10000 - 0)
    move_control_px($lvl09_dsp, $x + $sx * 09 + 2, $y - 12)
    
    $y := 60
    declare ui_label $no10 (1, 1)
    hide_part($no10, $HIDE_PART_BG)
    set_control_par(get_ui_id($no10), $CONTROL_PAR_WIDTH, 30)
    set_control_par(get_ui_id($no10), $CONTROL_PAR_FONT_TYPE, 2)
    set_control_par(get_ui_id($no10), $CONTROL_PAR_TEXT_ALIGNMENT, 1)
    set_text($no10, 10 + 1)
    move_control_px($no10, $x + $sx * 10 + 2, $y - 30)
    
    declare ui_knob $pan10 (0, 1000000, 1)
    set_knob_defval($pan10, 500000)
    $pan10 := 500000
    hide_part($pan10,	 $HIDE_PART_BG .or. $HIDE_PART_VALUE ...
    .or. $HIDE_PART_TITLE .or. $HIDE_PART_MOD_LIGHT)
    move_control_px($pan10, $x + $sx * 10, $y)
    make_persistent($pan10)
    _read_persistent_var($pan10)
    declare ui_label $pan10_dsp (1, 1)
    set_control_par(get_ui_id($pan10_dsp), $CONTROL_PAR_WIDTH, 30)
    set_control_par(get_ui_id($pan10_dsp), $CONTROL_PAR_FONT_TYPE, 0)
    set_control_par(get_ui_id($pan10_dsp), $CONTROL_PAR_TEXT_ALIGNMENT, 2)
    set_text($pan10_dsp, $pan10 / 10000 - 50)
    move_control_px($pan10_dsp, $x + $sx * 10 + 2, $y - 12)
    
    $y := 100
    declare ui_button $mt10
    set_control_par(get_ui_id($mt10), $CONTROL_PAR_WIDTH, 17)
    set_text($mt10, "M")
    move_control_px($mt10, $x + $sx * 10, $y)
    make_persistent($mt10)
    _read_persistent_var($mt10)
    if ($mt10 = 1)
    %groups[10] := 0
    end if
    
    declare ui_button $sl10
    set_control_par(get_ui_id($sl10), $CONTROL_PAR_WIDTH, 17)
    set_text($sl10, "S")
    move_control_px($sl10, $x + $sx * 10 + 17, $y)
    make_persistent($sl10)
    _read_persistent_var($sl10)
    if ($sl10 = 1)
    $solo := 10
    end if
    
    $y := 204
    declare ui_menu $gr10
    set_control_par(get_ui_id($gr10), $CONTROL_PAR_WIDTH, $menu_wid)
    move_control_px($gr10, $x + $sx * 10 - $menu_sx, $y)
    add_menu_item ($gr10, "--", -1)
    $n := 0
    while ($n < $NUM_GROUPS)
    add_menu_item ($gr10, group_name($n), $n)
    inc($n)
    end while
    if (10 < $NUM_GROUPS)
    $gr10 := 10
    end if
    make_persistent($gr10)
    _read_persistent_var($gr10)
    
    $y := 180
    declare ui_menu $out10
    set_control_par(get_ui_id($out10), $CONTROL_PAR_WIDTH, $menu_wid)
    move_control_px($out10, $x + $sx * 10 - $menu_sx, $y)
    $n := 0
    while ($n < $NUM_OUTPUT_CHANNELS)
    add_menu_item($out10, output_channel_name($n), $n)
    inc($n)
    end while
    add_menu_item($out10, "default", -1)
    make_persistent($out10)
    _read_persistent_var($out10)
    if ($out10 >= $NUM_OUTPUT_CHANNELS)
    $out10 := 0
    set_engine_par($ENGINE_PAR_OUTPUT_CHANNEL, 0, $gr10, -1, -1)
    end if
    
    $y := 140
    declare ui_knob $lvl10 (0, 1000000, 1)
    set_knob_defval($lvl10, 629000)
    if ($gr10 = -1)
    $lvl10 := 0
    else
    $lvl10 := 629000
    end if
    hide_part($lvl10,	 $HIDE_PART_BG .or. $HIDE_PART_VALUE ...
    .or. $HIDE_PART_TITLE .or. $HIDE_PART_MOD_LIGHT)
    move_control_px($lvl10, $x + $sx * 10, $y)
    make_persistent($lvl10)
    _read_persistent_var($lvl10)
    declare ui_label $lvl10_dsp (1, 1)
    set_control_par(get_ui_id($lvl10_dsp), $CONTROL_PAR_WIDTH, 30)
    set_control_par(get_ui_id($lvl10_dsp), $CONTROL_PAR_FONT_TYPE, 0)
    set_control_par(get_ui_id($lvl10_dsp), $CONTROL_PAR_TEXT_ALIGNMENT, 2)
    set_text($lvl10_dsp, $lvl10 / 10000 - 0)
    move_control_px($lvl10_dsp, $x + $sx * 10 + 2, $y - 12)
    
    $y := 60
    declare ui_label $no11 (1, 1)
    hide_part($no11, $HIDE_PART_BG)
    set_control_par(get_ui_id($no11), $CONTROL_PAR_WIDTH, 30)
    set_control_par(get_ui_id($no11), $CONTROL_PAR_FONT_TYPE, 2)
    set_control_par(get_ui_id($no11), $CONTROL_PAR_TEXT_ALIGNMENT, 1)
    set_text($no11, 11 + 1)
    move_control_px($no11, $x + $sx * 11 + 2, $y - 30)
    
    declare ui_knob $pan11 (0, 1000000, 1)
    set_knob_defval($pan11, 500000)
    $pan11 := 500000
    hide_part($pan11,	 $HIDE_PART_BG .or. $HIDE_PART_VALUE ...
    .or. $HIDE_PART_TITLE .or. $HIDE_PART_MOD_LIGHT)
    move_control_px($pan11, $x + $sx * 11, $y)
    make_persistent($pan11)
    _read_persistent_var($pan11)
    declare ui_label $pan11_dsp (1, 1)
    set_control_par(get_ui_id($pan11_dsp), $CONTROL_PAR_WIDTH, 30)
    set_control_par(get_ui_id($pan11_dsp), $CONTROL_PAR_FONT_TYPE, 0)
    set_control_par(get_ui_id($pan11_dsp), $CONTROL_PAR_TEXT_ALIGNMENT, 2)
    set_text($pan11_dsp, $pan11 / 10000 - 50)
    move_control_px($pan11_dsp, $x + $sx * 11 + 2, $y - 12)
    
    $y := 100
    declare ui_button $mt11
    set_control_par(get_ui_id($mt11), $CONTROL_PAR_WIDTH, 17)
    set_text($mt11, "M")
    move_control_px($mt11, $x + $sx * 11, $y)
    make_persistent($mt11)
    _read_persistent_var($mt11)
    if ($mt11 = 1)
    %groups[11] := 0
    end if
    
    declare ui_button $sl11
    set_control_par(get_ui_id($sl11), $CONTROL_PAR_WIDTH, 17)
    set_text($sl11, "S")
    move_control_px($sl11, $x + $sx * 11 + 17, $y)
    make_persistent($sl11)
    _read_persistent_var($sl11)
    if ($sl11 = 1)
    $solo := 11
    end if
    
    $y := 204
    declare ui_menu $gr11
    set_control_par(get_ui_id($gr11), $CONTROL_PAR_WIDTH, $menu_wid)
    move_control_px($gr11, $x + $sx * 11 - $menu_sx, $y)
    add_menu_item ($gr11, "--", -1)
    $n := 0
    while ($n < $NUM_GROUPS)
    add_menu_item ($gr11, group_name($n), $n)
    inc($n)
    end while
    if (11 < $NUM_GROUPS)
    $gr11 := 11
    end if
    make_persistent($gr11)
    _read_persistent_var($gr11)
    
    $y := 180
    declare ui_menu $out11
    set_control_par(get_ui_id($out11), $CONTROL_PAR_WIDTH, $menu_wid)
    move_control_px($out11, $x + $sx * 11 - $menu_sx, $y)
    $n := 0
    while ($n < $NUM_OUTPUT_CHANNELS)
    add_menu_item($out11, output_channel_name($n), $n)
    inc($n)
    end while
    add_menu_item($out11, "default", -1)
    make_persistent($out11)
    _read_persistent_var($out11)
    if ($out11 >= $NUM_OUTPUT_CHANNELS)
    $out11 := 0
    set_engine_par($ENGINE_PAR_OUTPUT_CHANNEL, 0, $gr11, -1, -1)
    end if
    
    $y := 140
    declare ui_knob $lvl11 (0, 1000000, 1)
    set_knob_defval($lvl11, 629000)
    if ($gr11 = -1)
    $lvl11 := 0
    else
    $lvl11 := 629000
    end if
    hide_part($lvl11,	 $HIDE_PART_BG .or. $HIDE_PART_VALUE ...
    .or. $HIDE_PART_TITLE .or. $HIDE_PART_MOD_LIGHT)
    move_control_px($lvl11, $x + $sx * 11, $y)
    make_persistent($lvl11)
    _read_persistent_var($lvl11)
    declare ui_label $lvl11_dsp (1, 1)
    set_control_par(get_ui_id($lvl11_dsp), $CONTROL_PAR_WIDTH, 30)
    set_control_par(get_ui_id($lvl11_dsp), $CONTROL_PAR_FONT_TYPE, 0)
    set_control_par(get_ui_id($lvl11_dsp), $CONTROL_PAR_TEXT_ALIGNMENT, 2)
    set_text($lvl11_dsp, $lvl11 / 10000 - 0)
    move_control_px($lvl11_dsp, $x + $sx * 11 + 2, $y - 12)
    
    if (($mt00= 1) and ($mt01= 1) and ($mt02= 1) and ($mt03= 1) ...
    and ($mt04= 1) and ($mt05= 1) and ($mt06= 1) and ($mt07= 1) ...
    and ($mt08= 1) and ($mt09= 1) and ($mt10= 1) and ($mt11= 1) ...
    )
    if (00 < $NUM_GROUPS)
    $gr00 := 00
    else
    $gr00 := -1
    $pan00 := 500000
    $lvl00 := 0
    end if
    if (00 < $NUM_OUTPUT_CHANNELS)
    set_engine_par($ENGINE_PAR_OUTPUT_CHANNEL, 00, $gr00, -1, -1)
    else
    set_engine_par($ENGINE_PAR_OUTPUT_CHANNEL, 0, $gr00, -1, -1)
    end if
    %groups[00] := 1
    $mt00 := 0
    $sl00 := 0
    if (01 < $NUM_GROUPS)
    $gr01 := 01
    else
    $gr01 := -1
    $pan01 := 500000
    $lvl01 := 0
    end if
    if (01 < $NUM_OUTPUT_CHANNELS)
    set_engine_par($ENGINE_PAR_OUTPUT_CHANNEL, 01, $gr01, -1, -1)
    else
    set_engine_par($ENGINE_PAR_OUTPUT_CHANNEL, 0, $gr01, -1, -1)
    end if
    %groups[01] := 1
    $mt01 := 0
    $sl01 := 0
    if (02 < $NUM_GROUPS)
    $gr02 := 02
    else
    $gr02 := -1
    $pan02 := 500000
    $lvl02 := 0
    end if
    if (02 < $NUM_OUTPUT_CHANNELS)
    set_engine_par($ENGINE_PAR_OUTPUT_CHANNEL, 02, $gr02, -1, -1)
    else
    set_engine_par($ENGINE_PAR_OUTPUT_CHANNEL, 0, $gr02, -1, -1)
    end if
    %groups[02] := 1
    $mt02 := 0
    $sl02 := 0
    if (03 < $NUM_GROUPS)
    $gr03 := 03
    else
    $gr03 := -1
    $pan03 := 500000
    $lvl03 := 0
    end if
    if (03 < $NUM_OUTPUT_CHANNELS)
    set_engine_par($ENGINE_PAR_OUTPUT_CHANNEL, 03, $gr03, -1, -1)
    else
    set_engine_par($ENGINE_PAR_OUTPUT_CHANNEL, 0, $gr03, -1, -1)
    end if
    %groups[03] := 1
    $mt03 := 0
    $sl03 := 0
    if (04 < $NUM_GROUPS)
    $gr04 := 04
    else
    $gr04 := -1
    $pan04 := 500000
    $lvl04 := 0
    end if
    if (04 < $NUM_OUTPUT_CHANNELS)
    set_engine_par($ENGINE_PAR_OUTPUT_CHANNEL, 04, $gr04, -1, -1)
    else
    set_engine_par($ENGINE_PAR_OUTPUT_CHANNEL, 0, $gr04, -1, -1)
    end if
    %groups[04] := 1
    $mt04 := 0
    $sl04 := 0
    if (05 < $NUM_GROUPS)
    $gr05 := 05
    else
    $gr05 := -1
    $pan05 := 500000
    $lvl05 := 0
    end if
    if (05 < $NUM_OUTPUT_CHANNELS)
    set_engine_par($ENGINE_PAR_OUTPUT_CHANNEL, 05, $gr05, -1, -1)
    else
    set_engine_par($ENGINE_PAR_OUTPUT_CHANNEL, 0, $gr05, -1, -1)
    end if
    %groups[05] := 1
    $mt05 := 0
    $sl05 := 0
    if (06 < $NUM_GROUPS)
    $gr06 := 06
    else
    $gr06 := -1
    $pan06 := 500000
    $lvl06 := 0
    end if
    if (06 < $NUM_OUTPUT_CHANNELS)
    set_engine_par($ENGINE_PAR_OUTPUT_CHANNEL, 06, $gr06, -1, -1)
    else
    set_engine_par($ENGINE_PAR_OUTPUT_CHANNEL, 0, $gr06, -1, -1)
    end if
    %groups[06] := 1
    $mt06 := 0
    $sl06 := 0
    if (07 < $NUM_GROUPS)
    $gr07 := 07
    else
    $gr07 := -1
    $pan07 := 500000
    $lvl07 := 0
    end if
    if (07 < $NUM_OUTPUT_CHANNELS)
    set_engine_par($ENGINE_PAR_OUTPUT_CHANNEL, 07, $gr07, -1, -1)
    else
    set_engine_par($ENGINE_PAR_OUTPUT_CHANNEL, 0, $gr07, -1, -1)
    end if
    %groups[07] := 1
    $mt07 := 0
    $sl07 := 0
    if (08 < $NUM_GROUPS)
    $gr08 := 08
    else
    $gr08 := -1
    $pan08 := 500000
    $lvl08 := 0
    end if
    if (08 < $NUM_OUTPUT_CHANNELS)
    set_engine_par($ENGINE_PAR_OUTPUT_CHANNEL, 08, $gr08, -1, -1)
    else
    set_engine_par($ENGINE_PAR_OUTPUT_CHANNEL, 0, $gr08, -1, -1)
    end if
    %groups[08] := 1
    $mt08 := 0
    $sl08 := 0
    if (09 < $NUM_GROUPS)
    $gr09 := 09
    else
    $gr09 := -1
    $pan09 := 500000
    $lvl09 := 0
    end if
    if (09 < $NUM_OUTPUT_CHANNELS)
    set_engine_par($ENGINE_PAR_OUTPUT_CHANNEL, 09, $gr09, -1, -1)
    else
    set_engine_par($ENGINE_PAR_OUTPUT_CHANNEL, 0, $gr09, -1, -1)
    end if
    %groups[09] := 1
    $mt09 := 0
    $sl09 := 0
    if (10 < $NUM_GROUPS)
    $gr10 := 10
    else
    $gr10 := -1
    $pan10 := 500000
    $lvl10 := 0
    end if
    if (10 < $NUM_OUTPUT_CHANNELS)
    set_engine_par($ENGINE_PAR_OUTPUT_CHANNEL, 10, $gr10, -1, -1)
    else
    set_engine_par($ENGINE_PAR_OUTPUT_CHANNEL, 0, $gr10, -1, -1)
    end if
    %groups[10] := 1
    $mt10 := 0
    $sl10 := 0
    if (11 < $NUM_GROUPS)
    $gr11 := 11
    else
    $gr11 := -1
    $pan11 := 500000
    $lvl11 := 0
    end if
    if (11 < $NUM_OUTPUT_CHANNELS)
    set_engine_par($ENGINE_PAR_OUTPUT_CHANNEL, 11, $gr11, -1, -1)
    else
    set_engine_par($ENGINE_PAR_OUTPUT_CHANNEL, 0, $gr11, -1, -1)
    end if
    %groups[11] := 1
    $mt11 := 0
    $sl11 := 0
    end if
    
    $solo := -1
    if ($gr00 >= 0)
    $pan00 := get_engine_par($ENGINE_PAR_PAN, $gr00, -1, -1)
    end if
    set_text($pan00_dsp, $pan00 / 10000 - 50)
    if ($gr00 >= 0)
    $lvl00 := get_engine_par($ENGINE_PAR_VOLUME, $gr00, -1, -1)
    end if
    set_text($lvl00_dsp, $lvl00 / 10000)
    if ($out00 < $NUM_OUTPUT_CHANNELS)
    $out00 := get_engine_par($ENGINE_PAR_OUTPUT_CHANNEL, $gr00, -1, -1)
    end if
    if ($gr01 >= 0)
    $pan01 := get_engine_par($ENGINE_PAR_PAN, $gr01, -1, -1)
    end if
    set_text($pan01_dsp, $pan01 / 10000 - 50)
    if ($gr01 >= 0)
    $lvl01 := get_engine_par($ENGINE_PAR_VOLUME, $gr01, -1, -1)
    end if
    set_text($lvl01_dsp, $lvl01 / 10000)
    if ($out01 < $NUM_OUTPUT_CHANNELS)
    $out01 := get_engine_par($ENGINE_PAR_OUTPUT_CHANNEL, $gr01, -1, -1)
    end if
    if ($gr02 >= 0)
    $pan02 := get_engine_par($ENGINE_PAR_PAN, $gr02, -1, -1)
    end if
    set_text($pan02_dsp, $pan02 / 10000 - 50)
    if ($gr02 >= 0)
    $lvl02 := get_engine_par($ENGINE_PAR_VOLUME, $gr02, -1, -1)
    end if
    set_text($lvl02_dsp, $lvl02 / 10000)
    if ($out02 < $NUM_OUTPUT_CHANNELS)
    $out02 := get_engine_par($ENGINE_PAR_OUTPUT_CHANNEL, $gr02, -1, -1)
    end if
    if ($gr03 >= 0)
    $pan03 := get_engine_par($ENGINE_PAR_PAN, $gr03, -1, -1)
    end if
    set_text($pan03_dsp, $pan03 / 10000 - 50)
    if ($gr03 >= 0)
    $lvl03 := get_engine_par($ENGINE_PAR_VOLUME, $gr03, -1, -1)
    end if
    set_text($lvl03_dsp, $lvl03 / 10000)
    if ($out03 < $NUM_OUTPUT_CHANNELS)
    $out03 := get_engine_par($ENGINE_PAR_OUTPUT_CHANNEL, $gr03, -1, -1)
    end if
    if ($gr04 >= 0)
    $pan04 := get_engine_par($ENGINE_PAR_PAN, $gr04, -1, -1)
    end if
    set_text($pan04_dsp, $pan04 / 10000 - 50)
    if ($gr04 >= 0)
    $lvl04 := get_engine_par($ENGINE_PAR_VOLUME, $gr04, -1, -1)
    end if
    set_text($lvl04_dsp, $lvl04 / 10000)
    if ($out04 < $NUM_OUTPUT_CHANNELS)
    $out04 := get_engine_par($ENGINE_PAR_OUTPUT_CHANNEL, $gr04, -1, -1)
    end if
    if ($gr05 >= 0)
    $pan05 := get_engine_par($ENGINE_PAR_PAN, $gr05, -1, -1)
    end if
    set_text($pan05_dsp, $pan05 / 10000 - 50)
    if ($gr05 >= 0)
    $lvl05 := get_engine_par($ENGINE_PAR_VOLUME, $gr05, -1, -1)
    end if
    set_text($lvl05_dsp, $lvl05 / 10000)
    if ($out05 < $NUM_OUTPUT_CHANNELS)
    $out05 := get_engine_par($ENGINE_PAR_OUTPUT_CHANNEL, $gr05, -1, -1)
    end if
    if ($gr06 >= 0)
    $pan06 := get_engine_par($ENGINE_PAR_PAN, $gr06, -1, -1)
    end if
    set_text($pan06_dsp, $pan06 / 10000 - 50)
    if ($gr06 >= 0)
    $lvl06 := get_engine_par($ENGINE_PAR_VOLUME, $gr06, -1, -1)
    end if
    set_text($lvl06_dsp, $lvl06 / 10000)
    if ($out06 < $NUM_OUTPUT_CHANNELS)
    $out06 := get_engine_par($ENGINE_PAR_OUTPUT_CHANNEL, $gr06, -1, -1)
    end if
    if ($gr07 >= 0)
    $pan07 := get_engine_par($ENGINE_PAR_PAN, $gr07, -1, -1)
    end if
    set_text($pan07_dsp, $pan07 / 10000 - 50)
    if ($gr07 >= 0)
    $lvl07 := get_engine_par($ENGINE_PAR_VOLUME, $gr07, -1, -1)
    end if
    set_text($lvl07_dsp, $lvl07 / 10000)
    if ($out07 < $NUM_OUTPUT_CHANNELS)
    $out07 := get_engine_par($ENGINE_PAR_OUTPUT_CHANNEL, $gr07, -1, -1)
    end if
    if ($gr08 >= 0)
    $pan08 := get_engine_par($ENGINE_PAR_PAN, $gr08, -1, -1)
    end if
    set_text($pan08_dsp, $pan08 / 10000 - 50)
    if ($gr08 >= 0)
    $lvl08 := get_engine_par($ENGINE_PAR_VOLUME, $gr08, -1, -1)
    end if
    set_text($lvl08_dsp, $lvl08 / 10000)
    if ($out08 < $NUM_OUTPUT_CHANNELS)
    $out08 := get_engine_par($ENGINE_PAR_OUTPUT_CHANNEL, $gr08, -1, -1)
    end if
    if ($gr09 >= 0)
    $pan09 := get_engine_par($ENGINE_PAR_PAN, $gr09, -1, -1)
    end if
    set_text($pan09_dsp, $pan09 / 10000 - 50)
    if ($gr09 >= 0)
    $lvl09 := get_engine_par($ENGINE_PAR_VOLUME, $gr09, -1, -1)
    end if
    set_text($lvl09_dsp, $lvl09 / 10000)
    if ($out09 < $NUM_OUTPUT_CHANNELS)
    $out09 := get_engine_par($ENGINE_PAR_OUTPUT_CHANNEL, $gr09, -1, -1)
    end if
    if ($gr10 >= 0)
    $pan10 := get_engine_par($ENGINE_PAR_PAN, $gr10, -1, -1)
    end if
    set_text($pan10_dsp, $pan10 / 10000 - 50)
    if ($gr10 >= 0)
    $lvl10 := get_engine_par($ENGINE_PAR_VOLUME, $gr10, -1, -1)
    end if
    set_text($lvl10_dsp, $lvl10 / 10000)
    if ($out10 < $NUM_OUTPUT_CHANNELS)
    $out10 := get_engine_par($ENGINE_PAR_OUTPUT_CHANNEL, $gr10, -1, -1)
    end if
    if ($gr11 >= 0)
    $pan11 := get_engine_par($ENGINE_PAR_PAN, $gr11, -1, -1)
    end if
    set_text($pan11_dsp, $pan11 / 10000 - 50)
    if ($gr11 >= 0)
    $lvl11 := get_engine_par($ENGINE_PAR_VOLUME, $gr11, -1, -1)
    end if
    set_text($lvl11_dsp, $lvl11 / 10000)
    if ($out11 < $NUM_OUTPUT_CHANNELS)
    $out11 := get_engine_par($ENGINE_PAR_OUTPUT_CHANNEL, $gr11, -1, -1)
    end if
    
    message("")
    end on
    
    on note
    disallow_group($ALL_GROUPS)
    if ($solo >= 0)
    if (($solo >= 0) and ($solo < $NUM_GROUPS))
    if (%groups[$solo] = 1)
    allow_group($solo)
    end if
    end if
    else
    $n := 0
    while ($n < $NUM_GROUPS)
    if (%groups[$n] = 1)
    allow_group($n)
    end if
    inc($n)
    end while
    end if
    end on
    
    on ui_control($pan00)
    if ($gr00 >= 0)
    set_engine_par($ENGINE_PAR_PAN, $pan00, $gr00, -1, -1)
    end if
    set_text($pan00_dsp, $pan00 / 10000 - 50)
    end on
    on ui_control($pan01)
    if ($gr01 >= 0)
    set_engine_par($ENGINE_PAR_PAN, $pan01, $gr01, -1, -1)
    end if
    set_text($pan01_dsp, $pan01 / 10000 - 50)
    end on
    on ui_control($pan02)
    if ($gr02 >= 0)
    set_engine_par($ENGINE_PAR_PAN, $pan02, $gr02, -1, -1)
    end if
    set_text($pan02_dsp, $pan02 / 10000 - 50)
    end on
    on ui_control($pan03)
    if ($gr03 >= 0)
    set_engine_par($ENGINE_PAR_PAN, $pan03, $gr03, -1, -1)
    end if
    set_text($pan03_dsp, $pan03 / 10000 - 50)
    end on
    on ui_control($pan04)
    if ($gr04 >= 0)
    set_engine_par($ENGINE_PAR_PAN, $pan04, $gr04, -1, -1)
    end if
    set_text($pan04_dsp, $pan04 / 10000 - 50)
    end on
    on ui_control($pan05)
    if ($gr05 >= 0)
    set_engine_par($ENGINE_PAR_PAN, $pan05, $gr05, -1, -1)
    end if
    set_text($pan05_dsp, $pan05 / 10000 - 50)
    end on
    on ui_control($pan06)
    if ($gr06 >= 0)
    set_engine_par($ENGINE_PAR_PAN, $pan06, $gr06, -1, -1)
    end if
    set_text($pan06_dsp, $pan06 / 10000 - 50)
    end on
    on ui_control($pan07)
    if ($gr07 >= 0)
    set_engine_par($ENGINE_PAR_PAN, $pan07, $gr07, -1, -1)
    end if
    set_text($pan07_dsp, $pan07 / 10000 - 50)
    end on
    on ui_control($pan08)
    if ($gr08 >= 0)
    set_engine_par($ENGINE_PAR_PAN, $pan08, $gr08, -1, -1)
    end if
    set_text($pan08_dsp, $pan08 / 10000 - 50)
    end on
    on ui_control($pan09)
    if ($gr09 >= 0)
    set_engine_par($ENGINE_PAR_PAN, $pan09, $gr09, -1, -1)
    end if
    set_text($pan09_dsp, $pan09 / 10000 - 50)
    end on
    on ui_control($pan10)
    if ($gr10 >= 0)
    set_engine_par($ENGINE_PAR_PAN, $pan10, $gr10, -1, -1)
    end if
    set_text($pan10_dsp, $pan10 / 10000 - 50)
    end on
    on ui_control($pan11)
    if ($gr11 >= 0)
    set_engine_par($ENGINE_PAR_PAN, $pan11, $gr11, -1, -1)
    end if
    set_text($pan11_dsp, $pan11 / 10000 - 50)
    end on
    
    on ui_control($lvl00)
    if ($gr00 >= 0)
    set_engine_par($ENGINE_PAR_VOLUME, $lvl00, $gr00, -1, -1)
    end if
    set_text($lvl00_dsp, $lvl00 / 10000)
    end on
    on ui_control($lvl01)
    if ($gr01 >= 0)
    set_engine_par($ENGINE_PAR_VOLUME, $lvl01, $gr01, -1, -1)
    end if
    set_text($lvl01_dsp, $lvl01 / 10000)
    end on
    on ui_control($lvl02)
    if ($gr02 >= 0)
    set_engine_par($ENGINE_PAR_VOLUME, $lvl02, $gr02, -1, -1)
    end if
    set_text($lvl02_dsp, $lvl02 / 10000)
    end on
    on ui_control($lvl03)
    if ($gr03 >= 0)
    set_engine_par($ENGINE_PAR_VOLUME, $lvl03, $gr03, -1, -1)
    end if
    set_text($lvl03_dsp, $lvl03 / 10000)
    end on
    on ui_control($lvl04)
    if ($gr04 >= 0)
    set_engine_par($ENGINE_PAR_VOLUME, $lvl04, $gr04, -1, -1)
    end if
    set_text($lvl04_dsp, $lvl04 / 10000)
    end on
    on ui_control($lvl05)
    if ($gr05 >= 0)
    set_engine_par($ENGINE_PAR_VOLUME, $lvl05, $gr05, -1, -1)
    end if
    set_text($lvl05_dsp, $lvl05 / 10000)
    end on
    on ui_control($lvl06)
    if ($gr06 >= 0)
    set_engine_par($ENGINE_PAR_VOLUME, $lvl06, $gr06, -1, -1)
    end if
    set_text($lvl06_dsp, $lvl06 / 10000)
    end on
    on ui_control($lvl07)
    if ($gr07 >= 0)
    set_engine_par($ENGINE_PAR_VOLUME, $lvl07, $gr07, -1, -1)
    end if
    set_text($lvl07_dsp, $lvl07 / 10000)
    end on
    on ui_control($lvl08)
    if ($gr08 >= 0)
    set_engine_par($ENGINE_PAR_VOLUME, $lvl08, $gr08, -1, -1)
    end if
    set_text($lvl08_dsp, $lvl08 / 10000)
    end on
    on ui_control($lvl09)
    if ($gr09 >= 0)
    set_engine_par($ENGINE_PAR_VOLUME, $lvl09, $gr09, -1, -1)
    end if
    set_text($lvl09_dsp, $lvl09 / 10000)
    end on
    on ui_control($lvl10)
    if ($gr10 >= 0)
    set_engine_par($ENGINE_PAR_VOLUME, $lvl10, $gr10, -1, -1)
    end if
    set_text($lvl10_dsp, $lvl10 / 10000)
    end on
    on ui_control($lvl11)
    if ($gr11 >= 0)
    set_engine_par($ENGINE_PAR_VOLUME, $lvl11, $gr11, -1, -1)
    end if
    set_text($lvl11_dsp, $lvl11 / 10000)
    end on
    
    on ui_control($mt00)
    if ($gr00 >= 0)
    if ($mt00 = 0)
    %groups[$gr00] := 1
    else
    %groups[$gr00] := 0
    end if
    end if
    end on
    on ui_control($mt01)
    if ($gr01 >= 0)
    if ($mt01 = 0)
    %groups[$gr01] := 1
    else
    %groups[$gr01] := 0
    end if
    end if
    end on
    on ui_control($mt02)
    if ($gr02 >= 0)
    if ($mt02 = 0)
    %groups[$gr02] := 1
    else
    %groups[$gr02] := 0
    end if
    end if
    end on
    on ui_control($mt03)
    if ($gr03 >= 0)
    if ($mt03 = 0)
    %groups[$gr03] := 1
    else
    %groups[$gr03] := 0
    end if
    end if
    end on
    on ui_control($mt04)
    if ($gr04 >= 0)
    if ($mt04 = 0)
    %groups[$gr04] := 1
    else
    %groups[$gr04] := 0
    end if
    end if
    end on
    on ui_control($mt05)
    if ($gr05 >= 0)
    if ($mt05 = 0)
    %groups[$gr05] := 1
    else
    %groups[$gr05] := 0
    end if
    end if
    end on
    on ui_control($mt06)
    if ($gr06 >= 0)
    if ($mt06 = 0)
    %groups[$gr06] := 1
    else
    %groups[$gr06] := 0
    end if
    end if
    end on
    on ui_control($mt07)
    if ($gr07 >= 0)
    if ($mt07 = 0)
    %groups[$gr07] := 1
    else
    %groups[$gr07] := 0
    end if
    end if
    end on
    on ui_control($mt08)
    if ($gr08 >= 0)
    if ($mt08 = 0)
    %groups[$gr08] := 1
    else
    %groups[$gr08] := 0
    end if
    end if
    end on
    on ui_control($mt09)
    if ($gr09 >= 0)
    if ($mt09 = 0)
    %groups[$gr09] := 1
    else
    %groups[$gr09] := 0
    end if
    end if
    end on
    on ui_control($mt10)
    if ($gr10 >= 0)
    if ($mt10 = 0)
    %groups[$gr10] := 1
    else
    %groups[$gr10] := 0
    end if
    end if
    end on
    on ui_control($mt11)
    if ($gr11 >= 0)
    if ($mt11 = 0)
    %groups[$gr11] := 1
    else
    %groups[$gr11] := 0
    end if
    end if
    end on
    
    on ui_control($sl00)
    if ($sl00 = 1)
    $sl00 := 0
    $sl01 := 0
    $sl02 := 0
    $sl03 := 0
    $sl04 := 0
    $sl05 := 0
    $sl06 := 0
    $sl07 := 0
    $sl08 := 0
    $sl09 := 0
    $sl10 := 0
    $sl11 := 0
    $sl00 := 1
    $solo := $gr00
    else
    $solo := -1
    end if
    end on
    on ui_control($sl01)
    if ($sl01 = 1)
    $sl00 := 0
    $sl01 := 0
    $sl02 := 0
    $sl03 := 0
    $sl04 := 0
    $sl05 := 0
    $sl06 := 0
    $sl07 := 0
    $sl08 := 0
    $sl09 := 0
    $sl10 := 0
    $sl11 := 0
    $sl01 := 1
    $solo := $gr01
    else
    $solo := -1
    end if
    end on
    on ui_control($sl02)
    if ($sl02 = 1)
    $sl00 := 0
    $sl01 := 0
    $sl02 := 0
    $sl03 := 0
    $sl04 := 0
    $sl05 := 0
    $sl06 := 0
    $sl07 := 0
    $sl08 := 0
    $sl09 := 0
    $sl10 := 0
    $sl11 := 0
    $sl02 := 1
    $solo := $gr02
    else
    $solo := -1
    end if
    end on
    on ui_control($sl03)
    if ($sl03 = 1)
    $sl00 := 0
    $sl01 := 0
    $sl02 := 0
    $sl03 := 0
    $sl04 := 0
    $sl05 := 0
    $sl06 := 0
    $sl07 := 0
    $sl08 := 0
    $sl09 := 0
    $sl10 := 0
    $sl11 := 0
    $sl03 := 1
    $solo := $gr03
    else
    $solo := -1
    end if
    end on
    on ui_control($sl04)
    if ($sl04 = 1)
    $sl00 := 0
    $sl01 := 0
    $sl02 := 0
    $sl03 := 0
    $sl04 := 0
    $sl05 := 0
    $sl06 := 0
    $sl07 := 0
    $sl08 := 0
    $sl09 := 0
    $sl10 := 0
    $sl11 := 0
    $sl04 := 1
    $solo := $gr04
    else
    $solo := -1
    end if
    end on
    on ui_control($sl05)
    if ($sl05 = 1)
    $sl00 := 0
    $sl01 := 0
    $sl02 := 0
    $sl03 := 0
    $sl04 := 0
    $sl05 := 0
    $sl06 := 0
    $sl07 := 0
    $sl08 := 0
    $sl09 := 0
    $sl10 := 0
    $sl11 := 0
    $sl05 := 1
    $solo := $gr05
    else
    $solo := -1
    end if
    end on
    on ui_control($sl06)
    if ($sl06 = 1)
    $sl00 := 0
    $sl01 := 0
    $sl02 := 0
    $sl03 := 0
    $sl04 := 0
    $sl05 := 0
    $sl06 := 0
    $sl07 := 0
    $sl08 := 0
    $sl09 := 0
    $sl10 := 0
    $sl11 := 0
    $sl06 := 1
    $solo := $gr06
    else
    $solo := -1
    end if
    end on
    on ui_control($sl07)
    if ($sl07 = 1)
    $sl00 := 0
    $sl01 := 0
    $sl02 := 0
    $sl03 := 0
    $sl04 := 0
    $sl05 := 0
    $sl06 := 0
    $sl07 := 0
    $sl08 := 0
    $sl09 := 0
    $sl10 := 0
    $sl11 := 0
    $sl07 := 1
    $solo := $gr07
    else
    $solo := -1
    end if
    end on
    on ui_control($sl08)
    if ($sl08 = 1)
    $sl00 := 0
    $sl01 := 0
    $sl02 := 0
    $sl03 := 0
    $sl04 := 0
    $sl05 := 0
    $sl06 := 0
    $sl07 := 0
    $sl08 := 0
    $sl09 := 0
    $sl10 := 0
    $sl11 := 0
    $sl08 := 1
    $solo := $gr08
    else
    $solo := -1
    end if
    end on
    on ui_control($sl09)
    if ($sl09 = 1)
    $sl00 := 0
    $sl01 := 0
    $sl02 := 0
    $sl03 := 0
    $sl04 := 0
    $sl05 := 0
    $sl06 := 0
    $sl07 := 0
    $sl08 := 0
    $sl09 := 0
    $sl10 := 0
    $sl11 := 0
    $sl09 := 1
    $solo := $gr09
    else
    $solo := -1
    end if
    end on
    on ui_control($sl10)
    if ($sl10 = 1)
    $sl00 := 0
    $sl01 := 0
    $sl02 := 0
    $sl03 := 0
    $sl04 := 0
    $sl05 := 0
    $sl06 := 0
    $sl07 := 0
    $sl08 := 0
    $sl09 := 0
    $sl10 := 0
    $sl11 := 0
    $sl10 := 1
    $solo := $gr10
    else
    $solo := -1
    end if
    end on
    on ui_control($sl11)
    if ($sl11 = 1)
    $sl00 := 0
    $sl01 := 0
    $sl02 := 0
    $sl03 := 0
    $sl04 := 0
    $sl05 := 0
    $sl06 := 0
    $sl07 := 0
    $sl08 := 0
    $sl09 := 0
    $sl10 := 0
    $sl11 := 0
    $sl11 := 1
    $solo := $gr11
    else
    $solo := -1
    end if
    end on
    
    on ui_control($out00)
    if ($out00 < $NUM_OUTPUT_CHANNELS)
    set_engine_par($ENGINE_PAR_OUTPUT_CHANNEL, $out00, $gr00, -1, -1)
    end if
    end on
    
    on ui_control($out01)
    if ($out01 < $NUM_OUTPUT_CHANNELS)
    set_engine_par($ENGINE_PAR_OUTPUT_CHANNEL, $out01, $gr01, -1, -1)
    end if
    end on
    
    on ui_control($out02)
    if ($out02 < $NUM_OUTPUT_CHANNELS)
    set_engine_par($ENGINE_PAR_OUTPUT_CHANNEL, $out02, $gr02, -1, -1)
    end if
    end on
    
    on ui_control($out03)
    if ($out03 < $NUM_OUTPUT_CHANNELS)
    set_engine_par($ENGINE_PAR_OUTPUT_CHANNEL, $out03, $gr03, -1, -1)
    end if
    end on
    
    on ui_control($out04)
    if ($out04 < $NUM_OUTPUT_CHANNELS)
    set_engine_par($ENGINE_PAR_OUTPUT_CHANNEL, $out04, $gr04, -1, -1)
    end if
    end on
    
    on ui_control($out05)
    if ($out05 < $NUM_OUTPUT_CHANNELS)
    set_engine_par($ENGINE_PAR_OUTPUT_CHANNEL, $out05, $gr05, -1, -1)
    end if
    end on
    
    on ui_control($out06)
    if ($out06 < $NUM_OUTPUT_CHANNELS)
    set_engine_par($ENGINE_PAR_OUTPUT_CHANNEL, $out06, $gr06, -1, -1)
    end if
    end on
    
    on ui_control($out07)
    if ($out07 < $NUM_OUTPUT_CHANNELS)
    set_engine_par($ENGINE_PAR_OUTPUT_CHANNEL, $out07, $gr07, -1, -1)
    end if
    end on
    
    on ui_control($out08)
    if ($out08 < $NUM_OUTPUT_CHANNELS)
    set_engine_par($ENGINE_PAR_OUTPUT_CHANNEL, $out08, $gr08, -1, -1)
    end if
    end on
    
    on ui_control($out09)
    if ($out09 < $NUM_OUTPUT_CHANNELS)
    set_engine_par($ENGINE_PAR_OUTPUT_CHANNEL, $out09, $gr09, -1, -1)
    end if
    end on
    
    on ui_control($out10)
    if ($out10 < $NUM_OUTPUT_CHANNELS)
    set_engine_par($ENGINE_PAR_OUTPUT_CHANNEL, $out10, $gr10, -1, -1)
    end if
    end on
    
    on ui_control($out11)
    if ($out11 < $NUM_OUTPUT_CHANNELS)
    set_engine_par($ENGINE_PAR_OUTPUT_CHANNEL, $out11, $gr11, -1, -1)
    end if
    end on
    
    on ui_control($gr00)
    if ($gr00 >= 0)
    $pan00 := get_engine_par($ENGINE_PAR_PAN, $gr00, -1, -1)
    end if
    set_text($pan00_dsp, $pan00 / 10000 - 50)
    if ($gr00 >= 0)
    $lvl00 := get_engine_par($ENGINE_PAR_VOLUME, $gr00, -1, -1)
    end if
    set_text($lvl00_dsp, $lvl00 / 10000)
    if ($out00 < $NUM_OUTPUT_CHANNELS)
    $out00 := get_engine_par($ENGINE_PAR_OUTPUT_CHANNEL, $gr00, -1, -1)
    end if
    end on
    on ui_control($gr01)
    if ($gr01 >= 0)
    $pan01 := get_engine_par($ENGINE_PAR_PAN, $gr01, -1, -1)
    end if
    set_text($pan01_dsp, $pan01 / 10000 - 50)
    if ($gr01 >= 0)
    $lvl01 := get_engine_par($ENGINE_PAR_VOLUME, $gr01, -1, -1)
    end if
    set_text($lvl01_dsp, $lvl01 / 10000)
    if ($out01 < $NUM_OUTPUT_CHANNELS)
    $out01 := get_engine_par($ENGINE_PAR_OUTPUT_CHANNEL, $gr01, -1, -1)
    end if
    end on
    on ui_control($gr02)
    if ($gr02 >= 0)
    $pan02 := get_engine_par($ENGINE_PAR_PAN, $gr02, -1, -1)
    end if
    set_text($pan02_dsp, $pan02 / 10000 - 50)
    if ($gr02 >= 0)
    $lvl02 := get_engine_par($ENGINE_PAR_VOLUME, $gr02, -1, -1)
    end if
    set_text($lvl02_dsp, $lvl02 / 10000)
    if ($out02 < $NUM_OUTPUT_CHANNELS)
    $out02 := get_engine_par($ENGINE_PAR_OUTPUT_CHANNEL, $gr02, -1, -1)
    end if
    end on
    on ui_control($gr03)
    if ($gr03 >= 0)
    $pan03 := get_engine_par($ENGINE_PAR_PAN, $gr03, -1, -1)
    end if
    set_text($pan03_dsp, $pan03 / 10000 - 50)
    if ($gr03 >= 0)
    $lvl03 := get_engine_par($ENGINE_PAR_VOLUME, $gr03, -1, -1)
    end if
    set_text($lvl03_dsp, $lvl03 / 10000)
    if ($out03 < $NUM_OUTPUT_CHANNELS)
    $out03 := get_engine_par($ENGINE_PAR_OUTPUT_CHANNEL, $gr03, -1, -1)
    end if
    end on
    on ui_control($gr04)
    if ($gr04 >= 0)
    $pan04 := get_engine_par($ENGINE_PAR_PAN, $gr04, -1, -1)
    end if
    set_text($pan04_dsp, $pan04 / 10000 - 50)
    if ($gr04 >= 0)
    $lvl04 := get_engine_par($ENGINE_PAR_VOLUME, $gr04, -1, -1)
    end if
    set_text($lvl04_dsp, $lvl04 / 10000)
    if ($out04 < $NUM_OUTPUT_CHANNELS)
    $out04 := get_engine_par($ENGINE_PAR_OUTPUT_CHANNEL, $gr04, -1, -1)
    end if
    end on
    on ui_control($gr05)
    if ($gr05 >= 0)
    $pan05 := get_engine_par($ENGINE_PAR_PAN, $gr05, -1, -1)
    end if
    set_text($pan05_dsp, $pan05 / 10000 - 50)
    if ($gr05 >= 0)
    $lvl05 := get_engine_par($ENGINE_PAR_VOLUME, $gr05, -1, -1)
    end if
    set_text($lvl05_dsp, $lvl05 / 10000)
    if ($out05 < $NUM_OUTPUT_CHANNELS)
    $out05 := get_engine_par($ENGINE_PAR_OUTPUT_CHANNEL, $gr05, -1, -1)
    end if
    end on
    on ui_control($gr06)
    if ($gr06 >= 0)
    $pan06 := get_engine_par($ENGINE_PAR_PAN, $gr06, -1, -1)
    end if
    set_text($pan06_dsp, $pan06 / 10000 - 50)
    if ($gr06 >= 0)
    $lvl06 := get_engine_par($ENGINE_PAR_VOLUME, $gr06, -1, -1)
    end if
    set_text($lvl06_dsp, $lvl06 / 10000)
    if ($out06 < $NUM_OUTPUT_CHANNELS)
    $out06 := get_engine_par($ENGINE_PAR_OUTPUT_CHANNEL, $gr06, -1, -1)
    end if
    end on
    on ui_control($gr07)
    if ($gr07 >= 0)
    $pan07 := get_engine_par($ENGINE_PAR_PAN, $gr07, -1, -1)
    end if
    set_text($pan07_dsp, $pan07 / 10000 - 50)
    if ($gr07 >= 0)
    $lvl07 := get_engine_par($ENGINE_PAR_VOLUME, $gr07, -1, -1)
    end if
    set_text($lvl07_dsp, $lvl07 / 10000)
    if ($out07 < $NUM_OUTPUT_CHANNELS)
    $out07 := get_engine_par($ENGINE_PAR_OUTPUT_CHANNEL, $gr07, -1, -1)
    end if
    end on
    on ui_control($gr08)
    if ($gr08 >= 0)
    $pan08 := get_engine_par($ENGINE_PAR_PAN, $gr08, -1, -1)
    end if
    set_text($pan08_dsp, $pan08 / 10000 - 50)
    if ($gr08 >= 0)
    $lvl08 := get_engine_par($ENGINE_PAR_VOLUME, $gr08, -1, -1)
    end if
    set_text($lvl08_dsp, $lvl08 / 10000)
    if ($out08 < $NUM_OUTPUT_CHANNELS)
    $out08 := get_engine_par($ENGINE_PAR_OUTPUT_CHANNEL, $gr08, -1, -1)
    end if
    end on
    on ui_control($gr09)
    if ($gr09 >= 0)
    $pan09 := get_engine_par($ENGINE_PAR_PAN, $gr09, -1, -1)
    end if
    set_text($pan09_dsp, $pan09 / 10000 - 50)
    if ($gr09 >= 0)
    $lvl09 := get_engine_par($ENGINE_PAR_VOLUME, $gr09, -1, -1)
    end if
    set_text($lvl09_dsp, $lvl09 / 10000)
    if ($out09 < $NUM_OUTPUT_CHANNELS)
    $out09 := get_engine_par($ENGINE_PAR_OUTPUT_CHANNEL, $gr09, -1, -1)
    end if
    end on
    on ui_control($gr10)
    if ($gr10 >= 0)
    $pan10 := get_engine_par($ENGINE_PAR_PAN, $gr10, -1, -1)
    end if
    set_text($pan10_dsp, $pan10 / 10000 - 50)
    if ($gr10 >= 0)
    $lvl10 := get_engine_par($ENGINE_PAR_VOLUME, $gr10, -1, -1)
    end if
    set_text($lvl10_dsp, $lvl10 / 10000)
    if ($out10 < $NUM_OUTPUT_CHANNELS)
    $out10 := get_engine_par($ENGINE_PAR_OUTPUT_CHANNEL, $gr10, -1, -1)
    end if
    end on
    on ui_control($gr11)
    if ($gr11 >= 0)
    $pan11 := get_engine_par($ENGINE_PAR_PAN, $gr11, -1, -1)
    end if
    set_text($pan11_dsp, $pan11 / 10000 - 50)
    if ($gr11 >= 0)
    $lvl11 := get_engine_par($ENGINE_PAR_VOLUME, $gr11, -1, -1)
    end if
    set_text($lvl11_dsp, $lvl11 / 10000)
    if ($out11 < $NUM_OUTPUT_CHANNELS)
    $out11 := get_engine_par($ENGINE_PAR_OUTPUT_CHANNEL, $gr11, -1, -1)
    end if
    end on
    
    
    
    
    
     
  5. Kingvrage

    Kingvrage Producer

    Joined:
    Mar 1, 2016
    Messages:
    221
    Likes Received:
    81
    Location:
    nowhere
    Im so lost
     
Loading...
Similar Threads - Drum Mapping Kontakt Forum Date
Help with Kontakt drum libraries mapping Samplers, Synthesizers Mar 21, 2017
Superior Drummer 3.1.4 Crash with Abbey Road Mapping Software Nov 27, 2019
Drum VSTi Midi Mapping Samplers, Synthesizers May 17, 2019
Mapping Drum Midi Samplers, Synthesizers May 7, 2014
Addictive Drums 2 problem on Mac Software Yesterday at 11:19 AM
Loading...