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

Thread: Creating a software editor

  1. #1

    Creating a software editor

    Hi, I'm making a midi controller. What software would I use to create an app which would enable a user to easily change a midi CC assignment or midi channel being sent?
    Like a configuration app. Is that possible with teensy? I'm using a teensy 2.0

  2. #2
    Senior Member
    Join Date
    Apr 2013
    Posts
    1,905
    There is not an easy way to do this. The basic idea is to use the USB serial port and send messages either as single letters or more structured commands from your program. The basic proof of concept is to do this from the Arduino serial terminal to your device, and then build software that can take over the serial messaging with a prettier interface once that Arduino end is working well. This splits the task into two separate parts. For the PC end anything that can produce serial messages can work, I have used processing https://processing.org/reference/lib...ial/index.html but would suggest using whatever programing environment you are already comfortable with and finding serial libraries for it rather than learning a new environment just for the job.

  3. #3
    The best way is to write a Web Midi API based web page that connects to your Teensy via Midi and sends config data as Sysex. A lot of Midi devices are configured like this now. The biggest advantages are that (1) there is no software to install by the end-user as it is browser based and hosted on your web site, and (2) will work across Windows, Mac, Linux etc.

  4. #4
    Junior Member
    Join Date
    Sep 2017
    Posts
    18
    Have you seen https://processing.org/ ?
    This allows to make Apps for Windows, Android and Pi in an arduinoesque way, that can communicate with MIDI, COM and other channels.

  5. #5
    Junior Member
    Join Date
    Sep 2017
    Posts
    18
    Or add an ESP32 or ESP8266 to the project, that offers a webpage in WLAN or even on it's own AP to do all the config needed.
    Is a bit like shooting cannons at bugs, but we need to add a co-processor to handle different USB types already, so it is just another chip.

  6. #6
    Junior Member
    Join Date
    Sep 2017
    Posts
    18
    btw: it would be super cool to have a USB type "network adapter" that could handle a local webserver... unfortunately I am not ale to code somethig like that.

  7. #7
    Senior Member vjmuzik's Avatar
    Join Date
    Apr 2017
    Location
    Florida
    Posts
    389
    Have a look at: https://ctrlr.org/
    It has the ability to do what you want if you can program it right, the basic objects won’t be able to do it without some programming though. It allows you to attach lua scripts to different aspects of an object which can get pretty extensive. There aren’t many tutorials or documentation for it, but they have a lot of free examples that other people have made that you can look through and get ideas for. It’s exclusively MIDI so nothing special is needed to interface with it, you just select the MIDI port for your device.

  8. #8
    Senior Member oddson's Avatar
    Join Date
    Feb 2013
    Location
    Isle in the Salish Sea
    Posts
    1,214
    Quote Originally Posted by thomasp View Post
    The best way is to write a Web Midi API based web page that connects to your Teensy via Midi and sends config data as Sysex. A lot of Midi devices are configured like this now. The biggest advantages are that (1) there is no software to install by the end-user as it is browser based and hosted on your web site, and (2) will work across Windows, Mac, Linux etc.
    This would be ideal. Reading a few bytes of sysex and storing it in eeprom is not difficult.

    I did it years ago...
    https://forum.pjrc.com/threads/24537...dal-controller

    You read from the eeprom during setup and the sysex code loads up the eeprom when it gets a valid message.

    Warning... that code has getType() == 7 which needs updating before it will work with current Teensyduino.

Posting Permissions

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