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. Replies
    12
    Views
    279

    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...
  2. Replies
    7
    Views
    107

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

    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.
  4. Replies
    12
    Views
    279

    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:...
  5. 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,...
  6. Replies
    11
    Views
    212

    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.
  7. Replies
    5
    Views
    174

    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...
  8. Replies
    5
    Views
    174

    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...
  9. Replies
    19
    Views
    831

    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.
  10. Replies
    11
    Views
    212

    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...
  11. Replies
    11
    Views
    212

    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...
  12. Replies
    3
    Views
    81

    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.
  13. Oh wow, that is quite the library. Thanks for...

    Oh wow, that is quite the library. Thanks for sharing that.
  14. 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...
  15. Hah, sweet, glad you got it working!

    Hah, sweet, glad you got it working!
  16. 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...
  17. 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]...
  18. 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...
  19. Replies
    2
    Views
    81

    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,...
  20. 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...
  21. Try the following: static const unsigned char...

    Try the following:

    static const unsigned char PROGMEM your_stuff_here[] = {
    0xff,0xff,0xfe, ....
    };
  22. 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...
  23. 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
  24. 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 :)
  25. 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...
  26. 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...
  27. 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?
  28. Replies
    4,286
    Views
    444,920

    I believe the answer to this is "no", but I am...

    I believe the answer to this is "no", but I am wondering if there is an API to read and write from T4's internal flash memory? Back in the days of yore (AVR days) I recall this being possible, but I...
  29. @KurtE What tool are you using to generate...

    @KurtE

    What tool are you using to generate font .h and .cpp files? This one by any chance: https://forum.pjrc.com/threads/54345-ILI9341_t3-font-editor
  30. Replies
    673
    Views
    368,344

    I would definitely be interested.

    I would definitely be interested.
  31. CPU freq stuff is almost always specified as a...

    CPU freq stuff is almost always specified as a compiler option, which is then visible from within code.

    Another example would be the chip. For teensy 4, a compiler option like "-D__IMXRT1062__"...
  32. Replies
    68
    Views
    3,976

    Paul just committed a fix for that a few hours...

    Paul just committed a fix for that a few hours ago, you will probably need to pull the absolutely latest to get it.
    ...
  33. Have you played the recorded .raw file on a...

    Have you played the recorded .raw file on a computer and verified that it's a good file, no corruption, etc?

    Once you know the file is okay, can you make a standalone sketch to play the...
  34. Replies
    161
    Views
    9,690

    I'm not sure if anyone here besides myself uses...

    I'm not sure if anyone here besides myself uses Platformio for development, but it's wonderful.

    I opened a ticket a few days ago to get support for T4 added:...
  35. It's compiling now, thank you for the quick fix.

    It's compiling now, thank you for the quick fix.
  36. AudioEffectGranular can pitch shift and change...

    AudioEffectGranular can pitch shift and change playback speed. Just route an AudioPlaySdWav (or whatever sound source) through it.

    Take a look here for the example:...
  37. I did, I pulled fresh zips this evening to get...

    I did, I pulled fresh zips this evening to get setup for T4.
  38. @KurtE When I try to compile ILI9341_t3n for...

    @KurtE

    When I try to compile ILI9341_t3n for T4, I get the following error:

    ILI9341_t3n.cpp:1946:6: error: '_pkinetisk_spi' was not declared in this scope

    Preceding that is a "#ifdef...
  39. Replies
    4,286
    Views
    444,920

    Paul has a post where he talks in depth about...

    Paul has a post where he talks in depth about that, but the short version is that a large amount of setup code is required for the very complex peripherals on this chip.
  40. Replies
    4,286
    Views
    444,920

    Possible problem report (I searched this thread...

    Possible problem report (I searched this thread and didn't see it mentioned):

    If USB type is set to Audio, the compilation errors out due to several files using Serial for printf. For example...
  41. Replies
    4,286
    Views
    444,920

    Just FYI, the Teensy 4.0 page is showing the...

    Just FYI, the Teensy 4.0 page is showing the topside pinout twice.
  42. Replies
    4,286
    Views
    444,920

    Congratulations Paul! I just bought 5 of them.

    Congratulations Paul! I just bought 5 of them.
  43. Replies
    5
    Views
    139

    There are two ADC modules in the Teensy: ADC0 and...

    There are two ADC modules in the Teensy: ADC0 and ADC1. When you add an AudioInputAnalog object to your project, it configures ADC0 for audio use, but leaves ADC1 alone.

    So for your project, it...
  44. Replies
    5
    Views
    139

    Lot going on in your post, kinda hard to parse. ...

    Lot going on in your post, kinda hard to parse.

    I would say, for the audio recording and playback, it's best not to use the onboard ADC and DAC at all, as you're probably not going to get the...
  45. My initial reaction is to turn the mixer gains...

    My initial reaction is to turn the mixer gains down to .7 rather than 1.0, and actually increase the amplitude of each oscillator a bit, so you have a little more dynamic range in the calculations.
    ...
  46. Raw or wav files only :) Anything compiled has to...

    Raw or wav files only :) Anything compiled has to fit on the internal flash memory.
  47. Sure, here you go:...

    Sure, here you go: https://github.com/PaulStoffregen/SerialFlash/blob/master/examples/CopyFromSD/CopyFromSD.ino
  48. You have several options. - Store all wav and...

    You have several options.

    - Store all wav and raw files on a microSD card. This will be probably the easiest to implement and maintain, but comes with at least 2 drawbacks: the audio library does...
  49. This really intrigued me so I tried it. I used...

    This really intrigued me so I tried it. I used the code from the first post, but I added USB so I could record directly into Audacity and not lose any fidelity.

    The tone is there. Audacity says...
  50. Replies
    4,286
    Views
    444,920

    Hi all, I'm curious about ADC library usage...

    Hi all,

    I'm curious about ADC library usage for T4. I see that pedvide's ADC library hasn't received T4 updates. My requirements are pretty basic (I hope): DC coupled, non-blocking if at all...
Results 1 to 50 of 68
Page 1 of 2 1 2