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

Search:

Type: Posts; User: wcalvert

Page 1 of 5 1 2 3 4

Search: Search took 0.01 seconds.

  1. Thread: Please help

    by wcalvert
    Replies
    1
    Views
    132

    I think your question is too vague for anyone to...

    I think your question is too vague for anyone to really help you.

    If you let us know what device you want to connect to the T4, there might already be a library out there that can help you.
  2. Replies
    42
    Views
    3,714

    Regarding the failure to upload to T4, I just...

    Regarding the failure to upload to T4, I just wanted to share the following.

    It is not a bug report and I'm not expecting anyone to do anything about it. It should be treated as anecdotal only.
    ...
  3. Replies
    1
    Views
    227

    You can share the same I2C bus as long as the...

    You can share the same I2C bus as long as the devices have different addresses.

    Mouse example code here: https://www.pjrc.com/teensy/td_mouse.html

    If you don't have the datasheets for the I2C...
  4. My guess is you're reading/writing out of bounds...

    My guess is you're reading/writing out of bounds on one of the several arrays that you've got. One recommendation is to #define the array length so you can be sure any code which accesses the array...
  5. Replies
    5
    Views
    278

    When using the analog pins with the Audio...

    When using the analog pins with the Audio library, the Audio library code pretty much takes full control of the analog hardware, so calling analogReference() probably does not do anything. Your code...
  6. DAC8565 support in the Audio library would be...

    DAC8565 support in the Audio library would be cool. I suspect the reason the original author didn't go that route is latency. Each block in your audio chain will add about 3 milliseconds to the...
  7. O&C runs its own special firmware that doesn't...

    O&C runs its own special firmware that doesn't use the Audio library, so it has no USB to Audio abilities .. unless there is a firmware fork that I don't know about.

    Anyway, let's pretend there is...
  8. Replies
    2
    Views
    271

    Please don't modify safety critical stuff on your...

    Please don't modify safety critical stuff on your car.
  9. Replies
    9
    Views
    456

    Right, it's not the case. The '&' means "address...

    Right, it's not the case. The '&' means "address of". So for the following line of code:

    AudioPlaySdWav *players[NUM_PLAYERS] = {&playWav1, &playWav2, &playWav3, &playWav4, &playWav5};

    In...
  10. Hmm, so is the crossfading started by a user...

    Hmm, so is the crossfading started by a user pressing a button or something? What should happen if the user presses the button too rapidly for the crossfading to complete on whatever is currently...
  11. I'm sorry, I think I should have read your code...

    I'm sorry, I think I should have read your code more closely. I was misunderstanding how you were intending to use your class instances. I think your approach is fine for multiple instances.
  12. Replies
    1
    Views
    189

    Every time you call phase(), the phase...

    Every time you call phase(), the phase accumulator gets reset. See here, line 53: https://github.com/PaulStoffregen/Audio/blob/master/synth_sine.h

    My best guess without testing your code is: your...
  13. Basically you would need to have different class...

    Basically you would need to have different class definitions, how else would your class be able to work with other patchCords, mixers, and filters? If you use pointers for members, you can reuse the...
  14. If you only need one instance of...

    If you only need one instance of AudioFilteredMixer per project, that approach will work fine. If you need multiple instances, you'll probably want to switch over to using pointers for your members.
  15. IMHO you need to first identify exactly what your...

    IMHO you need to first identify exactly what your goals are, and I can see two possibilities: 1: you are trying to make a wrapper class to encapsulate existing functionality of the mixer and filter...
  16. Replies
    9
    Views
    456

    You can do something like this if you want the...

    You can do something like this if you want the logic to be a little more compact and easier to maintain.

    #define NUM_PLAYERS 5
    PlaySdWav *players[NUM_PLAYERS] = { &playWav1, &playWav2, &playWav3,...
  17. It might compile and work correctly, but it's...

    It might compile and work correctly, but it's going to make a very poor piano due to lack of multiple voices and/or oscillators, no envelope generator, filter, etc.
  18. Almost none of the Audio library will compile for...

    Almost none of the Audio library will compile for the LC. It would be wiser to choose a 3.x or 4.0 if you actually want to synthesize sounds. You'll need to connect analog output from a DAC or codec...
  19. Replies
    82
    Views
    9,117

    22kHz sample rate means the maximum frequency...

    22kHz sample rate means the maximum frequency that can be reconstructed is 11kHz. Google for Nyquist sampling theorem or Nyquist rate for more info.
  20. Replies
    9
    Views
    456

    If you'd like to have multiple simultaneous wavs...

    If you'd like to have multiple simultaneous wavs playing, you'll need multiple playSdWav objects. Then each time the button is pressed, you'll loop through all of your playSdWav objects, and use the...
  21. Replies
    2
    Views
    254

    You can use TDM to get many channels of input and...

    You can use TDM to get many channels of input and output. Here is Paul's original blog post about it:...
  22. Replies
    4
    Views
    270

    Each audio object by default uses the processor's...

    Each audio object by default uses the processor's internal RAM. The audio objects have to be specially hand-coded to take advantage of external SRAM. The large external SRAM would allow for longer...
  23. Replies
    4
    Views
    270

    From the notes in the GUI tool: "Memory for...

    From the notes in the GUI tool:

    "Memory for the delayed signal is take from the memory pool allocated by AudioMemory(). Each block allows about 2.9 milliseconds of delay, so AudioMemory should be...
  24. Replies
    3
    Views
    260

    Your synth has one voice, and you are checking if...

    Your synth has one voice, and you are checking if the envelope is active before letting another note play with this bit of code:

    if (envelope1.isActive() == false)

    If you remove the condition...
  25. Here is another thread on the front page which...

    Here is another thread on the front page which answers a lot of what you're asking: https://forum.pjrc.com/threads/59212-Audio-Router-Module
  26. Replies
    3
    Views
    260

    Well, I don't know what you mean by latency...

    Well, I don't know what you mean by latency problem, but I think you might have a logic problem in your code.


    ...
    mixer1.gain(2, (float)knob3/1024.);
    ...
    float sustain = (float(knob3)/1024.);...
  27. Replies
    20
    Views
    985

    It's more memory efficient to receive the first...

    It's more memory efficient to receive the first input block as writable so you can reuse it as the output block. That way you don't need to allocate an additional output block.
  28. Replies
    20
    Views
    985

    The first time through the loop iteration, the...

    The first time through the loop iteration, the output block hasn't been allocated yet. It checks for the allocation of the output block with the (!out) condition, allocates the output block using...
  29. Replies
    20
    Views
    985

    Welllll... kinda. It might look something like...

    Welllll... kinda. It might look something like this (pseudocode):

    gain = .2;

    out1 = allocate()
    out2 = allocate()

    for(int i=0; i<4; i++) {
    in = receiveWritable(i)
    for(int j=0;...
  30. Replies
    20
    Views
    985

    It's a logical error, not a compile time error. ...

    It's a logical error, not a compile time error.

    Think of it like this: when you call receiveWritable, you are taking possession of a piece of memory that is 128 samples long and 16 bits wide. Once...
  31. Replies
    20
    Views
    985

    Audio is processed in blocks of 128 samples, so...

    Audio is processed in blocks of 128 samples, so with a sample rate of 44.1kHz that means your code will be called once per 2.9 milliseconds. Your code needs to have only one occurrence of...
  32. Do you mean, it works in Windows but not Linux?...

    Do you mean, it works in Windows but not Linux? Seems like linux config would be the problem in that case, no?

    Also, if you are getting better frame rates in linux than windows, something is...
  33. Replies
    10
    Views
    507

    Well, best to understand the example that I...

    Well, best to understand the example that I linked to. But you could do something like this (pseudocode basically, will not compile):

    #include <Audio.h>
    #include <Wire.h>
    #include <SPI.h>...
  34. Replies
    10
    Views
    507

    Well, reading your idea (different playback...

    Well, reading your idea (different playback speeds) again, that sounds kinda similar to the granular effect, see here for example on it:...
  35. Replies
    10
    Views
    507

    At the current time, there is no way to just...

    At the current time, there is no way to just malloc() onto external RAM. The delay effect, for example, has a long duration version that is hard coded to use external RAM as the buffer. You can see...
  36. Replies
    4
    Views
    421

    If you are using the Arduino IDE, you don't need...

    If you are using the Arduino IDE, you don't need to #include the file, it will automagically compile it if it's in the same folder. See here for the sketch:...
  37. Replies
    15
    Views
    907

    That's a good catch too, I didn't realize he had...

    That's a good catch too, I didn't realize he had a conflicting Arduino vs Teensy situation happening.
  38. Replies
    15
    Views
    907

    You can: #define BUILTIN_SDCARD 254 Or: ...

    You can:

    #define BUILTIN_SDCARD 254

    Or:

    #include "Sd2Card.h"

    I suppose the examples are somewhat out of sync with the development that has occurred. Also, just in case it's not clear,...
  39. Replies
    15
    Views
    907

    The thing to keep in mind is that a well written...

    The thing to keep in mind is that a well written library will expose the exact same API (open, read, write, close, etc) no matter what interface (SPI, SDIO, built-in SD card or external) is being...
  40. Replies
    15
    Views
    907

    Beaten by defragster

    Beaten by defragster
  41. Replies
    10
    Views
    507

    That sounds very similar to what a user here was...

    That sounds very similar to what a user here was doing to create a chorus effect, his code is here: https://github.com/quarterturn/teensy3-ensemble-chorus

    He was using a fixed frequency LFO that...
  42. Replies
    4
    Views
    421

    https://github.com/PaulStoffregen/cores/blob/maste...

    https://github.com/PaulStoffregen/cores/blob/master/teensy3/usb_desc.h

    Starting on line 742. I don't have hardware sitting next to me to verify, but I speculate that you can use the name.c example...
  43. Replies
    26
    Views
    1,457

    The audio GUI currently does not have separate...

    The audio GUI currently does not have separate object definitions for the different I2S interfaces. So you would manually edit the generated code to do that, which is not a big deal.

    As long as...
  44. Replies
    26
    Views
    1,457

    You might want to post exactly what the issue is,...

    You might want to post exactly what the issue is, because it's almost certainly not too much for the T4. You would be surprised how powerful it is.

    But, anyway, you could connect I2S out from one...
  45. Replies
    233
    Views
    24,747

    Yep, I am well aware and have posted in it a few...

    Yep, I am well aware and have posted in it a few times. I'm not sure if development stalled, and the latest board files didn't make it to github. Hoping it's not dead though.
  46. Replies
    233
    Views
    24,747

    Oh, for sure. Ideally I would love a SOM style...

    Oh, for sure. Ideally I would love a SOM style module with a ton of castellated pads but I know that's not going to happen. :)

    19224

    But, when going dual core, it can't be overstated how...
  47. Replies
    233
    Views
    24,747

    Came across this board called Meadow F7 and...

    Came across this board called Meadow F7 and thought it was kind of cool. 16MB DRAM and 32MB flash on board, plus an ESP32 (which I could do without) in a Feather-like form factor. Imagine an 1170...
  48. Replies
    29
    Views
    1,582

    One quick hack you can do to increase the...

    One quick hack you can do to increase the performance is start with the Adafruit library, and change all the digitalWrite calls inside the write() function to digitalWriteFast. This cuts the SPI...
  49. Hi - sorry for reviving this old thread. Would...

    Hi - sorry for reviving this old thread. Would you elaborate on "a few more things to do in the initialization sequence due to odd looking color gradients"? I've been working with these IPS displays...
  50. Replies
    4
    Views
    354

    Hmm, that's encouraging actually. I had a thread...

    Hmm, that's encouraging actually. I had a thread with a very similar configuration and problem, but I moved onto other things before figuring it out.
Results 1 to 50 of 217
Page 1 of 5 1 2 3 4