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. Replies
    360
    Views
    40,916

    It sounds like you're making a Daisy-style...

    It sounds like you're making a Daisy-style board... very intriguing.
  2. Replies
    360
    Views
    40,916

    The T4 MM would go into my custom hardware. I...

    The T4 MM would go into my custom hardware. I want to be able to position the USB host and device connectors and uSD connector wherever I want, and use whichever connector style I want. That can be...
  3. Replies
    360
    Views
    40,916

    True, I had forgotten about the supply strain on...

    True, I had forgotten about the supply strain on the bootloader chips. I suppose there's still hope :)
  4. Replies
    360
    Views
    40,916

    I didn't anticipate the T4 MicroMod to actually...

    I didn't anticipate the T4 MicroMod to actually be manufactured by sparkfun. The radio silence since the git commits and blog posts in October could indicate one or both parties lost interest, or...
  5. Replies
    360
    Views
    40,916

    Do you anticipate certain issues due to the...

    Do you anticipate certain issues due to the density? My eyes are still good enough to solder it.
  6. Replies
    360
    Views
    40,916

    I really like the idea of a T4 MicroMod and hope...

    I really like the idea of a T4 MicroMod and hope that it sees the light of day. :)
  7. Replies
    16
    Views
    1,280

    Here's how I adapted the Mutable Instruments...

    Here's how I adapted the Mutable Instruments envelopes to work with the Audio library: https://gist.github.com/wcalvert/2a5b5f1c9d0d4066cab27fa6ac526a60

    I started with Pichinette's python code to...
  8. Replies
    1
    Views
    124

    Sounds awesome, great job!

    Sounds awesome, great job!
  9. Replies
    3
    Views
    136

    The Audio library is heavily dependent upon the...

    The Audio library is heavily dependent upon the specific microcontrollers that are used in the different 3.x and 4.x boards, and doesn't support any 8 bit chips.

    The Mozzi project does support 8...
  10. Aha, thank you Paul.

    Aha, thank you Paul.
  11. Could anyone explain the 0 ohm jumper and the...

    Could anyone explain the 0 ohm jumper and the address jumpers on the updated 4.x CS42448 PCB? Without a schematic I'm not sure of their intended usage.
  12. Replies
    360
    Views
    40,916

    The first requirement is that an RTOS would need...

    The first requirement is that an RTOS would need to be ported/supported fort the 1170 and (possibly?) integrated into Paul's Arduino implementation. Then you would be able to create tasks and assign...
  13. Thread: Please help

    by wcalvert
    Replies
    1
    Views
    230

    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.
  14. Replies
    42
    Views
    5,391

    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.
    ...
  15. Replies
    1
    Views
    339

    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...
  16. 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...
  17. Replies
    5
    Views
    390

    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...
  18. 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...
  19. 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...
  20. Replies
    2
    Views
    375

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

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

    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...
  22. 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...
  23. 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.
  24. Replies
    1
    Views
    282

    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...
  25. 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...
  26. 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.
  27. 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...
  28. Replies
    9
    Views
    673

    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,...
  29. 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.
  30. 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...
  31. Replies
    82
    Views
    12,122

    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.
  32. Replies
    9
    Views
    673

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

    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:...
  34. Replies
    4
    Views
    368

    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...
  35. Replies
    4
    Views
    368

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

    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...
  37. 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
  38. Replies
    3
    Views
    347

    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.);...
  39. Replies
    28
    Views
    1,558

    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.
  40. Replies
    28
    Views
    1,558

    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...
  41. Replies
    28
    Views
    1,558

    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;...
  42. Replies
    28
    Views
    1,558

    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...
  43. Replies
    28
    Views
    1,558

    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...
  44. 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...
  45. Replies
    10
    Views
    698

    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>...
  46. Replies
    10
    Views
    698

    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:...
  47. Replies
    10
    Views
    698

    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...
  48. Replies
    4
    Views
    546

    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:...
  49. Replies
    15
    Views
    1,355

    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.
  50. Replies
    15
    Views
    1,355

    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,...
Results 1 to 50 of 229
Page 1 of 5 1 2 3 4