Forum Rule: Always post complete source code & details to reproduce any issue!

Search:

Type: Posts; User: blakeAlbion

Page 1 of 5 1 2 3 4

Search: Search took 0.00 seconds.

  1. I have not tried yet. This guy did just that. ...

    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...
  2. void loop() { if (peakLFO.available()) { ...

    void loop() {
    if (peakLFO.available()) {
    fPval = 255.0 * (peakLFO.read());
    bPval = (byte) fPval;
    colorPixel(0, bPval, 0, 0);
    }
    if (peakVCF.available()) {
    float fP =...
  3. Thanks MrCanvas! The Peak component should be...

    Thanks MrCanvas!

    The Peak component should be adequate for my needs. I am able to show nice colorful functions on neopixels.

    Ben
  4. Yes, the buffer pointer gets populated by the...

    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.
  5. Yeah.... the Peak component is limited to finding...

    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...
  6. Replies
    3
    Views
    112

    A real envelope generator does not use timeouts....

    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...
  7. Thank you, I am going to investigate.

    Thank you, I am going to investigate.
  8. No... I need to drive NeoPixels, so no DAC...

    No... I need to drive NeoPixels, so no DAC required, just numbers.
  9. ... I have a few PT8211 boards on hand, maybe...

    ... I have a few PT8211 boards on hand, maybe they would work?
  10. Thanks all! I am pretty far along with a...

    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...
  11. Not everything you want to do with the Teensy...

    Not everything you want to do with the Teensy Audio Library is an audio signal.
  12. In summary, the Teensy Audio Library lets you...

    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...
  13. Thanks, these are good ideas. I'm a little...

    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...
  14. Replies
    3
    Views
    112

    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. ...
  15. 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...
  16. I have a couple 12 bit dacs with an SPI...

    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...
  17. Thanks Nominal! That validates my question. Ben

    Thanks Nominal!
    That validates my question.
    Ben
  18. 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.
  19. Replies
    19
    Views
    1,717

    I am looking for a DC control voltage for driving...

    I am looking for a DC control voltage for driving a VCO smoothly in a musical range. By smoothly I mean I'm not looking for 5+ octaves of equally-tempered notes over a 12 bit DAC. I'm looking for a...
  20. Luni, your library is amazing. Thank you.

    Luni, your library is amazing. Thank you.
  21. Okay, it was the hardware. Testing now with a...

    Okay, it was the hardware. Testing now with a different make of encoder and Paul's library (interrupt-driven) works great.
  22. !!! Thanks, I will try

    !!! Thanks, I will try
  23. Thanks! At the risk of going off topic, I will...

    Thanks! At the risk of going off topic, I will need to support 4 encoders and their push switches. Does anyone have a clever scheme to conserve Teensy pins? Iím using an analog multiplexer for my...
  24. Seems like debouncing encoders is a controversial...

    Seems like debouncing encoders is a controversial topic. Are these cheap 3 pin encoders salvageable?
  25. Oh yes one more thing: I tried a polling (not...

    Oh yes one more thing: I tried a polling (not interrupt-driven library) and that works as designed.
    "Versatile_RotaryEncoder"
  26. Encoder library on Teensy LC: lotsa noise?

    Hi!
    Iím testing the encoder library using pins 23 and 21 on my Teensy LC. It responds but most of the time it interprets clockwise and counterclockwise rotation as a positive increment. As I read...
  27. Teensy LC mixing Oscillators with Noise?

    Firstly, it's truly wonderful I can use the audio library in the LC.

    I'm hearing a weird behavior when trying to mix the noise synth with an oscillator. (two oscillators in this example)
    The...
  28. Replies
    1
    Views
    612

    More knockoffs.

    Multiple listings in aliexpress showing options to buy a "Tennsy" board, but only the 2.0 version is ever selectable.

    https://www.aliexpress.com/item/3256801100269668.html...
  29. Good heavens! It works.

    Good heavens!
    It works.
  30. Awesome, thank you. I'll give it a try.

    Awesome, thank you. I'll give it a try.
  31. ...What I'm implying is I want it to act like a...

    ...What I'm implying is I want it to act like a sampler that can pull in samples from SD at runtime without hard-coding any samples as constants or as resources that get loaded in on setup().
  32. Teensy-Based Sampler: "dynamic" Memory Allocation?

    I have a Teensy with some extra RAM soldered on. I can play a modest amount of uncompressed WAV samples I load from SD.

    This is a multitimbral sampler and I want to be able to switch samples...
  33. Awesome. THAT's where I saw it. Happy Friday.

    Awesome. THAT's where I saw it. Happy Friday.
  34. Can I host 2 PT8211 boards on a single Teensy 4.0?

    Hello,

    Can I host 2 PT8211 boards on a single Teensy 4.0 using Audio Library for 2 x Stereo outputs?

    I thought I read this somewhere but cannot find it today. Is it possible? If there's...
  35. Replies
    1
    Views
    196

    Protosupplies shows the LC as

    Protosupplies shows the LC as
    <100mA typical @ 48MHz

    I can work with that!
  36. Replies
    1
    Views
    196

    General Question on Teensy Current

    I know the answer will be "it depends", nonetheless what's the nominal current consumption for a Teensy, say a Teensy LC running a simple program and not driving anything as current-consuming as an...
  37. Replies
    15
    Views
    531

    Thanks to all for the input! The resulting...

    Thanks to all for the input!

    The resulting code is as good as anyone's AFAIK. It can't be perfect.
  38. Replies
    15
    Views
    531

    Yes, I have a timer callback doing this void...

    Yes, I have a timer callback doing this

    void timer_handle_interrupts(int timer) {
    MIDI.read();
    if (CLOCK_RUNNING) {
    if (clockFuture > 0 && (micros() - clockFuture) >= CLOCK_LENGTH) {
    ...
  39. Replies
    15
    Views
    531

    The problem with.a slight lag is this is a...

    The problem with.a slight lag is this is a looping sequencer and it will never catch up. Device A plays a short loop, device B plays a short loop; either they line up perfectly or itís unusable. So...
  40. Replies
    15
    Views
    531

    For 120BPM a square clock pulse could be around...

    For 120BPM a square clock pulse could be around 10ms at 48Hz. That just doesn't work in my tests. It needs to be narrower. But not too narrow. Sigh.
  41. Replies
    15
    Views
    531

    Based on experimentation and input from forums, a...

    Based on experimentation and input from forums, a few things have helped in small ways, and it adds up to a decent but not perfect solution.
    1) put the MIDI.read() on a Teensy timer and don't be...
  42. Replies
    15
    Views
    531

    I didn't make this clear enough, sorry. I can...

    I didn't make this clear enough, sorry. I can read MIDI clocks and run my CR-5000 if it's a basic drum pattern and the MIDI source is really just another drum machine doing nothing but putting out...
  43. Replies
    15
    Views
    531

    I have tried this a few different ways, but never...

    I have tried this a few different ways, but never with elapsedMicros(). It just does not work at all. The clock drops, and drops, and drops. I think it's because my test clock source generates a...
  44. Replies
    15
    Views
    531

    Wow! Thanks. I'll need to do some thinking and...

    Wow! Thanks. I'll need to do some thinking and tinkering.
    That's what I do!
  45. Replies
    15
    Views
    531

    Hah. Okay. There is no better way to do this.

    Hah. Okay. There is no better way to do this.
  46. The electronics for clock IN and OUT are simple,...

    The electronics for clock IN and OUT are simple, but not consistent.
    Generally you can expect a "TTL" level signal to work, meaning logical HIGH is close to 5V and LOW is close to ground.
    This...
  47. I added a timer. It was easy and FUN. Thankyou!

    I added a timer. It was easy and FUN. Thankyou!
  48. Replies
    15
    Views
    531

    I need this to work consistently if the tempo...

    I need this to work consistently if the tempo varies. I need it be handle stop-continue from my master MIDI sequencer. And as I said above, I can't use USB MIDI for this. I must work with legacy MIDI...
  49. Replies
    15
    Views
    531

    I wrote this in a hurry! What I mean more...

    I wrote this in a hurry!
    What I mean more specifically is, MIDI clock was designed to operate at 24PPQN.
    I need to drive my Roland CR-5000 drum machine at 24PPQN.

    I get a MIDI clock pulse, but...
  50. Replies
    15
    Views
    531

    MIDI clock to TTL clock 24ppq ?

    Hi! How it is done? How do I generate a locked, stable square wave at the same frequency as a stream of pulses coming from MIDI clock? Any references?
    Thanks
Results 1 to 50 of 201
Page 1 of 5 1 2 3 4