If your software can deal with sysex messages, that might be the easiest path. Within MIDI, the System Exclusive message is the normal way for sending these types of non-MIDI messages. The hid_listen program is probably a good starting point. Each operating system has very different APIs. #2: You could use the native HID APIs to directly receive the data. That's how the serial monitor does it when using a USB type without serial. #1: You can use the "teensy_gateway" program and then telnet to 127.0.0.1 port 28541. This might be useful, but it's not simple to access without the serial monitor, because it not a serial device (Mac, Linux) or COM port (Windows). So you can put Serial.print() in your program and it will print to the Arduino Serial Monitor. Teensyduino emulates a serial connection using HID for all the USB types without Serial. Without editing the core library, you still have a few options. It's much easier on Teensy 3.0 (see the comments in usb_desc.h), but also possible on 2.0 with some programming. You'll need to modify the USB code, which involves digging into the core library and hacking the code. It is possible to have both USB serial and MIDI, but Teensyduino currently does not have any option to implement this. If this is completely imposible, I can design a "protocol" for sending back the ASCII data encoded as MIDI notes I've heard about composite USB types, and I am kind of programming something, as I've seen before here. Maybe the limits arise when you have to select USB type at Arduindo IDE. What may happen if you also call Serial.begin(9600) on setup and use the serial communications functions? I have seen in code samples from this page that USB MIDI is programmed only by calling ndNoteOn() and other functions directly from the loop function. I have a program that reads in which preset is active and sends 4 ASCII chars back to my Teensy for displaying preset name on the controlloler's 4-digit 7-seg display. My question is, Can I use the USB serial communications while I am using USB MIDI? This is for a MIDI controller for Guitar Rig, a virtual-amp VST plugin. And I also found another similar post in this forums, but didnt have any reply. So I am only asking based on what I've learned from the teensyduino section of this page, and some Arduino code from the Internet. Going thru my case, I have my Teensy shipped but It didnt arrived yet. Finding something like Teensy clearly made me order one of your boards inmediatly, although having looked at Arduino, which is both worse and more expensive. and I always been interested in electronics and networks. Before I say a single word I want to congratulate Paul and all the Teensy community for the hard work done, I am studying Telco Ing.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |