Sie sind auf Seite 1von 30

{************************************************

World Drums Main Script (3 octave version)


Author: Native Instruments
Written by: Nicki Marinic & Adam Hanley
Modified: August 8, 2009
*************************************************}
on init
message("")
make_perfview
set_script_title("Instrument")
set_ui_height_px(320)
declare const $ROOT_X := 66
declare const $ROOT_Y := 2
declare const $GRID_X := 92
declare const $GRID_Y := 21
declare $FONT_ID := 7
declare $FONT_ID_2 := 6
declare const $CREATE_AUTOMATION_ID := 0
declare $wait_time := 800 {Enter control label wait time}
declare $last_time
declare const $sound_eq_slot := 1
declare const $reverb_slot := 2
declare const $DRUM_INSTR := 36 {Enter number of drum instruments}
declare $count
declare !note_class[12]
!note_class[0] := "C"
!note_class[1] := "Db"
!note_class[2] := "D"
!note_class[3] := "Eb"
!note_class[4] := "E"
!note_class[5] := "F"
!note_class[6] := "Gb"
!note_class[7] := "G"
!note_class[8] := "Ab"
!note_class[9] := "A"
!note_class[10] := "Bb"
!note_class[11] := "B"
declare !note_names [128]
$count := 0
while ($count < 128)
!note_names[$count] := !note_class[$count mod 12] & (($count/12)
-2)
inc ($count)
end while
declare $selected_group
{----------VOICING START----------}
declare const $NUM_VOICING := 14
declare ui_switch $sel_by_midi
declare ui_menu $instr_menu_voicing
declare ui_slider $note_voicing (36,(36+$DRUM_INSTR-1))
declare ui_slider $level_voicing (0,1000000)
declare ui_slider $pan_voicing (0,1000000)
declare ui_slider $tune_voicing (0,1000000)
declare ui_slider $sound_voicing (0,100)
declare ui_label $lb_sel_by_midi (1,1)
declare ui_label $lb_instr_menu_voicing (1,1)
declare ui_label $lb_note_voicing (1,1)
declare ui_label $lb_level_voicing (1,1)
declare ui_label $lb_pan_voicing (1,1)
declare ui_label $lb_tune_voicing (1,1)
declare ui_label $lb_sound_voicing (1,1)
declare %voicing_id[$NUM_VOICING]
%voicing_id[0] := get_ui_id($sel_by_midi)
%voicing_id[1] := get_ui_id($instr_menu_voicing)
%voicing_id[2] := get_ui_id($note_voicing)
%voicing_id[3] := get_ui_id($level_voicing)
%voicing_id[4] := get_ui_id($pan_voicing)
%voicing_id[5] := get_ui_id($tune_voicing)
%voicing_id[6] := get_ui_id($sound_voicing)
%voicing_id[7] := get_ui_id($lb_sel_by_midi)
%voicing_id[8] := get_ui_id($lb_instr_menu_voicing)
%voicing_id[9] := get_ui_id($lb_note_voicing)
%voicing_id[10] := get_ui_id($lb_level_voicing)
%voicing_id[11] := get_ui_id($lb_pan_voicing)
%voicing_id[12] := get_ui_id($lb_tune_voicing)
%voicing_id[13] := get_ui_id($lb_sound_voicing)
{Set Text}
set_text($lb_sel_by_midi,"SEL BY MIDI")
set_text($lb_note_voicing,"NOTE")
set_text($lb_instr_menu_voicing,"SELECTED INSTRUMENT")
set_text($lb_level_voicing,"VOLUME")
set_text($lb_pan_voicing,"PAN")
set_text($lb_tune_voicing,"TUNE")
set_text($lb_sound_voicing,"SOUND")
set_control_par_str(%voicing_id[0],$CONTROL_PAR_TEXT,"")
$count := 0
while ($count < $DRUM_INSTR)
add_menu_item($instr_menu_voicing,group_name($count),$count)
inc($count)
end while
{Add Help}
set_control_help ($instr_menu_voicing,...
"Instrument Display: Displays the name of the selected drum inst
rument.")
set_control_help ($level_voicing,"Level: Sets the volume of the selected
drum instrument.")
set_control_help ($pan_voicing,"Pan: Sets the pan position of the select
ed drum instrument.")
set_control_help ($tune_voicing,"Tune: Sets the tuning of the selected d
rum instrument.")
set_control_help ($sound_voicing,"Sound: Morphs through EQ settings for
the selected drum instrument.")
set_control_help ($sel_by_midi,...
"Select by MIDI: Selects the displayed drum instrument's setting
s by incoming notes")
set_control_help ($note_voicing,"Note: Displays the note number of the s
elected drum instrument.")
{Place and Skin Controls}
move_control_px ($note_voicing,($GRID_X*5)-20,($GRID_Y*4)-10)
move_control_px ($sel_by_midi,($GRID_X*6)-25,($GRID_Y*3)+7)
move_control_px ($instr_menu_voicing,($GRID_X*3)-10,($GRID_Y*4)-3)
move_control_px ($level_voicing,($GRID_X*3)+2,($GRID_Y*6)+17)
move_control_px ($pan_voicing,($GRID_X*4)-8,($GRID_Y*6)+17)
move_control_px ($tune_voicing,($GRID_X*5)-17,($GRID_Y*6)+17)
move_control_px ($sound_voicing,($GRID_X*6)-27,($GRID_Y*6)+17)
set_control_par_str (%voicing_id[0],$CONTROL_PAR_PICTURE,"pv_world_switc
h_on_off")
set_control_par (%voicing_id[0],$CONTROL_PAR_HEIGHT,50)
set_control_par (%voicing_id[0],$CONTROL_PAR_WIDTH,32)
set_control_par_str (%voicing_id[1],$CONTROL_PAR_PICTURE,"pv_world_dropd
own")
set_control_par (%voicing_id[1],$CONTROL_PAR_WIDTH,138)
set_control_par (%voicing_id[1],$CONTROL_PAR_FONT_TYPE,$FONT_ID_2)
$count := 2
while ($count < 7)
if ($count = 2)
set_control_par_str (%voicing_id[$count],$CONTROL_PAR_PI
CTURE,"pv_world_knob_big")
else
set_control_par_str (%voicing_id[$count],$CONTROL_PAR_PI
CTURE,"pv_world_knob_small")
end if
set_control_par (%voicing_id[$count],$CONTROL_PAR_MOUSE_BEHAVIOU
R,-400)
inc($count)
end while
$count := 7
while ($count < 14)
if ($count = 7)
set_control_par(%voicing_id[$count],$CONTROL_PAR_POS_X,...
get_control_par(%voicing_id[$count-7],$CONTROL_PAR_POS_X
)-27)
set_control_par(%voicing_id[$count],$CONTROL_PAR_POS_Y,...
get_control_par(%voicing_id[$count-7],$CONTROL_PAR_POS_Y
)-19)
else
if ($count = 8)
set_control_par(%voicing_id[$count],$CONTROL_PAR_WIDTH,1
47)
set_control_par(%voicing_id[$count],$CONTROL_PAR_POS_X,.
..
get_control_par(%voicing_id[$count-7],$CONTROL_P
AR_POS_X)-4)
set_control_par(%voicing_id[$count],$CONTROL_PAR_POS_Y,.
..
get_control_par(%voicing_id[$count-7],$CONTROL_P
AR_POS_Y)-30)
else
if ($count = 9)
set_control_par(%voicing_id[$count],$CONTROL_PAR
_POS_X,...
get_control_par(%voicing_id[$count-7],$C
ONTROL_PAR_POS_X)-23)
set_control_par(%voicing_id[$count],$CONTROL_PAR
_POS_Y,...
get_control_par(%voicing_id[$count-7],$C
ONTROL_PAR_POS_Y)-23)
else
set_control_par(%voicing_id[$count],$CONTROL_PAR
_POS_X,...
get_control_par(%voicing_id[$count-7],$C
ONTROL_PAR_POS_X)-25)
set_control_par(%voicing_id[$count],$CONTROL_PAR
_POS_Y,...
get_control_par(%voicing_id[$count-7],$C
ONTROL_PAR_POS_Y)-18)
end if
end if
end if
set_control_par(%voicing_id[$count],$CONTROL_PAR_HIDE,$HIDE_PART
_BG)
set_control_par(%voicing_id[$count],$CONTROL_PAR_TEXT_ALIGNMENT,
1)
set_control_par(%voicing_id[$count],$CONTROL_PAR_FONT_TYPE,$FONT
_ID)
inc($count)
end while
{Set Controls}
$note_voicing := 36
$sel_by_midi := 1
make_persistent($sel_by_midi)
$instr_menu_voicing := $note_voicing - 36
$selected_group := $note_voicing - 36
set_control_par(get_ui_id($pan_voicing),$CONTROL_PAR_DEFAULT_VALUE,50000
0)
set_control_par(get_ui_id($tune_voicing),$CONTROL_PAR_DEFAULT_VALUE,5000
00)
set_control_par(get_ui_id($level_voicing),$CONTROL_PAR_DEFAULT_VALUE,630
000)
$level_voicing := _get_engine_par($ENGINE_PAR_VOLUME,$selected_group,-1,
-1)
$tune_voicing := _get_engine_par($ENGINE_PAR_TUNE,$selected_group,-1,-1)
$pan_voicing := _get_engine_par($ENGINE_PAR_PAN,$selected_group,-1,-1)
{Sound Control Elements}
declare %soundeqarr[10*10] := (...
{0} 183159,487305,500000, 476877,448242,500000, 942772,817383,500000,
...
{10} 183159,460938,500000, 476877,430664,500000, 942772,793945,333008,
...
{20} 183159,467773,333008, 476877,433594,500000, 942772,815430,181641,
...
{30} 183159,467773,333008, 476877,571289,591797, 942772,808594,194336,
...
{40} 183159,484375,500000, 476877,432617,417939, 942772,827148,500000,
...
{50} 183159,462891,600586, 476877,433594,332031, 942772,805664,569336,
...
{60} 183159,458008,586914, 708968,450195,332031, 942772,801758,583008,
...
{70} 214908,488281,171875, 693759,471680,500000, 942772,804688,500000,
...
{80} 45267,660156,500000, 408316, 6836,632813, 676028, 0,629688,
...
{90} 117792,219727,500000, 461200, 0,664063, 592848, 0,619922,
...
{100}211261,357422,177344, 425598, 31250,686523, 552339, 0,619922)
declare %engine_par[9] := (...
$ENGINE_PAR_FREQ1,$ENGINE_PAR_BW1,$ENGINE_PAR_GAIN1,...
$ENGINE_PAR_FREQ2,$ENGINE_PAR_BW2,$ENGINE_PAR_GAIN2,...
$ENGINE_PAR_FREQ3,$ENGINE_PAR_BW3,$ENGINE_PAR_GAIN3)
declare $helper_eq
declare $a_eq
declare $knob_eq
declare %sound_group[$DRUM_INSTR]
make_persistent(%sound_group)
read_persistent_var(%sound_group)
$sound_voicing := %sound_group[$selected_group]
$knob_eq := ($sound_voicing+10)*10
declare $index_1
declare $index_2

set_control_par_str(get_ui_id($note_voicing),$CONTROL_PAR_AUTOMATION_NAM
E,"Note")
set_control_par_str(get_ui_id($sel_by_midi),$CONTROL_PAR_AUTOMATION_NAME
,"Midi")
set_control_par_str(get_ui_id($level_voicing),$CONTROL_PAR_AUTOMATION_NA
ME,"Volume")
set_control_par_str(get_ui_id($pan_voicing),$CONTROL_PAR_AUTOMATION_NAME
,"Pan")
set_control_par_str(get_ui_id($tune_voicing),$CONTROL_PAR_AUTOMATION_NAM
E,"Tune")
set_control_par_str(get_ui_id($sound_voicing),$CONTROL_PAR_AUTOMATION_NA
ME,"Sound")
set_control_par_str(get_ui_id($note_voicing),$CONTROL_PAR_LABEL,!note_na
mes[$note_voicing])
set_control_par_str(get_ui_id($level_voicing),$CONTROL_PAR_LABEL,get_eng
ine_par_disp($ENGINE_PAR_VOLUME,$selected_group,-1,-1) & " dB")
set_control_par_str(get_ui_id($pan_voicing),$CONTROL_PAR_LABEL,get_engin
e_par_disp($ENGINE_PAR_PAN,$selected_group,-1,-1))
set_control_par_str(get_ui_id($tune_voicing),$CONTROL_PAR_LABEL,get_engi
ne_par_disp($ENGINE_PAR_TUNE,$selected_group,-1,-1) & " st")
set_control_par_str(get_ui_id($sound_voicing),$CONTROL_PAR_LABEL,$sound_
voicing & " %")
{----------VOICING END----------}
{----------ARTICULATIONS START----------}
declare const $NUM_ARTIC := 7
declare ui_slider $type_artic (0,10)
declare ui_slider $knob_1_artic (0,100)
declare ui_slider $knob_2_artic (0,100)
declare ui_label $lb_type_artic (1,1)
declare ui_label $lb_knob_1_artic (1,1)
declare ui_label $lb_knob_2_artic (1,1)
declare %artic_id[$NUM_ARTIC]
%artic_id[0] := get_ui_id($type_artic)
%artic_id[1] := get_ui_id($knob_1_artic)
%artic_id[2] := get_ui_id($knob_2_artic)
%artic_id[3] := get_ui_id($lb_type_artic)
%artic_id[4] := get_ui_id($lb_knob_1_artic)
%artic_id[5] := get_ui_id($lb_knob_2_artic)
move_control_px ($lb_type_artic,78,($GRID_Y*2)+9)
move_control_px ($type_artic,108,($GRID_Y*3)+11)
move_control_px ($knob_1_artic,($GRID_X*1)-22,($GRID_Y*7)-4)
move_control_px ($knob_2_artic,($GRID_X*1)+61,($GRID_Y*7)-4)
$count := 0
while ($count < 3)
if ($count = 0)
set_control_par_str(%artic_id[$count],$CONTROL_PAR_PICTU
RE,"pv_world_knob_big")
else
set_control_par_str(%artic_id[$count],$CONTROL_PAR_PICTU
RE,"pv_world_knob_small")
end if
set_control_par(%artic_id[$count],$CONTROL_PAR_MOUSE_BEHAVIOUR,-
400)
inc($count)
end while
$count := 3
while ($count < 6)
set_control_par(%artic_id[$count],$CONTROL_PAR_HIDE,$HIDE_PART_B
G)
set_control_par(%artic_id[$count],$CONTROL_PAR_TEXT_ALIGNMENT,1)
set_control_par(%artic_id[$count],$CONTROL_PAR_FONT_TYPE,$FONT_I
D)
if($count > 3)
set_control_par(%artic_id[$count],$CONTROL_PAR_POS_X,...
get_control_par(%artic_id[$count-3],$CONTROL_PAR
_POS_X)-26)
set_control_par(%artic_id[$count],$CONTROL_PAR_POS_Y,...
get_control_par(%artic_id[$count-3],$CONTROL_PAR
_POS_Y)-18)
else
set_control_par(%artic_id[$count],$CONTROL_PAR_WIDTH,100
)
end if
inc($count)
end while
set_text($lb_type_artic,"ARTICULATION")
set_control_help ($type_artic,...
"Articulation: Chooses an articulation for the selected drum ins
trument.")
set_control_help ($knob_1_artic,"Variation 1: Adjusts the selected artic
ulation.")
set_control_help ($knob_2_artic,"Variation 2: Adjusts the selected artic
ulation.")
declare !artic_name[11]
!artic_name[0] := "OFF"
!artic_name[1] := "ALTERNATE"
!artic_name[2] := "RELEASE"
!artic_name[3] := "FLAM"
!artic_name[4] := "DRAG"
!artic_name[5] := "RUFF"
!artic_name[6] := "ROLL"
!artic_name[7] := "BUZZ"
!artic_name[8] := "MUTED"
!artic_name[9] := "SPEED"
!artic_name[10] := "GEIGER"
declare !Knob1_names [11]
!Knob1_names[0] := "N/A"
!Knob1_names[1] := "DEPTH"
!Knob1_names[2] := "VARIATION"
!Knob1_names[3] := "SPEED"
!Knob1_names[4] := "SPEED"
!Knob1_names[5] := "SPEED"
!Knob1_names[6] := "SPEED"
!Knob1_names[7] := "GRIP"
!Knob1_names[8] := "ATTACK"
!Knob1_names[9] := "SPEED"
!Knob1_names[10] := "RADIAT."
declare !Knob2_names [11]
!Knob2_names[0] := "N/A"
!Knob2_names[1] := "RANDOM"
!Knob2_names[2] := "VELOCITY"
!Knob2_names[3] := "DYNAMIC"
!Knob2_names[4] := "DYNAMIC"
!Knob2_names[5] := "DYNAMIC"
!Knob2_names[6] := "DYNAMIC"
!Knob2_names[7] := "PRESSURE"
!Knob2_names[8] := "DECAY"
!Knob2_names[9] := "DURATION"
!Knob2_names[10] := "DECAY"
declare %Var_0_a_store[128] := (50)
declare %Var_1_a_store[128] := (50)
declare %Var_2_a_store[128] := (50)
declare %Var_3_a_store[128] := (50)
declare %Var_4_a_store[128] := (50)
declare %Var_5_a_store[128] := (50)
declare %Var_6_a_store[128] := (50)
declare %Var_7_a_store[128] := (50)
declare %Var_8_a_store[128] := (50)
declare %Var_9_a_store[128] := (50)
declare %Var_0_b_store[128] := (50)
declare %Var_1_b_store[128] := (50)
declare %Var_2_b_store[128] := (50)
declare %Var_3_b_store[128] := (50)
declare %Var_4_b_store[128] := (50)
declare %Var_5_b_store[128] := (50)
declare %Var_6_b_store[128] := (50)
declare %Var_7_b_store[128] := (50)
declare %Var_8_b_store[128] := (50)
declare %Var_9_b_store[128] := (50)
declare %artic_menu_store[128]
make_persistent(%Var_0_a_store)
make_persistent(%Var_1_a_store)
make_persistent(%Var_2_a_store)
make_persistent(%Var_3_a_store)
make_persistent(%Var_4_a_store)
make_persistent(%Var_5_a_store)
make_persistent(%Var_6_a_store)
make_persistent(%Var_7_a_store)
make_persistent(%Var_8_a_store)
make_persistent(%Var_9_a_store)
make_persistent(%Var_0_b_store)
make_persistent(%Var_1_b_store)
make_persistent(%Var_2_b_store)
make_persistent(%Var_3_b_store)
make_persistent(%Var_4_b_store)
make_persistent(%Var_5_b_store)
make_persistent(%Var_6_b_store)
make_persistent(%Var_7_b_store)
make_persistent(%Var_8_b_store)
make_persistent(%Var_9_b_store)
make_persistent(%artic_menu_store)
_pgs_create_key(VAR_0_A_STORE, 128)
_pgs_create_key(VAR_1_A_STORE, 128)
_pgs_create_key(VAR_2_A_STORE, 128)
_pgs_create_key(VAR_3_A_STORE, 128)
_pgs_create_key(VAR_4_A_STORE, 128)
_pgs_create_key(VAR_5_A_STORE, 128)
_pgs_create_key(VAR_6_A_STORE, 128)
_pgs_create_key(VAR_7_A_STORE, 128)
_pgs_create_key(VAR_8_A_STORE, 128)
_pgs_create_key(VAR_9_A_STORE, 128)
_pgs_create_key(VAR_0_B_STORE, 128)
_pgs_create_key(VAR_1_B_STORE, 128)
_pgs_create_key(VAR_2_B_STORE, 128)
_pgs_create_key(VAR_3_B_STORE, 128)
_pgs_create_key(VAR_4_B_STORE, 128)
_pgs_create_key(VAR_5_B_STORE, 128)
_pgs_create_key(VAR_6_B_STORE, 128)
_pgs_create_key(VAR_7_B_STORE, 128)
_pgs_create_key(VAR_8_B_STORE, 128)
_pgs_create_key(VAR_9_B_STORE, 128)
_pgs_create_key(ARTIC_MENU_STORE, 128)
_read_persistent_var(%Var_0_a_store)
_read_persistent_var(%Var_1_a_store)
_read_persistent_var(%Var_2_a_store)
_read_persistent_var(%Var_3_a_store)
_read_persistent_var(%Var_4_a_store)
_read_persistent_var(%Var_5_a_store)
_read_persistent_var(%Var_6_a_store)
_read_persistent_var(%Var_7_a_store)
_read_persistent_var(%Var_8_a_store)
_read_persistent_var(%Var_9_a_store)
_read_persistent_var(%Var_0_b_store)
_read_persistent_var(%Var_1_b_store)
_read_persistent_var(%Var_2_b_store)
_read_persistent_var(%Var_3_b_store)
_read_persistent_var(%Var_4_b_store)
_read_persistent_var(%Var_5_b_store)
_read_persistent_var(%Var_6_b_store)
_read_persistent_var(%Var_7_b_store)
_read_persistent_var(%Var_8_b_store)
_read_persistent_var(%Var_9_b_store)
_read_persistent_var(%artic_menu_store)
$count := 0
while($count < 128)
_pgs_set_key_val(VAR_0_A_STORE,$count,%Var_0_a_store[$count])
_pgs_set_key_val(VAR_1_A_STORE,$count,%var_1_a_store[$count])
_pgs_set_key_val(VAR_2_A_STORE,$count,%var_2_a_store[$count])
_pgs_set_key_val(VAR_3_A_STORE,$count,%var_3_a_store[$count])
_pgs_set_key_val(VAR_4_A_STORE,$count,%var_4_a_store[$count])
_pgs_set_key_val(VAR_5_A_STORE,$count,%var_5_a_store[$count])
_pgs_set_key_val(VAR_6_A_STORE,$count,%var_6_a_store[$count])
_pgs_set_key_val(VAR_7_A_STORE,$count,%var_7_a_store[$count])
_pgs_set_key_val(VAR_8_A_STORE,$count,%var_8_a_store[$count])
_pgs_set_key_val(VAR_9_A_STORE,$count,%var_9_a_store[$count])
_pgs_set_key_val(VAR_0_B_STORE,$count,%var_0_b_store[$count])
_pgs_set_key_val(VAR_1_B_STORE,$count,%var_1_b_store[$count])
_pgs_set_key_val(VAR_2_B_STORE,$count,%var_2_b_store[$count])
_pgs_set_key_val(VAR_3_B_STORE,$count,%var_3_b_store[$count])
_pgs_set_key_val(VAR_4_B_STORE,$count,%var_4_b_store[$count])
_pgs_set_key_val(VAR_5_B_STORE,$count,%var_5_b_store[$count])
_pgs_set_key_val(VAR_6_B_STORE,$count,%var_6_b_store[$count])
_pgs_set_key_val(VAR_7_B_STORE,$count,%var_7_b_store[$count])
_pgs_set_key_val(VAR_8_B_STORE,$count,%var_8_b_store[$count])
_pgs_set_key_val(VAR_9_B_STORE,$count,%var_9_b_store[$count])
_pgs_set_key_val(ARTIC_MENU_STORE,$count,%artic_menu_store[$coun
t])
inc($count)
end while
$type_artic := _pgs_get_key_val(ARTIC_MENU_STORE,$note_voicing)
select ($type_artic)
case 0
$knob_1_artic := 0
$knob_2_artic := 0
case 1
$knob_1_artic := _pgs_get_key_val(VAR_0_A_STORE,$note_vo
icing)
$knob_2_artic := _pgs_get_key_val(VAR_0_B_STORE,$note_vo
icing)
case 2
$knob_1_artic := _pgs_get_key_val(VAR_1_A_STORE,$note_vo
icing)
$knob_2_artic := _pgs_get_key_val(VAR_1_B_STORE,$note_vo
icing)
case 3
$knob_1_artic := _pgs_get_key_val(VAR_2_A_STORE,$note_vo
icing)
$knob_2_artic := _pgs_get_key_val(VAR_2_B_STORE,$note_vo
icing)
case 4
$knob_1_artic := _pgs_get_key_val(VAR_3_A_STORE,$note_vo
icing)
$knob_2_artic := _pgs_get_key_val(VAR_3_B_STORE,$note_vo
icing)
case 5
$knob_1_artic := _pgs_get_key_val(VAR_4_A_STORE,$note_vo
icing)
$knob_2_artic := _pgs_get_key_val(VAR_4_B_STORE,$note_vo
icing)
case 6
$knob_1_artic := _pgs_get_key_val(VAR_5_A_STORE,$note_vo
icing)
$knob_2_artic := _pgs_get_key_val(VAR_5_B_STORE,$note_vo
icing)
case 7
$knob_1_artic := _pgs_get_key_val(VAR_6_A_STORE,$note_vo
icing)
$knob_2_artic := _pgs_get_key_val(VAR_6_B_STORE,$note_vo
icing)
case 8
$knob_1_artic := _pgs_get_key_val(VAR_7_A_STORE,$note_vo
icing)
$knob_2_artic := _pgs_get_key_val(VAR_7_B_STORE,$note_vo
icing)
case 9
$knob_1_artic := _pgs_get_key_val(VAR_8_A_STORE,$note_vo
icing)
$knob_2_artic := _pgs_get_key_val(VAR_8_B_STORE,$note_vo
icing)
case 10
$knob_1_artic := _pgs_get_key_val(VAR_9_A_STORE,$note_vo
icing)
$knob_2_artic := _pgs_get_key_val(VAR_9_B_STORE,$note_vo
icing)
end select
set_text ($lb_knob_1_artic,!Knob1_names[$type_artic])
set_text ($lb_knob_2_artic,!Knob2_names[$type_artic])
set_control_par_str(get_ui_id($type_artic),$CONTROL_PAR_AUTOMATION_NAME,
"Articulation")
set_control_par_str(get_ui_id($knob_1_artic),$CONTROL_PAR_AUTOMATION_NAM
E,"Art 1")
set_control_par_str(get_ui_id($knob_2_artic),$CONTROL_PAR_AUTOMATION_NAM
E,"Art 2")
read_persistent_var($type_artic)
read_persistent_var($knob_1_artic)
read_persistent_var($knob_2_artic)
set_control_par_str(get_ui_id($type_artic),$CONTROL_PAR_LABEL,!artic_nam
e[$type_artic])
set_control_par_str(get_ui_id($knob_1_artic),$CONTROL_PAR_LABEL,$knob_1_
artic & " %")
set_control_par_str(get_ui_id($knob_2_artic),$CONTROL_PAR_LABEL,$knob_2_
artic & " %")

{----------ARTICULATIONS END----------}
{----------VOL ENV START----------}
declare const $NUM_ENV := 6
declare $env_idx
$env_idx := find_mod(0,"VOL_ENV")
declare ui_slider $attack_env (0,1000000)
declare ui_slider $hold_env (0,1000000)
declare ui_slider $decay_env (0,1000000)
declare ui_label $lb_attack_env (1,1)
declare ui_label $lb_hold_env (1,1)
declare ui_label $lb_decay_env (1,1)
declare %env_id[$NUM_ENV]
%env_id[0] := get_ui_id($attack_env)
%env_id[1] := get_ui_id($hold_env)
%env_id[2] := get_ui_id($decay_env)
%env_id[3] := get_ui_id($lb_attack_env)
%env_id[4] := get_ui_id($lb_hold_env)
%env_id[5] := get_ui_id($lb_decay_env)

set_text($lb_attack_env,"ATTACK")
set_text($lb_hold_env,"HOLD")
set_text($lb_decay_env,"DECAY")
$count := 0
while($count<3)
set_control_par(%env_id[$count],$CONTROL_PAR_POS_X,(70+($count*8
3)))
set_control_par(%env_id[$count],$CONTROL_PAR_POS_Y,($GRID_Y*11)+
6)
set_control_par(%env_id[$count],$CONTROL_PAR_MOUSE_BEHAVIOUR,-40
0)
set_control_par_str(%env_id[$count],$CONTROL_PAR_PICTURE,"pv_wor
ld_knob_small")
inc($count)
end while
$count := 3
while($count< 6)
set_control_par(%env_id[$count], $CONTROL_PAR_HIDE, $HIDE_PART_B
G)
set_control_par(%env_id[$count], $CONTROL_PAR_TEXT_ALIGNMENT, 1)
set_control_par(%env_id[$count], $CONTROL_PAR_FONT_TYPE,$FONT_ID
)
set_control_par(%env_id[$count], $CONTROL_PAR_POS_X,...
get_control_par(%env_id[$count-3],$CONTROL_PAR_POS_X)-26
)
set_control_par(%env_id[$count], $CONTROL_PAR_POS_Y,...
get_control_par(%env_id[$count-3],$CONTROL_PAR_POS_Y)-18
)
inc($count)
end while
$attack_env := _get_engine_par($ENGINE_PAR_ATTACK,$selected_group,$env_i
dx,-1)
$hold_env := _get_engine_par($ENGINE_PAR_HOLD,$selected_group,$env_idx,-
1)
$decay_env := _get_engine_par($ENGINE_PAR_DECAY,$selected_group,$env_idx
,-1)
set_control_par(get_ui_id($hold_env),$CONTROL_PAR_DEFAULT_VALUE,500000)
set_control_par(get_ui_id($decay_env),$CONTROL_PAR_DEFAULT_VALUE,1000000
)
set_control_par_str(get_ui_id($attack_env),$CONTROL_PAR_AUTOMATION_NAME,
"Attack")
set_control_par_str(get_ui_id($hold_env),$CONTROL_PAR_AUTOMATION_NAME,"H
old")
set_control_par_str(get_ui_id($decay_env),$CONTROL_PAR_AUTOMATION_NAME,"
Decay")
set_control_par_str(get_ui_id($attack_env),$CONTROL_PAR_LABEL,get_engine
_par_disp($ENGINE_PAR_ATTACK,$selected_group,$env_idx,-1) & " ms")
set_control_par_str(get_ui_id($hold_env),$CONTROL_PAR_LABEL,get_engine_p
ar_disp($ENGINE_PAR_HOLD,$selected_group,$env_idx,-1) & " ms")
set_control_par_str(get_ui_id($decay_env),$CONTROL_PAR_LABEL,get_engine_
par_disp($ENGINE_PAR_DECAY,$selected_group,$env_idx,-1) & " ms")
{----------VOL ENV END----------}
{----------MASTER REVERB FX START----------}
{POSITIONING OF CONTROL GROUP}
declare $x_grid_reverb := 2 {X Position of Control Group in grid}
declare $y_grid_reverb := 8 {Y Position of Control Group in grid}
declare $x_px_reverb := 0 {X Position Offset Control Group in pixel}
declare $y_px_reverb := 0 {Y Position Offset Control Group in pixel}
{DECLARATION AND UI_IDs}
declare const $NUM_REVERB := 14 {number of elements in this control grou
p}
declare ui_label $lb_wetdry_reverb (1,1)
declare ui_label $image_reverb (1,1)
declare ui_slider $wetdry_reverb (0, 500000)
declare ui_menu $category_reverb
declare ui_menu $hall_reverb
declare ui_menu $cathedral_reverb
declare ui_menu $club_reverb
declare ui_menu $room_reverb
declare ui_menu $l300_reverb
declare ui_menu $plate_reverb
declare ui_menu $quadstick_reverb
declare ui_menu $brt7_reverb
declare ui_menu $cabinet_reverb
declare ui_switch $onoff_reverb
declare %reverb_id[$NUM_REVERB]
%reverb_id[0] := get_ui_id($lb_wetdry_reverb)
%reverb_id[1] := get_ui_id($image_reverb)
%reverb_id[2] := get_ui_id($wetdry_reverb)
%reverb_id[3] := get_ui_id($category_reverb)
%reverb_id[4] := get_ui_id($hall_reverb)
%reverb_id[5] := get_ui_id($cathedral_reverb)
%reverb_id[6] := get_ui_id($club_reverb)
%reverb_id[7] := get_ui_id($room_reverb)
%reverb_id[8] := get_ui_id($l300_reverb)
%reverb_id[9] := get_ui_id($brt7_reverb)
%reverb_id[10] := get_ui_id($quadstick_reverb)
%reverb_id[11] := get_ui_id($plate_reverb)
%reverb_id[12] := get_ui_id($cabinet_reverb)
%reverb_id[13] := get_ui_id($onoff_reverb)
{VARIOUS ATTRIBUTES}
set_text($lb_wetdry_reverb,"DRY/WET")
set_text($image_reverb,"")
set_control_par(%reverb_id[0], $CONTROL_PAR_HIDE, $HIDE_PART_BG)
set_control_par(%reverb_id[0], $CONTROL_PAR_FONT_TYPE, $FONT_ID)
set_control_par_str(%reverb_id[1], $CONTROL_PAR_PICTURE, "pv_global_reve
rb_animation_small")
set_control_par_str(%reverb_id[2], $CONTROL_PAR_PICTURE, "pv_world_knob_
small")
set_control_par_str(%reverb_id[13], $CONTROL_PAR_PICTURE, "pv_world_swit
ch_on_off")
set_control_par_str(%reverb_id[13], $CONTROL_PAR_TEXT, "")
set_control_par(%reverb_id[13], $CONTROL_PAR_HEIGHT, 50)
set_control_par(%reverb_id[13], $CONTROL_PAR_WIDTH, 32)
set_control_par(%reverb_id[2], $CONTROL_PAR_MOUSE_BEHAVIOUR, -400)
$count := 3
while ($count < 13)
set_control_par_str(%reverb_id[$count], $CONTROL_PAR_TEXT, "")
set_control_par(%reverb_id[$count], $CONTROL_PAR_FONT_TYPE, $FON
T_ID_2)
set_control_par(%reverb_id[$count], $CONTROL_PAR_WIDTH, 90)
set_control_par_str(%reverb_id[$count], $CONTROL_PAR_PICTURE, "p
v_world_dropdown")
inc($count)
end while
{POSITIONING OF INDIVIDUAL CONTROLS}
move_control_px($lb_wetdry_reverb,($GRID_X * 3) + 11, ($GRID_Y * 3) + 7)
move_control_px($image_reverb,($GRID_X * 2) - 8, ($GRID_Y * 4) - 6)
move_control_px($wetdry_reverb,($GRID_X * 3) + 25, ($GRID_Y * 4) + 4)
move_control_px($category_reverb,($GRID_X * 2) - 10, ($GRID_Y * 3) - 1)
move_control_px($onoff_reverb,($GRID_X * 4) + 1, ($GRID_Y * 4) - 4)
$count := 4
while ($count < 13)
set_control_par(%reverb_id[$count], $CONTROL_PAR_POS_X, ($GRID_X
* 2) - 10)
set_control_par(%reverb_id[$count], $CONTROL_PAR_POS_Y, ($GRID_Y
* 5) + 17)
inc($count)
end while
{Other}
$wetdry_reverb := _get_engine_par($ENGINE_PAR_SEND_EFFECT_OUTPUT_GAIN, -
1,$reverb_slot,1)
$onoff_reverb := (_get_engine_par($ENGINE_PAR_SEND_EFFECT_BYPASS, -1,$re
verb_slot,1)+1) mod 2
declare %subcat_menu_id[9]
%subcat_menu_id[0] := get_ui_id($hall_reverb)
%subcat_menu_id[1] := get_ui_id($cathedral_reverb)
%subcat_menu_id[2] := get_ui_id($club_reverb)
%subcat_menu_id[3] := get_ui_id($room_reverb)
%subcat_menu_id[4] := get_ui_id($l300_reverb)
%subcat_menu_id[6] := get_ui_id($quadstick_reverb)
%subcat_menu_id[7] := get_ui_id($brt7_reverb)
%subcat_menu_id[5] := get_ui_id($plate_reverb)
%subcat_menu_id[8] := get_ui_id($cabinet_reverb)
{Fill the menus}
add_menu_item($category_reverb, "Concert Hall", 0)
add_menu_item($category_reverb, "Cathedral", 1)
add_menu_item($category_reverb, "Club", 2)
add_menu_item($category_reverb, "Room", 3)
add_menu_item($category_reverb, "L300", 4)
add_menu_item($category_reverb, "Quadstick", 6)
add_menu_item($category_reverb, "BRT 7", 7)
add_menu_item($category_reverb, "Plate", 5)
add_menu_item($category_reverb, "Cabinet", 8)
declare !ir_path[68]
!ir_path[0] := "presets/effects/convolution/<<<K4IR.nkx>>>/K4 IR Samples
/Concert Hall A.wav"
!ir_path[1] := "presets/effects/convolution/<<<K4IR.nkx>>>/K4 IR Samples
/Concert Hall B.wav"
!ir_path[2] := "presets/effects/convolution/<<<K4IR.nkx>>>/K4 IR Samples
/Exhibition Hall.wav"
!ir_path[3] := "presets/effects/convolution/<<<K4IR.nkx>>>/K4 IR Samples
/Cathedral A.wav"
!ir_path[4] := "presets/effects/convolution/<<<K4IR.nkx>>>/K4 IR Samples
/Cathedral B.wav"
!ir_path[5] := "presets/effects/convolution/10 Big Rooms/IR Samples/ndb_
cathedral_ir_32bit.wav"
!ir_path[6] := "presets/effects/convolution/<<<K4IR.nkx>>>/K4 IR Samples
/Club A.wav"
!ir_path[7] := "presets/effects/convolution/<<<K4IR.nkx>>>/K4 IR Samples
/Club B.wav"
!ir_path[8] := "presets/effects/convolution/<<<K4IR.nkx>>>/K4 IR Samples
/Tavern Close.wav"
!ir_path[9] := "presets/effects/convolution/<<<K4IR.nkx>>>/K4 IR Samples
/Tavern Near.wav"
!ir_path[10] := "presets/effects/convolution/<<<K4IR.nkx>>>/K4 IR Sample
s/Tavern Medium.wav"
!ir_path[11] := "presets/effects/convolution/<<<K4IR.nkx>>>/K4 IR Sample
s/Tavern Far.wav"
!ir_path[12] := "presets/effects/convolution/<<<K4IR.nkx>>>/K4 IR Sample
s/Auditorium A.wav"
!ir_path[13] := "presets/effects/convolution/<<<K4IR.nkx>>>/K4 IR Sample
s/Auditorium B.wav"
!ir_path[14] := "presets/effects/convolution/<<<K4IR.nkx>>>/K4 IR Sample
s/Chamber A.wav"
!ir_path[15] := "presets/effects/convolution/<<<K4IR.nkx>>>/K4 IR Sample
s/Chamber B.wav"
!ir_path[16] := "presets/effects/convolution/<<<K4IR.nkx>>>/K4 IR Sample
s/Rehearsal Room.wav"
!ir_path[17] := "presets/effects/convolution/<<<K4IR.nkx>>>/K4 IR Sample
s/Hard Wood Room B.wav"
!ir_path[18] := "presets/effects/convolution/<<<K4IR.nkx>>>/K4 IR Sample
s/Music Studio C.wav"
!ir_path[19] := "presets/effects/convolution/<<<K4IR.nkx>>>/K4 IR Sample
s/Small Room A.wav"
!ir_path[20] := "presets/effects/convolution/<<<K4IR.nkx>>>/K4 IR Sample
s/Small Room B.wav"
!ir_path[21] := "presets/effects/convolution/<<<K4IR.nkx>>>/K4 IR Sample
s/L300 Large Hall.wav"
!ir_path[22] := "presets/effects/convolution/<<<K4IR.nkx>>>/K4 IR Sample
s/L300 Gated Hall.wav"
!ir_path[23] := "presets/effects/convolution/<<<K4IR.nkx>>>/K4 IR Sample
s/L300 Large Room.wav"
!ir_path[24] := "presets/effects/convolution/<<<K4IR.nkx>>>/K4 IR Sample
s/L300 Large Chamber.wav"
!ir_path[25] := "presets/effects/convolution/<<<K4IR.nkx>>>/K4 IR Sample
s/L300 Studio C.wav"
!ir_path[26] := "presets/effects/convolution/<<<K4IR.nkx>>>/K4 IR Sample
s/L300 Contem-Plate.wav"
!ir_path[27] := "presets/effects/convolution/<<<K4IR.nkx>>>/K4 IR Sample
s/L300 Space & Echoes.wav"
!ir_path[28] := "presets/effects/convolution/<<<K4IR.nkx>>>/K4 IR Sample
s/L300 Medium Stop.wav"
!ir_path[29] := "presets/effects/convolution/<<<K4IR.nkx>>>/K4 IR Sample
s/L300 Drum Cave.wav"
!ir_path[30] := "presets/effects/convolution/<<<K4IR.nkx>>>/K4 IR Sample
s/L300 Large Ambience.wav"
!ir_path[31] := "presets/effects/convolution/<<<K4IR.nkx>>>/K4 IR Sample
s/L300 Smooth Ambience.wav"
!ir_path[32] := "presets/effects/convolution/<<<K4IR.nkx>>>/K4 IR Sample
s/L300 Ambience Wave.wav"
!ir_path[33] := "presets/effects/convolution/<<<K4IR.nkx>>>/K4 IR Sample
s/L300 Le Gate.wav"
!ir_path[34] := "presets/effects/convolution/<<<K4IR.nkx>>>/K4 IR Sample
s/Quadstick Small - Basic.wav"
!ir_path[35] := "presets/effects/convolution/<<<K4IR.nkx>>>/K4 IR Sample
s/Quadstick Small - Disco.wav"
!ir_path[36] := "presets/effects/convolution/<<<K4IR.nkx>>>/K4 IR Sample
s/Quadstick Small - Funk.wav"
!ir_path[37] := "presets/effects/convolution/<<<K4IR.nkx>>>/K4 IR Sample
s/Quadstick Small - Funky Club.wav"
!ir_path[38] := "presets/effects/convolution/<<<K4IR.nkx>>>/K4 IR Sample
s/Quadstick Small - Hip Hop.wav"
!ir_path[39] := "presets/effects/convolution/<<<K4IR.nkx>>>/K4 IR Sample
s/Quadstick Small - Reggae Modern.wav"
!ir_path[40] := "presets/effects/convolution/<<<K4IR.nkx>>>/K4 IR Sample
s/Quadstick Small - RnB Neptunes.wav"
!ir_path[41] := "presets/effects/convolution/<<<K4IR.nkx>>>/K4 IR Sample
s/Quadstick Small - RnB Today 1.wav"
!ir_path[42] := "presets/effects/convolution/<<<K4IR.nkx>>>/K4 IR Sample
s/BRT 7 Ambience Large A.wav"
!ir_path[43] := "presets/effects/convolution/<<<K4IR.nkx>>>/K4 IR Sample
s/BRT 7 Ambience Small.wav"
!ir_path[44] := "presets/effects/convolution/<<<K4IR.nkx>>>/K4 IR Sample
s/BRT 7 Chamber Small.wav"
!ir_path[45] := "presets/effects/convolution/<<<K4IR.nkx>>>/K4 IR Sample
s/BRT 7 Chamber Vocal.wav"
!ir_path[46] := "presets/effects/convolution/<<<K4IR.nkx>>>/K4 IR Sample
s/BRT 7 Hall Dense.wav"
!ir_path[47] := "presets/effects/convolution/<<<K4IR.nkx>>>/K4 IR Sample
s/BRT 7 Location Chapel A.wav"
!ir_path[48] := "presets/effects/convolution/<<<K4IR.nkx>>>/K4 IR Sample
s/BRT 7 Plate Snare.wav"
!ir_path[49] := "presets/effects/convolution/<<<K4IR.nkx>>>/K4 IR Sample
s/BRT 7 Room Drum.wav"
!ir_path[50] := "presets/effects/convolution/<<<K4IR.nkx>>>/K4 IR Sample
s/BRT 7 Room Wood.wav"
!ir_path[51] := "presets/effects/convolution/<<<K4IR.nkx>>>/K4 IR Sample
s/BRT 7 Location Cineastic Room.wav"
!ir_path[52] := "presets/effects/convolution/<<<K4IR.nkx>>>/K4 IR Sample
s/E245 0.5s A.wav"
!ir_path[53] := "presets/effects/convolution/<<<K4IR.nkx>>>/K4 IR Sample
s/E245 1.0s A.wav"
!ir_path[54] := "presets/effects/convolution/<<<K4IR.nkx>>>/K4 IR Sample
s/E245 1.4s A.wav"
!ir_path[55] := "presets/effects/convolution/<<<K4IR.nkx>>>/K4 IR Sample
s/E245 2.1s A.wav"
!ir_path[56] := "presets/effects/convolution/<<<K4IR.nkx>>>/K4 IR Sample
s/E245 4.5s A.wav"
!ir_path[57] := "presets/effects/convolution/<<<K4IR.nkx>>>/K4 IR Sample
s/E252 0.6s.wav"
!ir_path[58] := "presets/effects/convolution/<<<K4IR.nkx>>>/K4 IR Sample
s/E252 1.0s.wav"
!ir_path[59] := "presets/effects/convolution/<<<K4IR.nkx>>>/K4 IR Sample
s/E252 1.8s.wav"
!ir_path[60] := "presets/effects/convolution/<<<K4IR.nkx>>>/K4 IR Sample
s/E252 3.0s.wav"
!ir_path[61] := "presets/effects/convolution/<<<K4IR.nkx>>>/K4 IR Sample
s/E252 4.5s.wav"
!ir_path[62] := "presets/effects/convolution/17 Cabinets/Brit 212/IR Sam
ples/Brit_212_Tube_Center.wav"
!ir_path[63] := "presets/effects/convolution/17 Cabinets/Tweed 112/IR Sa
mples/Tweed_112_Tube_Center.wav"
!ir_path[64] := "presets/effects/convolution/17 Cabinets/Tweed 212/IR Sa
mples/Tweed_212_Tube_Center.wav"
!ir_path[65] := "presets/effects/convolution/17 Cabinets/Tweed 410/IR Sa
mples/Tweed_410_Tube_Center.wav"
!ir_path[66] := "presets/effects/convolution/17 Cabinets/Rock 412/IR Sam
ples/Rock_412_Tube_Center.wav"
!ir_path[67] := "/presets/effects/convolution/17 Cabinets/Modern/IR Samp
les/Modern_412_Tube_Center.wav"
declare !ir_type[68]
!ir_type[0] := "Concert Hall A"
!ir_type[1] := "Concert Hall B"
!ir_type[2] := "Exhibition Hall"
!ir_type[3] := "Cathedral A"
!ir_type[4] := "Cathedral B"
!ir_type[5] := "NDB Cathedral"
!ir_type[6] := "Club A"
!ir_type[7] := "Club B"
!ir_type[8] := "Tavern Close"
!ir_type[9] := "Tavern Near"
!ir_type[10] := "Tavern Mid"
!ir_type[11] := "Tavern Far"
!ir_type[12] := "Auditorium A"
!ir_type[13] := "Auditorium B"
!ir_type[14] := "Chamber A"
!ir_type[15] := "Chamber B"
!ir_type[16] := "Rehearsal Room"
!ir_type[17] := "Hard Wood"
!ir_type[18] := "Music Studio"
!ir_type[19] := "Small Room A"
!ir_type[20] := "Small Room B"
!ir_type[21] := "Large Hall"
!ir_type[22] := "Gated Hall"
!ir_type[23] := "Large Room"
!ir_type[24] := "Large Chamber"
!ir_type[25] := "Studio C"
!ir_type[26] := "Contem-Plate"
!ir_type[27] := "Space & Echoes"
!ir_type[28] := "Medium Stop"
!ir_type[29] := "Drum Cave"
!ir_type[30] := "Large Ambi"
!ir_type[31] := "Smooth Ambi"
!ir_type[32] := "Ambience Wave"
!ir_type[33] := "Le Gate"
!ir_type[34] := "Basic"
!ir_type[35] := "Disco"
!ir_type[36] := "Funk"
!ir_type[37] := "Funky Club"
!ir_type[38] := "Hip Hop"
!ir_type[39] := "Reggae Modern"
!ir_type[40] := "RnB Neptunes"
!ir_type[41] := "RnB Today"
!ir_type[42] := "Large Ambience"
!ir_type[43] := "Small Ambience"
!ir_type[44] := "Small Chamber"
!ir_type[45] := "Vocal Chamber"
!ir_type[46] := "Dense Hall"
!ir_type[47] := "Chapel"
!ir_type[48] := "Snare Plate"
!ir_type[49] := "Drum Room"
!ir_type[50] := "Wood Room"
!ir_type[51] := "Cineastic Room"
!ir_type[52] := "E245 0.5s"
!ir_type[53] := "E245 1.0s"
!ir_type[54] := "E245 1.4s"
!ir_type[55] := "E245 2.1s"
!ir_type[56] := "E245 4.5s"
!ir_type[57] := "E252 0.6s"
!ir_type[58] := "E252 1.0s"
!ir_type[59] := "E252 1.8s"
!ir_type[60] := "E252 3.0s"
!ir_type[61] := "E252 4.5s"
!ir_type[62] := "Brit 2x12"
!ir_type[63] := "Tweed 1x12"
!ir_type[64] := "Tweed 2x12"
!ir_type[65] := "Tweed 4x10"
!ir_type[66] := "Rock 4x12"
!ir_type[67] := "Modern 4x12"
$count := 0
while ($count < 68)
if ($count < 3)
add_menu_item($hall_reverb,!ir_type[$count],$count)
else
if ($count < 6)
add_menu_item($cathedral_reverb,!ir_type[$count]
,$count)
else
if ($count < 14)
add_menu_item($club_reverb,!ir_type[$cou
nt],$count)
else
if ($count < 21)
add_menu_item($room_reverb,!ir_t
ype[$count],$count)
else
if ($count < 34)
add_menu_item($l300_reverb,!i
r_type[$count],$count)
else
if($count < 42)
add_menu_item($q
uadstick_reverb,!ir_type[$count],$count)
else
if ($count < 52)
add_menu
_item($brt7_reverb,!ir_type[$count],$count)
else
if ($cou
nt < 62)
add_menu_item($plate_reverb,!ir_type[$count],$count)
else
add_menu_item($cabinet_reverb,!ir_type[$count],$count)
end if
end if
end if
end if
end if
end if
end if
end if
inc ($count)
end while
make_persistent($category_reverb)
make_persistent($hall_reverb)
make_persistent($cathedral_reverb)
make_persistent($club_reverb)
make_persistent($room_reverb)
make_persistent($l300_reverb)
make_persistent($quadstick_reverb)
make_persistent($brt7_reverb)
make_persistent($plate_reverb)
make_persistent($cabinet_reverb)
_read_persistent_var($category_reverb)
_read_persistent_var($hall_reverb)
_read_persistent_var($cathedral_reverb)
_read_persistent_var($club_reverb)
_read_persistent_var($room_reverb)
_read_persistent_var($l300_reverb)
_read_persistent_var($quadstick_reverb)
_read_persistent_var($brt7_reverb)
_read_persistent_var($plate_reverb)
_read_persistent_var($cabinet_reverb)
$count := 0
while ($count < 9)
if ($count = $category_reverb)
set_control_par(%subcat_menu_id[$count],$CONTROL_PAR_HID
E,$HIDE_PART_NOTHING)
else
set_control_par(%subcat_menu_id[$count],$CONTROL_PAR_HID
E,$HIDE_WHOLE_CONTROL)
end if
inc ($count)
end while
set_control_par(get_ui_id($image_reverb),$CONTROL_PAR_PICTURE_STATE,$cat
egory_reverb)
declare %offset_reverb[9] := (0,3,6,14,21,52,34,42,62)
$count := 0
while ($count < $NUM_reverb)
set_control_par (%reverb_id[$count],$CONTROL_PAR_POS_X,get_contr
ol_par(%reverb_id[$count],...
$CONTROL_PAR_POS_X)+$ROOT_X + ($x_grid_reverb - 1)*$GRID_X + $x_
px_reverb)
set_control_par (%reverb_id[$count],$CONTROL_PAR_POS_Y,get_contr
ol_par(%reverb_id[$count],...
$CONTROL_PAR_POS_Y)+$ROOT_Y + ($y_grid_reverb - 1)*$GRID_Y + $y_
px_reverb)
inc($count)
end while
read_persistent_var($wetdry_reverb)
set_control_par_str(get_ui_id($wetdry_reverb),$CONTROL_PAR_AUTOMATION_NA
ME,"Rvb Mix")
set_control_par_str(get_ui_id($onoff_reverb),$CONTROL_PAR_AUTOMATION_NAM
E,"Reverb")
set_control_par_str(get_ui_id($wetdry_reverb),$CONTROL_PAR_LABEL,$wetdry
_reverb*2/10000 & " %")

{Control Help}
set_control_help ($attack_env,"Attack: Sets the volume envelope
attack time for the selected instrument.")
set_control_help ($hold_env,"Hold: Sets the volume envelope hold
time for the selected instrument.")
set_control_help ($decay_env,"Decay: Sets the volume envelope de
cay time for the selected instrument.")

set_control_help ($wetdry_reverb, "Dry/Wet: Controls the overall


dry/wet mix of the reverb effect.")
set_control_help ($onoff_reverb, "Reverb On/Off: Turns the rever
b effect on or off.")
set_control_help ($category_reverb, "Reverb IR Category: Select
a category from which you can choose a specific impulse response from the second
dropdown menu.")
set_control_help ($hall_reverb, "Concert Hall: Impulse responses
in this category are capured from real spaces and represent a variety of large
performance spaces.")
set_control_help ($cathedral_reverb, "Cathedral: A mix of real a
nd modelled spaces that offer large and dense reverb tails.")
set_control_help ($club_reverb, "Club: Impulse responses in this
category are capured from real spaces and represent a variety of small performa
nce spaces.")
set_control_help ($room_reverb, "Room: Impulse responses in this
category are capured from real spaces and cover a variety of smaller rooms.")
set_control_help ($l300_reverb, "L300: Impulse responses taken f
rom the classic studio digital reverb.")
set_control_help ($plate_reverb, "Plate: Impulse responses from
classic plate reverb effect units.")
set_control_help ($quadstick_reverb, "Quadstick: Impulse respons
es taken from the classic studio digital reverb.")
set_control_help ($brt7_reverb, "BRT 7: Impulse responses taken
from the classic studio digital reverb.")
set_control_help ($cabinet_reverb, "Cabinet: Impulse responses o
f several cabinet types.")
{----------MASTER REVERB FX END-----------}
if ($CREATE_AUTOMATION_ID = 1)
set_control_par(get_ui_id($type_artic),$CONTROL_PAR_AUTOMATION_I
D,1)
set_control_par(get_ui_id($knob_1_artic),$CONTROL_PAR_AUTOMATION
_ID,16)
set_control_par(get_ui_id($knob_2_artic),$CONTROL_PAR_AUTOMATION
_ID,17)

set_control_par(get_ui_id($note_voicing),$CONTROL_PAR_AUTOMATION
_ID,18)
set_control_par(get_ui_id($sel_by_midi),$CONTROL_PAR_AUTOMATION_
ID,9)
set_control_par(get_ui_id($level_voicing),$CONTROL_PAR_AUTOMATIO
N_ID,2)
set_control_par(get_ui_id($pan_voicing),$CONTROL_PAR_AUTOMATION_
ID,19)
set_control_par(get_ui_id($tune_voicing),$CONTROL_PAR_AUTOMATION
_ID,3)
set_control_par(get_ui_id($sound_voicing),$CONTROL_PAR_AUTOMATIO
N_ID,0)
set_control_par(get_ui_id($attack_env),$CONTROL_PAR_AUTOMATION_I
D,6)
set_control_par(get_ui_id($hold_env),$CONTROL_PAR_AUTOMATION_ID,
20)
set_control_par(get_ui_id($decay_env),$CONTROL_PAR_AUTOMATION_ID
,7)
set_control_par(get_ui_id($onoff_reverb),$CONTROL_PAR_AUTOMATION
_ID,12)
set_control_par(get_ui_id($wetdry_reverb),$CONTROL_PAR_AUTOMATIO
N_ID,4)
end if
end on
{VOICING UI CALLBACKS START}
on ui_control($note_voicing)
$instr_menu_voicing := $note_voicing - 36
$selected_group := $note_voicing - 36
$sound_voicing := %sound_group[$selected_group]
$level_voicing := _get_engine_par($ENGINE_PAR_VOLUME,$selected_group,-1,
-1)
$tune_voicing := _get_engine_par($ENGINE_PAR_TUNE,$selected_group,-1,-1)
$pan_voicing := _get_engine_par($ENGINE_PAR_PAN,$selected_group,-1,-1)
$attack_env := _get_engine_par($ENGINE_PAR_ATTACK,$selected_group,$env_i
dx,-1)
$hold_env := _get_engine_par($ENGINE_PAR_HOLD,$selected_group,$env_idx,-
1)
$decay_env := _get_engine_par($ENGINE_PAR_DECAY,$selected_group,$env_idx
,-1)
$type_artic := _pgs_get_key_val(ARTIC_MENU_STORE,$note_voicing)
select ($type_artic)
case 0
$knob_1_artic := 0
$knob_2_artic := 0
case 1
$knob_1_artic := _pgs_get_key_val(VAR_0_A_STORE,$note_vo
icing)
$knob_2_artic := _pgs_get_key_val(VAR_0_B_STORE,$note_vo
icing)
case 2
$knob_1_artic := _pgs_get_key_val(VAR_1_A_STORE,$note_vo
icing)
$knob_2_artic := _pgs_get_key_val(VAR_1_B_STORE,$note_vo
icing)
case 3
$knob_1_artic := _pgs_get_key_val(VAR_2_A_STORE,$note_vo
icing)
$knob_2_artic := _pgs_get_key_val(VAR_2_B_STORE,$note_vo
icing)
case 4
$knob_1_artic := _pgs_get_key_val(VAR_3_A_STORE,$note_vo
icing)
$knob_2_artic := _pgs_get_key_val(VAR_3_B_STORE,$note_vo
icing)
case 5
$knob_1_artic := _pgs_get_key_val(VAR_4_A_STORE,$note_vo
icing)
$knob_2_artic := _pgs_get_key_val(VAR_4_B_STORE,$note_vo
icing)
case 6
$knob_1_artic := _pgs_get_key_val(VAR_5_A_STORE,$note_vo
icing)
$knob_2_artic := _pgs_get_key_val(VAR_5_B_STORE,$note_vo
icing)
case 7
$knob_1_artic := _pgs_get_key_val(VAR_6_A_STORE,$note_vo
icing)
$knob_2_artic := _pgs_get_key_val(VAR_6_B_STORE,$note_vo
icing)
case 8
$knob_1_artic := _pgs_get_key_val(VAR_7_A_STORE,$note_vo
icing)
$knob_2_artic := _pgs_get_key_val(VAR_7_B_STORE,$note_vo
icing)
case 9
$knob_1_artic := _pgs_get_key_val(VAR_8_A_STORE,$note_vo
icing)
$knob_2_artic := _pgs_get_key_val(VAR_8_B_STORE,$note_vo
icing)
case 10
$knob_1_artic := _pgs_get_key_val(VAR_9_A_STORE,$note_vo
icing)
$knob_2_artic := _pgs_get_key_val(VAR_9_B_STORE,$note_vo
icing)
end select
set_text($lb_type_artic,!artic_name[$type_artic])
set_text ($lb_knob_1_artic,!Knob1_names[$type_artic])
set_text ($lb_knob_2_artic,!Knob2_names[$type_artic])
set_text ($lb_note_voicing,!note_names[$note_voicing])
set_control_par_str(get_ui_id($note_voicing),$CONTROL_PAR_LABEL,!note_na
mes[$note_voicing])
$last_time := $ENGINE_UPTIME
wait($wait_time * 1000)
if($ENGINE_UPTIME - $last_time > $wait_time -5)
set_text ($lb_note_voicing,"NOTE")
set_text ($lb_type_artic,"ARTICULATION")
end if
end on
on ui_control($level_voicing)
set_engine_par($ENGINE_PAR_VOLUME,$level_voicing,$selected_group,-1,1)
set_control_par_str(get_ui_id($level_voicing),$CONTROL_PAR_LABEL,get_eng
ine_par_disp($ENGINE_PAR_VOLUME,$selected_group,-1,-1) & " dB")
end on
on ui_control($pan_voicing)
set_engine_par($ENGINE_PAR_PAN,$pan_voicing,$selected_group,-1,1)
set_control_par_str(get_ui_id($pan_voicing),$CONTROL_PAR_LABEL,get_engin
e_par_disp($ENGINE_PAR_PAN,$selected_group,-1,-1))
end on
on ui_control($tune_voicing)
set_engine_par($ENGINE_PAR_TUNE,$tune_voicing,$selected_group,-1,1)
set_control_par_str(get_ui_id($tune_voicing),$CONTROL_PAR_LABEL,get_engi
ne_par_disp($ENGINE_PAR_TUNE,$selected_group,-1,-1) & " st")
end on
on ui_control($instr_menu_voicing)
$note_voicing := $instr_menu_voicing + 36
$selected_group := $instr_menu_voicing
$sound_voicing := %sound_group[$selected_group]
$level_voicing := _get_engine_par($ENGINE_PAR_VOLUME,$selected_group,-1,
-1)
$tune_voicing := _get_engine_par($ENGINE_PAR_TUNE,$selected_group,-1,-1)
$pan_voicing := _get_engine_par($ENGINE_PAR_PAN,$selected_group,-1,-1)
$attack_env := _get_engine_par($ENGINE_PAR_ATTACK,$selected_group,$env_i
dx,-1)
$hold_env := _get_engine_par($ENGINE_PAR_HOLD,$selected_group,$env_idx,-
1)
$decay_env := _get_engine_par($ENGINE_PAR_DECAY,$selected_group,$env_idx
,-1)
$type_artic := _pgs_get_key_val(ARTIC_MENU_STORE,$note_voicing)
select ($type_artic)
case 0
$knob_1_artic := 0
$knob_2_artic := 0
case 1
$knob_1_artic := _pgs_get_key_val(VAR_0_A_STORE,$note_vo
icing)
$knob_2_artic := _pgs_get_key_val(VAR_0_B_STORE,$note_vo
icing)
case 2
$knob_1_artic := _pgs_get_key_val(VAR_1_A_STORE,$note_vo
icing)
$knob_2_artic := _pgs_get_key_val(VAR_1_B_STORE,$note_vo
icing)
case 3
$knob_1_artic := _pgs_get_key_val(VAR_2_A_STORE,$note_vo
icing)
$knob_2_artic := _pgs_get_key_val(VAR_2_B_STORE,$note_vo
icing)
case 4
$knob_1_artic := _pgs_get_key_val(VAR_3_A_STORE,$note_vo
icing)
$knob_2_artic := _pgs_get_key_val(VAR_3_B_STORE,$note_vo
icing)
case 5
$knob_1_artic := _pgs_get_key_val(VAR_4_A_STORE,$note_vo
icing)
$knob_2_artic := _pgs_get_key_val(VAR_4_B_STORE,$note_vo
icing)
case 6
$knob_1_artic := _pgs_get_key_val(VAR_5_A_STORE,$note_vo
icing)
$knob_2_artic := _pgs_get_key_val(VAR_5_B_STORE,$note_vo
icing)
case 7
$knob_1_artic := _pgs_get_key_val(VAR_6_A_STORE,$note_vo
icing)
$knob_2_artic := _pgs_get_key_val(VAR_6_B_STORE,$note_vo
icing)
case 8
$knob_1_artic := _pgs_get_key_val(VAR_7_A_STORE,$note_vo
icing)
$knob_2_artic := _pgs_get_key_val(VAR_7_B_STORE,$note_vo
icing)
case 9
$knob_1_artic := _pgs_get_key_val(VAR_8_A_STORE,$note_vo
icing)
$knob_2_artic := _pgs_get_key_val(VAR_8_B_STORE,$note_vo
icing)
case 10
$knob_1_artic := _pgs_get_key_val(VAR_9_A_STORE,$note_vo
icing)
$knob_2_artic := _pgs_get_key_val(VAR_9_B_STORE,$note_vo
icing)
end select
set_text($lb_type_artic,!artic_name[$type_artic])
set_text ($lb_knob_1_artic,!Knob1_names[$type_artic])
set_text ($lb_knob_2_artic,!Knob2_names[$type_artic])
set_text ($lb_note_voicing,!note_names[$instr_menu_voicing+36])
$last_time := $ENGINE_UPTIME
wait($wait_time * 1000)
if($ENGINE_UPTIME - $last_time > $wait_time -5)
set_text ($lb_type_artic,"ARTICULATION")
set_text ($lb_note_voicing,"NOTE")
end if
end on
on ui_control ($sound_voicing)
%sound_group[$selected_group] := $sound_voicing
$index_1 := $sound_voicing/10
$index_2 := $sound_voicing/10 +1
$knob_eq := $sound_voicing*10
if ($index_2 > 10)
$index_2 := 10
end if
set_control_par_str(get_ui_id($sound_voicing),$CONTROL_PAR_LABEL,$sound_
voicing & " %")
$a_eq := 0
while($a_eq < 9)
$helper_eq := ((%soundeqarr[($index_2*9) + $a_eq] - %soundeqarr[
($index_1*9) + $a_eq]) * ...
($knob_eq mod 100))/100 + %soundeqarr[($index_1*9) + $a_eq]
_set_engine_par(%engine_par[$a_eq],$helper_eq,$selected_group,$s
ound_eq_slot,1)
inc($a_eq)
end while
end on
{VOICING UI CALLBACKS END}
on note
if (in_range ($EVENT_NOTE,36,(36-1+$DRUM_INSTR)) and $sel_by_midi = 1)
$note_voicing := $EVENT_NOTE
$instr_menu_voicing := $note_voicing - 36
$selected_group := $note_voicing - 36
$sound_voicing := %sound_group[$selected_group]
$level_voicing := _get_engine_par($ENGINE_PAR_VOLUME,$selected_g
roup,-1,-1)
$tune_voicing := _get_engine_par($ENGINE_PAR_TUNE,$selected_grou
p,-1,-1)
$pan_voicing := _get_engine_par($ENGINE_PAR_PAN,$selected_group,
-1,-1)
$attack_env := _get_engine_par($ENGINE_PAR_ATTACK,$selected_grou
p,$env_idx,-1)
$hold_env := _get_engine_par($ENGINE_PAR_HOLD,$selected_group,$e
nv_idx,-1)
$decay_env := _get_engine_par($ENGINE_PAR_DECAY,$selected_group,
$env_idx,-1)
$type_artic := _pgs_get_key_val(ARTIC_MENU_STORE,$note_voicing)
select ($type_artic)
case 0
$knob_1_artic := 0
$knob_2_artic := 0
case 1
$knob_1_artic := _pgs_get_key_val(VAR_0_A_STORE,
$note_voicing)
$knob_2_artic := _pgs_get_key_val(VAR_0_B_STORE,
$note_voicing)
case 2
$knob_1_artic := _pgs_get_key_val(VAR_1_A_STORE,
$note_voicing)
$knob_2_artic := _pgs_get_key_val(VAR_1_B_STORE,
$note_voicing)
case 3
$knob_1_artic := _pgs_get_key_val(VAR_2_A_STORE,
$note_voicing)
$knob_2_artic := _pgs_get_key_val(VAR_2_B_STORE,
$note_voicing)
case 4
$knob_1_artic := _pgs_get_key_val(VAR_3_A_STORE,
$note_voicing)
$knob_2_artic := _pgs_get_key_val(VAR_3_B_STORE,
$note_voicing)
case 5
$knob_1_artic := _pgs_get_key_val(VAR_4_A_STORE,
$note_voicing)
$knob_2_artic := _pgs_get_key_val(VAR_4_B_STORE,
$note_voicing)
case 6
$knob_1_artic := _pgs_get_key_val(VAR_5_A_STORE,
$note_voicing)
$knob_2_artic := _pgs_get_key_val(VAR_5_B_STORE,
$note_voicing)
case 7
$knob_1_artic := _pgs_get_key_val(VAR_6_A_STORE,
$note_voicing)
$knob_2_artic := _pgs_get_key_val(VAR_6_B_STORE,
$note_voicing)
case 8
$knob_1_artic := _pgs_get_key_val(VAR_7_A_STORE,
$note_voicing)
$knob_2_artic := _pgs_get_key_val(VAR_7_B_STORE,
$note_voicing)
case 9
$knob_1_artic := _pgs_get_key_val(VAR_8_A_STORE,
$note_voicing)
$knob_2_artic := _pgs_get_key_val(VAR_8_B_STORE,
$note_voicing)
case 10
$knob_1_artic := _pgs_get_key_val(VAR_9_A_STORE,
$note_voicing)
$knob_2_artic := _pgs_get_key_val(VAR_9_B_STORE,
$note_voicing)
end select
set_text ($lb_knob_1_artic,!Knob1_names[$type_artic])
set_text ($lb_knob_2_artic,!Knob2_names[$type_artic])
end if
end on
on ui_control ($type_artic)
_pgs_set_key_val(ARTIC_MENU_STORE,$note_voicing,$type_artic)
%artic_menu_store[$note_voicing] := $type_artic
select ($type_artic)
case 0
$knob_1_artic := 0
$knob_2_artic := 0
case 1
$knob_1_artic := _pgs_get_key_val(VAR_0_A_STORE,$note_vo
icing)
$knob_2_artic := _pgs_get_key_val(VAR_0_B_STORE,$note_vo
icing)
case 2
$knob_1_artic := _pgs_get_key_val(VAR_1_A_STORE,$note_vo
icing)
$knob_2_artic := _pgs_get_key_val(VAR_1_B_STORE,$note_vo
icing)
case 3
$knob_1_artic := _pgs_get_key_val(VAR_2_A_STORE,$note_vo
icing)
$knob_2_artic := _pgs_get_key_val(VAR_2_B_STORE,$note_vo
icing)
case 4
$knob_1_artic := _pgs_get_key_val(VAR_3_A_STORE,$note_vo
icing)
$knob_2_artic := _pgs_get_key_val(VAR_3_B_STORE,$note_vo
icing)
case 5
$knob_1_artic := _pgs_get_key_val(VAR_4_A_STORE,$note_vo
icing)
$knob_2_artic := _pgs_get_key_val(VAR_4_B_STORE,$note_vo
icing)
case 6
$knob_1_artic := _pgs_get_key_val(VAR_5_A_STORE,$note_vo
icing)
$knob_2_artic := _pgs_get_key_val(VAR_5_B_STORE,$note_vo
icing)
case 7
$knob_1_artic := _pgs_get_key_val(VAR_6_A_STORE,$note_vo
icing)
$knob_2_artic := _pgs_get_key_val(VAR_6_B_STORE,$note_vo
icing)
case 8
$knob_1_artic := _pgs_get_key_val(VAR_7_A_STORE,$note_vo
icing)
$knob_2_artic := _pgs_get_key_val(VAR_7_B_STORE,$note_vo
icing)
case 9
$knob_1_artic := _pgs_get_key_val(VAR_8_A_STORE,$note_vo
icing)
$knob_2_artic := _pgs_get_key_val(VAR_8_B_STORE,$note_vo
icing)
case 10
$knob_1_artic := _pgs_get_key_val(VAR_9_A_STORE,$note_vo
icing)
$knob_2_artic := _pgs_get_key_val(VAR_9_B_STORE,$note_vo
icing)
end select
set_text ($lb_knob_1_artic,!Knob1_names[$type_artic])
set_text ($lb_knob_2_artic,!Knob2_names[$type_artic])
set_text($lb_type_artic,!artic_name[$type_artic])
set_control_par_str(get_ui_id($type_artic),$CONTROL_PAR_LABEL,!artic_nam
e[$type_artic])
$last_time := $ENGINE_UPTIME
wait($wait_time * 1000)
if($ENGINE_UPTIME - $last_time > $wait_time -5)
set_text ($lb_type_artic,"ARTICULATION")
end if
end on
on ui_control ($knob_1_artic)
set_control_par_str(get_ui_id($knob_1_artic),$CONTROL_PAR_LABEL,$knob_1_
artic & " %")
select($type_artic)
case 1
_pgs_set_key_val(VAR_0_A_STORE,$note_voicing,$knob_1_art
ic)
%var_0_a_store[$note_voicing] := $knob_1_artic
case 2
_pgs_set_key_val(VAR_1_A_STORE,$note_voicing,$knob_1_art
ic)
%var_1_a_store[$note_voicing] := $knob_1_artic
case 3
_pgs_set_key_val(VAR_2_A_STORE,$note_voicing,$knob_1_art
ic)
%var_2_a_store[$note_voicing] := $knob_1_artic
case 4
_pgs_set_key_val(VAR_3_A_STORE,$note_voicing,$knob_1_art
ic)
%var_3_a_store[$note_voicing] := $knob_1_artic
case 5
_pgs_set_key_val(VAR_4_A_STORE,$note_voicing,$knob_1_art
ic)
%var_4_a_store[$note_voicing] := $knob_1_artic
case 6
_pgs_set_key_val(VAR_5_A_STORE,$note_voicing,$knob_1_art
ic)
%var_5_a_store[$note_voicing] := $knob_1_artic
case 7
_pgs_set_key_val(VAR_6_A_STORE,$note_voicing,$knob_1_art
ic)
%var_6_a_store[$note_voicing] := $knob_1_artic
case 8
_pgs_set_key_val(VAR_7_A_STORE,$note_voicing,$knob_1_art
ic)
%var_7_a_store[$note_voicing] := $knob_1_artic
case 9
_pgs_set_key_val(VAR_8_A_STORE,$note_voicing,$knob_1_art
ic)
%var_8_a_store[$note_voicing] := $knob_1_artic
case 10
_pgs_set_key_val(VAR_9_A_STORE,$note_voicing,$knob_1_art
ic)
%var_9_a_store[$note_voicing] := $knob_1_artic
end select
end on
on ui_control ($knob_2_artic)
set_control_par_str(get_ui_id($knob_2_artic),$CONTROL_PAR_LABEL,$knob_2_
artic & " %")
select($type_artic)
case 1
_pgs_set_key_val(VAR_0_B_STORE,$note_voicing,$knob_2_art
ic)
%var_0_b_store[$note_voicing] := $knob_2_artic
case 2
_pgs_set_key_val(VAR_1_B_STORE,$note_voicing,$knob_2_art
ic)
%var_1_b_store[$note_voicing] := $knob_2_artic
case 3
_pgs_set_key_val(VAR_2_B_STORE,$note_voicing,$knob_2_art
ic)
%var_2_b_store[$note_voicing] := $knob_2_artic
case 4
_pgs_set_key_val(VAR_3_B_STORE,$note_voicing,$knob_2_art
ic)
%var_3_b_store[$note_voicing] := $knob_2_artic
case 5
_pgs_set_key_val(VAR_4_B_STORE,$note_voicing,$knob_2_art
ic)
%var_4_b_store[$note_voicing] := $knob_2_artic
case 6
_pgs_set_key_val(VAR_5_B_STORE,$note_voicing,$knob_2_art
ic)
%var_5_b_store[$note_voicing] := $knob_2_artic
case 7
_pgs_set_key_val(VAR_6_B_STORE,$note_voicing,$knob_2_art
ic)
%var_6_b_store[$note_voicing] := $knob_2_artic
case 8
_pgs_set_key_val(VAR_7_B_STORE,$note_voicing,$knob_2_art
ic)
%var_7_b_store[$note_voicing] := $knob_2_artic
case 9
_pgs_set_key_val(VAR_8_B_STORE,$note_voicing,$knob_2_art
ic)
%var_8_b_store[$note_voicing] := $knob_2_artic
case 10
_pgs_set_key_val(VAR_9_B_STORE,$note_voicing,$knob_2_art
ic)
%var_9_b_store[$note_voicing] := $knob_2_artic
end select
end on
on ui_control($attack_env)
set_engine_par($ENGINE_PAR_ATTACK,$attack_env,$selected_group,$env_idx,-
1)
set_control_par_str(get_ui_id($attack_env),$CONTROL_PAR_LABEL,get_engine
_par_disp($ENGINE_PAR_ATTACK,$selected_group,$env_idx,-1) & " ms")
end on
on ui_control($hold_env)
set_engine_par($ENGINE_PAR_HOLD,$hold_env,$selected_group,$env_idx,-1)
set_control_par_str(get_ui_id($hold_env),$CONTROL_PAR_LABEL,get_engine_p
ar_disp($ENGINE_PAR_HOLD,$selected_group,$env_idx,-1) & " ms")
end on
on ui_control($decay_env)
set_engine_par($ENGINE_PAR_DECAY,$decay_env,$selected_group,$env_idx,-1)
set_control_par_str(get_ui_id($decay_env),$CONTROL_PAR_LABEL,get_engine_
par_disp($ENGINE_PAR_DECAY,$selected_group,$env_idx,-1) & " ms")
end on
on ui_control ($category_reverb)
$count := 0
while ($count < 9)
if ($count = $category_reverb)
set_control_par(%subcat_menu_id[$count],$CONTROL_PAR_HID
E,$HIDE_PART_NOTHING)
else
set_control_par(%subcat_menu_id[$count],$CONTROL_PAR_HID
E,$HIDE_WHOLE_CONTROL)
end if
inc ($count)
end while
set_control_par(get_ui_id($image_reverb),$CONTROL_PAR_PICTURE_STATE,$cat
egory_reverb)
_load_ir_sample(_get_folder($GET_FOLDER_FACTORY_DIR)...
& !ir_path[%offset_reverb[$category_reverb]+get_control_par(%subcat_menu
_id[$category_reverb]...
,$CONTROL_PAR_VALUE)], $reverb_slot, 1)
end on
on ui_control ($wetdry_reverb)
set_control_par_str(get_ui_id($wetdry_reverb),$CONTROL_PAR_LABEL,$wetdry
_reverb*2/10000 & " %")
_set_engine_par ($ENGINE_PAR_SEND_EFFECT_DRY_LEVEL, (500000-$wetdry_reve
rb), -1, $reverb_slot, 1)
_set_engine_par ($ENGINE_PAR_SEND_EFFECT_OUTPUT_GAIN, $wetdry_reverb, -1
, $reverb_slot, 1)
end on
on ui_control ($onoff_reverb)
if ($onoff_reverb = 0)
_set_engine_par ($ENGINE_PAR_SEND_EFFECT_BYPASS, 1, -1, $reverb_
slot, 1)
else
_set_engine_par ($ENGINE_PAR_SEND_EFFECT_BYPASS, 0, -1, $reverb_
slot, 1)
end if
end on
on ui_control ($hall_reverb)
_load_ir_sample(_get_folder($GET_FOLDER_FACTORY_DIR)...
& !ir_path[$hall_reverb],$reverb_slot,1)
end on
on ui_control ($cathedral_reverb)
_load_ir_sample(_get_folder($GET_FOLDER_FACTORY_DIR)...
& !ir_path[$cathedral_reverb],$reverb_slot,1)
end on
on ui_control ($club_reverb)
_load_ir_sample(_get_folder($GET_FOLDER_FACTORY_DIR)...
& !ir_path[$club_reverb],$reverb_slot,1)
end on
on ui_control ($room_reverb)
_load_ir_sample(_get_folder($GET_FOLDER_FACTORY_DIR)...
& !ir_path[$room_reverb],$reverb_slot,1)
end on
on ui_control ($l300_reverb)
_load_ir_sample(_get_folder($GET_FOLDER_FACTORY_DIR)...
& !ir_path[$l300_reverb],$reverb_slot,1)
end on
on ui_control ($quadstick_reverb)
_load_ir_sample(_get_folder($GET_FOLDER_FACTORY_DIR)...
& !ir_path[$quadstick_reverb],$reverb_slot,1)
end on
on ui_control ($brt7_reverb)
_load_ir_sample(_get_folder($GET_FOLDER_FACTORY_DIR)...
& !ir_path[$brt7_reverb],$reverb_slot,1)
end on
on ui_control ($plate_reverb)
_load_ir_sample(_get_folder($GET_FOLDER_FACTORY_DIR)...
& !ir_path[$plate_reverb],$reverb_slot,1)
end on
on ui_control ($cabinet_reverb)
_load_ir_sample(_get_folder($GET_FOLDER_FACTORY_DIR)...
& !ir_path[$cabinet_reverb],$reverb_slot,1)
end on

Das könnte Ihnen auch gefallen