Search results

  1. M

    Write from SD Card to RAM

    Looks like h4yn0nnym0u5e already answered, I would second using his library for these purposes. I have been meaning to try it for the longest time but I've had too much other stuff going and have not had yet time to test it out. I believe that it will be perfect for my use-case at least.
  2. M

    Yet Another File Player (and recorder)

    Sounds good! I’ll check it out as soon as I get my testing hardware back together!
  3. M

    Yet Another File Player (and recorder)

    That approach sounds good. Here is a set of samples I have been using for testing: https://theremin.music.uiowa.edu/MISpiano.html So far I've tested them with FrankB's waveplayer, which plays the samples straight from the SD card I believe. It has been working surprisingly well, but I have a...
  4. M

    Yet Another File Player (and recorder)

    Hi! Looks to be a great project. I am wondering how this would work in the following use case: Say, I have a set of 88 piano samples in wav files, or it could even be as high as 264 wav files if there are three separate files for different loudness for each note. In an optimal situation, each...
  5. M

    Teensy 4.1 + MAX98089

    Hi! I hand-soldered the chip and turns out it had solder bridges just on the headphone-pins. It's quite a small chip so no wonder, a pretty big challenge to solder on a normal soldering iron. However, I managed to do it quite nicely with some solder paste. I have now re-soldered the whole...
  6. M

    Teensy 4.1 + MAX98089

    Aaand never mind, problem solved.
  7. M

    Teensy 4.1 + MAX98089

    Hi! I am trying to interface the MAX98089 audio codec with Teensy 4.1. Mainly I am interested in this codec, as it has integrated speaker amp and some more interfacing options compared to SGTL5000. I have a custom board based on the evaluation board reference design of the MAX98089. I have...
  8. M

    Teensy-Based Sampler: "dynamic" Memory Allocation?

    Hi blakeAlbion! Could you share code for your solution, I have been battling the exact same problem with sample playing from SD, but memory allocation is still a bit too much for my skills at the moment. It would be super-helpful if I could get a working example code of how you got it working...
  9. M

    Compatible PSRAM chips with Teensy 4

    Thanks for the reply, Paul! That seems to be way over my skill level currently. Guess I will stick to T4.1 and its QSPI for now.
  10. M

    Compatible PSRAM chips with Teensy 4

    Hi Paul! If I understand correctly, the standard SPI has plenty of speed for supporting, for example, multiple delays for different audio streams, but the problem is that the software implementation is blocking? Would the high CPU usage be solved by using DMA for the SPI transfers with the RAM...
  11. M

    Limits of delay effect in audio library

    Hi Robz! Did you ever end up trying the Frank's memory board with 6x PSRAM chips? I'm interested in trying this out myself but would like to double check before ordering anything. Another more broad question, not particularly to you Robz. Of course if you can help, it's very welcome. What is...
  12. M

    Arduino CLI And IDE now Released - Teensy Supported!

    Thanks, got it working!
  13. M

    Arduino CLI And IDE now Released - Teensy Supported!

    I just discovered the latest progress on Teensy-support for arduino-cli. I must say this is great news. Finally an easy way to use my favourite IDE for editing without having to rely on the Arduino IDE for compiling. After fighting with makefiles for a week, it was amazing the get the blink.ino...
  14. M

    WaveplayerEx

    And I have finally managed to solve the source every last click and pop that was still happening. I am powering some speakers and a 5W amp from the same source as the Teensy and the USB host has some trouble handling my midi keyboard while I'm driving the speakers with high power. So, nothing to...
  15. M

    WaveplayerEx

    So far so good with testing the WaveplayerEx for my project. I have managed to make a drum sampler that can be played quite reliably. I was testing it really hard and smashing a lot of keys on my keyboard and I'm getting some clicks still. To solve this, I tried to allocate more memory for the...
  16. M

    WaveplayerEx

    I have finally managed to fix the click. I updated to the newest version of the WaveplayerEx and upgraded my sd card during this process, but finally the solution that stopped all the clicks was adding an envelope for each Waveplayer. It seems that the click was not coming from the new file...
  17. M

    WaveplayerEx

    I reformatted my SD card with the SD Formatter and rearranged the audio files into three folders as per your example. The crackle is almost completely gone! There is just a very faint audible click every time a new audio file starts playing. And this is with eight files playing simultaneously...
  18. M

    WaveplayerEx

    Thanks a lot for your efforts. Frank! I will go and buy the recommended SD card to see if that helps with the troubles I'm having. It's only around 15 euros here so definitely worth the shot. I'll also go through the original sample test files and see if I can trim and make them better. I'll...
  19. M

    WaveplayerEx

    It definitely got much better by changing the AUDIO_BLOCK_SAMPLES from 128 to 512, but there are still noticeable cracks in the audio. I will try the new files later! -Miro
  20. M

    WaveplayerEx

    Here is a short recording done from Teensy 4.1 through USB audio on my Mac. The crackle happens as new notes are triggered, but not after that. I guess it has something to do with retrieving data from the SD? -Miro Edit: Ah, you were just a bit quicker. I have faced this same problem many...
  21. M

    Playing multiple WAV files at the same time - SD settings

    Hi Ben! Did you ever go on with your plans of creating a flash/ram buffer for AudioPlaySdWav? -Miro
  22. M

    WaveplayerEx

    It only seems to happen in the first second of the file, after that multiple notes play just fine. Here is my current code with some changes to the mixer volumes. I also changed the max amount of voices to eight, to see if that would help, but it's still the same crackling apparent at the start...
  23. M

    WaveplayerEx

    Hi! I just tested out the MidiPiano example posted in this thread: https://forum.pjrc.com/threads/69373-Best-Method-for-Fast-Playing-of-Samples-with-8-voice-Polyphony I am using Teensy 4.1 on-board card reader and a Kingston Canvas React 32GB micro sd card and when playing multiple sounds...
  24. M

    Best Method for Fast Playing of Samples with 8-voice Polyphony?

    I am also highly interested in playing multiple audio files from NAND flash simultaneously. Have any tests been conducted on this? I have a 1GB Winbond chip waiting to be soldered on my Teensy 4.1 but haven't gotten around to testing it yet. How would one transfer audio files to the chip after...
  25. M

    USBHost_t36 doesn't recognize MIDI-keyboard?

    Thanks for the tip Kurt, I will check the debug with this the next time the midi-keyboard stops working. Thanks for the suggestions again. So far it has gone like this: At first, the midi controller does not work at all. Then I got the idea to plug it in through the usb hub and it magically...
  26. M

    USBHost_t36 doesn't recognize MIDI-keyboard?

    Thanks for the reply! I have also thought about it being a problem with power. However, my usb hub doesn't have a separate power supply. This makes me think that power is fine. Maybe it could be tested by feeding 5V straight into the USB-Host rather than using the power from Teensy. I wonder if...
  27. M

    USBHost_t36 doesn't recognize MIDI-keyboard?

    Hi! I am creating a synth with Teensy 4.1. It is currently controlled with a M-Audio Keystation Mini32 MK3 via the USB-Host connection on Teensy 4.1 board. The Teensy has been programmed with Teensyduino 1.56 on macOS 10.15.7. I was troubleshooting the USB-Host MIDI connection for a long time...
  28. M

    Write from SD Card to RAM

    Thanks, these will be helpful!
  29. M

    Write from SD Card to RAM

    Hi Paul! Thanks for the reply. I am currently using the newest beta with T4.1. Limitations in performance come for me when trying to play eight samples at the same time, triggering them with buttons. I have tried both playSdRaw and playSdWav. With these, AudioProcessorUsageMax easily peaks at...
  30. M

    Write from SD Card to RAM

    Hey Dionysus! Did you ever manage to solve how to transfer files from SD to ram on the fly? I am currently working on a similar project (albeit with T4.1 and PSRAM chip) and would really appreciate any guidance! Best, Miro
  31. M

    Teensy 4.1 USB Host with external power

    And indeed it was a problem with my wiring/breadboard. I should never trust breadboards without trying at least a couple of different holes for the connections... Anyhow, problem solved. Best, Miro
  32. M

    Teensy 4.1 USB Host with external power

    I will do as you suggested and see what comes up. Thanks! -Miro
  33. M

    Teensy 4.1 USB Host with external power

    Hi Paul! Thanks for the reply. Unfortunately not. The USB-host connection works just fine when I power the Teensy from the micro-usb port even with just a phone charger. This makes me think that the code is not the problem here. At the moment, with external power from VIN, the lights turn on...
  34. M

    Teensy 4.1 USB Host with external power

    Hi! I have managed to establish USB-Midi communication between my USB-Midi keyboard and Teensy 4.1 through the USB Host port, I am even powering the keyboard through the Teensy! This is pretty awesome. Everything works fine as long as I am powering the Teensy through the mini-usb, whether from...
  35. M

    Teensy 4.1 USB Host pinout

    Yes, that cable is always a good choice for fast prototyping and when space is not an issue. But as I mentioned in my original post, instead of the cable I want to use a plain USB port. In my case the reason is portability and minimal space consumption, but I am sure there are others who prefer...
  36. M

    Teensy 4.1 USB Host pinout

    Yup, that looks handy! Thanks! -Miro
  37. M

    Teensy 4.1 USB Host pinout

    Thanks Paul! Silly me, didn't occur to me to check the underside of the board. The most obvious place is always the last to come to mind. Although, I must say that it wouldn't hurt to have it on the backside the pinout card like in Teensy 4.0. Best, Miro
  38. M

    Teensy 4.1 USB Host pinout

    Hi! I have searched the PJRC site and the forum, but have found no information on the pinout of the Teensy 4.1 USB host pins. There was no information either on the 4.1 pinout card supplied with the board. If I want to use a generic USB female port instead of the PJRC USB host cable, how...
  39. M

    Fastest access storage for Teensy 4.0

    Hi! Haha, I always get those two wrong. I most definitely meant 100 megabytes. I took a look at the speeds you reached in your tests and the fastest was around 5MBytes/sec. In this thread Bill Greiman has posted a benchmark on transfer speeds on Teensy 4.0 with uSDHC pins using his SDFat-beta...
  40. M

    Fastest access storage for Teensy 4.0

    Hi! I am trying to figure out what would be the absolute fastest storage for large amounts (>100Mb) of data like audio samples and such. So far, the options I have come across are: The 8-pin connection for sd-card under the board on Teensy 4. External SPI flash chips (such as...
Back
Top