You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

24 lines
1.4KB

  1. #include "recorder-module-widget.hh"
  2. #include "recorder-module.hh"
  3. recorder_module_widget::recorder_module_widget(Module* module) : ModuleWidget(module) {
  4. setPanel(SVG::load(assetPlugin(plugin, "res/Recorder.svg")));
  5. addChild(Widget::create<ScrewSilver>(Vec(RACK_GRID_WIDTH, 0)));
  6. addChild(Widget::create<ScrewSilver>(Vec(box.size.x - 2 * RACK_GRID_WIDTH, 0)));
  7. addChild(Widget::create<ScrewSilver>(Vec(RACK_GRID_WIDTH, RACK_GRID_HEIGHT - RACK_GRID_WIDTH)));
  8. addChild(Widget::create<ScrewSilver>(Vec(box.size.x - 2 * RACK_GRID_WIDTH, RACK_GRID_HEIGHT - RACK_GRID_WIDTH)));
  9. addInput(Port::create<PJ301MPort>(mm2px(Vec(3.7069211, 10.530807)), Port::INPUT, module, recorder_module::AUDIO_INPUT + 0));
  10. addInput(Port::create<PJ301MPort>(mm2px(Vec(3.7069211, 23.530807)), Port::INPUT, module, recorder_module::AUDIO_INPUT + 1));
  11. addInput(Port::create<PJ301MPort>(mm2px(Vec(3.7069211, 36.530807)), Port::INPUT, module, recorder_module::AUDIO_INPUT + 2));
  12. addInput(Port::create<PJ301MPort>(mm2px(Vec(3.7069211, 49.530807)), Port::INPUT, module, recorder_module::AUDIO_INPUT + 3));
  13. }
  14. // Specify the Module and ModuleWidget subclass, human-readable
  15. // author name for categorization per plugin, module slug (should never
  16. // change), human-readable module name, and any number of tags
  17. // (found in `include/tags.hpp`) separated by commas.
  18. Model *recorder_model = Model::create<recorder_module, recorder_module_widget>("Skylights", "SkRecorder", "SK Recorder", RECORDING_TAG);