Finalize modgui details, add example preset

Signed-off-by: falkTX <falktx@falktx.com>
This commit is contained in:
falkTX 2022-05-06 14:53:32 +01:00
parent 1567dd7a09
commit 0cbf3cd166
No known key found for this signature in database
GPG key ID: CDBAA37ABC74FBA0
13 changed files with 273 additions and 29 deletions

View file

@ -201,6 +201,7 @@ struct AudioToCVPitch : Module {
}
};
#ifndef HEADLESS
struct SmallPercentageNanoKnob : NanoKnob<2, 0> {
SmallPercentageNanoKnob() {
box.size = Vec(32, 32);
@ -354,6 +355,17 @@ struct AudioToCVPitchWidget : ModuleWidgetWith9HP {
}));
}
};
#else
struct AudioToCVPitchWidget : ModuleWidget {
AudioToCVPitchWidget(AudioToCVPitch* const module) {
setModule(module);
addInput(createInput<PJ301MPort>({}, module, AudioToCVPitch::AUDIO_INPUT));
addOutput(createOutput<PJ301MPort>({}, module, AudioToCVPitch::CV_PITCH));
addOutput(createOutput<PJ301MPort>({}, module, AudioToCVPitch::CV_GATE));
}
};
#endif
// --------------------------------------------------------------------------------------------------------------------