Search results

  1. B

    max clock speed on teensy 4.1 i2c

    I'm looking at an i2c dac chip that works up to 3.4MHz on its clock. Does the teensy 4.1 support such high speed operation on its i2c?
  2. B

    USB Host 5V backfeed

    Thanks for your report. While this phenomenon seems harmless in your case, Defragster, it seems to me when using this hub the safe thing to do would be either to remove the r8 smd from the board (as it says in the hub docs) or simply to cut and heatshrink the stub of the red wire that goes to...
  3. B

    USB Host 5V backfeed

    Thanks a lot. I read the data sheet and thought that was the case, but I thought better to get it from the people who made the teensy.
  4. B

    USB Host 5V backfeed

    Specifically I am looking at this https://www.uugear.com/doc/Zero4U_UserManual.pdf as a means of extending the usb host controller on the teensy 4.1. From what I can glean from the specs, it sugggests that when powered by the 5v connector it back-feeds the 5v through the micro usb connector to...
  5. B

    Help with creating new modules for audio library

    Sorry, yes, this helped me a lot. Unfortunately it's a bit impractical using 32 bit math as such low frequency iir filters are not stable. But it was a fun exercise and I learned a lot, including to trust myself a bit more and not to overlook really obvious things like doh, I put the...
  6. B

    ideas for pressure sensitive sensors ?

    Velocity typically is pretty easy to capture with two busses. This has been in use since at least the 80s, if not the 70s. You have two busses, one that captures note and one that captures "any note." The second bus is further out from the fulcrum point of the key, meaning it makes contact some...
  7. B

    USB Host 5V backfeed

    If I use a USB hub that is self powered and outputs 5v on its input connector when self powered, will I have to cut that wire on the lead to the host controller port? Specific example is I'm considering using a Pimoroni USB hub for the Raspberry pi zero that is also compatible with the other...
  8. B

    ideas for pressure sensitive sensors ?

    What about a piezo disk under every key? They have very good response times and are very sensitive to dynamic movements. Also, they are very inexpensive and can be obtained in very small sizes.
  9. B

    Teensy Audio based Klon Centaur clone

    this is pretty awesome. Some great fx for the teensy library!
  10. B

    PT8211 latency (MIDI note-on to sound)

    I've been using pt8211_2 in a development project more than a year now, never encountered any such delay with or without midi. BTW it's not a bad little chip, but it is pretty noisy for a professional product, especially given that a "real" stereo dac can be had for about 3 bucks. Heck, a...
  11. B

    Help with new audio module AudioFilterIIRAsymmetric

    There. it's still not working right but it is getting closer. I wish you had said something days ago, it's not a problem for me and I didn't intend to make one for you. I'm just looking for help and to help make the library better.
  12. B

    Help with new audio module AudioFilterIIRAsymmetric

    If that's all it is then let me just say I have no problem with licensing. You should know, you accepted my idea while optimizing my code and it bears your name, not mine, so why should now be any different? I'm quite happy and proud one of my sketches appears in your distribution's example...
  13. B

    Dynamic Range Compressor new class library. I wish to share.

    Have you tried this on a 4.1 with the built in log functions? the 4.1 uses a blazingly fast chip
  14. B

    Help with creating new modules for audio library

    Wow, that would be great. I have it sort of working now but my math seems to be off somewhere as I am get way out of range floats. Being able to step through the block would be great.
  15. B

    Dynamic Range Compressor new class library. I wish to share.

    this sounds great! Just zip up your cpp and h files and post them here!
  16. B

    Help with creating new modules for audio library

    Doh! I was so focused on there being a bug in my module, I overlooked the simple sketch. Thanks! It still doesn't work as expected but I'm not on track. Now it doesn't seem to do the A,D, or R phases no matter how long a time ocnstant I set. But I can debug that... I think.
  17. B

    Help with creating new modules for audio library

    Apparently I may have posted this discussion in the wrong directory. For the sake of completeness, here it is: https://forum.pjrc.com/threads/73247-Help-with-new-audio-module-AudioFilterIIRAsymmetric Anyway, I have created two new audio modules but I don't seem to be getting an input audio...
  18. B

    Help with new audio module AudioFilterIIRAsymmetric

    I hate to sound ungrateful, but it's been a week and this thread has more than 90 views and NO ONE has a suggestion to make? WHY? I would really appreciate some help on this, I compare my sketch to others and I don't understand why it's not getting an audio block. /* BoxxOfRobots...
  19. B

    Sampling 8 microphones simultaneously, for audio beamforming

    That's true, but if you used pzm microphones you'd never see a standing wave, Would make the array very big, of course, or you'd have very poor low frequency performance. Oops, never mind. Not head mountable for sure. Why not just put a reflector dish on a microphone? Parabolic microphones are...
  20. B

    Get a rough position from peak delay between audio channels?

    I think you're in the ballpark. If your peak is at 10khz (for example) and the phase on one is ten degrees and the other is fifty, then you have a 40 degree phase difference between the two. This involves converting degrees to radians or something (it's kinda over my head too) then putting it...
  21. B

    Get a rough position from peak delay between audio channels?

    You're doing this the analog way. You can do it the analog way, but not with digital sampling methods because, as you point out,. loss of precision. Look here for your solution:https://www.mathworks.com/help/ident/ug/transforming-between-time-and-frequency-domain.html By sampling each microphone...
  22. B

    Sampling 8 microphones simultaneously, for audio beamforming

    You're dealing with low cost mems microphones? I'm really curious how much you've thought through the math on this. Decades ago I came up with an instrument that used to sensors to detect sound level placed a distance apart on any surface, you could play notes depending on where on the surface...
  23. B

    Sampling 8 microphones simultaneously, for audio beamforming

    You need a dedicated a/d codec. The cs42448 is supported by teensy and gives you 6 inputs, plus two more if you use an external stereo a/d convertor. this is delivered to the teensy as 8 separate streams. You can also raise the sample rate of the teensy to 96kHz, but remember that increases...
  24. B

    Help with new audio module AudioFilterIIRAsymmetric

    #include <Audio.h> #include <Wire.h> #include <SPI.h> #include <SD.h> #include <SerialFlash.h> #include "AudioEffectIIREnvelope.h" // Create the audio objects AudioSynthWaveformDc dc1; AudioSynthNoiseWhite noise1; AudioEffectIIREnvelope envelope1; AudioEffectMultiply multiply1...
  25. B

    Help with new audio module AudioFilterIIRAsymmetric

    working IIREnvelope I think it's working! A digital model of an analog adsr generator. Note that using a Q above .707 may result in ringing and unpredictable results. #include <Audio.h> #include <Wire.h> #include <SPI.h> #include <SD.h> #include <SerialFlash.h> // GUItool: begin automatically...
  26. B

    Help with new audio module AudioFilterIIRAsymmetric

    Here is my preliminary sketch for AudioEffectIIREnvelope. Note it can accept any gate level above zero but is presently not retriggerable until the cycle has complete. Status can be read (idle, attack, decay, sustain, release) to allow the sketch to see if the envelope is active. This will allow...
  27. B

    Teensy 4.1 PWM pulsing output with values 0 and 256

    I suspect it's the output pin circuitry. Remember the pins are updated at a high clock frequency. this is not like having a simple divider chip, however note even if you were to do this with direct ttl logic you would still experience clock "glitches" on the output due to the finite rise and...
  28. B

    Help with new audio module AudioFilterIIRAsymmetric

    I'm working on a new IIR filter with asymmetric rising and falling time constants, with the intention of expanding it into an IIR based full on ADSR envelope generator providing more log-like modulation waveforms. What I have now is the code for an iir filter which allows specifyiing separate...
  29. B

    TDM and TDM2

    The audio design tool says "only one tdm device may be used" but there are two objects. Does this mean I can only use one or the other, or can I use two cs42448s?
  30. B

    Audio clicks when changing mixer gain too fast

    Here's something I use very effectively in knobby to prevent sudden control changes from clicking. Program the biquad to be a lowpass with about a 10hz response, and run your joystick value into the dc input. #include <Audio.h> #include <Wire.h> #include <SPI.h> #include <SD.h> #include...
  31. B

    Audio clicks when changing mixer gain too fast

    the mixer can be used for all sorts of things where you need instant response. Using the faders is very easy, why not use that?
  32. B

    Teensy Controlled Langtons Ant Sequencer - Demo

    I don't underrstand these things. How does the note correspond to the matrix?
  33. B

    Audio clicks when changing mixer gain too fast

    You need to use the fader blocks or you'll get clicks when the volume is changed and the instantaneous amplitudes of the two waves don't line up. The example code you gave earlier should work like this. An osc with a freq of 0 is a dc signal, so you're back to instanteoulsy changing dc signals...
  34. B

    USB MIDI foot switch for DAW

    welcome. I suggest you check out "Notes and Volts" channel on youtube. Dave will walk you through the teensy environment and build a synthesizer showing you how it all works. That should get you started. https://www.youtube.com/watch?v=H3WevrsmO9o
  35. B

    stepper speed control with potentiometer

    If you deactivate the enable pin on the motor controller chip when the pot is at min, there will be no holding torque.
  36. B

    Using EXTMEM to Place Variables in External PSRAM

    That tells me what II need to know, thanks! I'm placing this link here because it's two years old and I had to find it using google, didn't realize my own thread had an answer! So this is kind of a self referencing bump for that information...
  37. B

    Using EXTMEM to Place Variables in External PSRAM

    I'm getting this warning and I suspect it means my array is not being allocated in DMAMEM. I'm trying to confirm this but I don't know the command to make teensy display available free memory. Since I have no sound engine inthe project yet, DisplayAudioMemoryUsage prints 0, which is not helpful...
  38. B

    browser based tool to convert image to c header file

    Gimp can do this, sort of. IME it sometimes casues the application to behave slowly and lockup. So I've made an HTML5 tool to do it. Tested it with my st7789 library, it works great and instantly with a 240x240 image. I tried uploading it as a file but the bbs doesn't like that. here it is in a...
  39. B

    Mixer with more than 4 channels

    Are there any plans to perhaps add this ten input mixer to the distribution of the audio design tool? It sure would simplify things when working with more than 4 inputs. I did a clone of the git repository for audio but not in my arduino1.8.19 folder. Where do I put the mixer .h and .c files in...
  40. B

    AudioOutputI2SOct support pcm1680?

    Thanks Paul. I was able to get the pca9634 and ssd1306 working from a library and am pretty comfortable with i2c, although I must admit I've never really written the stuff from scratch. The TI datasheet shows it's configured by default where it might work without any i2c activity, so long as the...
  41. B

    AudioOutputI2SOct support pcm1680?

    I'd like to use the pcm1680 as it is small, has single ended outputs on one side of an easily soldered chip. Will AudioOutputI2SOct support this chip?
  42. B

    Using EXTMEM to Place Variables in External PSRAM

    Thanks to all your help (esp Defragster) , I moved 200K of variables into DMAMEM and the project works better than ever.
  43. B

    Using EXTMEM to Place Variables in External PSRAM

    You're obviously a very gifted psychic :)
  44. B

    Audio clicks when changing mixer gain too fast

    I think fader is your way to go. fader increments/decrements on each pass through the sample loop, all oyu have to do is give ti a new target value and a time to do it in. if (midiChange(DELAY1_TIME)){ if (_delayfade1 % 2 == 0){ AudioNoInterrupts()...
  45. B

    Using EXTMEM to Place Variables in External PSRAM

    Hmmmm. This: PROGMEM const char midipromptsFL[512][16] = { etc }; DMAMEM char midiprompts[512][16]; memcpy(midiprompts, midipromptsFL, sizeof(midipromptsFL)); Results in this error: In file included from /home/bradley/Teensy Projects/knobby/SimplexNoiseTest/SimplexNoiseTest.ino:33...
  46. B

    Using EXTMEM to Place Variables in External PSRAM

    Duh. OK now I need to understand how to print these as strings. For example tft.println(midiprompts[0]) prints "O" and nothing else. Do I need to make my own println with a for loop that iterates over 12 characters? Thanks one more time. You've helped me feel like I'm making progress on this.
  47. B

    Using EXTMEM to Place Variables in External PSRAM

    PROGMEM const char* midiprompts[512][12] = { I still get In file included from /home/bradley/Teensy Projects/knobby/SimplexNoiseTest/SimplexNoiseTest.ino:35: knobbyConductor.h: In function 'void loadProject()': knobbyConductor.h:84: warning: ISO C++ forbids converting a string constant to...
  48. B

    How do I clear old text when printing text on ILI9341?

    It will flicker somewhat, but only the number. if you're updating every 30ms it may be a problem, but if there's more like 300ms it shouldn't be bad. Note I use a slightly modified version of this to render an ellipse over a background pattern of noise, and it flickers but only a bit. There are...
  49. B

    Using EXTMEM to Place Variables in External PSRAM

    I understand, but whether I give the other dimension or not I simply cannot get past that section type conflict error
Back
Top