Okay I have a little problem with the .plugin.js. The Datadrop is not visible and the frequency randomization.
this is the result:
this is the script:
studio.plugins.registerPluginDescription("Ginsu Synth", {
companyName: "Custom",
productName: "Ginsu Synthesizer",
deckUi: {
deckWidgetType: studio.ui.deckWidgetType.Layout,
layout: studio.ui.layoutType.HBoxLayout,
spacing: 18,
items: [
{
deckWidgetType: studio.ui.deckWidgetType.Layout,
layout: studio.ui.layoutType.VBoxLayout,
spacing: 12,
items: [
{ deckWidgetType: studio.ui.deckWidgetType.Pixmap, filePath: __dirname + "/ginsu_synth_logo.png" },
{ deckWidgetType: studio.ui.deckWidgetType.DataDrop, binding: "Ginsu Synth Data", fileNameFilters: "*.gin" },
],
},
{
deckWidgetType: studio.ui.deckWidgetType.Layout,
layout: studio.ui.layoutType.GridLayout,
spacing: 12,
items: [
{ deckWidgetType: studio.ui.deckWidgetType.Dial, color: "#DF171A", row: 0, column: 0, binding: "Rpm", },
{ deckWidgetType: studio.ui.deckWidgetType.Dial, color: "#FFFFFF", row: 1, column: 0, binding: "Idle Rpm", },
{ deckWidgetType: studio.ui.deckWidgetType.Dial, color: "#DF171A", row: 1, column: 1, binding: "Redline Rpm", },
{ deckWidgetType: studio.ui.deckWidgetType.Dial, color: "#DF171A", row: 1, column: 2, binding: "Frequency Randomization", },
],
},
],
},
});
and this is in code
extern "C"
{
F_EXPORT FMOD_DSP_DESCRIPTION* F_CALL FMODGetDSPDescription()
{
FMOD_DSP_INIT_PARAMDESC_FLOAT(p_rpm, "Rpm", "rpm", "0 to 10.000. Default = 1000", GINSU_SYNTH_PARAM_RPM_MIN, GINSU_SYNTH_PARAM_RPM_MAX, GINSU_SYNTH_PARAM_RPM_DEFAULT);
FMOD_DSP_INIT_PARAMDESC_FLOAT(p_idle_rpm, "Idle Rpm", "rpm", "0 to 5.000. Default = 1000", GINSU_SYNTH_PARAM_IDLE_RPM_MIN, GINSU_SYNTH_PARAM_IDLE_RPM_MAX, GINSU_SYNTH_PARAM_IDLE_RPM_DEFAULT);
FMOD_DSP_INIT_PARAMDESC_FLOAT(p_redline_rpm, "Redline Rpm", "rpm", "5.000 to 10.000. Default = 10000", GINSU_SYNTH_PARAM_REDLINE_RPM_MIN, GINSU_SYNTH_PARAM_REDLINE_RPM_MAX, GINSU_SYNTH_PARAM_REDLINE_RPM_DEFAULT);
FMOD_DSP_INIT_PARAMDESC_FLOAT(p_frequency_randomization, "Frequency Randomization", "rpm", "0 to 100. Default = 0", GINSU_SYNTH_PARAM_FREQUENCY_RANDOMIZATION_MIN, GINSU_SYNTH_PARAM_FREQUENCY_RANDOMIZATION_MAX, GINSU_SYNTH_PARAM_FREQUENCY_RANDOMIZATION_DEFAULT);
FMOD_DSP_INIT_PARAMDESC_DATA(p_ginsu_synth_data, "Ginsu Synth Data", ".gin file", "Some description", GINSU_SYNTH_PARAM_DATATYPE_DEFAULT);
return &Ginsu_Synth_Desc;
}
}
when i don’t use the .js all controls are there but pretty ugly aligned.
Best regards.
Edit.: Found out, the name of the control shouldn’t be too long.