Вы находитесь на странице: 1из 29

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

Vintage Main (Variation 4)


Author: Native Instruments
Written by: Adam Hanley & Dinos Vallianatos
Modified: August 6, 2009
*************************************************}
on init
make_perfview
set_script_title("Instrument")
set_ui_height_px(318)
message("")
declare $count
declare const $ROOT_X := 66
declare const $ROOT_Y := 2
declare const $GRID_X := 92
declare const $GRID_Y := 21
declare const $FONT_ID := 1
declare const $CREATE_AUTOMATION_ID := 0
declare const $grp_idx := 0
declare const $perc_idx := 1
declare const $bass_idx := 2
declare const $allpass_slot := 2
declare const $vowel_slot := 3
declare const $eq_slot := 2
declare const $rotator_slot := 3
declare const $cabinet_slot := 4
declare const $phaser_slot := 5
declare $vol_env_idx
$vol_env_idx := find_mod ($grp_idx,"VOL_ENV")
declare $filter_lfo_idx
$filter_lfo_idx := find_mod ($grp_idx,"FILTER_LFO")
declare $trem_lfo_idx
$trem_lfo_idx := find_mod ($grp_idx,"TREM_LFO")
declare $vel_all_idx
$vel_all_idx := find_mod($grp_idx,"VEL_CUTOFF1")
declare $vel_vow_idx
$vel_vow_idx := find_mod($grp_idx,"VEL_CUTOFF2")
declare $lfo_all_idx
$lfo_all_idx := find_mod($grp_idx,"LFO_CUTOFF1")
declare $lfo_vow_idx
$lfo_vow_idx := find_mod($grp_idx,"LFO_CUTOFF2")
declare $trem_intens_idx
$trem_intens_idx := find_mod($grp_idx,"TREM_LFO_INTENS")
declare $wait_time := 800
declare $last_time
{----------FILTER START----------}
{POSITIONING OF CONTROL GROUP}
declare $x_grid_filter := 1 {X Position of Control Group in grid}
declare $y_grid_filter := 2 {Y Position of Control Group in grid}
declare $x_px_filter := 0 {X Position Offset Control Group in pixel}
declare $y_px_filter := 5 {Y Position Offset Control Group in pixel}
{DECLARATION AND UI_IDs}
declare const $NUM_FILTER := 15 {number of elements in this control grou
p}
declare ui_label $lb_cutoff_filter (1,1)
declare ui_label $lb_resonance_filter (1,1)
declare ui_label $lb_vel_filter (1,1)
declare ui_label $lb_lfo_filter (1,1)
declare ui_label $lb_lforate_filter (1,1)
declare ui_label $lb_allpass_filter (1,1)
declare ui_label $lb_vowel_filter (1,1)
declare ui_label $lb_type_filter (1,1)
declare ui_slider $cutoff_filter (0, 1000000)
declare ui_slider $resonance_filter (0, 1000000)
declare ui_slider $vel_filter (0, 1000000)
declare ui_slider $lfo_filter (0, 1000000)
declare ui_slider $lforate_filter (200000, 750000)
declare ui_switch $type_switch_filter
declare ui_switch $onoff_filter
declare %filter_id[$NUM_FILTER]
%filter_id[0] := get_ui_id($lb_cutoff_filter)
%filter_id[1] := get_ui_id($lb_resonance_filter)
%filter_id[2] := get_ui_id($lb_vel_filter)
%filter_id[3] := get_ui_id($lb_lfo_filter)
%filter_id[4] := get_ui_id($lb_lforate_filter)
%filter_id[5] := get_ui_id($lb_type_filter)
%filter_id[6] := get_ui_id($lb_allpass_filter)
%filter_id[7] := get_ui_id($lb_vowel_filter)
%filter_id[8] := get_ui_id($cutoff_filter)
%filter_id[9] := get_ui_id($resonance_filter)
%filter_id[10] := get_ui_id($vel_filter)
%filter_id[11] := get_ui_id($lfo_filter)
%filter_id[12] := get_ui_id($lforate_filter)
%filter_id[13] := get_ui_id($type_switch_filter)
%filter_id[14] := get_ui_id($onoff_filter)
{POSITIONING OF INDIVIDUAL CONTROLS}
move_control_px($lb_allpass_filter, ($GRID_X * 2) + 5, ($GRID_Y * 4) - 1
1)
move_control_px($lb_vowel_filter, ($GRID_X * 2) + 40, ($GRID_Y * 4) - 11
)
move_control_px($lb_type_filter, ($GRID_X * 2) + 22, ($GRID_Y * 3) - 5)
move_control_px($cutoff_filter, ($GRID_X * 1) - 2, ($GRID_Y * 4) - 8)
move_control_px($resonance_filter, ($GRID_X * 1) + 56, ($GRID_Y * 4) - 8
)
move_control_px($vel_filter, ($GRID_X * 1) - 2, ($GRID_Y * 6) + 12)
move_control_px($lfo_filter, ($GRID_X * 1) + 56, ($GRID_Y * 6) + 12)
move_control_px($lforate_filter, ($GRID_X * 2) + 22, ($GRID_Y * 6) + 12)
move_control_px($onoff_filter, ($GRID_X * 5/2) + 13, ($GRID_Y * 1) + 9)
move_control_px($type_switch_filter, ($GRID_X * 2) + 25, ($GRID_Y * 4) +
3)
{VARIOUS ATTRIBUTES}
set_control_help($cutoff_filter,"Cutoff: Controls the cutoff frequency o
f the filter")
set_control_help($resonance_filter,"Resonance: Controls the strength of
the resonant peak of the filter")
set_control_help($vel_filter,"Vel Sensitivity: Controls the amount of mo
dulation applied from the MIDI velocity to the filter cutoff")
set_control_help($lfo_filter,"LFO Amount: Controls the amount of modulat
ion applied from the LFO to the filter cutoff")
set_control_help($lforate_filter,"LFO Rate: Controls the speed of the fi
lter LFO")
set_control_help($onoff_filter,"Filter On/Off")
set_control_help($type_switch_filter,"Type: Switches between allpass and
vowel filter modes")
set_control_par(%filter_id[8], $CONTROL_PAR_DEFAULT_VALUE, 1000000)
set_control_par(%filter_id[12], $CONTROL_PAR_DEFAULT_VALUE, 500000)
$cutoff_filter := _get_engine_par($ENGINE_PAR_CUTOFF, $grp_idx, $allpass
_slot, -1)
$resonance_filter := _get_engine_par($ENGINE_PAR_RESONANCE, $grp_idx, $a
llpass_slot, -1)
$vel_filter := _get_engine_par($ENGINE_PAR_MOD_TARGET_INTENSITY, $grp_id
x, $vel_all_idx, -1)
$lforate_filter := _get_engine_par($ENGINE_PAR_INTMOD_FREQUENCY,$grp_idx
,$filter_lfo_idx,-1)
$lfo_filter := _get_engine_par ($ENGINE_PAR_MOD_TARGET_INTENSITY, $grp_i
dx, $filter_lfo_idx,...
find_target(0, $filter_lfo_idx, "LFO_CUTOFF1"))
declare $vowel_state_filter
declare $all_state_filter
if (((_get_engine_par($ENGINE_PAR_EFFECT_BYPASS, $grp_idx, $allpass_slot
, -1)+1) mod 2 = 0)...
and ((_get_engine_par($ENGINE_PAR_EFFECT_BYPASS, $grp_idx, $vowe
l_slot, -1)+1) mod 2 = 0))
$onoff_filter := 0
$vowel_state_filter := 1
$all_state_filter := 0
else
if (((_get_engine_par($ENGINE_PAR_EFFECT_BYPASS, $grp_idx, $allp
ass_slot, -1)+1) mod 2 = 1)...
and ((_get_engine_par($ENGINE_PAR_EFFECT_BYPASS, $grp_idx, $vowe
l_slot, -1)+1) mod 2 = 0))
$onoff_filter := 1
$vowel_state_filter := 1
$all_state_filter := 0
else
$onoff_filter := 1
$vowel_state_filter := 0
$all_state_filter := 1
end if
end if
$type_switch_filter := $vowel_state_filter
set_text($lb_cutoff_filter,"Cutoff")
set_text($lb_resonance_filter,"Reso")
set_text($lb_vel_filter,"Vel Sens")
set_text($lb_lfo_filter,"LFO Amt")
set_text($lb_lforate_filter,"LFO Rate")
set_text($lb_allpass_filter,"Allpass")
set_text($lb_vowel_filter,"Vowel")
set_text($lb_type_filter,"Type")
$count := 0
while ($count < 8)
set_control_par(%filter_id[$count], $CONTROL_PAR_HIDE, $HIDE_PAR
T_BG)
if($count < 5)
set_control_par(%filter_id[$count], $CONTROL_PAR_FONT_TY
PE, $FONT_ID)
set_control_par(%filter_id[$count], $CONTROL_PAR_TEXT_AL
IGNMENT, 1)
set_control_par(%filter_id[$count], $CONTROL_PAR_POS_X,
get_control_par...
(%filter_id[$count+8],$CONTROL_PAR_POS_X) - 25)
set_control_par(%filter_id[$count], $CONTROL_PAR_POS_Y,
get_control_par...
(%filter_id[$count+8],$CONTROL_PAR_POS_Y) - 18)
else
if ($count = 5)
set_control_par(%filter_id[$count], $CON
TROL_PAR_FONT_TYPE, $FONT_ID)
end if
end if
inc($count)
end while
$count := 8
while ($count < 13)
set_control_par_str(%filter_id[$count], $CONTROL_PAR_PICTURE, "p
v_vintage_drums_knob")
set_control_par(%filter_id[$count], $CONTROL_PAR_MOUSE_BEHAVIOUR
, -400)
inc($count)
end while
set_control_par_str(%filter_id[14], $CONTROL_PAR_PICTURE, "pv_vintage_dr
ums_led")
set_control_par(%filter_id[14], $CONTROL_PAR_HEIGHT, 21)
set_control_par(%filter_id[14], $CONTROL_PAR_WIDTH, 21)
set_control_par_str(%filter_id[13], $CONTROL_PAR_PICTURE, "pv_vintage_sw
itch_no_dot")
set_control_par(%filter_id[13], $CONTROL_PAR_HEIGHT,25)
set_control_par(%filter_id[13], $CONTROL_PAR_WIDTH,33)
$count := 13
while ($count < 15)
set_control_par_str(%filter_id[$count], $CONTROL_PAR_TEXT, "")
inc($count)
end while
{Move control group}
$count := 0
while ($count < $NUM_FILTER)
set_control_par (%filter_id[$count],$CONTROL_PAR_POS_X,get_contr
ol_par(%filter_id[$count],$CONTROL_PAR_POS_X)...
+$ROOT_X + ($x_grid_filter - 2)*$GRID_X + $x_px_filter)
set_control_par (%filter_id[$count],$CONTROL_PAR_POS_Y,get_contr
ol_par(%filter_id[$count],$CONTROL_PAR_POS_Y)...
+$ROOT_Y + ($y_grid_filter - 2)*$GRID_Y + $y_px_filter)
inc($count)
end while
{Automation stuff}
set_control_par_str(get_ui_id($cutoff_filter),$CONTROL_PAR_AUTOMATION_NA
ME,"Cutoff")
set_control_par_str(get_ui_id($resonance_filter),$CONTROL_PAR_AUTOMATION
_NAME,"Reso")
set_control_par_str(get_ui_id($vel_filter),$CONTROL_PAR_AUTOMATION_NAME,
"Vel Sens")
set_control_par_str(get_ui_id($lfo_filter),$CONTROL_PAR_AUTOMATION_NAME,
"LFO Amt")
set_control_par_str(get_ui_id($lforate_filter),$CONTROL_PAR_AUTOMATION_N
AME,"LFO Rate")
set_control_par_str(get_ui_id($type_switch_filter),$CONTROL_PAR_AUTOMATI
ON_NAME,"Flt Type")
set_control_par_str(get_ui_id($onoff_filter),$CONTROL_PAR_AUTOMATION_NAM
E,"Filter On/Off")
set_control_par_str(get_ui_id($cutoff_filter),$CONTROL_PAR_LABEL,get_eng
ine_par_disp($ENGINE_PAR_CUTOFF, $grp_idx, $allpass_slot, -1) & " Hz")
set_control_par_str(get_ui_id($resonance_filter),$CONTROL_PAR_LABEL,get_
engine_par_disp($ENGINE_PAR_RESONANCE, $grp_idx, $allpass_slot, -1) & " %")
set_control_par_str(get_ui_id($vel_filter),$CONTROL_PAR_LABEL,get_engine
_par_disp($ENGINE_PAR_MOD_TARGET_INTENSITY, $grp_idx, $vel_all_idx, -1) & " %")
set_control_par_str(get_ui_id($lfo_filter),$CONTROL_PAR_LABEL,get_engine
_par_disp($ENGINE_PAR_MOD_TARGET_INTENSITY, $grp_idx, $filter_lfo_idx,...
find_target(0, $filter_lfo_idx, "LFO_CUTOFF1")) & " %")
set_control_par_str(get_ui_id($lforate_filter),$CONTROL_PAR_LABEL,get_en
gine_par_disp($ENGINE_PAR_INTMOD_FREQUENCY,$grp_idx,$filter_lfo_idx,-1) & " Hz")
{----------FILTER END----------}
{----------INSTRUMENTS CONTROLS START----------}
{POSITIONING OF CONTROL GROUP}
declare $x_grid_instr := 3 {X Position of Control Group in grid}
declare $y_grid_instr := 2 {Y Position of Control Group in grid}
declare $x_px_instr := 10 {X Position Offset Control Group in pixel}
declare $y_px_instr := 5 {Y Position Offset Control Group in pixel}
{DECLARATION AND UI_IDs}
declare const $NUM_INSTR := 8 {number of elements in this control group}
declare ui_label $lb_fat_instr (1,1)
declare ui_label $lb_sound_instr (1,1)
declare ui_label $lb_perc_instr (1,1)
declare ui_label $lb_bass_instr (1,1)
declare ui_slider $sound_instr (0, 100)
declare ui_slider $perc_instr (0, 750000)
declare ui_slider $bass_instr (0, 750000)
declare ui_switch $fat_instr
declare %instr_id[$NUM_INSTR]
%instr_id[0] := get_ui_id($lb_fat_instr)
%instr_id[1] := get_ui_id($lb_sound_instr)
%instr_id[2] := get_ui_id($lb_perc_instr)
%instr_id[3] := get_ui_id($lb_bass_instr)
%instr_id[4] := get_ui_id($fat_instr)
%instr_id[5] := get_ui_id($sound_instr)
%instr_id[6] := get_ui_id($perc_instr)
%instr_id[7] := get_ui_id($bass_instr)
{POSITIONING OF INDIVIDUAL CONTROLS}
move_control_px($lb_fat_instr, ($GRID_X * 1) + 9, ($GRID_Y * 3) - 6)
move_control_px($sound_instr, ($GRID_X * 2) - 28, ($GRID_Y * 4) - 9)
move_control_px($perc_instr, ($GRID_X * 1) + 7, ($GRID_Y * 6) + 12)
move_control_px($bass_instr, ($GRID_X * 2) - 28, ($GRID_Y * 6) + 12)
move_control_px($fat_instr, ($GRID_X * 1) + 3, ($GRID_Y * 4) + 3)
{VARIOUS ATTRIBUTES}
set_control_help($fat_instr,"Fat: Toggles on or off a unisono effect. Th
e parameters of which can be modified in the script view")
set_control_help($sound_instr,"Sound: Morphs between a variety of EQ set
tings")
set_control_help($perc_instr,"Perc: Controls the volume of a percussive
bass sound layer.")
set_control_help($bass_instr,"Bass: Controls the volume of a sustained b
ass sound layer.")
make_persistent($sound_instr)
make_persistent($fat_instr)
_read_persistent_var($fat_instr)
if ($fat_instr = 1)
_pgs_set_key_val(UNISONO_VOICES,0,2)
else
_pgs_set_key_val(UNISONO_VOICES,0,1)
end if
set_text($lb_fat_instr,"Fat")
set_text($lb_sound_instr,"Sound")
set_text($lb_perc_instr,"Perc")
set_text($lb_bass_instr,"Bass")
$count := 0
while ($count < 4)
set_control_par(%instr_id[$count], $CONTROL_PAR_HIDE, $HIDE_PART
_BG)
set_control_par(%instr_id[$count], $CONTROL_PAR_FONT_TYPE, $FONT
_ID)
if ($count > 0)
set_control_par(%instr_id[$count], $CONTROL_PAR_TEXT_ALI
GNMENT, 1)
set_control_par(%instr_id[$count], $CONTROL_PAR_POS_X, g
et_control_par...
(%instr_id[$count+4], $CONTROL_PAR_POS_X) - 25)
set_control_par(%instr_id[$count], $CONTROL_PAR_POS_Y, g
et_control_par...
(%instr_id[$count+4], $CONTROL_PAR_POS_Y) - 18)
end if
inc($count)
end while
$count := 5
while ($count < 8)
set_control_par_str(%instr_id[$count], $CONTROL_PAR_PICTURE, "pv
_vintage_drums_knob")
set_control_par(%instr_id[$count], $CONTROL_PAR_MOUSE_BEHAVIOUR,
-400)
inc($count)
end while
set_control_par_str(%instr_id[4], $CONTROL_PAR_PICTURE, "pv_vintage_drum
s_switch")
set_control_par_str(%instr_id[4], $CONTROL_PAR_TEXT, "")
set_control_par(%instr_id[4], $CONTROL_PAR_HEIGHT, 25)
set_control_par(%instr_id[4], $CONTROL_PAR_WIDTH, 39)
{Other}
$count := 0
while ($count < $NUM_INSTR)
set_control_par (%instr_id[$count],$CONTROL_PAR_POS_X,get_contro
l_par(%instr_id[$count],$CONTROL_PAR_POS_X)...
+$ROOT_X + ($x_grid_instr - 2)*$GRID_X + $x_px_instr)
set_control_par (%instr_id[$count],$CONTROL_PAR_POS_Y,get_contro
l_par(%instr_id[$count],$CONTROL_PAR_POS_Y)...
+$ROOT_Y + ($y_grid_instr - 2)*$GRID_Y + $y_px_instr)
inc($count)
end while
declare %soundeqarr[10*10] := (...
{0 } 500000,500000,500000, 500000,500000,500000, 500000, 500000,5
00000,...
{1 } 365637, 62500,700000, 620113, 62500,500000, 1000000,1000000,
0,...
{2 } 83984,326172,200195, 405273,128906,589844, 1000000,1000000,18
1641,...
{3 } 245117,416016,266602, 632813,207031,625977, 862305, 173828,6
61133,...
{4 } 515625, 0,704102, 447266, 0,169922, 706055, 0,7148
44,...
{5 } 870117,586914,715820, 333008,360352,272461, 856445, 0,1923
83,...
{6 } 648438,586914,757813, 266602,360352,165039, 670898, 0,1328
13,...
{7 } 376953, 0, 39062, 555664, 0,578125, 796875, 144531,6230
47,...
{8 } 172852,660156, 0, 699219, 6836,692383, 407227, 0,7783
20,...
{9 } 233398,219727,583984, 533203,250000,355469, 633789, 639648,6
01563,...
{10} 137695,357422,362305, 491211,250000,571289, 832031, 417969,4
63867)
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
_read_persistent_var($sound_instr)
$knob_eq := ($sound_instr+10)*10
declare $index_1
declare $index_2
$perc_instr := _get_engine_par($ENGINE_PAR_VOLUME,$perc_idx,-1,-1)
$bass_instr := _get_engine_par($ENGINE_PAR_VOLUME,$bass_idx,-1,-1)
set_control_par_str(get_ui_id($fat_instr),$CONTROL_PAR_AUTOMATION_NAME,"
Fat")
set_control_par_str(get_ui_id($sound_instr),$CONTROL_PAR_AUTOMATION_NAME
,"Sound")
set_control_par_str(get_ui_id($perc_instr),$CONTROL_PAR_AUTOMATION_NAME,
"Perc")
set_control_par_str(get_ui_id($bass_instr),$CONTROL_PAR_AUTOMATION_NAME,
"Bass")
set_control_par_str(get_ui_id($sound_instr),$CONTROL_PAR_LABEL,$sound_in
str & " %")
set_control_par_str(get_ui_id($perc_instr),$CONTROL_PAR_LABEL,get_engine
_par_disp($ENGINE_PAR_VOLUME,$perc_idx,-1,-1) & " dB")
set_control_par_str(get_ui_id($bass_instr),$CONTROL_PAR_LABEL,get_engine
_par_disp($ENGINE_PAR_VOLUME,$bass_idx,-1,-1) & " dB")

{----------INSTRUMENTS CONTROLS END----------}


{----------VOICING START----------}
{POSITIONING OF CONTROL GROUP}
declare $x_grid_voicing := 9/2 {X Position of Control Group in g
rid}
declare $y_grid_voicing := 3 {Y Position of Control Group in gri
d}
declare $x_px_voicing := 46 {X Position Offset Control Group in
pixel}
declare $y_px_voicing := 0 {Y Position Offset Control Group in p
ixel}
{DECLARATION AND UI_IDs}
declare const $NUM_VOICING := 12 {number of elements in this con
trol group}
declare $new_note
declare $id
declare !chord_names[20]
!chord_names[0] := "Octave"
!chord_names[1] := "Fifth"
!chord_names[2] := "Fourth"
!chord_names[3] := "Third"
!chord_names[4] := "Maj"
!chord_names[5] := "Maj 6"
!chord_names[6] := "Maj sus2"
!chord_names[7] := "Maj sus4"
!chord_names[8] := "Maj 7"
!chord_names[9] := "Min"
!chord_names[10] := "Min 6"
!chord_names[11] := "Min 7"
!chord_names[12] := "Min 7 (b5)"
!chord_names[13] := "Min maj7"
!chord_names[14] := "Dom 7"
!chord_names[15] := "Dom 7 sus4"
!chord_names[16] := "Dom 9"
!chord_names[17] := "Dim"
!chord_names[18] := "Dim 7"
!chord_names[19] := "Aug"
declare %chord_types[20*4] := (...
12, 0, 0, 0,...
7, 0, 0, 0,...
5, 0, 0, 0,...
4, 0, 0, 0,...
4, 7, 0, 0,...
4, 7, 9, 0,...
2, 7, 0, 0,...
5, 7, 0, 0,...
4, 7, 11, 0,...
3, 7, 0, 0,...
3, 7, 9, 0,...
3, 7, 10, 0,...
3, 6, 10, 0,...
3, 7, 11, 0,...
4, 7, 10, 0,...
5, 7, 10, 0,...
4, 7, 10, 14,...
3, 6, 0, 0,...
3, 6, 9, 0,...
4, 8, 0, 0)
declare ui_label $lb_solo_voicing (1,1)
declare ui_label $lb_glide_voicing (1,1)
declare ui_label $lb_chord_onoff_voicing (1,1)
declare ui_label $lb_legato_voicing (1,1)
declare ui_label $lb_glidetime_voicing (1,1)
declare ui_label $lb_chord_voicing (1,1)
declare ui_slider $glidetime_voicing (0, 127)
declare ui_slider $chord_voicing (0, 19)
declare ui_switch $solo_voicing
declare ui_switch $glide_voicing
declare ui_switch $legato_voicing
declare ui_switch $chord_onoff_voicing
declare %voicing_id[$NUM_VOICING]
%voicing_id[0] := get_ui_id($lb_glidetime_voicing)
%voicing_id[1] := get_ui_id($lb_chord_voicing)
%voicing_id[2] := get_ui_id($lb_solo_voicing)
%voicing_id[3] := get_ui_id($lb_glide_voicing)
%voicing_id[4] := get_ui_id($lb_legato_voicing)
%voicing_id[5] := get_ui_id($lb_chord_onoff_voicing)
%voicing_id[6] := get_ui_id($glidetime_voicing)
%voicing_id[7] := get_ui_id($chord_voicing)
%voicing_id[8] := get_ui_id($solo_voicing)
%voicing_id[9] := get_ui_id($glide_voicing)
%voicing_id[10] := get_ui_id($legato_voicing)
%voicing_id[11] := get_ui_id($chord_onoff_voicing)
{HELP}
set_control_help($glidetime_voicing,"Glide Time: Controls the gl
issando time between notes when the glide switch is set to on.")
set_control_help($chord_voicing,"Chord Preset: Selects the chord
type played when chord mode is activated.")
set_control_help($solo_voicing,"Solo: Puts the instrument into m
onophonic mode.")
set_control_help($glide_voicing,"Glide: Turns on pitch glide, th
e rate of which can be controlled with the Glide Time control.")
set_control_help($legato_voicing,"Legato: When solo is switched
on, this control, when activated, transposes the played sample, rather than trig
gering a new sample.")
set_control_help($chord_onoff_voicing,"Chord: turns chord mode o
n or off. The chord type can be selected using the Preset knob.")
{POSITIONING OF INDIVIDUAL CONTROLS}
move_control_px($glidetime_voicing, ($GRID_X * 2) - 11, ($GRID_Y
* 6) - 4)
move_control_px($solo_voicing, ($GRID_X * 1) + 19, ($GRID_Y * 4)
- 13)
move_control_px($glide_voicing, ($GRID_X * 2) - 15, ($GRID_Y * 4
) - 13)
move_control_px($chord_voicing, ($GRID_X * 2) + 45, ($GRID_Y * 6
) - 4)
move_control_px($legato_voicing, ($GRID_X * 1) + 19, ($GRID_Y *
7) - 14)
move_control_px($chord_onoff_voicing, ($GRID_X * 2) + 43, ($GRID
_Y * 4) - 13)
{PERSISTENCE}
make_persistent($glidetime_voicing)
make_persistent($solo_voicing)
make_persistent($glide_voicing)
make_persistent($legato_voicing)
make_persistent($chord_onoff_voicing)
make_persistent($chord_voicing)
_read_persistent_var($glidetime_voicing)
_read_persistent_var($solo_voicing)
_read_persistent_var($glide_voicing)
_read_persistent_var($legato_voicing)
_read_persistent_var($chord_onoff_voicing)
_read_persistent_var($chord_voicing)
if ($solo_voicing = 1)
if ($legato_voicing = 1)
_pgs_set_key_val(SOLO_MODE,0,2)
else
_pgs_set_key_val(SOLO_MODE,0,1)
end if
else
_pgs_set_key_val(SOLO_MODE,0,0)
end if
_pgs_set_key_val(DET_TIME, 0, $solo_voicing)
if ($legato_voicing = 1)
if ($solo_voicing = 1)
_pgs_set_key_val(SOLO_MODE,0,2)
end if
else
if ($solo_voicing = 1)
_pgs_set_key_val(SOLO_MODE,0,1)
end if
end if
if ($glide_voicing = 1)
_pgs_set_key_val(GLIDE_ON_OFF,0,2)
else
_pgs_set_key_val(GLIDE_ON_OFF,0,0)
end if
_pgs_set_key_val(GLIDE_TIME,0,$glidetime_voicing)
set_text($lb_solo_voicing,"Solo")
set_text($lb_glide_voicing,"Glide")
set_text($lb_chord_onoff_voicing,"Chord")
set_text($lb_legato_voicing,"Legato")
set_text($lb_glidetime_voicing,"Time")
set_text($lb_chord_voicing, "Preset")
$count := 0
while ($count < 6)
set_control_par(%voicing_id[$count], $CONTROL_PAR_HIDE,
$HIDE_PART_BG)
set_control_par(%voicing_id[$count], $CONTROL_PAR_FONT_T
YPE, $FONT_ID)
set_control_par(%voicing_id[$count], $CONTROL_PAR_TEXT_A
LIGNMENT, 1)
if($count < 2)
set_control_par(%voicing_id[$count], $CONTROL_PA
R_POS_X, get_control_par...
(%voicing_id[$count+6], $CONTROL_PAR_POS
_X) - 25)
set_control_par(%voicing_id[$count], $CONTROL_PA
R_POS_Y, get_control_par...
(%voicing_id[$count+6], $CONTROL_PAR_POS
_Y) - 18)
else
set_control_par(%voicing_id[$count], $CONTROL_PA
R_POS_X, get_control_par...
(%voicing_id[$count+6], $CONTROL_PAR_POS
_X) - 21)
set_control_par(%voicing_id[$count], $CONTROL_PA
R_POS_Y, get_control_par...
(%voicing_id[$count+6], $CONTROL_PAR_POS
_Y) - 29)
end if
inc($count)
end while
$count := 6
while ($count < 8)
set_control_par_str(%voicing_id[$count], $CONTROL_PAR_PI
CTURE, "pv_vintage_drums_knob")
set_control_par(%voicing_id[$count], $CONTROL_PAR_MOUSE_
BEHAVIOUR, -400)
inc($count)
end while
$count := 8
while ($count < 12)
set_control_par_str(%voicing_id[$count], $CONTROL_PAR_PI
CTURE, "pv_vintage_drums_switch")
set_control_par_str(%voicing_id[$count], $CONTROL_PAR_TE
XT, "")
set_control_par(%voicing_id[$count], $CONTROL_PAR_HEIGHT
, 25)
set_control_par(%voicing_id[$count], $CONTROL_PAR_WIDTH,
39)
inc($count)
end while
{Position Module}
$count := 0
while ($count < $NUM_VOICING)
set_control_par (%voicing_id[$count],$CONTROL_PAR_POS_X,
get_control_par(%voicing_id[$count],$CONTROL_PAR_POS_X)...
+$ROOT_X + ($x_grid_voicing - 2)*$GRID_X + $x_px_voicing
)
set_control_par (%voicing_id[$count],$CONTROL_PAR_POS_Y,
get_control_par(%voicing_id[$count],$CONTROL_PAR_POS_Y)...
+$ROOT_Y + ($y_grid_voicing - 2)*$GRID_Y + $y_px_voicing
)
inc($count)
end while
{Automation}
read_persistent_var($chord_voicing)
set_control_par_str(get_ui_id($solo_voicing),$CONTROL_PAR_AUTOMA
TION_NAME,"Solo")
set_control_par_str(get_ui_id($glide_voicing),$CONTROL_PAR_AUTOM
ATION_NAME,"Glide")
set_control_par_str(get_ui_id($chord_onoff_voicing),$CONTROL_PAR
_AUTOMATION_NAME,"Chord")
set_control_par_str(get_ui_id($legato_voicing),$CONTROL_PAR_AUTO
MATION_NAME,"Legato")
set_control_par_str(get_ui_id($glidetime_voicing),$CONTROL_PAR_A
UTOMATION_NAME,"Glide Time")
set_control_par_str(get_ui_id($chord_voicing),$CONTROL_PAR_AUTOM
ATION_NAME,"Preset")
set_control_par_str(get_ui_id($glidetime_voicing),$CONTROL_PAR_L
ABEL,$glidetime_voicing)
set_control_par_str(get_ui_id($chord_voicing),$CONTROL_PAR_LABEL
,!chord_names[$chord_voicing])
{----------VOICING END----------}
{----------VOLUME ENVELOPE START----------}
{POSITIONING OF CONTROL GROUP}
declare $x_grid_adsr := 0 {X Position of Control Group in grid}
declare $y_grid_adsr := 10 {Y Position of Control Group in grid}
declare $x_px_adsr := 75 {X Position Offset Control Group in pixel}
declare $y_px_adsr := 9 {Y Position Offset Control Group in pixel}
{DECLARATION AND UI_IDs}
declare const $NUM_ADSR := 8 {number of elements in this control group}
declare ui_label $lb_a_adsr (1,1)
declare ui_label $lb_d_adsr(1,1)
declare ui_label $lb_s_adsr (1,1)
declare ui_label $lb_r_adsr (1,1)
declare ui_slider $vol_a_adsr (0, 750000)
declare ui_slider $vol_d_adsr (0, 750000)
declare ui_slider $vol_s_adsr (0, 1000000)
declare ui_slider $vol_r_adsr (0, 750000)
declare %adsr_id[$NUM_ADSR]
%adsr_id[0] := get_ui_id($lb_a_adsr)
%adsr_id[1] := get_ui_id($lb_d_adsr)
%adsr_id[2] := get_ui_id($lb_s_adsr)
%adsr_id[3] := get_ui_id($lb_r_adsr)
%adsr_id[4] := get_ui_id($vol_a_adsr)
%adsr_id[5] := get_ui_id($vol_d_adsr)
%adsr_id[6] := get_ui_id($vol_s_adsr)
%adsr_id[7] := get_ui_id($vol_r_adsr)
move_control_px($vol_a_adsr, ($GRID_X * 1) + 15, ($GRID_Y * 3) + 8)
move_control_px($vol_d_adsr, ($GRID_X * 3/2) + 27, ($GRID_Y * 3) + 8)
move_control_px($vol_s_adsr, ($GRID_X * 5/2) - 8, ($GRID_Y * 3) + 8)
move_control_px($vol_r_adsr, ($GRID_X * 7/2) - 42, ($GRID_Y * 3) + 8)
{Set GUI attributes}
set_text($lb_a_adsr, "Attack")
set_text($lb_d_adsr, "Decay")
set_text($lb_s_adsr, "Sustain")
set_text($lb_r_adsr, "Release")
set_control_help($vol_a_adsr,"Attack: Controls the attack time of the vo
lume envelope.")
set_control_help($vol_d_adsr,"Decay: Controls the decay time of the volu
me envelope.")
set_control_help($vol_s_adsr,"Sustain: Controls the sustain level of the
volume envelope.")
set_control_help($vol_r_adsr,"Release: Controls the release time of the
volume envelope.")
{Default values}
set_control_par(get_ui_id($vol_s_adsr),$CONTROL_PAR_DEFAULT_VALUE,100000
0)
set_control_par(get_ui_id($vol_d_adsr),$CONTROL_PAR_DEFAULT_VALUE,500000
)
set_control_par(get_ui_id($vol_r_adsr),$CONTROL_PAR_DEFAULT_VALUE,500000
)
$count := 0
while ($count < 4)
set_control_par(%adsr_id[$count], $CONTROL_PAR_WIDTH, 87)
set_control_par(%adsr_id[$count], $CONTROL_PAR_HIDE, $HIDE_PART_
BG)
set_control_par(%adsr_id[$count], $CONTROL_PAR_FONT_TYPE, $FONT_
ID)
set_control_par(%adsr_id[$count], $CONTROL_PAR_TEXT_ALIGNMENT, 1
)
set_control_par(%adsr_id[$count],$CONTROL_PAR_POS_X,get_control_
par...
(%adsr_id[$count+4],$CONTROL_PAR_POS_X) - 26)
set_control_par(%adsr_id[$count],$CONTROL_PAR_POS_Y,get_control_
par...
(%adsr_id[$count+4],$CONTROL_PAR_POS_Y) - 18)
inc($count)
end while
$count := 4
while ($count < 8)
set_control_par_str(%adsr_id[$count], $CONTROL_PAR_PICTURE, "pv_
vintage_drums_knob")
set_control_par(%adsr_id[$count], $CONTROL_PAR_MOUSE_BEHAVIOUR,
-400)
inc($count)
end while
{Set control values}
$vol_a_adsr := _get_engine_par ($ENGINE_PAR_ATTACK, $grp_idx, $vol_env_i
dx, -1)
$vol_d_adsr := _get_engine_par ($ENGINE_PAR_DECAY, $grp_idx, $vol_env_id
x, -1)
$vol_s_adsr := _get_engine_par ($ENGINE_PAR_SUSTAIN, $grp_idx, $vol_env_
idx, -1)
$vol_r_adsr := _get_engine_par ($ENGINE_PAR_RELEASE, $grp_idx, $vol_env_
idx, -1)
{Move module}
$count := 0
while ($count < $NUM_ADSR)
set_control_par (%adsr_id[$count],$CONTROL_PAR_POS_X,get_control
_par(%adsr_id[$count],$CONTROL_PAR_POS_X)...
+$ROOT_X + ($x_grid_adsr - 2)*$GRID_X + $x_px_adsr)
set_control_par (%adsr_id[$count],$CONTROL_PAR_POS_Y,get_control
_par(%adsr_id[$count],$CONTROL_PAR_POS_Y)...
+$ROOT_Y + ($y_grid_adsr - 2)*$GRID_Y + $y_px_adsr)
inc($count)
end while
{Automation}
set_control_par_str(get_ui_id($vol_a_adsr),$CONTROL_PAR_AUTOMATION_NAME,
"Attack")
set_control_par_str(get_ui_id($vol_d_adsr),$CONTROL_PAR_AUTOMATION_NAME,
"Decay")
set_control_par_str(get_ui_id($vol_s_adsr),$CONTROL_PAR_AUTOMATION_NAME,
"Sustain")
set_control_par_str(get_ui_id($vol_r_adsr),$CONTROL_PAR_AUTOMATION_NAME,
"Release")
set_control_par_str(get_ui_id($vol_a_adsr),$CONTROL_PAR_LABEL,get_engine
_par_disp($ENGINE_PAR_ATTACK, $grp_idx, $vol_env_idx, -1) & " ms")
set_control_par_str(get_ui_id($vol_d_adsr),$CONTROL_PAR_LABEL,get_engine
_par_disp($ENGINE_PAR_DECAY, $grp_idx, $vol_env_idx, -1) & " ms")
set_control_par_str(get_ui_id($vol_s_adsr),$CONTROL_PAR_LABEL,get_engine
_par_disp($ENGINE_PAR_SUSTAIN, $grp_idx, $vol_env_idx, -1) & " dB")
set_control_par_str(get_ui_id($vol_r_adsr),$CONTROL_PAR_LABEL,get_engine
_par_disp($ENGINE_PAR_RELEASE, $grp_idx, $vol_env_idx, -1) & " ms")
{----------VOLUME ENVELOPE END----------}
{----------FX MODULE START----------}
{apply module offsets}
declare $x_grid_vintagefx := 3 {X Position of Control Group in grid}
declare $y_grid_vintagefx := 10 {Y Position of Control Group in grid}
declare $x_px_vintagefx := 46 {X Position Offset Control Group in pixel
}
declare $y_px_vintagefx := 0 {Y Position Offset Control Group in pixel}
declare const $NUM_VINFX := 24 {number of elements in this control group
}
{Main}
declare ui_label $selection_image_vfx (1,1)
declare ui_button $sw_vintagefx_1
declare ui_button $sw_vintagefx_2
declare ui_button $sw_vintagefx_3
declare ui_switch $onoff_rotator
declare ui_switch $onoff_cab
declare ui_switch $onoff_phaser
{Rotator}
declare ui_switch $speed_rotator
declare ui_slider $bal_rotator (0,1000000)
declare ui_label $lb_speed_rotator (1,1)
declare ui_label $lb_bal_rotator (1,1)
declare ui_label $lb_slow_rotator (1,1)
declare ui_label $lb_fast_rotator (1,1)
{Cabinet}
declare ui_label $bg_cab (1,1)
declare ui_slider $air_cab (0,1000000)
declare ui_menu $type_cab
declare ui_label $image_cab (1,1)
declare ui_label $lb_air_cab (1,1)
{Phaser}
declare ui_slider $amount_phaser (0,400000)
declare ui_slider $depth_phaser (0,1000000)
declare ui_slider $rate_phaser (0,750000)
declare ui_label $lb_amount_phaser (1,1)
declare ui_label $lb_depth_phaser (1,1)
declare ui_label $lb_rate_phaser (1,1)
$onoff_rotator := (_get_engine_par($ENGINE_PAR_SEND_EFFECT_BYPASS,-1,$ro
tator_slot,1)+1)mod 2
$speed_rotator := (_get_engine_par($ENGINE_PAR_RT_SPEED,-1,$rotator_slot
,1))/1000000
$bal_rotator := _get_engine_par($ENGINE_PAR_RT_BALANCE,-1,$rotator_slot,
1)
$onoff_cab := (_get_engine_par($ENGINE_PAR_SEND_EFFECT_BYPASS,-1,$cabine
t_slot,1)+1)mod 2
$air_cab := _get_engine_par($ENGINE_PAR_CB_AIR,-1,$cabinet_slot,1)
make_persistent($type_cab)
$onoff_phaser := (1+_get_engine_par($ENGINE_PAR_SEND_EFFECT_BYPASS,-1,$p
haser_slot,1)) mod 2
$amount_phaser := _get_engine_par($ENGINE_PAR_SEND_EFFECT_OUTPUT_GAIN,-1
,$phaser_slot,1)
$depth_phaser := _get_engine_par($ENGINE_PAR_PH_DEPTH,-1,$phaser_slot,1)
$rate_phaser := _get_engine_par($ENGINE_PAR_PH_SPEED,-1,$phaser_slot,1)
declare %vintagefx_id[$NUM_VINFX]
{Labels}
%vintagefx_id[0] := get_ui_id($image_cab)
%vintagefx_id[1] := get_ui_id($lb_speed_rotator)
%vintagefx_id[2] := get_ui_id($lb_bal_rotator)
%vintagefx_id[3] := get_ui_id($lb_slow_rotator)
%vintagefx_id[4] := get_ui_id($lb_fast_rotator)
%vintagefx_id[5] := get_ui_id($lb_air_cab)
%vintagefx_id[6] := get_ui_id($lb_amount_phaser)
%vintagefx_id[7] := get_ui_id($lb_depth_phaser)
%vintagefx_id[8] := get_ui_id($lb_rate_phaser)
{Switches}
%vintagefx_id[9] := get_ui_id($sw_vintagefx_1)
%vintagefx_id[10] := get_ui_id($sw_vintagefx_2)
%vintagefx_id[11] := get_ui_id($sw_vintagefx_3)
%vintagefx_id[12] := get_ui_id($onoff_rotator)
%vintagefx_id[13] := get_ui_id($onoff_cab)
%vintagefx_id[14] := get_ui_id($onoff_phaser)
%vintagefx_id[15] := get_ui_id($speed_rotator)
{Sliders}
%vintagefx_id[16] := get_ui_id($bal_rotator)
%vintagefx_id[17] := get_ui_id($air_cab)
%vintagefx_id[18] := get_ui_id($amount_phaser)
%vintagefx_id[19] := get_ui_id($depth_phaser)
%vintagefx_id[20] := get_ui_id($rate_phaser)
{Menu}
%vintagefx_id[21] := get_ui_id($type_cab)
{Other}
%vintagefx_id[22] := get_ui_id($selection_image_vfx)
%vintagefx_id[23] := get_ui_id($bg_cab)
{Set Main UI Elements}
declare %rdo_vintagefx_id[6]
%rdo_vintagefx_id[0] := get_ui_id($sw_vintagefx_1)
%rdo_vintagefx_id[1] := get_ui_id($sw_vintagefx_2)
%rdo_vintagefx_id[2] := get_ui_id($sw_vintagefx_3)
%rdo_vintagefx_id[3] := get_ui_id($onoff_rotator)
%rdo_vintagefx_id[4] := get_ui_id($onoff_cab)
%rdo_vintagefx_id[5] := get_ui_id($onoff_phaser)
set_control_par_str(%vintagefx_id[22], $CONTROL_PAR_PICTURE,"pv_vintage_
synth_tabs")
set_control_par_str(%vintagefx_id[22], $CONTROL_PAR_TEXT,"")
move_control_px($selection_image_vfx,10,33)
set_control_help($sw_vintagefx_1,"Rotator: Displays the rotator effect c
ontrols")
set_control_help($sw_vintagefx_2,"Cabinet: Displays the cabinet effect c
ontrols")
set_control_help($sw_vintagefx_3,"Phaser: Displays the phaser effect con
trols")
set_control_help($onoff_rotator,"Rotator On/Off")
set_control_help($onoff_cab,"Cabinet On/Off")
set_control_help($onoff_phaser,"Phaser On/Off")
$count := 0
while($count<3)
set_control_par(%rdo_vintagefx_id[$count], $CONTROL_PAR_HEIGHT,2
5)
set_control_par(%rdo_vintagefx_id[$count], $CONTROL_PAR_POS_X,31
)
set_control_par(%rdo_vintagefx_id[$count], $CONTROL_PAR_POS_Y,33
+($count*26))
set_control_par_str(%rdo_vintagefx_id[$count], $CONTROL_PAR_TEXT
, "")
set_control_par_str(%rdo_vintagefx_id[$count], $CONTROL_PAR_PICT
URE,"pv_vintage_drums_btn_trans")
inc($count)
end while
$count := 3
while($count<6)
set_control_par(%rdo_vintagefx_id[$count], $CONTROL_PAR_POS_X,12
)
set_control_par(%rdo_vintagefx_id[$count], $CONTROL_PAR_POS_Y,34
+(($count-3)*26))
set_control_par(%rdo_vintagefx_id[$count], $CONTROL_PAR_HEIGHT,2
1)
set_control_par(%rdo_vintagefx_id[$count], $CONTROL_PAR_WIDTH,21
)
set_control_par_str(%rdo_vintagefx_id[$count], $CONTROL_PAR_TEXT
, "")
set_control_par_str(%rdo_vintagefx_id[$count], $CONTROL_PAR_PICT
URE,"pv_vintage_drums_led")
inc($count)
end while
$sw_vintagefx_1 := 1
set_control_par(%vintagefx_id[22],$CONTROL_PAR_PICTURE_STATE,0)
{Set Rotator FX Controls}
set_text($lb_bal_rotator,"Balance")
set_text($lb_speed_rotator,"Speed")
set_text($lb_slow_rotator,"Slow")
set_text($lb_fast_rotator,"Fast")
move_control_px($speed_rotator,$GRID_X+46, ((3*$GRID_Y)+5))
move_control_px($lb_speed_rotator,$GRID_X + 19, ((3*$GRID_Y) - 21))
move_control_px($lb_slow_rotator,$GRID_X+36, ((2*$GRID_Y)+12))
move_control_px($lb_fast_rotator,$GRID_X+6, ((2*$GRID_Y)+12))
move_control_px($lb_bal_rotator,($GRID_X*2) + 15,($GRID_Y*2) - 1)
move_control_px($bal_rotator,($GRID_X*2) + 39,($GRID_Y*2) + 17)
declare const $NUM_ROTATOR := 6
declare %rotator_id[$NUM_ROTATOR]
%rotator_id[0] := get_ui_id($speed_rotator)
%rotator_id[1] := get_ui_id($bal_rotator)
%rotator_id[2] := get_ui_id($lb_speed_rotator)
%rotator_id[3] := get_ui_id($lb_bal_rotator)
%rotator_id[4] := get_ui_id($lb_slow_rotator)
%rotator_id[5] := get_ui_id($lb_fast_rotator)
set_control_par_str(%rotator_id[0],$CONTROL_PAR_PICTURE,"pv_vintage_swit
ch_no_dot")
set_control_par_str(%rotator_id[0],$CONTROL_PAR_TEXT,"")
set_control_par(%rotator_id[0],$CONTROL_PAR_HEIGHT,25)
set_control_par(%rotator_id[0],$CONTROL_PAR_WIDTH,33)
set_control_help($speed_rotator,"Speed: Switches between fast and slow r
otation speeds.")
set_control_help($bal_rotator,"Balance: Controls the balance between the
low and high rotator horns.")
set_control_par(%rotator_id[1],$CONTROL_PAR_DEFAULT_VALUE,500000)
{Set Cabinet FX Controls}
set_text($lb_air_cab, "Air")
set_text($image_cab,"")
set_text($bg_cab,"")
add_menu_item ($type_cab,"TWEED",0)
add_menu_item ($type_cab,"BRIT 60s",1)
add_menu_item ($type_cab,"CHIEF V-30",2)
add_menu_item ($type_cab,"V-30 (back)",3)
add_menu_item ($type_cab,"ALNICO",4)
add_menu_item ($type_cab,"ALNICO (far)",5)
add_menu_item ($type_cab,"UK 70s",6)
add_menu_item ($type_cab,"UK 70s (far)",7)
add_menu_item ($type_cab,"BASS-WR",8)
add_menu_item ($type_cab,"BASS (horn)",9)
add_menu_item ($type_cab,"LESLIE",10)
move_control_px($lb_air_cab, ($GRID_X*2) + 13,($GRID_Y*2) - 1)
move_control_px($air_cab, ($GRID_X*2) + 39,($GRID_Y*2) + 17)
move_control_px($type_cab, $GRID_X+26, (4*$GRID_Y) + 5)
move_control_px($bg_cab, $GRID_X+27, (2*$GRID_Y) - 4)
move_control_px($image_cab, $GRID_X + 26, (2*$GRID_Y) - 1)
set_control_help($air_cab,"Air: Simulates the distance between the cabin
et and the microphone.")
set_control_help($type_cab,"Type: Selects the type of cabinet that is si
mulated.")
declare const $NUM_CABINET := 5
declare %cabinet_id[$NUM_CABINET]
%cabinet_id[0] := get_ui_id($air_cab)
%cabinet_id[1] := get_ui_id($type_cab)
%cabinet_id[2] := get_ui_id($image_cab)
%cabinet_id[3] := get_ui_id($lb_air_cab)
%cabinet_id[4] := get_ui_id($bg_cab)
_read_persistent_var($type_cab)
set_control_par_str(%cabinet_id[4],$CONTROL_PAR_PICTURE,"pv_vintage_synt
h_master_fx_label")
set_control_par_str(%cabinet_id[1],$CONTROL_PAR_PICTURE,"pv_vintage_synt
h_master_fx_dropdown")
set_control_par_str(%cabinet_id[2],$CONTROL_PAR_PICTURE,"pv_global_cabin
ets")
set_control_par(%cabinet_id[2],$CONTROL_PAR_PICTURE_STATE,$type_cab)
set_control_par(%cabinet_id[1],$CONTROL_PAR_DEFAULT_VALUE,500000)
{set phaser controls}
set_text($lb_amount_phaser,"Amount")
set_text($lb_depth_phaser,"Depth")
set_text($lb_rate_phaser,"Rate")
move_control_px($amount_phaser,($GRID_X*2)+45,($GRID_Y*2) + 17)
move_control_px($depth_phaser,$GRID_X + 23,($GRID_Y*2) + 17)
move_control_px($rate_phaser,($GRID_X*2) - 11,($GRID_Y*2) + 17)
set_control_help($amount_phaser,"Amount: Controls the level of the phase
r signal.")
set_control_help($depth_phaser,"Depth: Controls the intensity of the Pha
ser LFO")
set_control_help($rate_phaser,"Rate: Controls the rate of the phaser LFO
.")
declare const $NUM_PHASER := 6
declare %phaser_id[$NUM_PHASER]
%phaser_id[0] := get_ui_id($amount_phaser)
%phaser_id[1] := get_ui_id($depth_phaser)
%phaser_id[2] := get_ui_id($rate_phaser)
%phaser_id[3] := get_ui_id($lb_amount_phaser)
%phaser_id[4] := get_ui_id($lb_depth_phaser)
%phaser_id[5] := get_ui_id($lb_rate_phaser)
$count := 3
while ($count < 6)
set_control_par(%phaser_id[$count],$CONTROL_PAR_POS_X,get_contro
l_par...
(%phaser_id[$count-3],$CONTROL_PAR_POS_X) - 25)
set_control_par(%phaser_id[$count],$CONTROL_PAR_POS_Y,get_contro
l_par...
(%phaser_id[$count-3],$CONTROL_PAR_POS_Y) - 18)
inc($count)
end while
{Remove label backgrounds and set font}
$count := 1
while($count < 9)
set_control_par(%vintagefx_id[$count],$CONTROL_PAR_HIDE,$HIDE_PA
RT_BG)
set_control_par(%vintagefx_id[$count], $CONTROL_PAR_TEXT_ALIGNME
NT, 1)
if ($count > 4 or $count < 3)
set_control_par(%vintagefx_id[$count], $CONTROL_PAR_FONT
_TYPE, $FONT_ID)
end if
inc($count)
end while
{Skin knobs}
$count := 16
while($count < 21)
set_control_par_str(%vintagefx_id[$count],$CONTROL_PAR_PICTURE,"
pv_vintage_drums_knob")
set_control_par(%vintagefx_id[$count],$CONTROL_PAR_MOUSE_BEHAVIO
UR,-400)
inc($count)
end while
{Hide Controls}
$count := 0
while($count < $NUM_PHASER)
set_control_par(%phaser_id[$count],$CONTROL_PAR_HIDE,$HIDE_WHOLE
_CONTROL)
inc($count)
end while
$count := 0
while($count < $NUM_CABINET)
set_control_par(%cabinet_id[$count],$CONTROL_PAR_HIDE,$HIDE_WHOL
E_CONTROL)
inc($count)
end while
{Move module}
$count := 0
while ($count < $NUM_VINFX)
set_control_par (%vintagefx_id[$count],$CONTROL_PAR_POS_X,get_co
ntrol_par(%vintagefx_id[$count],...
$CONTROL_PAR_POS_X)+$ROOT_X + ($x_grid_vintagefx - 1)*$GRID_X +
$x_px_vintagefx)
set_control_par (%vintagefx_id[$count],$CONTROL_PAR_POS_Y,get_co
ntrol_par(%vintagefx_id[$count],...
$CONTROL_PAR_POS_Y)+$ROOT_Y + ($y_grid_vintagefx - 1)*$GRID_Y +
$y_px_vintagefx)
inc($count)
end while
{Automation}
set_control_par_str(get_ui_id($onoff_rotator),$CONTROL_PAR_AUTOMATION_NA
ME,"Rotator")
set_control_par_str(get_ui_id($onoff_cab),$CONTROL_PAR_AUTOMATION_NAME,"
Cabinet")
set_control_par_str(get_ui_id($onoff_phaser),$CONTROL_PAR_AUTOMATION_NAM
E,"Phaser")
set_control_par_str(get_ui_id($speed_rotator),$CONTROL_PAR_AUTOMATION_NA
ME,"RT Spd")
set_control_par_str(get_ui_id($bal_rotator),$CONTROL_PAR_AUTOMATION_NAME
,"RT Bal")
set_control_par_str(get_ui_id($air_cab),$CONTROL_PAR_AUTOMATION_NAME,"CB
Air")
set_control_par_str(get_ui_id($amount_phaser),$CONTROL_PAR_AUTOMATION_NA
ME,"PH Amt")
set_control_par_str(get_ui_id($depth_phaser),$CONTROL_PAR_AUTOMATION_NAM
E,"PH Dep")
set_control_par_str(get_ui_id($rate_phaser),$CONTROL_PAR_AUTOMATION_NAME
,"PH Rte")
set_control_par_str(get_ui_id($bal_rotator),$CONTROL_PAR_LABEL,get_engin
e_par_disp($ENGINE_PAR_RT_BALANCE,-1,$rotator_slot,1) & " %")
set_control_par_str(get_ui_id($air_cab),$CONTROL_PAR_LABEL,get_engine_pa
r_disp($ENGINE_PAR_CB_AIR,-1,$cabinet_slot,1) & " %")
set_control_par_str(get_ui_id($amount_phaser),$CONTROL_PAR_LABEL,get_eng
ine_par_disp($ENGINE_PAR_SEND_EFFECT_OUTPUT_GAIN,-1,$phaser_slot,1) & " dB")
set_control_par_str(get_ui_id($depth_phaser),$CONTROL_PAR_LABEL,get_engi
ne_par_disp($ENGINE_PAR_PH_DEPTH,-1,$phaser_slot,1) & " %")
set_control_par_str(get_ui_id($rate_phaser),$CONTROL_PAR_LABEL,get_engin
e_par_disp($ENGINE_PAR_PH_SPEED,-1,$phaser_slot,1) & " Hz")
{----------FX MODULE END----------}
if ($CREATE_AUTOMATION_ID = 1)
$count := 16
set_control_par(get_ui_id($cutoff_filter),$CONTROL_PAR_AUTOMATIO
N_ID,0)
set_control_par(get_ui_id($resonance_filter),$CONTROL_PAR_AUTOMA
TION_ID,1)
set_control_par(get_ui_id($vel_filter),$CONTROL_PAR_AUTOMATION_I
D,$count)
inc($count)
set_control_par(get_ui_id($lfo_filter),$CONTROL_PAR_AUTOMATION_I
D,$count)
inc($count)
set_control_par(get_ui_id($lforate_filter),$CONTROL_PAR_AUTOMATI
ON_ID,$count)
inc($count)
set_control_par(get_ui_id($type_switch_filter),$CONTROL_PAR_AUTO
MATION_ID,9)
set_control_par(get_ui_id($onoff_filter),$CONTROL_PAR_AUTOMATION
_ID,8)
set_control_par(get_ui_id($fat_instr),$CONTROL_PAR_AUTOMATION_ID
,$count)
inc($count)
set_control_par(get_ui_id($sound_instr),$CONTROL_PAR_AUTOMATION_
ID,$count)
inc($count)
set_control_par(get_ui_id($perc_instr),$CONTROL_PAR_AUTOMATION_I
D,$count)
inc($count)
set_control_par(get_ui_id($bass_instr),$CONTROL_PAR_AUTOMATION_I
D,$count)
inc($count)
set_control_par(get_ui_id($solo_voicing),$CONTROL_PAR_AUTOMATION
_ID,14)
set_control_par(get_ui_id($glide_voicing),$CONTROL_PAR_AUTOMATIO
N_ID,10)
set_control_par(get_ui_id($chord_onoff_voicing),$CONTROL_PAR_AUT
OMATION_ID,11)
set_control_par(get_ui_id($legato_voicing),$CONTROL_PAR_AUTOMATI
ON_ID,15)
set_control_par(get_ui_id($glidetime_voicing),$CONTROL_PAR_AUTOM
ATION_ID,2)
set_control_par(get_ui_id($chord_voicing),$CONTROL_PAR_AUTOMATIO
N_ID,3)
set_control_par(get_ui_id($vol_a_adsr),$CONTROL_PAR_AUTOMATION_I
D,6)
set_control_par(get_ui_id($vol_d_adsr),$CONTROL_PAR_AUTOMATION_I
D,$count)
inc($count)
set_control_par(get_ui_id($vol_s_adsr),$CONTROL_PAR_AUTOMATION_I
D,$count)
inc($count)
set_control_par(get_ui_id($vol_r_adsr),$CONTROL_PAR_AUTOMATION_I
D,7)
set_control_par(get_ui_id($onoff_rotator),$CONTROL_PAR_AUTOMATIO
N_ID,$count)
inc($count)
set_control_par(get_ui_id($onoff_cab),$CONTROL_PAR_AUTOMATION_ID
,12)
set_control_par(get_ui_id($onoff_phaser),$CONTROL_PAR_AUTOMATION
_ID,13)
set_control_par(get_ui_id($speed_rotator),$CONTROL_PAR_AUTOMATIO
N_ID,$count)
inc($count)
set_control_par(get_ui_id($bal_rotator),$CONTROL_PAR_AUTOMATION_
ID,$count)
inc($count)
set_control_par(get_ui_id($air_cab),$CONTROL_PAR_AUTOMATION_ID,4
)
set_control_par(get_ui_id($amount_phaser),$CONTROL_PAR_AUTOMATIO
N_ID,5)
set_control_par(get_ui_id($depth_phaser),$CONTROL_PAR_AUTOMATION
_ID,$count)
inc($count)
set_control_par(get_ui_id($rate_phaser),$CONTROL_PAR_AUTOMATION_
ID,$count)
inc($count)
end if
end on
{FILTER UI CONTROL CALLBACKS START}
on ui_control ($type_switch_filter)
if ($type_switch_filter = 0)
$vowel_state_filter := 0
$all_state_filter := 1
else
$vowel_state_filter := 1
$all_state_filter := 0
end if
if($onoff_filter = 1)
_set_engine_par ($ENGINE_PAR_EFFECT_BYPASS, $vowel_state_filter,
$grp_idx, $vowel_slot, -1)
_set_engine_par ($ENGINE_PAR_EFFECT_BYPASS, $all_state_filter, $
grp_idx, $allpass_slot, -1)
end if
end on
on ui_control ($onoff_filter)
if ($onoff_filter = 0)
_set_engine_par ($ENGINE_PAR_EFFECT_BYPASS, 1, $grp_idx, $vowel_
slot, -1)
_set_engine_par ($ENGINE_PAR_EFFECT_BYPASS, 1, $grp_idx, $allpas
s_slot, -1)
else
_set_engine_par ($ENGINE_PAR_EFFECT_BYPASS, $vowel_state_filter,
$grp_idx, $vowel_slot, -1)
_set_engine_par ($ENGINE_PAR_EFFECT_BYPASS, $all_state_filter, $
grp_idx, $allpass_slot, -1)
end if
end on
on ui_control ($cutoff_filter)
_set_engine_par ($ENGINE_PAR_CUTOFF, $cutoff_filter, $grp_idx, $allpass_
slot, -1)
_set_engine_par ($ENGINE_PAR_CUTOFF, $cutoff_filter, $grp_idx, $vowel_sl
ot, -1)
set_control_par_str(get_ui_id($cutoff_filter),$CONTROL_PAR_LABEL,get_eng
ine_par_disp($ENGINE_PAR_CUTOFF, $grp_idx, $allpass_slot, -1) & " Hz")
end on
on ui_control ($resonance_filter)
_set_engine_par ($ENGINE_PAR_RESONANCE, $resonance_filter, $grp_idx, $al
lpass_slot, -1)
_set_engine_par ($ENGINE_PAR_RESONANCE, $resonance_filter, $grp_idx, $vo
wel_slot, -1)
set_control_par_str(get_ui_id($resonance_filter),$CONTROL_PAR_LABEL,get_
engine_par_disp($ENGINE_PAR_RESONANCE, $grp_idx, $allpass_slot, -1) & " %")
end on
on ui_control ($vel_filter)
_set_engine_par ($ENGINE_PAR_MOD_TARGET_INTENSITY, $vel_filter, $grp_idx
, $vel_all_idx, -1)
_set_engine_par ($ENGINE_PAR_MOD_TARGET_INTENSITY, $vel_filter, $grp_idx
, $vel_vow_idx, -1)
set_control_par_str(get_ui_id($vel_filter),$CONTROL_PAR_LABEL,get_engine
_par_disp($ENGINE_PAR_MOD_TARGET_INTENSITY, $grp_idx, $vel_all_idx, -1) & " %")
end on
on ui_control ($lfo_filter)
_set_engine_par ($ENGINE_PAR_MOD_TARGET_INTENSITY, $lfo_filter, $grp_idx
, $filter_lfo_idx,...
find_target(0, $filter_lfo_idx, "LFO_CUTOFF1"))
_set_engine_par ($ENGINE_PAR_MOD_TARGET_INTENSITY, $lfo_filter, $grp_idx
, $filter_lfo_idx,...
find_target(0, $filter_lfo_idx, "LFO_CUTOFF2"))
set_control_par_str(get_ui_id($lfo_filter),$CONTROL_PAR_LABEL,get_engine
_par_disp($ENGINE_PAR_MOD_TARGET_INTENSITY, $grp_idx, $filter_lfo_idx,...
find_target(0, $filter_lfo_idx, "LFO_CUTOFF1")) & " %")
end on
on ui_control ($lforate_filter)
_set_engine_par ($ENGINE_PAR_INTMOD_FREQUENCY,$lforate_filter,$grp_idx,$
filter_lfo_idx,-1)
set_control_par_str(get_ui_id($lforate_filter),$CONTROL_PAR_LABEL,get_en
gine_par_disp($ENGINE_PAR_INTMOD_FREQUENCY,$grp_idx,$filter_lfo_idx,-1) & " Hz")
end on
{FILTER UI CONTROL CALLBACKS END}
{ADSR UI CONTROL CALLBACKS START}
on ui_control ($vol_a_adsr)
_set_engine_par ($ENGINE_PAR_ATTACK, $vol_a_adsr, $grp_idx, $vol_env_idx
, -1)
set_control_par_str(get_ui_id($vol_a_adsr),$CONTROL_PAR_LABEL,get_engine
_par_disp($ENGINE_PAR_ATTACK, $grp_idx, $vol_env_idx, -1) & " ms")
end on
on ui_control ($vol_d_adsr)
_set_engine_par ($ENGINE_PAR_DECAY, $vol_d_adsr, $grp_idx, $vol_env_idx,
-1)
set_control_par_str(get_ui_id($vol_d_adsr),$CONTROL_PAR_LABEL,get_engine
_par_disp($ENGINE_PAR_DECAY, $grp_idx, $vol_env_idx, -1) & " ms")
end on
on ui_control ($vol_s_adsr)
_set_engine_par ($ENGINE_PAR_SUSTAIN, $vol_s_adsr, $grp_idx, $vol_env_id
x, -1)
set_control_par_str(get_ui_id($vol_s_adsr),$CONTROL_PAR_LABEL,get_engine
_par_disp($ENGINE_PAR_SUSTAIN, $grp_idx, $vol_env_idx, -1) & " dB")
end on
on ui_control ($vol_r_adsr)
_set_engine_par ($ENGINE_PAR_RELEASE, $vol_r_adsr, $grp_idx, $vol_env_id
x, -1)
set_control_par_str(get_ui_id($vol_r_adsr),$CONTROL_PAR_LABEL,get_engine
_par_disp($ENGINE_PAR_RELEASE, $grp_idx, $vol_env_idx, -1) & " ms")
end on
{ADSR UI CONTROL CALLBACKS END}
{MASTER FX UI CONTROL CALLBACKS START}
{show rotator FX controls}
on ui_control ($sw_vintagefx_1)
if ($sw_vintagefx_1 = 0)
$sw_vintagefx_1 := 1
else
$sw_vintagefx_2 := 0
$sw_vintagefx_3 := 0
set_control_par(%vintagefx_id[22],$CONTROL_PAR_PICTURE_STATE,0)
$count := 0
while($count<$NUM_ROTATOR)
set_control_par(%rotator_id[$count],$CONTROL_PAR_HIDE,$H
IDE_PART_BG)
inc($count)
end while
$count := 0
while($count < $NUM_CABINET)
set_control_par(%cabinet_id[$count],$CONTROL_PAR_HIDE,$H
IDE_WHOLE_CONTROL)
inc($count)
end while
$count := 0
while($count < $NUM_PHASER)
set_control_par(%phaser_id[$count],$CONTROL_PAR_HIDE,$HI
DE_WHOLE_CONTROL)
inc($count)
end while
end if
end on
{show cabinet FX controls}
on ui_control ($sw_vintagefx_2)
if ($sw_vintagefx_2 = 0)
$sw_vintagefx_2 := 1
else
$sw_vintagefx_1 := 0
$sw_vintagefx_3 := 0
set_control_par(%vintagefx_id[22],$CONTROL_PAR_PICTURE_STATE,1)
$count := 0
while($count<$NUM_ROTATOR)
set_control_par(%rotator_id[$count],$CONTROL_PAR_HIDE,$H
IDE_WHOLE_CONTROL)
inc($count)
end while
$count := 0
while($count < $NUM_CABINET)
set_control_par(%cabinet_id[$count],$CONTROL_PAR_HIDE,$H
IDE_PART_BG)
if ($count = 2 or $count = 4)
set_control_par(%cabinet_id[$count],$CONTROL_PAR
_HIDE,$HIDE_PART_NOTHING)
end if
inc($count)
end while
$count := 0
while($count < $NUM_PHASER)
set_control_par(%phaser_id[$count],$CONTROL_PAR_HIDE,$HI
DE_WHOLE_CONTROL)
inc($count)
end while
end if
end on
{show phaser FX controls}
on ui_control ($sw_vintagefx_3)
if ($sw_vintagefx_3 = 0)
$sw_vintagefx_3 := 1
else
$sw_vintagefx_1 := 0
$sw_vintagefx_2 := 0
set_control_par(%vintagefx_id[22],$CONTROL_PAR_PICTURE_STATE,2)
$count := 0
while($count<$NUM_ROTATOR)
set_control_par(%rotator_id[$count],$CONTROL_PAR_HIDE,$H
IDE_WHOLE_CONTROL)
inc($count)
end while
$count := 0
while($count < $NUM_CABINET)
set_control_par(%cabinet_id[$count],$CONTROL_PAR_HIDE,$H
IDE_WHOLE_CONTROL)
inc($count)
end while
$count := 0
while($count < $NUM_PHASER)
set_control_par(%phaser_id[$count],$CONTROL_PAR_HIDE,$HI
DE_PART_BG)
inc($count)
end while
end if
end on
{Rotator Controls}
on ui_control($onoff_rotator)
set_engine_par($ENGINE_PAR_SEND_EFFECT_BYPASS,(1+$onoff_rotator)mod 2,-1
,$rotator_slot,1)
end on
on ui_control($bal_rotator)
set_engine_par($ENGINE_PAR_RT_BALANCE,$bal_rotator,-1,$rotator_slot,1)
set_control_par_str(get_ui_id($bal_rotator),$CONTROL_PAR_LABEL,get_engin
e_par_disp($ENGINE_PAR_RT_BALANCE,-1,$rotator_slot,1) & " %")
end on
on ui_control($speed_rotator)
_set_engine_par($ENGINE_PAR_RT_SPEED,$speed_rotator*1000000,-1,$rotator_
slot,1)
end on
{Cabinet Controls}
on ui_control($onoff_cab)
set_engine_par($ENGINE_PAR_SEND_EFFECT_BYPASS,(1+$onoff_cab)mod 2,-1,$ca
binet_slot,1)
end on
on ui_control($air_cab)
set_engine_par($ENGINE_PAR_CB_AIR,$air_cab,-1,$cabinet_slot,1)
set_control_par_str(get_ui_id($air_cab),$CONTROL_PAR_LABEL,get_engine_pa
r_disp($ENGINE_PAR_CB_AIR,-1,$cabinet_slot,1) & " %")
end on
on ui_control($type_cab)
set_engine_par($ENGINE_PAR_CABINET_TYPE,$type_cab,-1,$cabinet_slot,1)
set_control_par(%cabinet_id[2],$CONTROL_PAR_PICTURE_STATE,$type_cab)
end on
{Phaser Controls}
on ui_control($amount_phaser)
set_engine_par($ENGINE_PAR_SEND_EFFECT_OUTPUT_GAIN,$amount_phaser,-1,$ph
aser_slot,1)
set_control_par_str(get_ui_id($amount_phaser),$CONTROL_PAR_LABEL,get_eng
ine_par_disp($ENGINE_PAR_SEND_EFFECT_OUTPUT_GAIN,-1,$phaser_slot,1) & " dB")
end on
on ui_control($depth_phaser)
set_engine_par($ENGINE_PAR_PH_DEPTH,$depth_phaser,-1,$phaser_slot,1)
set_control_par_str(get_ui_id($depth_phaser),$CONTROL_PAR_LABEL,get_engi
ne_par_disp($ENGINE_PAR_PH_DEPTH,-1,$phaser_slot,1) & " %")
end on
on ui_control($rate_phaser)
set_engine_par($ENGINE_PAR_PH_SPEED,$rate_phaser,-1,$phaser_slot,1)
set_control_par_str(get_ui_id($rate_phaser),$CONTROL_PAR_LABEL,get_engin
e_par_disp($ENGINE_PAR_PH_SPEED,-1,$phaser_slot,1) & " Hz")
end on
on ui_control($onoff_phaser)
set_engine_par($ENGINE_PAR_SEND_EFFECT_BYPASS,(1+$onoff_phaser)mod 2,-1,
$phaser_slot,1)
end on
{MASTER FX UI CALLBACKS END}
{INSTRUMENT CONTROL CALLBACKS START}
on ui_control ($sound_instr)
$index_1 := $sound_instr/10
$index_2 := $sound_instr/10 +1
$knob_eq := $sound_instr*10
if ($index_2 > 10)
$index_2 := 10
end if
set_control_par_str(get_ui_id($sound_instr),$CONTROL_PAR_LABEL,$sound_in
str & " %")
$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,-1,$eq_slot,1)
inc($a_eq)
end while
end on
on ui_control ($fat_instr)
if ($fat_instr = 1)
_pgs_set_key_val(UNISONO_VOICES,0,2)
else
_pgs_set_key_val(UNISONO_VOICES,0,1)
end if
end on
on ui_control ($perc_instr)
_set_engine_par ($ENGINE_PAR_VOLUME,$perc_instr,$perc_idx,-1,-1)
set_control_par_str(get_ui_id($perc_instr),$CONTROL_PAR_LABEL,get_engine
_par_disp($ENGINE_PAR_VOLUME,$perc_idx,-1,-1) & " dB")
end on
on ui_control ($bass_instr)
_set_engine_par ($ENGINE_PAR_VOLUME,$bass_instr,$bass_idx,-1,-1)
set_control_par_str(get_ui_id($bass_instr),$CONTROL_PAR_LABEL,get_engine
_par_disp($ENGINE_PAR_VOLUME,$bass_idx,-1,-1) & " dB")
end on
{INSTRUMENT CONTROL CALLBACKS END}
{VOICING CONTROL CALLBACKS START}
on note
$new_note := $EVENT_NOTE
$count := 0
if ($chord_onoff_voicing = 1)
while($count < 4)
if (%chord_types[($chord_voicing*4)+$count] > 0)
$new_note := $EVENT_NOTE + %chord_types[($chord_voicing*
4)+$count]
if($new_note < 128)
$id := play_note($new_note,$EVENT_VELOCITY,0,-1)
change_vol($id,get_event_par($EVENT_ID,$EVENT_PA
R_VOLUME),1)
change_tune($id,get_event_par($EVENT_ID,$EVENT_P
AR_TUNE),1)
change_pan($id,get_event_par($EVENT_ID,$EVENT_PA
R_PAN),1)
end if
end if
inc($count)
end while
end if
end on
on ui_control ($solo_voicing)
if ($solo_voicing = 1)
if ($legato_voicing = 1)
_pgs_set_key_val(SOLO_MODE,0,2)
else
_pgs_set_key_val(SOLO_MODE,0,1)
end if
else
_pgs_set_key_val(SOLO_MODE,0,0)
end if
_pgs_set_key_val(DET_TIME, 0, $solo_voicing)
end on
on ui_control ($legato_voicing)
if ($legato_voicing = 1)
if ($solo_voicing = 1)
_pgs_set_key_val(SOLO_MODE,0,2)
end if
else
if ($solo_voicing = 1)
_pgs_set_key_val(SOLO_MODE,0,1)
end if
end if
end on
on ui_control ($glide_voicing)
if ($glide_voicing = 1)
_pgs_set_key_val(GLIDE_ON_OFF,0,2)
else
_pgs_set_key_val(GLIDE_ON_OFF,0,0)
end if
end on
on ui_control ($glidetime_voicing)
_pgs_set_key_val(GLIDE_TIME,0,$glidetime_voicing)
set_control_par_str(get_ui_id($glidetime_voicing),$CONTROL_PAR_L
ABEL,$glidetime_voicing)
end on
on ui_control ($chord_voicing)
set_text($lb_chord_voicing,!chord_names[$chord_voicing])
set_control_par_str(get_ui_id($chord_voicing),$CONTROL_PAR_LABEL,!chord_
names[$chord_voicing])
$last_time := $ENGINE_UPTIME
wait($wait_time * 1000)
if($ENGINE_UPTIME - $last_time > $wait_time -5)
set_text ($lb_chord_voicing,"Preset")
end if
end on
{VOICING CONTROL CALLBACKS END}

Вам также может понравиться