@Bastiaan:
I would suggest a major simplification. Note that I am not somewhere where I can actually test this on a Teensy, so this is all "conceptual" off the top of my head. Normally, I don't think it is really...
@Muiota:
That's exactly the tone sound that I was getting in my updated TeensyMIDIPolySynth. The fix that Frank B pointed out in P#21 (included in Teensyduino 1.54b7) successfully fixed the problem that I was...
Again, did you *remove* all other *hardware* connections ?? Just "unassigning pins" is a *software* function & does not remove any potential *hardware* conflicts.
Please understand that I'm not yelling, just wanting...
@djex81:
The third parameter that you are passing into the MIDI_CREATE_INSTANCE(HardwareSerial, Serial1, MIDI) macro specifies & holds the return of your default MIDI object name, which can subsequently be referenced...
Includes for the different devices:
#include <USBHost_t36.h>
#include <MIDI.h>
Declaring the different devices (I threw the hub in there just in case I decided to connect a USB hub on the USBhost port . . . I...
I think the short answer is yes. Other than declaring the use of the specific devices (usb, usbhost, midi) & making calls using the specific device names , all else should be the same. Let me get to my other computer...
@DeMoeP:
Did you try connecting *only* the Teensy & the Audio Adapter together - with absolutely no other hardware ?? Running the WaveFilePlayer code with that simple setup would be a useful test. Any additional...
@blakeAlbion:
I am not familiar with the specific piece of equipment that you called out (Waldorf Blofeld), but maybe if I describe how portions of my updated TeensyMIDIPolySynth have been confirmed to work, it might...
@CoreyCoop:
My evidence is only circumstantial, but after adding the fix to startup.c manually (to remedy freezes on the latest version of my TeensyMIDIPolySynth that I'm tinkering with), I have not seen any...
You did not show your wiring, but from your code, Im going to assume that you have the 5 buttons wired to pins 0-4 & the 5 LEDs wired to pins 5-9.
I did not load your sketch into a Teensy, nor did I attempt to...
@Iain:
The change that I suggested is not specific either to Teensy, nor to USB MIDI. The switch statement (as originally written) uses the current value of the "state" variable to decide what to send (NOTE that...
Iain:
Welcome to the forum !! One quick way to make it so that your sketch only sends the CC message when a button press is detected would be to add the following lines (highlighted in RED):
const int buttonPin =...
I am not familiar with that particular adafruit product, but is appears to be a battery charger only . . . it does not provide a regulated DC output for powering devices like the Powerboost 1000C. Based upon your...
Good for a chuckle . . . but still probably better than "passive breaking" or even "inactive breaking"!!
Mark J Culross
KD5RXT
P.S. Paul: sorry for polluting this thread !! MJC
On the <Audio Adapter> page, under the first picture, it says "Two of these 14x1 pins can be used to easily soolder the Teensy 3.x and audio board together."
@Jeroen:
The Teensy 4.0 is not 5V tolerant, so running the display from a higher voltage than the Teensy runs the real risk of damage to the Teensy. Much better to run both from the same supply, whatever you choose....
In case anyone in the future stumbles across my earlier question & is having the same problem, the solution to getting the resistive touchscreen to work just like the capacitive touchscreen did for me was very simple: ...
@Jeroen:
If it works for your project, I would recommend that you look into the Adafruit <2500 mAh battery>+ Adafruit <Powerboost 1000>. With this combo, the updated version of my <TeensyMIDIPolySynth> project...
@Maes2ro:
I have not created any actual projects with the Ethernet stuff yet (it's on my "playlist", but has not quite bubbled to the top), but my quick read seems to concur that you have to add that function to your...
@M4ngu:
If I am understanding correctly what you are after, here's a short sketch to demonstrate an approach that I believe matches what you are needing. You will create an array containing the addresses of your...
Ahsan:
As Frank B said, a brand new Teensy is setup as a RAWHID device (no serial port), so you will need to program it the very first time using the button. It isn't clear from your description of "(pressed the...
Yes, USBHost_t36 works very well on a Teensy 4.1. I have used it in the original version of my TeensyMIDIPolySynth (hardware pots, switches, pushbuttons, & LEDs), as well as in the enhanced version that I am currently...
How much delay did you have to add ?? Maybe you could try just reading one switch each time thru the loop & use millis() instead of delay() to tell you when it is time to read the next switch. Use a variable that...
I can confirm that the freeze in my updated TeensyMIDIPolySynth (both the full version & the pared down version) no longer occurs after making Frank B's code change (as posted/clarified by defragster) !!
Thanks &...
UdoZ / WMXZ / Frank B / Paul:
I have also been seeing a "temporary freeze" in the current version of my TeensyMIDIPolySynth that I have mostly converted from hardware control (pots / switches / pushbuttons / LEDs) to...
@KurtE:
Thanks again for your continued testing. I finally found time for my own further testing (by combining my small test program with the simple code in some of the RA8875 Examples), & in doing so, I have...
@KurtE:
Thanks for your reply !! I should have noted that I'm running Arduino 1.8.13 + Teensyduino 1.54-b7 under Win10pro 64-bit. The RA8875 library is in "C:\Program Files...
I'm working on an enhancement to my TeensyMIDIPolySynth which now uses the RA8875 TFT (ER-TFTM070-5) for the all-digital (no more pots / switches / buttons / LEDs !!) user interface. I am having very good luck with the...
@RichardFerraro:
Going on the assumption that the RTS/CTS convention is being used/followed (RTS as an output & CTS as an input), you should connect pin 19 (RTS) on each Teensy to pin 18 (CTS) on the other Teensy. I...
Glad I could help in a small way. Pete & others kindly helped me when I first got started with Teensy, so I try to pay my appreciation forward to others in a similar way whenever I can.
Mark J Culross
KD5RXT
LikeToBuildStuff:
Dang it !! Sorry, I wasn't at my primary PC when I typed my first reply. I'll use the excuse that I'm old & something else, but I'm having trouble remembering what the other thing is . . . oh...
@LikeToBuildStuff:
You are essentially correct that the line that you attempted to "reuse" is only used to set things up. The line that you pointed out is a variable declaration (CCID) for an array named CCID that...
Trevor:
Yes, what you describe (4 addr pins common to all five MUXs & 1 I/O pin per each mux for a total of 9 pins) is the most straightforward way to connect your MUXs. I think you will find that reading all of...
@trevorbryden (Trevor):
Yes, for your 21 inputs, 2 x 74HC4067s would cover your need, leaving some additional expansion if/as needed. You'll need to assign 4 pins for the addressing (common to both MUXs) & 1...
Trevor:
I forgot one more bit of advice: If you aren't already too committed to your T3.5, use a T4.1/T3.6 & get the cable that allows you to connect external MIDI devices (keyboards, etc.) to the 2nd USB (host)...
Trevor:
In my <TeensyMIDIPolySynth> project, I had 48 x 50K pots + 42 pushbuttons, all sampled by the T4.1 using the 74HC4067 MUXs. The MUXs require one analog input/output & 4 digital addressing pins. If you need...
Frank:
Yup, your 180 test confirms that (as you put it) "biomechanics" is not a major contributing factor . . . well done !!
My current project uses a millis() comparison set at 200ms (in loop(), don't take...
Frank:
I can imagine that it would be almost impossible to keep the pressure on the display constant as the rectangle is drawn. Would you expect a different result if the test was run four times, rotating the...
Steve:
Just to be sure (not wanting to take anything for granted), you typed "changing the ts CS_PIN from Teensy 2 to 5", but I'm fairly certain that you meant "changing the ts CS_PIN from Teensy 8 to 5". Assuming...
@SteveW:
I happen to have a project on my workbench at the moment using the Teensy4.0 + PJRC ILI9341 (+ Audio Shield, which you don't have, so I know that we are not completely comparing apples to apples). Because...
@PaulStoffregen:
Just installed on Windows10pro 64-bit. Received a warning that the app was unrecognized, but simply clicked on "Run anyway". No problems w/ installation. With Arduino not running, Windows Task...
So, now that the simple solutions have been ruled out, how about another possibility: use an analog circuit (comparater, op-amp(s), etc.) to detect the presence of audio above some threshold, then provide that as an...
@normanras:
Your hunch is generally correct: the envelope processing is typically initiated with a call to envelope.noteOn() & (optionally) terminated with a call to envelope.noteOff(). Does your Yamaha keyboard...
As one possibility for avoiding the problem of distinguishing between "live or Memorex" (showing my age), you could have the Teensy randomly generate & display a combination of a few words from a much larger list to be...