Forum Rule: Always post complete source code & details to reproduce any issue!
Results 1 to 4 of 4

Thread: Interactive settings from windows gui to arduino/teensy.

  1. #1
    Junior Member
    Join Date
    Jan 2018
    Posts
    6

    Interactive settings from windows gui to arduino/teensy.

    Forum, please assist.
    I have a arduino/teensy implementation where I read settings from a potentiometer throught an analog input. It's a e.g. noise gate setting in this case.

    However I'm trying to find (but failing) some way of interactively change this setting from a slider in a windows gui while connected to the teensy via usb. If I could get rid of the potentiometers this would reduce the cost and complexity of the build significantly.
    Are there any libraries / tools to easly acheive this?

    Regards / Rohman

  2. #2
    Member garubi's Avatar
    Join Date
    Sep 2016
    Location
    Modena, Italy, EU
    Posts
    43

    Lightbulb

    So you would like to set say the threshold value of the noise gate (or any other paramater) not using an analog input of the teensy, but instead a value sent from the computer to the teensy via USB?
    Is it right?

    The first thing that comes to my mind is to program some sort of GUI on the computer that sends a Continuous COntrol value via midiUSB to the Teensy.

    For the GUI you have lot of options:
    As proof of concept, if you have any MIDI software that can send CC, like MIDIoX on Windows (sure there are equivalent software for Mac and Linux) use this to manually send test values an build your midi read function on the Teensy. When you are sure that it works, then you can develop a little GUI.

    • For the GUI, I would investigate the HTML5 Web-MIDI API. It allows you to design you GUI in an html page and use it inside a browser to send MIDI message to connected devices. This way your GUI will be platform-agnostic, easy to update and investigate
    • Anther option is using CTRL: easier to code, you ca than use the gui as a compiled native executable or as a VST inside your DAW.



    This is just some ideas that comes to my mind, what do you think? Is someting like this that you are looking for?

  3. #3
    Junior Member
    Join Date
    Jan 2018
    Posts
    6
    Yes, you got it 100% right and your hints might be perfectly viable. Maybe I'll even be forced to start at that level. However my hopes are that someone has already done something of the sort and already has code lib for Windows and receiving arduino giving me a jump (or flying) start.

  4. #4
    Member garubi's Avatar
    Join Date
    Sep 2016
    Location
    Modena, Italy, EU
    Posts
    43
    If it can be useful, I can provide a little Arduino sketch showing how to receive MIDI from usbMIDI, checking for the CC of your choice and using the CC value for whatever you want.

    Once you have that integrated in your sketch then you can performer some tests sending MIDI CC from software of your choice.

    But on the Computer/Windows side I have nothing ready

    Stefano

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •