Wow, thank you so much! I'm not an experienced embedded developer, and as such I'm less familiar with good design patterns and how to manage memory properly, so this is very helpful.
Type: Posts; User: graydetroit
Wow, thank you so much! I'm not an experienced embedded developer, and as such I'm less familiar with good design patterns and how to manage memory properly, so this is very helpful.
Ah, I was able to eke out a bit more memory by also deleting the object instantiations I was doing in nested for loops. Maybe I assumed calling `delete` on a parent object which has several child...
In regards to the heap, @KurtE and @tonton81, yes it appears to be growing. Using Kurt's method above, I have an initial heap value logged at 539152384, and then right before it crashes there's a...
Hi,
My project is a MIDI sequencer, and I'm using two Teensy 4.1's. Here's a picture of the unit:
22985
One Teensy handles the MIDI sequencer programming, MIDI output, USB host devices, and...
I eked out a little bit more flexibility by using a coroutine library. I didn't want to try and implement a fully fledged RTOS or multi-threading just yet, but now I'm at least able to push...
I think Problem #2 is actually not display-related. It has to do with changing the step length while the sequencer is running, not sure why it freaks out though. I may just not allow the tempo to be...
Thanks -- I'm not familiar with DMA, but on reading about it, looks like it may work for what I need. Just not really sure how to exactly implement it. The examples in KurtE's ILI9341 repository seem...
Background:
I'm using the Teensy 4.1 to build a MIDI program change sequencer/orchestrator. I wanted a device that acts as the main clock source for various MIDI instruments, and I wanted a device...
Oh, actually an out_of_range exception is thrown when using the vector .at() method: http://www.cplusplus.com/reference/stdexcept/out_of_range/
I've run into array index errors, where trying to access an undefined vector index causes a crash. Coming from the web development world myself -- is there a way to "catch" exceptions like that? I...
SOLVED: Had to use the MIDIDevice_BigBuffer class instead of the MIDIDevice class, as the instruments have a max packet size of 512, and the MIDIDevice class is capped at 64. The conclusion at this...
My suspicion is that the two instruments I'm trying to connect over USB to the Teensy have drivers which the Teensy can't make sense of.
Here's the latest debug output using both devices connected...
Are you referring to this sketch? If so, that's the one I started from.
Looked at some other threads, and saw there was a line I could uncomment (#define USBHOST_PRINT_DEBUG) to have the Serial monitor spit out some debug info, here's what it printed out after starting...
Hi,
I have a couple of hardware instruments (synthesizer, drum machine) which have bi-directional USB MIDI, and I'm having trouble connecting them to a Teensy 4.1 using the USB host library. I...
Thanks so much for the reply with helpful info, that sort of low level explanation as to how it works under the hood was more what I was after.
Absolutely, and honestly apologies for posting...
I'm an artist who fell into software engineering who also fell into hardware tinkering, so please forgive my ignorance here, but how would I go about logging the specific load on the Teensy 4.1's CPU...
Hi, I've been tinkering with using a Teensy 4.1 with the audio shield to try and emulate a TR-909 drum machine. See my post demoing an early prototype here.
I've been trying to use the Teensy...
@Davidelvig - I am not planning on using the ADCs through the Audio Shield, but rather through the Teensy's I2C pins. I'm pretty sure the Audio Library will work without the Audio Shield, and the...
Awesome project, wolke! Seems like you're really able to get rid of any audible latency, great job!
Yeah, I would probably try to use the yin based detection then.
I'm still not sure, from a...
Looks great!
Just a side note to re-iterate: I think 2 of these multichannel ADC boards (please see linked multi-channel ADC board from Adafruit) would provide the 6 digitized signals for...
I was thinking that I could go with two of the ADS1015 boards for 8 ADC channels total, I would just need 2 I2C connections which I think the Teensy 3.6 can handle. The ADS1015 also has a...
I was thinking it would fit nicely with the project I'm planning, which is to put an embedded poly synthesizer (Teensy based) inside the body of an electric guitar so I don't need to connect to a...
Will this board have a standard 5 DIN midi input?
Blackaddr, please see the following image that I made with Fritzing which details my thought process on this and how I think it might work (from an off-the-shelf / prototyping standpoint) -- I'm sure...
Thanks -- though the Teensy would be outputting audio as well when using it as a synthesizer or for applying effects to either the guitar's or synth's signal -- but I do not need to *reproduce* the 6...
Thanks Blackaddr, moved the discussion here:
https://forum.pjrc.com/threads/46517-Hexaphonic-(6-discrete-channels)-passive-guitar-pickup-for-pitch-detection?
I was interested in the idea of integrating a teensy directly into the body of an electric guitar, where I could use 6 analog signals from a divided pickup (like this...
*
Moved discussion to thread here:
https://forum.pjrc.com/threads/46517-Hexaphonic-(6-discrete-channels)-passive-guitar-pickup-for-pitch-detection?
*
Woohoo!! I actually was able to get it to work using a custom descriptor!!!
Thanks again!
Paul, I did find a document that I think would provide a descriptor that could be used. It's included in some Microsoft documentation, the link is here. Also, here is an example that might be...
Welp, I borrowed a MacBook Air and tried running a version of USB Prober I found on the web, but it doesn't work for the current operating system (macOS Sierra 10.12.x).
True! :)
I'm kicking myself for selling my MacBook recently. I will try and borrow a Mac or see if a Mac user can help me out.
Thanks Paul. I've been trying to capture the USB descriptors using the USBlyzer tool for Windows, but I'm not getting the information I need, and I think the Wacom Tablet maybe obfuscates or has some...
Hi, I need to emulate a pressure-sensitive drawing tablet, like a Wacom Intuos Pro. If it's just an experimental commit or branch to the core GitHub repository, I can utilize it that way, I don't...
- deleted.