Search results

  1. B

    USB Host Midi Plus USB Midi?

    Okay, the answer is "yes you can have it all", but I see there are issues with Teensy 4 audio rate in terms of compatibility. It's all working. void loop() { MIDI.read(); usbMIDI.read(); checkUSBHostStatus(); // USB Host MIDI Class Compliant if (usbHostPluggedIn) { myusb.Task()...
  2. B

    USB Host Midi Plus USB Midi?

    Hi, I have used the USB Host library with the Teensy 4 and the Teensy 4.1. I have also used USB Midi so my Teensy projects can show up in a DAW. Can I use them together, and like an MPC, have both kinds of USB ports on my device? I want to be able to plug in a cheap USB midi keyboard and then...
  3. B

    Pitch control of sample playback: current state of things?

    After I added memory management, it works great.
  4. B

    Using the Audio Shield alongside a Synth chip

    I did a project sending the analog signal of the VS1053 into the audio shield... Very curious to see how this plays out!
  5. B

    Casio Phase Distortion synth on Teensy?

    I guess my other option is to explore wave shaper components which may do much the same thing. A wave shaper that is already set up to perform a function synced to zero crossing might come close.
  6. B

    Casio Phase Distortion synth on Teensy?

    I have never written a Teensy audio component from scratch. I'm trying to get my head around "Phase Distortion Synthesis" and it seems like a wavetable oscillator could be modified to support it. But first, does anyone know of prior art for this? Thanks, Ben
  7. B

    Maybe the Teensy Audio Library should just be an extension of FAUST?

    ... trying to follow along with this... Seems like the Teensy Audio Library would be a "hardware abstraction layer" for Faust, then? I know that's a naive question. Main thing is a cross-platform library needs to not care about timers/interrupts or hardware-specific memory sizes or numerics. It...
  8. B

    Using USB Host in a Teensy 4.0 to add 5 Pin MIDI to a cheap USB keyboard

    I am posting this here in hopes that it might help someone with similar interests. I purchased a MIDI USB Host box a few years ago from MidiPlus. That thing never worked, so I often thought about putting a Teensy 4.1 in the box to make a stable piece of equipment. I learned how to use the...
  9. B

    Teensy 4.1 USB Host: No power?

    Thanks all! Okay then. I am off to the races. I hope this thread may be useful to other people.
  10. B

    Teensy 4.1 USB Host: No power?

    I found this https://forum.pjrc.com/threads/66144-TEENSY-4-1-where-do-I-connect-to-use-third-SPI?p=268934&viewfull=1#post268934 I will have to find my glasses and read it.
  11. B

    Teensy 4.1 USB Host: No power?

    One more question, do the USB host pins overlap with other pins/timers on the board? (meaning I can't use them for something else at the same time?) I have not see a map showing this, but I will take another look.
  12. B

    Teensy 4.1 USB Host: No power?

    Yes, that works, thanks so much. This opens up some interesting possibilities!
  13. B

    Teensy 4.1 USB Host: No power?

    The Teensy is otherwise working great. hm
  14. B

    Teensy 4.1 USB Host: No power?

    Hi, I am trying out my USB Host cable. Am I right to expect to see +5V on pin that says 5V? I am not getting anything. Did I damage it by plugging in USB device? Is there anything I need to do to "turn on" the 5V power? I have no experience with USB hosts. I'm assuming a host provides 5V (and...
  15. B

    Teensy-Based Sampler: "dynamic" Memory Allocation?

    A picture is worth a thousand chars.
  16. B

    Teensy-Based Sampler: "dynamic" Memory Allocation?

    Oh noooooo! You're right I am using it in other places. Math. I hate math.
  17. B

    Teensy-Based Sampler: "dynamic" Memory Allocation?

    I don't think I am using the EXTMEM for anything else... but hmmm I will check.
  18. B

    Teensy-Based Sampler: "dynamic" Memory Allocation?

    This is for TeensyDuino. I'm pretty sure you get <static_malloc.h> for free.
  19. B

    Teensy-Based Sampler: "dynamic" Memory Allocation?

    Okay, I got it working but for some reason with the latest Teensyduino I have to reduce my ask for heap size. So, sm_malloc is a tiny baby malloc() which works for your soldered-on RAM. You can by Teensy 4.1 boards from Protosupplies with the RAM already attached. This code is bodged together...
  20. B

    malloc/free for EXTMEM and DTCM

    Code I wrote last year compiles but I have to reduce my heap size when using the 8MB RAM chip. If I use the full amount in the snippet below it causes an immediate freeze. I need to trim my heap space back to some lower number. I'm now trying 7898116 and it works. What has changed? // extern...
  21. B

    Teensy-Based Sampler: "dynamic" Memory Allocation?

    Seems to be broken since. 1.58. If I can get it working I will share what's working.
  22. B

    Teensyduino 1.58 Released

    My project using sm_malloc on Teensy 4.1 is blowing up. Just asking, has something major changed there? Thanks, Ben
  23. B

    JavaScript in 2023

    Sorry if this is a redundant question. I searched the forums and could not find a discussion about JavaScript. Is there a JavaScript library I can run on Teensy? I have a specific need. I see you can run JS on RP2040.
  24. B

    Issues with 4.1 and sound module

    ... watching this thread
  25. B

    Encoder library on Teensy LC: lotsa noise?

    Sorry, I have not had time to do this yet. I did spend time checking the signal paths and cleaning the build. Much improvement.
  26. B

    Encoder library on Teensy LC: lotsa noise?

    I have worked all the way through a project and the last major issue is with the EncorderTool library. I am using the software multiplex. What happens is, during use the encoders stop responding. The switch callbacks continue to work, but knob position updates are ignored. After a while, the...
  27. B

    Teensyduino 1.51 errors on compile, 1.48 does not; ADC class implicated

    oooh! Thanks! I wish things moved this fast at my day job. https://github.com/pedvide/ADC/pull/81
  28. B

    Teensyduino 1.51 errors on compile, 1.48 does not; ADC class implicated

    Hello, Where does this stand? Using the latest Teensyduino with the LC and Mozzi is producing compilation errors. A contributor narrowed it down to a simple test w/o Mozzi. If you are using the LC, this sketch will not compile: #include <ADC.h> void setup() {} void loop() {} Thanks, Ben
  29. B

    Teensyduino 1.51 errors on compile, 1.48 does not; ADC class implicated

    Aha! This is what I'm looking for. I am surprised the Mozzi library does not have some conditional defines for this stuff.
  30. B

    Teensy or Mozzi ? Don't know what to choose.

    How do you enable Mozzi compilation with Teensyduino? Mozzi mentions you need to disable ADC and Timer libraries. How is this done? Do I need to edit H files in Teensyduino? Thanks, Ben
  31. B

    Teensy LC audio sample playback using onboard DAC?

    Okay, my tests show sample playback does work in the Teensy LC, but polyphonic playback seems to be disabled. So it's possible to use Teensy Audio Library code to produce some sound effects, but sparingly. If I could get even 2 note polyphony I would experiment further with this and try 8 bit...
  32. B

    Teensy LC audio sample playback using onboard DAC?

    I'm sorry this is a lazy question, I should just try it myself. But here it goes. I would like to play some short samples, (they could be 8bit@22KHz) on the Teensy LC. Is there any support for this? I recall people asking about this when using the prop shield. thanks, Ben
  33. B

    Teensy 4.1 as usb host and midi controller simultaneously

    I have not tried yet. This guy did just that. https://www.tindie.com/products/deftaudio/teensy-41-midi-breakout-board-8in-8out-usb-host/ (he is on this forum and he makes an awesome midi sync converter)
  34. B

    Using Teensy Audio Library function generators as Control Voltage Sources

    void loop() { if (peakLFO.available()) { fPval = 255.0 * (peakLFO.read()); bPval = (byte) fPval; colorPixel(0, bPval, 0, 0); } if (peakVCF.available()) { float fP = peakVCF.read(); fPval = 255.0f * (fP); bPval = (byte) fPval; colorPixel(1, 0, 0, bPval); } ....
  35. B

    Using Teensy Audio Library function generators as Control Voltage Sources

    Thanks MrCanvas! The Peak component should be adequate for my needs. I am able to show nice colorful functions on neopixels. Ben
  36. B

    Using Teensy Audio Library function generators as Control Voltage Sources

    Yes, the buffer pointer gets populated by the waveform functions. *bp++ = (((int32_t)ph >> 15) * magnitude) >> 16; Obviously I don't want to do something crazy that would slow down this fast loop.
  37. B

    Using Teensy Audio Library function generators as Control Voltage Sources

    Yeah.... the Peak component is limited to finding the max within each buffer frame. I guess ideally I would need to set it up to be a smooth (but low-latency) stream of numbers and then be able to resample it at the desired rate? But I should be very careful what I wish for. Really what I...
  38. B

    ADSR with latching attack?

    A real envelope generator does not use timeouts. It only progresses from Attack phase to Decay phase when Attack reaches the peak value of the envelope, and it should do this whether or not the key is still depressed. Releasing the key should only have an effect when the envelope reaches Sustain...
  39. B

    Using Teensy Audio Library function generators as Control Voltage Sources

    Thank you, I am going to investigate.
  40. B

    Using Teensy Audio Library function generators as Control Voltage Sources

    No... I need to drive NeoPixels, so no DAC required, just numbers.
  41. B

    Using Teensy Audio Library function generators as Control Voltage Sources

    ... I have a few PT8211 boards on hand, maybe they would work?
  42. B

    Using Teensy Audio Library function generators as Control Voltage Sources

    Thanks all! I am pretty far along with a project that needs the LEDs I mentioned. I am using 1/2 the MQS audio interface on a Teensy 4. I doubt I can use the unused pin 10 of MQS to generate something I could use as a DC signal. But I'll experiment. I also need to drive an analog VCF's...
  43. B

    Using Teensy Audio Library function generators as Control Voltage Sources

    Not everything you want to do with the Teensy Audio Library is an audio signal.
  44. B

    Using Teensy Audio Library function generators as Control Voltage Sources

    In summary, the Teensy Audio Library lets you make complex graphs of signals, but frustratingly regards control signals as part of the very same stream as audio signals. For example, if I have a synthesizer using a low-frequency oscillator to generate a triangle wave at 6Hz, and I use a mixer...
  45. B

    Using Teensy Audio Library function generators as Control Voltage Sources

    Thanks, these are good ideas. I'm a little disappointed that ALL types of data flow through the audio buffer undifferentiated/unchannelized. I wish I could reach into the buffer and query for only control signals for example. In analog modular synths, and in MIDI too, there's the ability to...
  46. B

    ADSR with latching attack?

    Hello! Has someone made an envelope generator for the library that has a "latching" attack? Meaning once the envelope gets a noteOn trigger, it will climb to peak attack even if noteOff happens. IIRC this is a common behavior of envelope generators, including Moog. Thanks, Ben
  47. B

    Using Teensy Audio Library function generators as Control Voltage Sources

    Hello All, I have written about this problem before, but never quite realized my general question. I would like to use the Teensy envelopes, oscillators, noise generators, etc as control voltage sources. How would I do this? For example, how could I transform the output of a slow-moving...
  48. B

    Where can I obtain a 16 bit dac to generate control voltage?

    I have a couple 12 bit dacs with an SPI interface. This was Ages ago. I was able to get a sketch working with the Teensy. These are the Digilent PMOD DA4 boards using the AD5628. 8 channels, so I was saving them for the day I was going to make an analog synth. Maybe I should dust them off.
  49. B

    Where can I obtain a 16 bit dac to generate control voltage?

    Thanks Nominal! That validates my question. Ben
  50. B

    Where can I obtain a 16 bit dac to generate control voltage?

    Seems the 16 bit dac has become rare? I’m looking for some kind of breakout like a pmod board. I need a real dac that gives me a voltage for a number, not a stereo audio stream.
Back
Top