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

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
    50

    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
    50
    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

  5. #5
    Junior Member
    Join Date
    Jul 2021
    Posts
    6

    Change cc settings in midi fader box

    Hi garubi

    I have made a small box with 3 faders that sends out midi cc
    on numbers 1,11,21 (chosen by me when I program the teensy lc)

    The end users would like to be able to change these cc numbers themselves.

    Could you help me with an example of code I could add to the sketch so the Teensy is able to receive midi data to change these settings.

    Thanks

    Nick





    QUOTE=gabi;195788]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[/QUOTE]

  6. #6
    Member garubi's Avatar
    Join Date
    Sep 2016
    Location
    Modena, Italy, EU
    Posts
    50
    Quote Originally Posted by n.tracker View Post
    Hi garubi

    I have made a small box with 3 faders that sends out midi cc
    on numbers 1,11,21 (chosen by me when I program the teensy lc)

    The end users would like to be able to change these cc numbers themselves.

    Could you help me with an example of code I could add to the sketch so the Teensy is able to receive midi data to change these settings.

    Thanks

    Nick
    Hi Nock,
    I'll luook for a snippet of code in my projects and try to post it here in the next few days

    Stefano

  7. #7
    Junior Member
    Join Date
    Jul 2021
    Posts
    6
    Thanks

    Stefano


    Quote Originally Posted by garubi View Post
    Hi Nock,
    I'll luook for a snippet of code in my projects and try to post it here in the next few days

    Stefano

  8. #8
    Junior Member
    Join Date
    Jul 2021
    Posts
    6
    Hello

    Below is a link where there is an HTML page gui that sends sys ex messages to the teensy code (attached below). I'm just not experienced enough to know how to add the required bits to my original teensy sketch.

    Nick


    https://github.com/nativeVS/VS_Faderbox_Editor



    [QUOTE=n.tracker;284425]Thanks
    Attached Files Attached Files

Posting Permissions

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