Documenti di Didattica
Documenti di Professioni
Documenti di Cultura
declare !ir_type[68]
!ir_type[0] := "HALL A"
!ir_type[1] := "HALL B"
!ir_type[2] := "EXHIBITION HALL"
!ir_type[3] := "CATHEDRAL A"
!ir_type[4] := "CATHEDRAL B"
!ir_type[5] := "NDB"
!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"
!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] := "LRG CHAMBER"
!ir_type[25] := "STUDIO C"
!ir_type[26] := "PLATE"
!ir_type[27] := "ECHOES"
!ir_type[28] := "MEDIUM STOP"
!ir_type[29] := "DRUM CAVE"
!ir_type[30] := "LARGE AMBI"
!ir_type[31] := "SMOOTH AMBI"
!ir_type[32] := "AMBI 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 MOD"
!ir_type[40] := "RNB NEPTUNES"
!ir_type[41] := "RNB TODAY"
!ir_type[42] := "LARGE AMBI"
!ir_type[43] := "SMALL AMBI"
!ir_type[44] := "SML CHAMBER"
!ir_type[45] := "VOC 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"
!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],$cou
nt)
else
if ($count < 6)
add_menu_item($cathedral_reverb,!ir_type
[$count],$count)
else
if ($count < 14)
add_menu_item($club_reverb,!ir_t
ype[$count],$count)
else
if ($count < 21)
add_menu_item($room_reve
rb,!ir_type[$count],$count)
else
if ($count < 34)
add_menu_item($l300_reve
rb,!ir_type[$count],$count)
else
if($count < 42)
add_menu
_item($quadstick_reverb,!ir_type[$count],$count)
else
if ($cou
nt < 52)
add_menu_item($brt7_reverb,!ir_type[$count],$count)
else
if ($count < 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_HIDE,$HIDE_PART_NOTHING)
else
set_control_par(%subcat_menu_id[$count],$CONTROL
_PAR_HIDE,$HIDE_WHOLE_CONTROL)
end if
inc ($count)
end while
set_control_par(get_ui_id($image_reverb),$CONTROL_PAR_PICTURE_ST
ATE,$category_reverb)
{/reverb functionality}
declare %bandfx_id[$NUM_BANDFX]
%bandfx_id[0] := get_ui_id($backgr_bandfx)
%bandfx_id[1] := get_ui_id($title_bandfx)
%bandfx_id[2] := get_ui_id($lb_rev_bandfx)
%bandfx_id[3] := get_ui_id($lb_delay_bandfx)
%bandfx_id[4] := get_ui_id($lb_eq_bandfx)
%bandfx_id[5] := get_ui_id($lb_rev_onoff_bandfx)
%bandfx_id[6] := get_ui_id($lb_rev_room_bandfx)
%bandfx_id[7] := get_ui_id($lb_rev_mix_bandfx)
%bandfx_id[8] := get_ui_id($image_reverb)
%bandfx_id[9] := get_ui_id($lb_delay_feedback_bandfx)
%bandfx_id[10] := get_ui_id($lb_delay_time_bandfx)
%bandfx_id[11] := get_ui_id($lb_delay_amount_bandfx)
%bandfx_id[12] := get_ui_id($lb_eq_onoff_bandfx)
%bandfx_id[13] := get_ui_id($lb_eq_lo_bandfx)
%bandfx_id[14] := get_ui_id($lb_eq_mid_bandfx)
%bandfx_id[15] := get_ui_id($lb_eq_hi_bandfx)
%bandfx_id[16] := get_ui_id($rev_amount_bandfx)
%bandfx_id[17] := get_ui_id($delay_feedback_bandfx)
%bandfx_id[18] := get_ui_id($delay_time_bandfx)
%bandfx_id[19] := get_ui_id($delay_amount_bandfx)
%bandfx_id[20] := get_ui_id($eq_lo_bandfx)
%bandfx_id[21] := get_ui_id($eq_mid_bandfx)
%bandfx_id[22] := get_ui_id($eq_hi_bandfx)
%bandfx_id[23] := get_ui_id($rev_bandfx)
%bandfx_id[24] := get_ui_id($delay_bandfx)
%bandfx_id[25] := get_ui_id($eq_bandfx)
%bandfx_id[26] := get_ui_id($rev_onoff_bandfx)
%bandfx_id[27] := get_ui_id($delay_onoff_bandfx)
%bandfx_id[28] := get_ui_id($eq_onoff_bandfx)
%bandfx_id[30] := get_ui_id($category_reverb)
%bandfx_id[31] := get_ui_id($eq_background_bandfx)
%bandfx_id[32] := get_ui_id($bandfx_bg_bandfx)
%bandfx_id[33] := get_ui_id($hall_reverb)
%bandfx_id[34] := get_ui_id($cathedral_reverb)
%bandfx_id[35] := get_ui_id($club_reverb)
%bandfx_id[36] := get_ui_id($room_reverb)
%bandfx_id[37] := get_ui_id($l300_reverb)
%bandfx_id[38] := get_ui_id($quadstick_reverb)
%bandfx_id[39] := get_ui_id($brt7_reverb)
%bandfx_id[40] := get_ui_id($plate_reverb)
%bandfx_id[41] := get_ui_id($cabinet_reverb)
{POSITIONING OF INDIVIDUAL CONTROLS}
move_control_px($backgr_bandfx,($GRID_X * 1) + 58, ($GRID_Y * 1)
+ 16) {possible to offset control in pixels}
move_control_px($title_bandfx, ($GRID_X * 1) + 0, ($GRID_Y * 1)
+ 0)
move_control_px($lb_rev_bandfx, ($GRID_X * 1) + 0, ($GRID_Y * 2)
+ 0)
move_control_px($lb_delay_bandfx, ($GRID_X * 1) + 46, ($GRID_Y *
2) + 0)
move_control_px($lb_eq_bandfx, ($GRID_X * 2) + 0, ($GRID_Y * 2)
+ 0)
move_control_px($lb_rev_onoff_bandfx, ($GRID_X * 2) + 46, ($GRID
_Y * 2) + 0)
move_control_px($lb_rev_room_bandfx, ($GRID_X * 3) + 46, ($GRID_
Y * 2) + 0)
move_control_px($lb_rev_mix_bandfx, ($GRID_X * 3) + 90, ($GRID_Y
* 2) + 9)
move_control_px($image_reverb, ($GRID_X * 2) + 86, ($GRID_Y * 2)
+ 20)
move_control_px($lb_delay_feedback_bandfx, ($GRID_X * 2) + 62, (
$GRID_Y * 2) + 9)
move_control_px($lb_delay_time_bandfx, ($GRID_X * 3) + 30, ($GRI
D_Y * 2) + 9)
move_control_px($lb_delay_amount_bandfx, ($GRID_X * 3) + 90, ($G
RID_Y * 2) + 9)
move_control_px($lb_eq_onoff_bandfx, ($GRID_X * 2) + 46, ($GRID_
Y * 2) + 0)
move_control_px($lb_eq_lo_bandfx, ($GRID_X * 2) + 83, ($GRID_Y *
5) + 0)
move_control_px($lb_eq_mid_bandfx, ($GRID_X * 3) + 37, ($GRID_Y
* 5) + 0)
move_control_px($lb_eq_hi_bandfx, ($GRID_X * 3) + 82, ($GRID_Y *
5) + 0)
move_control_px($rev_amount_bandfx, ($GRID_X * 4) + 26, ($GRID_Y
* 3) + 5)
move_control_px($delay_feedback_bandfx, ($GRID_X * 2) + 90, ($GR
ID_Y * 3) + 5)
move_control_px($delay_time_bandfx, ($GRID_X * 3) + 58, ($GRID_Y
* 3) + 5)
move_control_px($delay_amount_bandfx, ($GRID_X * 4) + 26, ($GRID
_Y * 3) + 5)
move_control_px($eq_lo_bandfx, ($GRID_X * 3) + 31, ($GRID_Y * 2)
+ 12)
move_control_px($eq_mid_bandfx, ($GRID_X * 3) + 76, ($GRID_Y * 2
) + 12)
move_control_px($eq_hi_bandfx, ($GRID_X * 4) + 29, ($GRID_Y * 2)
+ 12)
move_control_px($rev_bandfx, ($GRID_X * 1) + 80, ($GRID_Y * 1) +
16)
move_control_px($delay_bandfx, ($GRID_X * 1) + 80, ($GRID_Y * 3)
+ 5)
move_control_px($eq_bandfx, ($GRID_X * 1) + 80, ($GRID_Y * 4) +
16)
move_control_px($rev_onoff_bandfx, ($GRID_X * 1) + 60, ($GRID_Y
* 1) + 18)
move_control_px($delay_onoff_bandfx, ($GRID_X * 1) + 60, ($GRID_
Y * 3) + 8)
move_control_px($eq_onoff_bandfx, ($GRID_X * 1) + 60, ($GRID_Y *
4) + 20)
move_control_px($category_reverb, ($GRID_X * 2) + 84, ($GRID_Y *
2) + 6)
move_control_px($eq_background_bandfx, ($GRID_X * 2) + 75, ($GRI
D_Y * 2) + 2)
move_control_px($bandfx_bg_bandfx, ($GRID_X * 2) + 85, ($GRID_Y
* 2) + 6)
{VARIOUS ATTRIBUTES}
set_control_par(%bandfx_id[20], $CONTROL_PAR_DEFAULT_VALUE, 5000
00)
set_control_par(%bandfx_id[21], $CONTROL_PAR_DEFAULT_VALUE, 5000
00)
set_control_par(%bandfx_id[22], $CONTROL_PAR_DEFAULT_VALUE, 5000
00)
$rev_amount_bandfx := _get_engine_par ($ENGINE_PAR_SEND_EFFECT_O
UTPUT_GAIN, -1, $reverb_slot, 0)
$delay_feedback_bandfx := _get_engine_par ($ENGINE_PAR_DL_FEEDBA
CK, -1, $delay_slot, 0)
$delay_time_bandfx := _get_engine_par ($ENGINE_PAR_DL_TIME, -1,
$delay_slot, 0)
$delay_amount_bandfx := _get_engine_par ($ENGINE_PAR_SEND_EFFECT
_OUTPUT_GAIN, -1, $delay_slot, 0)
$eq_lo_bandfx := _get_engine_par($ENGINE_PAR_GAIN1, -1, $meq_slo
t, 1)
$eq_mid_bandfx := _get_engine_par($ENGINE_PAR_GAIN2, -1, $meq_sl
ot, 1)
$eq_hi_bandfx := _get_engine_par($ENGINE_PAR_GAIN3, -1, $meq_slo
t, 1)
$rev_onoff_bandfx := (_get_engine_par($ENGINE_PAR_SEND_EFFECT_BY
PASS, -1, $reverb_slot, 0) + 1) mod 2
$delay_onoff_bandfx := (_get_engine_par($ENGINE_PAR_SEND_EFFECT_
BYPASS, -1, $delay_slot, 0) + 1) mod 2
$eq_onoff_bandfx := (_get_engine_par($ENGINE_PAR_SEND_EFFECT_BYP
ASS, -1, $meq_slot, 1) + 1) mod 2
set_control_par_str(%bandfx_id[0], $CONTROL_PAR_TEXT, "")
set_control_par_str(%bandfx_id[1], $CONTROL_PAR_TEXT, "")
set_control_par_str(%bandfx_id[2], $CONTROL_PAR_TEXT, "")
set_control_par_str(%bandfx_id[3], $CONTROL_PAR_TEXT, "")
set_control_par_str(%bandfx_id[4], $CONTROL_PAR_TEXT, "")
set_control_par_str(%bandfx_id[5], $CONTROL_PAR_TEXT, "")
set_control_par_str(%bandfx_id[6], $CONTROL_PAR_TEXT, "")
set_control_par_str(%bandfx_id[7], $CONTROL_PAR_TEXT, "AMOUNT")
set_control_par_str(%bandfx_id[8], $CONTROL_PAR_TEXT, "")
set_control_par_str(%bandfx_id[9], $CONTROL_PAR_TEXT, "FEEDBACK"
)
set_control_par_str(%bandfx_id[10], $CONTROL_PAR_TEXT, "TIME")
set_control_par_str(%bandfx_id[11], $CONTROL_PAR_TEXT, "AMOUNT")
set_control_par_str(%bandfx_id[12], $CONTROL_PAR_TEXT, "")
set_control_par_str(%bandfx_id[13], $CONTROL_PAR_TEXT, "BASS")
set_control_par_str(%bandfx_id[14], $CONTROL_PAR_TEXT, "MID")
set_control_par_str(%bandfx_id[15], $CONTROL_PAR_TEXT, "TREBLE")
set_control_par_str(%bandfx_id[16], $CONTROL_PAR_TEXT, "")
set_control_par_str(%bandfx_id[31], $CONTROL_PAR_TEXT, "")
set_control_par_str(%bandfx_id[32], $CONTROL_PAR_TEXT, "")
{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 ($reverb_send, "Reverb Send Level: Controls the
amount of signal sent from the selected instrument to the master reverb effect.
")
set_control_help ($delay_send, "Delay Send Level: Controls the a
mount of signal sent from the selected instrument to the master delay effect.")
set_control_help($rev_bandfx, "Reverb: Displays the controls for
the reverb effect.")
set_control_help($delay_bandfx, "Delay: Displays the controls fo
r the delay send effect.")
set_control_help($eq_bandfx, "EQ: Displays the controls for the
master equalizer.")
set_control_help ($rev_amount_bandfx, "Reverb Return: Sets the o
utput volume of the reverb send effect.")
set_control_help ($delay_feedback_bandfx, "Delay Feedback: Contr
ols the amount of signal from the delay effect output that is fed back into the
delay effect input.")
set_control_help ($delay_time_bandfx, "Delay Time: Sets the amou
nt of time between the original input and the delayed output signal.")
set_control_help ($delay_amount_bandfx, "Reverb Return: Sets the
output volume of the delay send effect.")
set_control_help ($eq_lo_bandfx, "EQ Low Gain: Controls the gain
of the master output's lower frequencies.")
set_control_help ($eq_mid_bandfx, "EQ Mid Gain: Controls the gai
n of the master output's mid frequencies.")
set_control_help ($eq_hi_bandfx, "EQ High Gain: Controls the gai
n of the master output's higher frequencies.")
set_control_help ($rev_onoff_bandfx, "Reverb On/Off: Turns the r
everb send effect on or off.")
set_control_help ($delay_onoff_bandfx, "Delay On/Off: Turns the
delay send effect on or off.")
set_control_help ($eq_onoff_bandfx, "EQ On/Off: Turns the master
equalizer 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.")
if ($CREATE_AUTOMATION_ID = 1)
$count := 16
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,$count)
inc($count)
set_control_par(get_ui_id($knob_2_artic),$CONTROL_PAR_AUTOMATION
_ID,$count)
inc($count)
set_control_par(get_ui_id($note_voicing),$CONTROL_PAR_AUTOMATION
_ID,$count)
inc($count)
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,$count)
inc($count)
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)
inc($count)
set_control_par(get_ui_id($reverb_send),$CONTROL_PAR_AUTOMATION_
ID,4)
set_control_par(get_ui_id($delay_send),$CONTROL_PAR_AUTOMATION_I
D,5)
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,
$count)
inc($count)
set_control_par(get_ui_id($decay_env),$CONTROL_PAR_AUTOMATION_ID
,7)
set_control_par(get_ui_id($rev_onoff_bandfx),$CONTROL_PAR_AUTOMA
TION_ID,12)
set_control_par(get_ui_id($delay_onoff_bandfx),$CONTROL_PAR_AUTO
MATION_ID,13)
set_control_par(get_ui_id($eq_onoff_bandfx),$CONTROL_PAR_AUTOMAT
ION_ID,$count)
inc($count)
set_control_par(get_ui_id($rev_amount_bandfx),$CONTROL_PAR_AUTOM
ATION_ID,$count)
inc($count)
set_control_par(get_ui_id($delay_feedback_bandfx),$CONTROL_PAR_A
UTOMATION_ID,$count)
inc($count)
set_control_par(get_ui_id($delay_time_bandfx),$CONTROL_PAR_AUTOM
ATION_ID,$count)
inc($count)
set_control_par(get_ui_id($delay_amount_bandfx),$CONTROL_PAR_AUT
OMATION_ID,$count)
inc($count)
set_control_par(get_ui_id($eq_lo_bandfx),$CONTROL_PAR_AUTOMATION
_ID,$count)
inc($count)
set_control_par(get_ui_id($eq_mid_bandfx),$CONTROL_PAR_AUTOMATIO
N_ID,$count)
inc($count)
set_control_par(get_ui_id($eq_hi_bandfx),$CONTROL_PAR_AUTOMATION
_ID,$count)
end if
end on
{VOICING UI CALLBACKS START}
on ui_control($note_voicing)
$instr_menu_voicing := $note_voicing - 35
$selected_group := $note_voicing - 35
$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)
$reverb_send := _get_engine_par($ENGINE_PAR_SENDLEVEL_1,$selected_group,
$send_slot,1)
$delay_send := _get_engine_par($ENGINE_PAR_SENDLEVEL_2,$selected_group,$
send_slot,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])
if (($note_voicing > 24) and ($note_voicing < 36))
set_text ($lb_note_voicing, "C0-B0")
set_control_par_str(get_ui_id($note_voicing),$CONTROL_PAR_LABEL,
"C0 - B0")
else
set_text ($lb_note_voicing,!note_names[$note_voicing])
set_control_par_str(get_ui_id($note_voicing),$CONTROL_PAR_LABEL,
!note_names[$note_voicing])
end if
$last_time_1 := $ENGINE_UPTIME
wait($wait_time * 1000)
if($ENGINE_UPTIME - $last_time_1 > $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 + 35
$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)
$reverb_send := _get_engine_par($ENGINE_PAR_SENDLEVEL_0,$selected_group,
$send_slot,1)
$delay_send := _get_engine_par($ENGINE_PAR_SENDLEVEL_1,$selected_group,$
send_slot,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_knob_1_artic,!Knob1_names[$type_artic])
set_text ($lb_knob_2_artic,!Knob2_names[$type_artic])
if (($note_voicing > 24) and ($note_voicing < 36))
set_text ($lb_note_voicing, "C0-B0")
set_control_par_str(get_ui_id($note_voicing),$CONTROL_PAR_LABEL,
"C0 - B0")
else
set_text ($lb_note_voicing,!note_names[$note_voicing])
set_control_par_str(get_ui_id($note_voicing),$CONTROL_PAR_LABEL,
!note_names[$note_voicing])
end if
set_text($lb_type_artic,!artic_name[$type_artic])
$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 ($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,35,(35-1+$DRUM_INSTR)) and $sel_by_midi = 1)
$note_voicing := $EVENT_NOTE
$instr_menu_voicing := $note_voicing - 35
$selected_group := $note_voicing - 35
$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)
$reverb_send := _get_engine_par($ENGINE_PAR_SENDLEVEL_0,$selecte
d_group,$send_slot,1)
$delay_send := _get_engine_par($ENGINE_PAR_SENDLEVEL_1,$selected
_group,$send_slot,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])
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 & " %")
$last_time_2 := $ENGINE_UPTIME
wait($wait_time * 1000)
if($ENGINE_UPTIME - $last_time_2 > $wait_time -5)
set_text ($lb_type_artic,"ARTICULATION")
end if
end on
on ui_control ($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
set_control_par_str(get_ui_id($knob_1_artic),$CONTROL_PAR_LABEL,$knob_1_
artic & " %")
end on
on ui_control ($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
set_control_par_str(get_ui_id($knob_2_artic),$CONTROL_PAR_LABEL,$knob_2_
artic & " %")
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($reverb_send)
_set_engine_par($ENGINE_PAR_SENDLEVEL_0,$reverb_send,$selected_group,$se
nd_slot,-1)
set_control_par_str(get_ui_id($reverb_send),$CONTROL_PAR_LABEL,get_engin
e_par_disp($ENGINE_PAR_SENDLEVEL_0,$selected_group,$send_slot,1) & " dB")
end on
on ui_control($delay_send)
_set_engine_par($ENGINE_PAR_SENDLEVEL_1,$delay_send,$selected_group,$sen
d_slot,-1)
set_control_par_str(get_ui_id($delay_send),$CONTROL_PAR_LABEL,get_engine
_par_disp($ENGINE_PAR_SENDLEVEL_1,$selected_group,$send_slot,1)& " dB")
end on
{*** CONTROL GROUP "BANDFX" UI_CONTROL CALLBACKS}
on ui_control ($rev_bandfx)
if ($rev_bandfx = 0)
$rev_bandfx := 1
else
$delay_bandfx := 0
$eq_bandfx := 0
set_control_par(%bandfx_id[7], $CONTROL_PAR_HIDE, $HIDE_PART_BG)
set_control_par(%bandfx_id[8], $CONTROL_PAR_HIDE, $HIDE_PART_NOT
HING)
set_control_par(%bandfx_id[16], $CONTROL_PAR_HIDE, $HIDE_PART_NO
THING)
set_control_par(%bandfx_id[30], $CONTROL_PAR_HIDE, $HIDE_PART_NO
THING)
set_control_par(%bandfx_id[32], $CONTROL_PAR_HIDE, $HIDE_PART_NO
THING)
set_control_par(%bandfx_id[9], $CONTROL_PAR_HIDE, $HIDE_WHOLE_CO
NTROL)
set_control_par(%bandfx_id[10], $CONTROL_PAR_HIDE, $HIDE_WHOLE_C
ONTROL)
set_control_par(%bandfx_id[11], $CONTROL_PAR_HIDE, $HIDE_WHOLE_C
ONTROL)
set_control_par(%bandfx_id[17], $CONTROL_PAR_HIDE, $HIDE_WHOLE_C
ONTROL)
set_control_par(%bandfx_id[18], $CONTROL_PAR_HIDE, $HIDE_WHOLE_C
ONTROL)
set_control_par(%bandfx_id[19], $CONTROL_PAR_HIDE, $HIDE_WHOLE_C
ONTROL)
set_control_par(%bandfx_id[13], $CONTROL_PAR_HIDE, $HIDE_WHOLE_C
ONTROL)
set_control_par(%bandfx_id[14], $CONTROL_PAR_HIDE, $HIDE_WHOLE_C
ONTROL)
set_control_par(%bandfx_id[15], $CONTROL_PAR_HIDE, $HIDE_WHOLE_C
ONTROL)
set_control_par(%bandfx_id[20], $CONTROL_PAR_HIDE, $HIDE_WHOLE_C
ONTROL)
set_control_par(%bandfx_id[21], $CONTROL_PAR_HIDE, $HIDE_WHOLE_C
ONTROL)
set_control_par(%bandfx_id[22], $CONTROL_PAR_HIDE, $HIDE_WHOLE_C
ONTROL)
set_control_par(%bandfx_id[31], $CONTROL_PAR_HIDE, $HIDE_WHOLE_C
ONTROL)
set_control_par(%bandfx_id[0], $CONTROL_PAR_PICTURE_STATE, 0)
$count := 0
while ($count < 9)
if ($count = $category_reverb)
set_control_par(%subcat_menu_id[$count],$CONTROL
_PAR_HIDE,$HIDE_PART_NOTHING)
else
set_control_par(%subcat_menu_id[$count],$CONTROL
_PAR_HIDE,$HIDE_WHOLE_CONTROL)
end if
inc ($count)
end while
end if
end on
on ui_control ($delay_bandfx)
if ($delay_bandfx = 0)
$delay_bandfx := 1
else
$rev_bandfx := 0
$eq_bandfx := 0
set_control_par(%bandfx_id[7], $CONTROL_PAR_HIDE, $HIDE_WHOLE_CO
NTROL)
set_control_par(%bandfx_id[8], $CONTROL_PAR_HIDE, $HIDE_WHOLE_CO
NTROL)
set_control_par(%bandfx_id[16], $CONTROL_PAR_HIDE, $HIDE_WHOLE_C
ONTROL)
set_control_par(%bandfx_id[30], $CONTROL_PAR_HIDE, $HIDE_WHOLE_C
ONTROL)
set_control_par(%bandfx_id[32], $CONTROL_PAR_HIDE, $HIDE_WHOLE_C
ONTROL)
set_control_par(%bandfx_id[9], $CONTROL_PAR_HIDE, $HIDE_PART_BG)
set_control_par(%bandfx_id[10], $CONTROL_PAR_HIDE, $HIDE_PART_BG
)
set_control_par(%bandfx_id[11], $CONTROL_PAR_HIDE, $HIDE_PART_BG
)
set_control_par(%bandfx_id[17], $CONTROL_PAR_HIDE, $HIDE_PART_NO
THING)
set_control_par(%bandfx_id[18], $CONTROL_PAR_HIDE, $HIDE_PART_NO
THING)
set_control_par(%bandfx_id[19], $CONTROL_PAR_HIDE, $HIDE_PART_NO
THING)
set_control_par(%bandfx_id[13], $CONTROL_PAR_HIDE, $HIDE_WHOLE_C
ONTROL)
set_control_par(%bandfx_id[14], $CONTROL_PAR_HIDE, $HIDE_WHOLE_C
ONTROL)
set_control_par(%bandfx_id[15], $CONTROL_PAR_HIDE, $HIDE_WHOLE_C
ONTROL)
set_control_par(%bandfx_id[20], $CONTROL_PAR_HIDE, $HIDE_WHOLE_C
ONTROL)
set_control_par(%bandfx_id[21], $CONTROL_PAR_HIDE, $HIDE_WHOLE_C
ONTROL)
set_control_par(%bandfx_id[22], $CONTROL_PAR_HIDE, $HIDE_WHOLE_C
ONTROL)
set_control_par(%bandfx_id[31], $CONTROL_PAR_HIDE, $HIDE_WHOLE_C
ONTROL)
set_control_par(%bandfx_id[0], $CONTROL_PAR_PICTURE_STATE, 1)
$count := 0
while ($count < 9)
set_control_par(%subcat_menu_id[$count],$CONTROL_PAR_HID
E,$HIDE_WHOLE_CONTROL)
inc ($count)
end while
end if
end on
on ui_control ($eq_bandfx)
if ($eq_bandfx = 0)
$eq_bandfx := 1
else
$rev_bandfx := 0
$delay_bandfx := 0
set_control_par(%bandfx_id[7], $CONTROL_PAR_HIDE, $HIDE_WHOLE_CO
NTROL)
set_control_par(%bandfx_id[8], $CONTROL_PAR_HIDE, $HIDE_WHOLE_CO
NTROL)
set_control_par(%bandfx_id[16], $CONTROL_PAR_HIDE, $HIDE_WHOLE_C
ONTROL)
set_control_par(%bandfx_id[30], $CONTROL_PAR_HIDE, $HIDE_WHOLE_C
ONTROL)
set_control_par(%bandfx_id[32], $CONTROL_PAR_HIDE, $HIDE_WHOLE_C
ONTROL)
set_control_par(%bandfx_id[9], $CONTROL_PAR_HIDE, $HIDE_WHOLE_CO
NTROL)
set_control_par(%bandfx_id[10], $CONTROL_PAR_HIDE, $HIDE_WHOLE_C
ONTROL)
set_control_par(%bandfx_id[11], $CONTROL_PAR_HIDE, $HIDE_WHOLE_C
ONTROL)
set_control_par(%bandfx_id[17], $CONTROL_PAR_HIDE, $HIDE_WHOLE_C
ONTROL)
set_control_par(%bandfx_id[18], $CONTROL_PAR_HIDE, $HIDE_WHOLE_C
ONTROL)
set_control_par(%bandfx_id[19], $CONTROL_PAR_HIDE, $HIDE_WHOLE_C
ONTROL)
set_control_par(%bandfx_id[13], $CONTROL_PAR_HIDE, $HIDE_PART_BG
)
set_control_par(%bandfx_id[14], $CONTROL_PAR_HIDE, $HIDE_PART_BG
)
set_control_par(%bandfx_id[15], $CONTROL_PAR_HIDE, $HIDE_PART_BG
)
set_control_par(%bandfx_id[20], $CONTROL_PAR_HIDE, $HIDE_PART_NO
THING)
set_control_par(%bandfx_id[21], $CONTROL_PAR_HIDE, $HIDE_PART_NO
THING)
set_control_par(%bandfx_id[22], $CONTROL_PAR_HIDE, $HIDE_PART_NO
THING)
set_control_par(%bandfx_id[31], $CONTROL_PAR_HIDE, $HIDE_PART_NO
THING)
set_control_par(%bandfx_id[0], $CONTROL_PAR_PICTURE_STATE, 2)
$count := 0
while ($count < 9)
set_control_par(%subcat_menu_id[$count],$CONTROL_PAR_HID
E,$HIDE_WHOLE_CONTROL)
inc ($count)
end while
end if
end on
{reverb functionality}
on ui_control ($rev_onoff_bandfx)
_set_engine_par($ENGINE_PAR_SEND_EFFECT_BYPASS, (($rev_onoff_bandfx + 1)
mod 2), -1, $reverb_slot, 0)
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,0)
{change 0 to 1 if reverb is on insert effect}
end on
on ui_control ($hall_reverb)
_load_ir_sample(_get_folder($GET_FOLDER_FACTORY_DIR)...
& !ir_path[$hall_reverb],$reverb_slot,0)
end on
on ui_control ($cathedral_reverb)
_load_ir_sample(_get_folder($GET_FOLDER_FACTORY_DIR)...
& !ir_path[$cathedral_reverb],$reverb_slot,0)
end on
on ui_control ($club_reverb)
_load_ir_sample(_get_folder($GET_FOLDER_FACTORY_DIR)...
& !ir_path[$club_reverb],$reverb_slot,0)
end on
on ui_control ($room_reverb)
_load_ir_sample(_get_folder($GET_FOLDER_FACTORY_DIR)...
& !ir_path[$room_reverb],$reverb_slot,0)
end on
on ui_control ($l300_reverb)
_load_ir_sample(_get_folder($GET_FOLDER_FACTORY_DIR)...
& !ir_path[$l300_reverb],$reverb_slot,0)
end on
on ui_control ($quadstick_reverb)
_load_ir_sample(_get_folder($GET_FOLDER_FACTORY_DIR)...
& !ir_path[$quadstick_reverb],$reverb_slot,0)
end on
on ui_control ($brt7_reverb)
_load_ir_sample(_get_folder($GET_FOLDER_FACTORY_DIR)...
& !ir_path[$brt7_reverb],$reverb_slot,0)
end on
on ui_control ($plate_reverb)
_load_ir_sample(_get_folder($GET_FOLDER_FACTORY_DIR)...
& !ir_path[$plate_reverb],$reverb_slot,0)
end on
on ui_control ($cabinet_reverb)
_load_ir_sample(_get_folder($GET_FOLDER_FACTORY_DIR)...
& !ir_path[$cabinet_reverb],$reverb_slot,0)
end on
on ui_control ($rev_amount_bandfx)
_set_engine_par ($ENGINE_PAR_SEND_EFFECT_OUTPUT_GAIN, $rev_amount_bandfx
, -1, $reverb_slot, 0)
set_control_par_str(get_ui_id($rev_amount_bandfx),$CONTROL_PAR_LABEL,get
_engine_par_disp($ENGINE_PAR_SEND_EFFECT_OUTPUT_GAIN, -1, $reverb_slot, 0) & " d
B")
end on
{delay functionality}
on ui_control ($delay_onoff_bandfx)
_set_engine_par ($ENGINE_PAR_SEND_EFFECT_BYPASS, (($delay_onoff_bandfx +
1) mod 2), -1, $delay_slot, 0)
end on
on ui_control ($delay_feedback_bandfx)
_set_engine_par($ENGINE_PAR_DL_FEEDBACK, $delay_feedback_bandfx, -1, $de
lay_slot, 0)
set_control_par_str(get_ui_id($delay_feedback_bandfx),$CONTROL_PAR_LABEL
,get_engine_par_disp($ENGINE_PAR_DL_FEEDBACK, -1, $delay_slot, 0) & " %")
end on
on ui_control ($delay_time_bandfx)
_set_engine_par ($ENGINE_PAR_DL_TIME, $delay_time_bandfx, -1, $delay_slo
t, 0)
set_control_par_str(get_ui_id($delay_time_bandfx),$CONTROL_PAR_LABEL,get
_engine_par_disp($ENGINE_PAR_DL_TIME, -1, $delay_slot, 0) & " 16th")
end on
on ui_control ($delay_amount_bandfx)
_set_engine_par ($ENGINE_PAR_SEND_EFFECT_OUTPUT_GAIN, $delay_amount_band
fx, -1, $delay_slot, 0)
set_control_par_str(get_ui_id($delay_amount_bandfx),$CONTROL_PAR_LABEL,g
et_engine_par_disp($ENGINE_PAR_SEND_EFFECT_OUTPUT_GAIN, -1, $delay_slot, 0) & "
dB")
end on
{eq functionality}
on ui_control ($eq_onoff_bandfx)
_set_engine_par ($ENGINE_PAR_EFFECT_BYPASS, (($eq_onoff_bandfx + 1) mod
2), -1, $meq_slot, 1)
end on
on ui_control ($eq_lo_bandfx)
_set_engine_par($ENGINE_PAR_GAIN1, $eq_lo_bandfx, -1, $meq_slot, 1)
set_control_par_str(get_ui_id($eq_lo_bandfx),$CONTROL_PAR_LABEL,get_engi
ne_par_disp($ENGINE_PAR_GAIN1, -1, $meq_slot, 1) & " dB")
end on
on ui_control ($eq_mid_bandfx)
_set_engine_par($ENGINE_PAR_GAIN2, $eq_mid_bandfx, -1, $meq_slot, 1)
set_control_par_str(get_ui_id($eq_mid_bandfx),$CONTROL_PAR_LABEL,get_eng
ine_par_disp($ENGINE_PAR_GAIN2, -1, $meq_slot, 1) & " dB")
end on
on ui_control ($eq_hi_bandfx)
_set_engine_par($ENGINE_PAR_GAIN3, $eq_hi_bandfx, -1, $meq_slot, 1)
set_control_par_str(get_ui_id($eq_hi_bandfx),$CONTROL_PAR_LABEL,get_engi
ne_par_disp($ENGINE_PAR_GAIN3, -1, $meq_slot, 1) & " dB")
end on
{*** END CONTROL GROUP "BANDFX" UI_CONTROL CALLBACKS}