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

Search:

Type: Posts; User: wcalvert

Page 1 of 2 1 2

Search: Search took 0.00 seconds.

  1. It's possible. See my post here for sample code...

    It's possible. See my post here for sample code including hacks to the Audio library: https://forum.pjrc.com/threads/57669-SdFat-SDIO-for-Teensy-4-0?p=220515&viewfull=1#post220515

    It's only...
  2. Replies
    5
    Views
    116

    What feature is it that's driving the selection...

    What feature is it that's driving the selection for this chip in particular? Perhaps a codec + class D amp solution would work for you?

    Alternatively, the datasheet for the eval board provides a...
  3. Replies
    4
    Views
    126

    One minor suggestion.. when asking for help,...

    One minor suggestion.. when asking for help, please tell us if you're having a compile time problem (and if so, include the error message) or having a runtime problem (and be really specific about...
  4. I have to admit I don't know much about MQS. A...

    I have to admit I don't know much about MQS. A quick google search didn't reveal much about it, but I would imagine it would be somewhat better than PWM, otherwise it wouldn't make much sense to...
  5. Well, I'm not quite sure I understand the use...

    Well, I'm not quite sure I understand the use case. As far as I know, MQS is output only... no need to get data from it since it'll be available elsewhere.

    If you need to capture sound data, you...
  6. Replies
    4
    Views
    126

    If audioController.h has the code that you...

    If audioController.h has the code that you posted, you should be able to include it just fine from main.h or main.cpp for example.

    You shouldn't need to make pointers to something just because...
  7. Are you just doing this for grins, or is there...

    Are you just doing this for grins, or is there something specific you're trying to do by changing the block size? In general... I'd say the only reason to decrease the block size might be to try to...
  8. I'm not a canbus expert, but I have some advice....

    I'm not a canbus expert, but I have some advice.

    The way to think about canbus is that it's very similar to ethernet. Ethernet is a transport, and to do anything useful with it, you have to know...
  9. Replies
    5
    Views
    147

    Usually the answer for lots of IO is to use...

    Usually the answer for lots of IO is to use expanders such as MCP23017. It is possible to read encoders over the expander, provided you've got the right software. Something like this:...
  10. I did something like this: Edit...

    I did something like this:

    Edit synth_waveform.cpp around line 175:

    // Hack to get amplitude for LFO purposes.
    last_amplitude = static_cast<float>(block->data[AUDIO_BLOCK_SAMPLES-1]) /...
  11. You'll definitely want a master/slave setup when...

    You'll definitely want a master/slave setup when trying to sync two devices. For code readability, I usually would recommend two separate code projects (one for master, one for slave), rather than a...
  12. Replies
    18
    Views
    677

    Hi Bill, First I just wanted to say a quick...

    Hi Bill,

    First I just wanted to say a quick "thank you" for all your work on SdFat over the years, it has been much appreciated by many in the community.

    I've been testing with SdFat-beta and I...
  13. Replies
    87
    Views
    4,099

    I'm starting to think this would be a good idea...

    I'm starting to think this would be a good idea too. Adafruit has a new board coming out with USB-C (https://www.adafruit.com/product/4382), so there is some precedence for it.
  14. Just use an I2S DAC like a PCM5102. DMA will take...

    Just use an I2S DAC like a PCM5102. DMA will take care of the transfers for you, and it'll sound great.
  15. Well, are you wanting to create your own...

    Well, are you wanting to create your own implementation from scratch just for the sake of it? You've linked to 2 different ways of doing it on a Teensy, so it is indeed possible.

    I've not tried...
  16. Well, I don't want to discourage you too much,...

    Well, I don't want to discourage you too much, but it sounds like a big part of your project will include Android development... and let's just say, I write software for a living and I won't touch...
  17. Replies
    87
    Views
    4,099

    That would be incredible... I have been away from...

    That would be incredible... I have been away from this stuff long enough that I didn't expect memory mapping.

    The RAM use case that I am considering is 'multi-track' recording capabilities for my...
  18. Ah... well, to be honest, I probably would not...

    Ah... well, to be honest, I probably would not use Bluetooth then, for one reason: latency. Plain old A2DP has like 200-300 milliseconds of latency which pretty much ruins it IMHO.

    You can get a...
  19. Replies
    87
    Views
    4,099

    I have to admit I'm not familiar with the new and...

    I have to admit I'm not familiar with the new and different flavors of RAM. I believe SDRAM is commonly used, for example, in the SOM that I linked to above. I think SDRAM comes with the unfortunate...
  20. Replies
    87
    Views
    4,099

    My preferences in descending order: * Larger...

    My preferences in descending order:

    * Larger form factor with SDRAM and flash onboard (SOM like this is fine: https://wiki.somlabs.com/index.php/File:VisionSOM-RT-v_1_1.png)
    * Dual row .1" header...
  21. Interesting idea. I googled around a bit, trying...

    Interesting idea. I googled around a bit, trying to see how feasible the idea is, here is what I found:

    * There's an Arduino library for using the AT command set to control the BK8000L, no audio...
  22. Replies
    5
    Views
    273

    The processing power is there to do a lot of...

    The processing power is there to do a lot of polyphony. In my humble opinion the limiting factor is the 16 bit math that is used to mix everything together.

    I have been working on a "big" synth...
  23. There's a GUI in there that you probably want to...

    There's a GUI in there that you probably want to run rather than the actual decoder.py script.

    First you'll need to install sf2utils though. If you have pip on your system you'd do "pip install...
  24. Replies
    13
    Views
    417

    Regarding the permissions, this part:...

    Regarding the permissions, this part: "crw-rw-rw-" means anyone should be able to write to the serial port.

    I suppose it's possible that PD is looking for a serial port other than /dev/ttyACM0 and...
  25. Replies
    22
    Views
    567

    The code is open source, yes:...

    The code is open source, yes: https://github.com/PaulStoffregen/cores

    For the existing USB audio functionality, look for usb_audio.h/cpp under the teensy3 directory.
  26. Replies
    22
    Views
    567

    The USB audio profile has not been enabled in the...

    The USB audio profile has not been enabled in the T4 codebase yet. Taking a quick glance at the T3 codebase, I only see stereo support, no support for multichannel.
  27. Replies
    13
    Views
    417

    Are you still getting the "[comport]: Write...

    Are you still getting the "[comport]: Write failed for -1 bytes, error is 11" error?

    (Btw, the ComPort thing specifically looks like it is some kind of plugin, see here:...
  28. I have done something like this as members of a...

    I have done something like this as members of a class:



    OscillatorTypeGoesHere *oscs[NUM_VOICES] = { &osc1, &osc2, &osc3, &osc4 };
    AudioEffectEnvelope *envelopes[NUM_VOICES] = { &env1, &env2,...
  29. Replies
    11
    Views
    369

    Glad you posted that GuitarPhil. I was mystified...

    Glad you posted that GuitarPhil. I was mystified how totally passive components could do any form of looping (like, sample looping)... now I see "looping" in this case means just signal routing.
  30. Replies
    11
    Views
    421

    I think the updated version of audio.h just has...

    I think the updated version of audio.h just has the additional include for effect_ensemble.h, right? I just included effect_ensemble.h directly.

    Anyway I will try again today if possible, I would...
  31. Replies
    11
    Views
    421

    Hmm, so I had a few minutes to test this out and...

    Hmm, so I had a few minutes to test this out and I could not get it working... or at least I could not get any sound out of it.

    T4, WM8731, custom hardware, but it is proven hardware at this...
  32. Replies
    19
    Views
    965

    I did a quick test and it seemed to work for me....

    I did a quick test and it seemed to work for me. T4, WM8731, custom hardware. It sounded smooth without any of the artifacting of the stock delay effect.

    Great job, I say.
  33. Replies
    11
    Views
    369

    Ah, okay, I think I'm starting to understand a...

    Ah, okay, I think I'm starting to understand a little more.

    Well, yeah more RAM is generally considered good, but keep in mind, teensies and arduinos do not have an operating system to battle...
  34. Replies
    11
    Views
    369

    It's going to be very difficult to formulate a...

    It's going to be very difficult to formulate a reply to this thread because you're not asking a specific question. We can't really answer what Teensy would be "best" because we don't know what that...
  35. Replies
    3
    Views
    145

    Could you post the contents of Heavy_sine440.h?...

    Could you post the contents of Heavy_sine440.h? Their documentation doesn't have a full example with source (as far as I can see) to tell where stuff is located.

    Seems like a cool library though.
  36. Oh wow, that is quite the library. Thanks for...

    Oh wow, that is quite the library. Thanks for sharing that.
  37. As far as I am aware, there hasn't been an AAC or...

    As far as I am aware, there hasn't been an AAC or MP3 decoder written for the teensy audio library, so you would probably need to first find an open source decoder and get it working with the teensy...
  38. Hah, sweet, glad you got it working!

    Hah, sweet, glad you got it working!
  39. Well, I am left grasping at straws. Instead of...

    Well, I am left grasping at straws. Instead of receiveWritable, you could try receiveReadOnly, and then do all of your write operations into another block: "outBlock = allocate();" and then you'd...
  40. Maybe as a sanity check, after you do "block =...

    Maybe as a sanity check, after you do "block = receiveWritable(0);" could you check that the block has been received (make sure it's not null)?

    The teensy doesn't lock up if you set block->data[i]...
  41. When you say "going out to lunch" you mean the...

    When you say "going out to lunch" you mean the teensy hard locks? If so you might have gone out of bounds on an array, but it appears you're checking array bounds correctly.

    What's the last serial...
  42. Replies
    2
    Views
    108

    A lot going on in your post, kinda hard to make a...

    A lot going on in your post, kinda hard to make a coherent response to it, but I suppose I'll try.

    Regarding the LED, the line of code you posted: "digitalWriteFast(LED_BUILTIN,...
  43. Quick suggestion is I think you need to use...

    Quick suggestion is I think you need to use receiveWritable, though I have not dug into the receiveReadOnly and receiveWritable code to know what's going on under the hood.

    Actually, on second...
  44. Try the following: static const unsigned char...

    Try the following:

    static const unsigned char PROGMEM your_stuff_here[] = {
    0xff,0xff,0xfe, ....
    };
  45. Perhaps a good example would be the filter code:...

    Perhaps a good example would be the filter code: https://github.com/PaulStoffregen/Audio/blob/master/filter_variable.cpp

    Take a look on line 176. He acquires two different blocks, and checks for...
  46. Take a look at the mixer code, starting around...

    Take a look at the mixer code, starting around line 113. There's a for loop that receives multiple blocks of data. https://github.com/PaulStoffregen/Audio/blob/master/mixer.cpp
  47. Sounds good, unfortunately I don't have time to...

    Sounds good, unfortunately I don't have time to actually help write or debug the port, but good luck none the less :)
  48. AUDIO_BLOCK_SAMPLES is 128, see here:...

    AUDIO_BLOCK_SAMPLES is 128, see here: https://github.com/PaulStoffregen/cores/blob/master/teensy4/AudioStream.h

    Audio is processed in blocks, 44100 / 128 = 344 times per second, or about 2.9...
  49. What SD card are you using? Good concurrent...

    What SD card are you using? Good concurrent playback requires a good SD card. I have been using Lexar 1000x 32GB and playing 3-4 samples concurrently is possible. The Lexar 1800x cards would be even...
  50. I'm guessing you're taking this route rather than...

    I'm guessing you're taking this route rather than the Granular effect because of RAM limitations?
Results 1 to 50 of 91
Page 1 of 2 1 2