update
This commit is contained in:
parent
cfd850312f
commit
0b8b9b494b
|
@ -72,7 +72,62 @@ part|struct.__part__fruity_delay_bank_extra|bank_6_e
|
|||
part|struct.__part__fruity_delay_bank_extra|bank_7_e
|
||||
part|struct.__part__fruity_delay_bank_extra|bank_8_e
|
||||
|
||||
area_struct|fl_slayer
|
||||
part|int|version
|
||||
part|s_int|string_type
|
||||
part|s_int|coil_type
|
||||
part|s_int|pickup_position
|
||||
part|s_int|tone
|
||||
part|s_int|slap
|
||||
part|s_int|fret
|
||||
part|s_int|harmonic
|
||||
part|s_int|damp
|
||||
part|s_int|harmonic_vel
|
||||
part|s_int|damp_vel
|
||||
part|s_int|
|
||||
part|s_int|
|
||||
part|s_int|amp_type
|
||||
part|s_int|drive
|
||||
part|s_int|presense
|
||||
part|s_int|feedback
|
||||
part|s_int|eq_low
|
||||
part|s_int|eq_mid
|
||||
part|s_int|eq_high
|
||||
part|s_int|cabinet
|
||||
part|s_int|fx_type
|
||||
part|s_int|fx_param1
|
||||
part|s_int|fx_param2
|
||||
part|s_int|
|
||||
part|s_int|mode
|
||||
part|s_int|timing
|
||||
part|s_int|hold
|
||||
part|s_int|glissando
|
||||
part|s_int|pitch_bend
|
||||
|
||||
area_struct|fl_keys
|
||||
part|int|version
|
||||
part|string_part/byte|instrument
|
||||
part|s_int|decay
|
||||
part|s_int|release
|
||||
part|s_int|hardness
|
||||
part|s_int|hardness_from_vel
|
||||
part|s_int|muffle
|
||||
part|s_int|muffle_from_vel
|
||||
part|s_int|vel_sens
|
||||
part|s_int|stereo
|
||||
part|s_int|fine
|
||||
part|s_int|detune
|
||||
part|s_int|stretch
|
||||
part|s_int|treble
|
||||
part|s_int|pan
|
||||
part|s_int|lfo
|
||||
part|s_int|overdrive
|
||||
|
||||
area_struct|boobass
|
||||
part|int|version
|
||||
part|int|bass
|
||||
part|int|mid
|
||||
part|int|treble
|
||||
|
||||
area_struct|vintage_chorus
|
||||
part|int|version
|
||||
|
@ -179,8 +234,8 @@ part|int|mixer_track
|
|||
|
||||
area_struct|fruit_kick
|
||||
part|int|version
|
||||
part|int|max_freq
|
||||
part|int|min_freq
|
||||
part|s_int|max_freq
|
||||
part|s_int|min_freq
|
||||
part|int|decay_freq
|
||||
part|int|decay_vol
|
||||
part|int|osc_click
|
||||
|
@ -414,9 +469,9 @@ part|byte|unknown_20
|
|||
part|byte|unknown_21
|
||||
|
||||
area_struct|fruity_mute_2
|
||||
part|int|version
|
||||
part|s_int|mute
|
||||
part|s_int|channel
|
||||
part|s_int|unknown_1
|
||||
|
||||
area_struct|fruity_panomatic
|
||||
part|s_int|pan
|
||||
|
|
|
@ -215,6 +215,43 @@
|
|||
}
|
||||
}
|
||||
},
|
||||
"boobass": {
|
||||
"datadef_struct": "boobass",
|
||||
"params": {
|
||||
"bass": {
|
||||
"def": 0,
|
||||
"max": 65535,
|
||||
"min": 0,
|
||||
"name": "",
|
||||
"noauto": false,
|
||||
"type": "int"
|
||||
},
|
||||
"mid": {
|
||||
"def": 0,
|
||||
"max": 65535,
|
||||
"min": 0,
|
||||
"name": "",
|
||||
"noauto": false,
|
||||
"type": "int"
|
||||
},
|
||||
"treble": {
|
||||
"def": 0,
|
||||
"max": 65535,
|
||||
"min": 0,
|
||||
"name": "",
|
||||
"noauto": false,
|
||||
"type": "int"
|
||||
},
|
||||
"version": {
|
||||
"def": 0,
|
||||
"max": 1,
|
||||
"min": 0,
|
||||
"name": "",
|
||||
"noauto": true,
|
||||
"type": "int"
|
||||
}
|
||||
}
|
||||
},
|
||||
"effector": {
|
||||
"datadef": "",
|
||||
"datadef_struct": "## DISABLED effector",
|
||||
|
@ -325,6 +362,368 @@
|
|||
}
|
||||
}
|
||||
},
|
||||
"fl keys": {
|
||||
"datadef_struct": "fl_keys",
|
||||
"params": {
|
||||
"decay": {
|
||||
"def": 0,
|
||||
"max": 1000,
|
||||
"min": -1000,
|
||||
"name": "",
|
||||
"noauto": false,
|
||||
"type": "int"
|
||||
},
|
||||
"detune": {
|
||||
"def": 0,
|
||||
"max": 500,
|
||||
"min": 0,
|
||||
"name": "",
|
||||
"noauto": false,
|
||||
"type": "int"
|
||||
},
|
||||
"fine": {
|
||||
"def": 0,
|
||||
"max": 1000,
|
||||
"min": -1000,
|
||||
"name": "",
|
||||
"noauto": false,
|
||||
"type": "int"
|
||||
},
|
||||
"hardness": {
|
||||
"def": 0,
|
||||
"max": 1000,
|
||||
"min": -1000,
|
||||
"name": "",
|
||||
"noauto": false,
|
||||
"type": "int"
|
||||
},
|
||||
"hardness_from_vel": {
|
||||
"def": 0,
|
||||
"max": 1000,
|
||||
"min": -1000,
|
||||
"name": "",
|
||||
"noauto": false,
|
||||
"type": "int"
|
||||
},
|
||||
"instrument": {
|
||||
"def": "mda Piano",
|
||||
"max": null,
|
||||
"min": null,
|
||||
"name": "",
|
||||
"noauto": true,
|
||||
"type": "string"
|
||||
},
|
||||
"lfo": {
|
||||
"def": 0,
|
||||
"max": 65536,
|
||||
"min": 0,
|
||||
"name": "",
|
||||
"noauto": false,
|
||||
"type": "int"
|
||||
},
|
||||
"muffle": {
|
||||
"def": 0,
|
||||
"max": 1000,
|
||||
"min": 0,
|
||||
"name": "",
|
||||
"noauto": false,
|
||||
"type": "int"
|
||||
},
|
||||
"muffle_from_vel": {
|
||||
"def": 0,
|
||||
"max": 2000,
|
||||
"min": 0,
|
||||
"name": "",
|
||||
"noauto": false,
|
||||
"type": "int"
|
||||
},
|
||||
"overdrive": {
|
||||
"def": 0,
|
||||
"max": 1000,
|
||||
"min": 0,
|
||||
"name": "",
|
||||
"noauto": false,
|
||||
"type": "int"
|
||||
},
|
||||
"pan": {
|
||||
"def": 0,
|
||||
"max": 1000,
|
||||
"min": -1000,
|
||||
"name": "",
|
||||
"noauto": false,
|
||||
"type": "int"
|
||||
},
|
||||
"release": {
|
||||
"def": 0,
|
||||
"max": 1000,
|
||||
"min": -1000,
|
||||
"name": "",
|
||||
"noauto": false,
|
||||
"type": "int"
|
||||
},
|
||||
"stereo": {
|
||||
"def": 0,
|
||||
"max": 2000,
|
||||
"min": 0,
|
||||
"name": "",
|
||||
"noauto": false,
|
||||
"type": "int"
|
||||
},
|
||||
"stretch": {
|
||||
"def": 0,
|
||||
"max": 500,
|
||||
"min": -500,
|
||||
"name": "",
|
||||
"noauto": false,
|
||||
"type": "int"
|
||||
},
|
||||
"treble": {
|
||||
"def": 0,
|
||||
"max": 1000,
|
||||
"min": -1000,
|
||||
"name": "",
|
||||
"noauto": false,
|
||||
"type": "int"
|
||||
},
|
||||
"vel_sens": {
|
||||
"def": 0,
|
||||
"max": 1000,
|
||||
"min": -1000,
|
||||
"name": "",
|
||||
"noauto": false,
|
||||
"type": "int"
|
||||
},
|
||||
"version": {
|
||||
"def": 0,
|
||||
"max": 1,
|
||||
"min": 0,
|
||||
"name": "",
|
||||
"noauto": true,
|
||||
"type": "int"
|
||||
}
|
||||
}
|
||||
},
|
||||
"fl slayer": {
|
||||
"datadef_struct": "fl_slayer",
|
||||
"params": {
|
||||
"amp_type": {
|
||||
"def": 0,
|
||||
"max": 3,
|
||||
"min": 0,
|
||||
"name": "",
|
||||
"noauto": false,
|
||||
"type": "int"
|
||||
},
|
||||
"cabinet": {
|
||||
"def": 0,
|
||||
"max": 3,
|
||||
"min": 0,
|
||||
"name": "",
|
||||
"noauto": false,
|
||||
"type": "int"
|
||||
},
|
||||
"coil_type": {
|
||||
"def": 0,
|
||||
"max": 2,
|
||||
"min": 0,
|
||||
"name": "",
|
||||
"noauto": false,
|
||||
"type": "int"
|
||||
},
|
||||
"damp": {
|
||||
"def": 0,
|
||||
"max": 65535,
|
||||
"min": 0,
|
||||
"name": "",
|
||||
"noauto": false,
|
||||
"type": "int"
|
||||
},
|
||||
"damp_vel": {
|
||||
"def": 0,
|
||||
"max": 65535,
|
||||
"min": 0,
|
||||
"name": "",
|
||||
"noauto": false,
|
||||
"type": "int"
|
||||
},
|
||||
"drive": {
|
||||
"def": 0,
|
||||
"max": 65535,
|
||||
"min": 0,
|
||||
"name": "",
|
||||
"noauto": false,
|
||||
"type": "int"
|
||||
},
|
||||
"eq_high": {
|
||||
"def": 0,
|
||||
"max": 65535,
|
||||
"min": 0,
|
||||
"name": "",
|
||||
"noauto": false,
|
||||
"type": "int"
|
||||
},
|
||||
"eq_low": {
|
||||
"def": 0,
|
||||
"max": 65535,
|
||||
"min": 0,
|
||||
"name": "",
|
||||
"noauto": false,
|
||||
"type": "int"
|
||||
},
|
||||
"eq_mid": {
|
||||
"def": 0,
|
||||
"max": 65535,
|
||||
"min": 0,
|
||||
"name": "",
|
||||
"noauto": false,
|
||||
"type": "int"
|
||||
},
|
||||
"feedback": {
|
||||
"def": 0,
|
||||
"max": 65535,
|
||||
"min": 0,
|
||||
"name": "",
|
||||
"noauto": false,
|
||||
"type": "int"
|
||||
},
|
||||
"fret": {
|
||||
"def": 0,
|
||||
"max": 65535,
|
||||
"min": 0,
|
||||
"name": "",
|
||||
"noauto": false,
|
||||
"type": "int"
|
||||
},
|
||||
"fx_param1": {
|
||||
"def": 0,
|
||||
"max": 65535,
|
||||
"min": 0,
|
||||
"name": "",
|
||||
"noauto": false,
|
||||
"type": "int"
|
||||
},
|
||||
"fx_param2": {
|
||||
"def": 0,
|
||||
"max": 65535,
|
||||
"min": 0,
|
||||
"name": "",
|
||||
"noauto": false,
|
||||
"type": "int"
|
||||
},
|
||||
"fx_type": {
|
||||
"def": 0,
|
||||
"max": 15,
|
||||
"min": 0,
|
||||
"name": "",
|
||||
"noauto": false,
|
||||
"type": "int"
|
||||
},
|
||||
"glissando": {
|
||||
"def": 0,
|
||||
"max": 1,
|
||||
"min": 0,
|
||||
"name": "",
|
||||
"noauto": false,
|
||||
"type": "int"
|
||||
},
|
||||
"harmonic": {
|
||||
"def": 0,
|
||||
"max": 65535,
|
||||
"min": 0,
|
||||
"name": "",
|
||||
"noauto": false,
|
||||
"type": "int"
|
||||
},
|
||||
"harmonic_vel": {
|
||||
"def": 0,
|
||||
"max": 65535,
|
||||
"min": 0,
|
||||
"name": "",
|
||||
"noauto": false,
|
||||
"type": "int"
|
||||
},
|
||||
"hold": {
|
||||
"def": 0,
|
||||
"max": 1,
|
||||
"min": 0,
|
||||
"name": "",
|
||||
"noauto": false,
|
||||
"type": "int"
|
||||
},
|
||||
"mode": {
|
||||
"def": 0,
|
||||
"max": 5,
|
||||
"min": 0,
|
||||
"name": "",
|
||||
"noauto": false,
|
||||
"type": "int"
|
||||
},
|
||||
"pickup_position": {
|
||||
"def": 0,
|
||||
"max": 65535,
|
||||
"min": 0,
|
||||
"name": "",
|
||||
"noauto": false,
|
||||
"type": "int"
|
||||
},
|
||||
"pitch_bend": {
|
||||
"def": 0,
|
||||
"max": 127,
|
||||
"min": 0,
|
||||
"name": "",
|
||||
"noauto": false,
|
||||
"type": "int"
|
||||
},
|
||||
"presense": {
|
||||
"def": 0,
|
||||
"max": 65535,
|
||||
"min": 0,
|
||||
"name": "",
|
||||
"noauto": false,
|
||||
"type": "int"
|
||||
},
|
||||
"slap": {
|
||||
"def": 0,
|
||||
"max": 65535,
|
||||
"min": 0,
|
||||
"name": "",
|
||||
"noauto": false,
|
||||
"type": "int"
|
||||
},
|
||||
"string_type": {
|
||||
"def": 0,
|
||||
"max": 6,
|
||||
"min": 0,
|
||||
"name": "",
|
||||
"noauto": false,
|
||||
"type": "int"
|
||||
},
|
||||
"timing": {
|
||||
"def": 0,
|
||||
"max": 65535,
|
||||
"min": 0,
|
||||
"name": "",
|
||||
"noauto": false,
|
||||
"type": "int"
|
||||
},
|
||||
"tone": {
|
||||
"def": 0,
|
||||
"max": 65535,
|
||||
"min": 0,
|
||||
"name": "",
|
||||
"noauto": false,
|
||||
"type": "int"
|
||||
},
|
||||
"version": {
|
||||
"def": 0,
|
||||
"max": 1,
|
||||
"min": 0,
|
||||
"name": "",
|
||||
"noauto": true,
|
||||
"type": "int"
|
||||
}
|
||||
}
|
||||
},
|
||||
"frequency shifter": {
|
||||
"datadef": "",
|
||||
"datadef_struct": "frequency_shifter",
|
||||
|
@ -450,7 +849,7 @@
|
|||
"max_freq": {
|
||||
"def": 0,
|
||||
"max": 3600,
|
||||
"min": 0,
|
||||
"min": -2400,
|
||||
"name": "Max Freq",
|
||||
"noauto": false,
|
||||
"type": "int"
|
||||
|
@ -458,7 +857,7 @@
|
|||
"min_freq": {
|
||||
"def": 0,
|
||||
"max": 1200,
|
||||
"min": 0,
|
||||
"min": -1200,
|
||||
"name": "Min Freq",
|
||||
"noauto": false,
|
||||
"type": "int"
|
||||
|
@ -4118,13 +4517,13 @@
|
|||
},
|
||||
"mute": {
|
||||
"def": 0,
|
||||
"max": 1,
|
||||
"max": 1024,
|
||||
"min": 0,
|
||||
"name": "Mute",
|
||||
"noauto": false,
|
||||
"type": "int"
|
||||
},
|
||||
"unknown_1": {
|
||||
"version": {
|
||||
"def": 0,
|
||||
"max": 1,
|
||||
"min": 0,
|
||||
|
|
|
@ -299,7 +299,7 @@ def main():
|
|||
|
||||
argsd = vars(aparser.parse_args())
|
||||
|
||||
datadef = data_datadef.datadef()
|
||||
datadef = data_datadef.datadef(None)
|
||||
|
||||
if argsd['d'] != None:
|
||||
df_file = argsd['d']
|
||||
|
|
|
@ -61,12 +61,14 @@ def db_search(in_data, platformtype, bycat):
|
|||
if platformtype == 'win': out_paths = db_plugins.execute("SELECT path_32bit_win, path_64bit_win FROM vst2 WHERE name = ?", (in_data,)).fetchone()
|
||||
else: out_paths = db_plugins.execute("SELECT path_32bit_unix, path_64bit_unix FROM vst2 WHERE name = ?", (in_data,)).fetchone()
|
||||
vst_name = in_data
|
||||
vst_id = db_plugins.execute("SELECT id FROM vst2 WHERE name = ?", (in_data,)).fetchone()[0]
|
||||
vst_id_d = db_plugins.execute("SELECT id FROM vst2 WHERE name = ?", (in_data,)).fetchone()
|
||||
if vst_id_d: vst_id = vst_id_d[0]
|
||||
|
||||
if bycat == 'id':
|
||||
if platformtype == 'win': out_paths = db_plugins.execute("SELECT path_32bit_win, path_64bit_win FROM vst2 WHERE id = ?", (in_data,)).fetchone()
|
||||
else: out_paths = db_plugins.execute("SELECT path_32bit_unix, path_64bit_unix FROM vst2 WHERE id = ?", (in_data,)).fetchone()
|
||||
vst_name = db_plugins.execute("SELECT name FROM vst2 WHERE id = ?", (in_data,)).fetchone()[0]
|
||||
vst_name_d = db_plugins.execute("SELECT name FROM vst2 WHERE id = ?", (in_data,)).fetchone()
|
||||
if vst_name_d: vst_name = vst_name_d[0]
|
||||
vst_id = in_data
|
||||
|
||||
if bycat == 'path':
|
||||
|
|
|
@ -373,6 +373,12 @@ def getparams(cvpj_l, pluginid, pluginname, chunkpdata, foldername, datadef, dat
|
|||
if datadef_struct[0]:
|
||||
cvpj_plugindata = plugins.cvpj_plugin('deftype', 'native-flstudio', pluginname)
|
||||
jsondecoded = datadef.parse(datadef_struct[1], chunkpdata)
|
||||
|
||||
#if True:
|
||||
# for part in datadef.debugoutput:
|
||||
# print(part)
|
||||
# exit()
|
||||
|
||||
cvpj_plugindata.param_dict_dataset_get(jsondecoded, dataset, 'plugin', pluginname)
|
||||
|
||||
# ------------------------------------------------------------------------------------------- Other
|
||||
|
|
|
@ -37,4 +37,28 @@ def move(cvpj_l, old_autolocation, new_autolocation):
|
|||
def del_plugin(cvpj_l, pluginid):
|
||||
print('[tracks] Removing Plugin Automation:',pluginid)
|
||||
dictvals = data_values.nested_dict_get_value(cvpj_l, ['automation', 'plugin', pluginid])
|
||||
if dictvals != None: del cvpj_l['automation', 'plugin', pluginid]
|
||||
if dictvals != None: del cvpj_l['automation']['plugin'][pluginid]
|
||||
|
||||
def change_valrange(cvpj_l, autolocation, old_min, old_max, new_min, new_max):
|
||||
dictvals = data_values.nested_dict_get_value(cvpj_l, ['automation']+autolocation)
|
||||
if dictvals != None:
|
||||
if 'placements' in dictvals:
|
||||
dictvals = auto.change_valrange(dictvals['placements'], old_min, old_max, new_min, new_max)
|
||||
|
||||
def to_one(cvpj_l, autolocation, v_min, v_max):
|
||||
dictvals = data_values.nested_dict_get_value(cvpj_l, ['automation']+autolocation)
|
||||
if dictvals != None:
|
||||
if 'placements' in dictvals:
|
||||
dictvals = auto.to_one(dictvals['placements'], v_min, v_max)
|
||||
|
||||
def multiply(cvpj_l, autolocation, addval, mulval):
|
||||
dictvals = data_values.nested_dict_get_value(cvpj_l, ['automation']+autolocation)
|
||||
if dictvals != None:
|
||||
if 'placements' in dictvals:
|
||||
dictvals = auto.multiply(dictvals['placements'], addval, mulval)
|
||||
|
||||
def to_ext_one(cvpj_l, pluginid, oldname, newname, v_min, v_max):
|
||||
move(cvpj_l, ['plugin', pluginid, oldname], ['plugin', pluginid, newname])
|
||||
to_one(cvpj_l, ['plugin', pluginid, newname], v_min, v_max)
|
||||
|
||||
|
||||
|
|
|
@ -91,7 +91,7 @@ class input_ceol(plugin_input.base):
|
|||
|
||||
elif ceol_basic_effect == 1: #chorus
|
||||
masterfx_plugindata = plugins.cvpj_plugin('deftype', 'simple', 'chorus')
|
||||
masterfx_plugindata.fxdata_add(1, ceol_basic_effectvalue/100)
|
||||
masterfx_plugindata.param_add('amount', ceol_basic_effectvalue/100, 'float', 'amount')
|
||||
|
||||
elif ceol_basic_effect == 2: #reverb
|
||||
masterfx_plugindata = plugins.cvpj_plugin('deftype', 'simple', 'reverb')
|
||||
|
|
|
@ -139,8 +139,9 @@ def getvstparams(cvpj_plugindata, pluginid, xmldata):
|
|||
|
||||
if vst_data != None:
|
||||
cvpj_plugindata.dataval_add('datatype', 'chunk')
|
||||
cvpj_plugindata.rawdata_add(vst_data)
|
||||
plugin_vst2.replace_data(cvpj_plugindata, 'path', 'win', xmldata.get('plugin'), 'chunk', vst_data, None)
|
||||
chunkdata = base64.b64decode(vst_data.encode('ascii'))
|
||||
cvpj_plugindata.rawdata_add(chunkdata)
|
||||
plugin_vst2.replace_data(cvpj_plugindata, 'path', 'win', xmldata.get('plugin'), 'chunk', chunkdata, None)
|
||||
|
||||
elif vst_numparams != None:
|
||||
cvpj_plugindata.dataval_add('datatype', 'param')
|
||||
|
@ -150,7 +151,7 @@ def getvstparams(cvpj_plugindata, pluginid, xmldata):
|
|||
paramnum = 'vst_param_'+str(param)
|
||||
cvpj_plugindata.param_add(paramnum, float(paramdata[-1]), 'float', paramdata[1])
|
||||
|
||||
for node in xmldata.iter():
|
||||
for node in xmldata:
|
||||
notetagtxt = node.tag
|
||||
if notetagtxt.startswith('param'):
|
||||
value = node.get('value')
|
||||
|
|
|
@ -517,7 +517,7 @@ class output_cvpj_f(plugin_output.base):
|
|||
vstdatatype = cvpj_plugindata.dataval_get('datatype', '')
|
||||
if vstdatatype == 'chunk':
|
||||
vstcondata['pluginPath'] = cvpj_plugindata.dataval_get('path', 'path')
|
||||
vstcondata['pluginState'] = cvpj_plugindata.rawdata_get()
|
||||
vstcondata['pluginState'] = cvpj_plugindata.rawdata_get_b64()
|
||||
amped_trackdata["devices"].append(vstcondata)
|
||||
|
||||
if inst_supported == False:
|
||||
|
@ -628,8 +628,11 @@ class output_cvpj_f(plugin_output.base):
|
|||
if cuttype == 'cut':
|
||||
amped_offset = cutdata['start']/4 if 'start' in cutdata else 0
|
||||
|
||||
amped_audclip = {}
|
||||
|
||||
if 'audiomod' in cvpj_audioclip:
|
||||
cvpj_audiomod = cvpj_audioclip['audiomod']
|
||||
amped_audclip['pitchShift'] = int(cvpj_audiomod['pitch']) if 'pitch' in cvpj_audiomod else 0
|
||||
stretch_method = cvpj_audiomod['stretch_method'] if 'stretch_method' in cvpj_audiomod else None
|
||||
stretch_data = cvpj_audiomod['stretch_data'] if 'stretch_data' in cvpj_audiomod else {'rate': 1.0}
|
||||
stretch_rate = stretch_data['rate'] if 'rate' in stretch_data else 1
|
||||
|
@ -640,7 +643,6 @@ class output_cvpj_f(plugin_output.base):
|
|||
audioid = None
|
||||
if 'file' in cvpj_audioclip:
|
||||
audioid = addsample(zip_amped, cvpj_audioclip['file'])
|
||||
amped_audclip = {}
|
||||
amped_audclip['contentGuid'] = {}
|
||||
if audioid != None: amped_audclip['contentGuid']['userAudio'] = {"exportedId": audioid}
|
||||
amped_audclip['position'] = 0
|
||||
|
|
|
@ -160,22 +160,22 @@ def setvstparams(cvpj_plugindata, pluginid, xmldata):
|
|||
|
||||
if datatype == 'param':
|
||||
xmldata.set('numparams', str(numparams))
|
||||
|
||||
for param in range(numparams):
|
||||
pval, ptype, pname = cvpj_plugindata.param_get('vst_param_'+str(param), 0)
|
||||
xmldata.set('param'+str(param), str(param)+':'+pname+':'+str(pval))
|
||||
|
||||
|
||||
pluginautoid = auto_id.out_getlist(['plugin', pluginid])
|
||||
if pluginautoid != None:
|
||||
for paramname in pluginautoid:
|
||||
if 'vst_param_' in paramname:
|
||||
paramid = paramname[10:]
|
||||
paramvisname = int(paramname[10:])+1
|
||||
aid_id, aid_data = auto_id.out_get(['plugin', pluginid, paramname])
|
||||
if aid_id != None and len(aid_data['placements']) != 0:
|
||||
make_auto_track(aid_id, aid_data, 'VST2: #'+str(paramvisname))
|
||||
autovarX = ET.SubElement(xmldata, 'param'+paramid)
|
||||
make_auto_track(aid_id, aid_data, 'VST2: #'+str(int(paramname[10:])+1))
|
||||
autovarX = ET.SubElement(xmldata, 'param'+paramname[10:])
|
||||
autovarX.set('scale_type', 'linear')
|
||||
autovarX.set('id', str(aid_id))
|
||||
|
||||
|
||||
return middlenotefix
|
||||
|
||||
|
|
|
@ -98,6 +98,13 @@ class plugconv(plugin_plugconv_extern.base):
|
|||
cvpj_plugindata.param_add('vst_param_3', paramvals[3], 'float', " x 100 ")
|
||||
cvpj_plugindata.param_add('vst_param_4', paramvals[4], 'float', "PostFilter")
|
||||
cvpj_plugindata.param_add('vst_param_5', paramvals[5], 'float', " PostGain ")
|
||||
|
||||
auto_data.to_ext_one(cvpj_l, pluginid, 'preband', 'vst_param_0', 0, 10000)
|
||||
auto_data.to_ext_one(cvpj_l, pluginid, 'color', 'vst_param_1', 0, 10000)
|
||||
auto_data.to_ext_one(cvpj_l, pluginid, 'preamp', 'vst_param_2', 0, 10000)
|
||||
auto_data.to_ext_one(cvpj_l, pluginid, 'x100', 'vst_param_3', 0, 1)
|
||||
auto_data.to_ext_one(cvpj_l, pluginid, 'postfilter', 'vst_param_4', 0, 10000)
|
||||
auto_data.to_ext_one(cvpj_l, pluginid, 'postgain', 'vst_param_5', 0, 10000)
|
||||
return True
|
||||
|
||||
if flpluginname in nonfree_il_plugnames and extplugtype == 'vst2':
|
||||
|
@ -182,7 +189,8 @@ class plugconv(plugin_plugconv_extern.base):
|
|||
param_mod_thru = getparam('mod_thru')/65536
|
||||
param_lforate = getparam('lforate')/65536
|
||||
|
||||
plugin_vst2.replace_data(cvpj_plugindata, 'name','any', 'DX10', 'param', None, 16)
|
||||
plugin_vst2.replace_data(cvpj_plugindata, 'name', 'any', 'DX10', 'param', None, 16)
|
||||
|
||||
cvpj_plugindata.param_add('vst_param_0', param_amp_att, 'float', "Attack ", )
|
||||
cvpj_plugindata.param_add('vst_param_1', param_amp_dec, 'float', "Decay ", )
|
||||
cvpj_plugindata.param_add('vst_param_2', param_amp_rel, 'float', "Release ", )
|
||||
|
@ -199,6 +207,23 @@ class plugconv(plugin_plugconv_extern.base):
|
|||
cvpj_plugindata.param_add('vst_param_13', param_waveform, 'float', "Waveform", )
|
||||
cvpj_plugindata.param_add('vst_param_14', param_mod_thru, 'float', "Mod Thru", )
|
||||
cvpj_plugindata.param_add('vst_param_15', param_lforate, 'float', "LFO Rate", )
|
||||
|
||||
auto_data.to_ext_one(cvpj_l, pluginid, 'amp_att', 'vst_param_0', 0, 65536)
|
||||
auto_data.to_ext_one(cvpj_l, pluginid, 'amp_dec', 'vst_param_1', 0, 65536)
|
||||
auto_data.to_ext_one(cvpj_l, pluginid, 'amp_rel', 'vst_param_2', 0, 65536)
|
||||
auto_data.to_ext_one(cvpj_l, pluginid, 'mod_course', 'vst_param_3', 0, 65536)
|
||||
auto_data.to_ext_one(cvpj_l, pluginid, 'mod_fine', 'vst_param_4', 0, 65536)
|
||||
auto_data.to_ext_one(cvpj_l, pluginid, 'mod_init', 'vst_param_5', 0, 65536)
|
||||
auto_data.to_ext_one(cvpj_l, pluginid, 'mod_time', 'vst_param_6', 0, 65536)
|
||||
auto_data.to_ext_one(cvpj_l, pluginid, 'mod_sus', 'vst_param_7', 0, 65536)
|
||||
auto_data.to_ext_one(cvpj_l, pluginid, 'mod_rel', 'vst_param_8', 0, 65536)
|
||||
auto_data.to_ext_one(cvpj_l, pluginid, 'velsen', 'vst_param_9', 0, 65536)
|
||||
auto_data.to_ext_one(cvpj_l, pluginid, 'vibrato', 'vst_param_10', 0, 65536)
|
||||
auto_data.to_ext_one(cvpj_l, pluginid, 'octave', 'vst_param_11', -3, 3)
|
||||
|
||||
auto_data.to_ext_one(cvpj_l, pluginid, 'waveform', 'vst_param_13', 0, 65536)
|
||||
auto_data.to_ext_one(cvpj_l, pluginid, 'mod_thru', 'vst_param_14', 0, 65536)
|
||||
auto_data.to_ext_one(cvpj_l, pluginid, 'lforate', 'vst_param_15', 0, 65536)
|
||||
return True
|
||||
|
||||
# ---------------------------------------- SimSynth ----------------------------------------
|
||||
|
@ -273,6 +298,9 @@ class plugconv(plugin_plugconv_extern.base):
|
|||
plugin_vst2.replace_data(cvpj_plugindata, 'name', 'any', 'Weight', 'param', None, 2)
|
||||
cvpj_plugindata.param_add('vst_param_0', param_freq, 'float', "Freq")
|
||||
cvpj_plugindata.param_add('vst_param_1', param_amount, 'float', "Weight")
|
||||
|
||||
auto_data.to_ext_one(cvpj_l, pluginid, 'freq', 'vst_param_0', 0, 1280)
|
||||
auto_data.to_ext_one(cvpj_l, pluginid, 'amount', 'vst_param_1', 0, 1280)
|
||||
return True
|
||||
|
||||
elif flpluginname == 'fruity phaser' and extplugtype == 'vst2':
|
||||
|
@ -303,6 +331,16 @@ class plugconv(plugin_plugconv_extern.base):
|
|||
cvpj_plugindata.param_add('vst_param_13', param_drywet, 'float', "dry-wet")
|
||||
cvpj_plugindata.param_add('vst_param_14', param_gain, 'float', "out gain")
|
||||
cvpj_plugindata.param_add('vst_param_15', 0, 'float', "invert")
|
||||
|
||||
auto_data.to_ext_one(cvpj_l, pluginid, 'sweep_freq', 'vst_param_5', 0, 5000)
|
||||
auto_data.to_ext_one(cvpj_l, pluginid, 'depth_min', 'vst_param_6', 0, 1000)
|
||||
auto_data.to_ext_one(cvpj_l, pluginid, 'depth_max', 'vst_param_7', 0, 1000)
|
||||
auto_data.to_ext_one(cvpj_l, pluginid, 'freq_range', 'vst_param_8', 0, 1024)
|
||||
auto_data.to_ext_one(cvpj_l, pluginid, 'stereo', 'vst_param_9', 0, 1024)
|
||||
auto_data.to_ext_one(cvpj_l, pluginid, 'num_stages', 'vst_param_10', 0, 22)
|
||||
auto_data.to_ext_one(cvpj_l, pluginid, 'feedback', 'vst_param_12', 0, 1000)
|
||||
auto_data.to_ext_one(cvpj_l, pluginid, 'drywet', 'vst_param_13', 0, 1024)
|
||||
auto_data.to_ext_one(cvpj_l, pluginid, 'gain', 'vst_param_14', 0, 5000)
|
||||
return True
|
||||
|
||||
elif flpluginname == 'fruity spectroman' and extplugtype == 'vst2':
|
||||
|
|
|
@ -11,6 +11,8 @@ from functions import plugin_vst2
|
|||
from functions import plugins
|
||||
from functions import xtramath
|
||||
|
||||
from functions_tracks import auto_data
|
||||
|
||||
from functions_plugdata import data_nullbytegroup
|
||||
from functions_plugdata import plugin_vital
|
||||
from functions_plugdata import plugin_socalabs
|
||||
|
@ -220,6 +222,7 @@ class plugconv(plugin_plugconv_extern.base):
|
|||
if getparam('endnote') == 1: data_kickmess.set_param('pub', 'freq_note_end', 0.5)
|
||||
data_kickmess.set_param('pub', 'phase_offs', getparam('click'))
|
||||
data_kickmess.to_cvpj_vst2(cvpj_plugindata)
|
||||
|
||||
return True
|
||||
|
||||
if plugintype[1] == 'lb302' and extplugtype == 'vst2':
|
||||
|
@ -283,6 +286,8 @@ class plugconv(plugin_plugconv_extern.base):
|
|||
[{'ui_size': ''},
|
||||
{'mix': '1', 'size': str(value_size), 'brightness': str(value_color/15000)}]),
|
||||
None)
|
||||
auto_data.to_ext_one(cvpj_l, pluginid, 'size', 'vst_param_1', 0, 1)
|
||||
auto_data.to_ext_one(cvpj_l, pluginid, 'color', 'vst_param_2', 0, 15000)
|
||||
return True
|
||||
|
||||
if plugintype[1] == 'spectrumanalyzer' and extplugtype == 'vst2':
|
||||
|
|
|
@ -6,6 +6,8 @@ import plugin_plugconv_extern
|
|||
import struct
|
||||
from functions import plugin_vst2
|
||||
|
||||
from functions_tracks import auto_data
|
||||
|
||||
class plugconv(plugin_plugconv_extern.base):
|
||||
def __init__(self): pass
|
||||
def is_dawvert_plugin(self): return 'plugconv_ext'
|
||||
|
@ -23,7 +25,7 @@ class plugconv(plugin_plugconv_extern.base):
|
|||
|
||||
elif plugintype[1] == 'eq' and extplugtype == 'vst2':
|
||||
print('[plug-conv] Online Sequencer to VST2: EQ > 3 Band EQ:',pluginid)
|
||||
eq_high = cvpj_plugindata.param_get('eq_high', 0)[0]
|
||||
eq_low = cvpj_plugindata.param_get('eq_low', 0)[0]
|
||||
eq_mid = cvpj_plugindata.param_get('eq_mid', 0)[0]
|
||||
eq_high = cvpj_plugindata.param_get('eq_high', 0)[0]
|
||||
plugin_vst2.replace_data(cvpj_plugindata, 'name','any', '3 Band EQ', 'param', None, 6)
|
||||
|
@ -33,6 +35,10 @@ class plugconv(plugin_plugconv_extern.base):
|
|||
cvpj_plugindata.param_add('vst_param_3', 0.5, 'float', "Master")
|
||||
cvpj_plugindata.param_add('vst_param_4', 0.22, 'float', "Low-Mid Freq")
|
||||
cvpj_plugindata.param_add('vst_param_5', 0.3, 'float', "Mid-High Freq")
|
||||
|
||||
auto_data.to_ext_one(cvpj_l, pluginid, 'eq_low', 'vst_param_0', -96, 96)
|
||||
auto_data.to_ext_one(cvpj_l, pluginid, 'eq_mid', 'vst_param_1', -96, 96)
|
||||
auto_data.to_ext_one(cvpj_l, pluginid, 'eq_high', 'vst_param_2', -96, 96)
|
||||
return True
|
||||
|
||||
else: return False
|
Loading…
Reference in New Issue