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

Search:

Type: Posts; User: blakeAlbion

Page 1 of 2 1 2

Search: Search took 0.00 seconds.

  1. Fair enough, thank you.

    Fair enough, thank you.
  2. Memory allocation for short sample playback

    Hello,
    Letís call what I am working on a ďdrum machineĒ.
    My drum machine needs to allow the user to select a short 16 bit mono pcm wav file from a library of sounds on the SD card. If possible I...
  3. Replies
    13
    Views
    962

    Done! Thanks!

    Done! Thanks!
  4. The Synthesizer above is two identical monophonic...

    The Synthesizer above is two identical monophonic synths sharing the same set of controls.
    It uses the L and R MQS outputs for the waveform generators.
    I use a PWM pin for VCA, a PWM pin for VCF...
  5. Yes, that's the right way to do it! I am...

    Yes, that's the right way to do it!
    I am routing the digital value of the envelope to "physical PWM" pin on the Teensy so I can generate a "DAC-like" voltage to control an external analog circuit....
  6. Replies
    8
    Views
    1,460

    I have a Teensy 4 in front of me here with MiDI...

    I have a Teensy 4 in front of me here with MiDI on Serial1, and it's using the audio library with a Teensy Audio Board. In the garage I have a Teensy 4.1 using Serial1 and MQS audio simultaneously....
  7. Thanks, jon-mike. I will surely have a look.

    Thanks, jon-mike. I will surely have a look.
  8. Replies
    30
    Views
    2,669

    one more thing, I noticed in some cases the...

    one more thing, I noticed in some cases the attack envelope had some odd spikes in it... by filtering certain ADSR states in the effect module, and discarding falling values during attack time and...
  9. Replies
    30
    Views
    2,669

    To follow up here, my patch to...

    To follow up here, my patch to AudioEffectEnvelope solved my problems well. I was plagued by an analog VCA (AS3360 with just about perfect CV feedthrough rejection) clicking on rapid attack times. It...
  10. To follow up, I found cutlasses' TeensyPiano...

    To follow up, I found cutlasses' TeensyPiano project. This is a Teensy Audio Library-based sample playback engine that does _exactly_ what I want. It only plays 16bit PCM audio, and that suits me...
  11. I have had some success with this by forking...

    I have had some success with this by forking AudioEffect envelope and adding a callback after update() completes its audio memory work.

    ...end of update()

    transmit(block);
    release(block);
    ...
  12. OMG I thought I was all alone on this one....

    OMG I thought I was all alone on this one. Tomorrow evening I will try soldering a cable to my poor Teensy. I rotated my circuit board holder with the usb still plugged in. Yank!
    I suppose if I had...
  13. Replies
    30
    Views
    2,669

    Good point, thanks.

    Good point, thanks.
  14. Replies
    30
    Views
    2,669

    To recap, all I have done is extract a value from...

    To recap, all I have done is extract a value from a class derived from the AudioEffectEnvelope class. This has taken me from a nebulous POC to some kind of Paleolithic Shruthi sitting on a few wired...
  15. Replies
    30
    Views
    2,669

    So here's what I found. With my modified...

    So here's what I found. With my modified AudioEffectEnvelope, I can use an envelope as a source of value whether or not it's routed through the audio path. The only requirement is that there is a...
  16. Replies
    30
    Views
    2,669

    Yup, my proof-of-concept works end-to-end. I am...

    Yup, my proof-of-concept works end-to-end. I am driving an AS3360 VCA (who loves a zero-to-two volt control range) with a Teensy Audio Library Envelope over a PWM pin on a Teensy 4.0. For my...
  17. Replies
    30
    Views
    2,669

    If nothing else this will let me drive leds with...

    If nothing else this will let me drive leds with the envelope value; nice eye candy
  18. Replies
    30
    Views
    2,669

    I will do a proof-of-concept for this with a...

    I will do a proof-of-concept for this with a modified version of the AudioEffectEnvelope class. I will have a callback update a PWM output, with the attenuation value of the envelope scaled for a 12...
  19. Replies
    30
    Views
    2,669

    oh my poor, dated, tiny brain...

    oh my poor, dated, tiny brain...
  20. Replies
    30
    Views
    2,669

    boxxofrobotos, thanks! I'm not sure how that...

    boxxofrobotos, thanks!

    I'm not sure how that would work, but I'll have a helping of that. Does this imply that if I picked some library-compatible DAC I could route the DC to that output?
    Okay,...
  21. Replies
    30
    Views
    2,669

    The reason I am chewing on this issue is because...

    The reason I am chewing on this issue is because I would like to do just that: I would like to be able to control an analog voltage controlled filter with the same envelope code I use to control my...
  22. Replies
    30
    Views
    2,669

    I am not suggesting all control signals should go...

    I am not suggesting all control signals should go through the Teensy audio path.I am suggesting they should not go through the audio path. There is zero percent chance I will ever take a 10Hz sine...
  23. Replies
    30
    Views
    2,669

    Basically, it would be good to have a float...

    Basically, it would be good to have a float envelope2.getValue(); method, but if I could only poll that in loop() it wouldn't be great.
    What I really want is a different class of output device...
  24. Replies
    30
    Views
    2,669

    I am very curious about this. I would like to use...

    I am very curious about this. I would like to use the "DC" signal in the Teensy Audio Library, modulated by the envelope et cetera, as a "real" DC signal for some analog circuits. I don't see how...
  25. Replies
    6
    Views
    717

    I appreciate your help! Now that I can see I can...

    I appreciate your help! Now that I can see I can make a steady signal as shown above without using the blocking tone() method, I am all set.
  26. Hi Emmanuel63, I'll refer you to a thread I...

    Hi Emmanuel63,
    I'll refer you to a thread I OPed here.
    https://forum.pjrc.com/threads/63212-Pitch-control-of-sample-playback-current-state-of-things

    It was a dead end for me, but I think the...
  27. Replies
    6
    Views
    717

    I happen to have a Teensy LC on hand. I know it...

    I happen to have a Teensy LC on hand. I know it has fewer timers than a big teensy. Can I generate more than one PWM tone with a Teensy LC? Looking for at least 3 square waves to XOR into a metallic...
  28. ... and the serial com on the emic is so slow I...

    ... and the serial com on the emic is so slow I don't think a generic level-shifter would cause any drag, but Paul may be right about wasting current...
  29. Yep! I made an online purchase for one of these. ...

    Yep! I made an online purchase for one of these.
    In the meanwhile I am testing the emic 2 with an old Tessel. The speech board does seem to work when powered with 3.3v.
    (see fritzing here...
  30. Iím looking to connect the emic 2 to a Teensy....

    Iím looking to connect the emic 2 to a Teensy. Documentation implies I need tx and rx to use this. I donít have any dedicated level shifter gadgets handy. I have killed a couple of Teensies with...
  31. I'm looking at this from 2 perspectives, from a...

    I'm looking at this from 2 perspectives, from a features/requirements perspective, and from a hardware hacker perspective.

    From a features/requirements perspective:
    For...
  32. Ah, but to me that is by definition not a "good"...

    Ah, but to me that is by definition not a "good" sampler because there is no control over playback rate. Who would buy a sampler that only played back your sample at the original speed? That's not a...
  33. No, for now I will give it a rest. What I want is...

    No, for now I will give it a rest. What I want is a sampler that works like a sampler. This is like an iPod (a hardware codec really for playing back compressed music) with an effects rack (a dsp). I...
  34. It has helped me to read up on I2S, understand...

    It has helped me to read up on I2S, understand some of the inherent limitations, and see what other folks are doing. In comparison to Arduino Sound library, you see how mature TSL is.
  35. oooohhhh! AudioPlaySdRawResampled.cpp! (The...

    oooohhhh!
    AudioPlaySdRawResampled.cpp! (The tasty part is in the h file.)
    The implementation in this case depends upon SDReader having an adjustable rate.
    Spoonfuls of sample. Thanks!
  36. And sorry if Iím sounding trollish. This is...

    And sorry if Iím sounding trollish. This is really interesting and Iím learning. Grateful for the responses.
  37. Granted, it took the 56000 DSP, and the AT&T...

    Granted, it took the 56000 DSP, and the AT&T chipset for the "Quadra AV Macs" to enable my Mac to do decent sound manipulation.
    But I was doing bad sound manipulation long before that. I just want...
  38. Playback rate adjustment is the only material...

    Playback rate adjustment is the only material goal. The rest will arise from the bubbling cauldron.

    I'm sorry if I sound daft. I understand there's a shortage of timebases in this architecture. I...
  39. Everything you mention is correct if the purpose...

    Everything you mention is correct if the purpose of pitch shifting is a hi-fi effect and youíre trying convince your audience this sound is naturally played at this rate.
    What if I donít care? In...
  40. Okay! I went down the rabbit hole and got the...

    Okay! I went down the rabbit hole and got the granular effect working.
    To answer my question, NO, you can't directly control playback rate.
    But you can do some crazy weird things with pitch...
  41. Pitched or not, the Teensy 4 makes a wicked drum...

    Pitched or not, the Teensy 4 makes a wicked drum machine. Mixing drum synth sounds with some old favorite samples is awesome.
  42. Just to be more clear, what Iím trying to...

    Just to be more clear, what Iím trying to describe is simply a playback rate adjustment. Not a pitch-shifting effect you could, for example use with your electric guitar in a live performance.
    I...
  43. I understand it's complex, but it's a...

    I understand it's complex, but it's a deal-breaker for people who just want it to work the way they expect it to.
    I can do this in the Chrome browser. I could do this in the DirectX SDK in 1998. I...
  44. Pitch control of sample playback: current state of things?

    Hi Forum,

    I have been searching through the threads on the subject of pitched playback of samples.
    Probably my limited brain power, but I have not found a definitive answer.

    So I am going to...
  45. Ha, it probably does work. I just need to be...

    Ha, it probably does work.
    I just need to be schooled in modern C++.
  46. Silly C++ question re: "utility/dspinst.h"

    Hello,
    I'm trying to make a an Audio Object and I need to #include "utility/dspinst.h" .
    Path is not found. I am using the installer-installer Audio Library.

    I know this file is in the Audio...
  47. Replies
    8
    Views
    1,805

    Thanks, so I2C is a wildcard. Just using 12C for...

    Thanks, so I2C is a wildcard. Just using 12C for Teensy-to-Teensy communications would not require any extra resistors or buffers, would it?
  48. Replies
    8
    Views
    1,805

    Does this mean I need a dedicated adapter board...

    Does this mean I need a dedicated adapter board to use I2C with external devices?
  49. Replies
    15
    Views
    835

    BTW I did pick up a couple of Audio Adapters, and...

    BTW I did pick up a couple of Audio Adapters, and being able to prototype my sounds with headphones is a joy.
  50. Replies
    15
    Views
    835

    Yes, you canít move MQS to other pins but you do...

    Yes, you canít move MQS to other pins but you do get auxiliary SPI pins on a Teensy 4.
Results 1 to 50 of 62
Page 1 of 2 1 2