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

Search:

Type: Posts; User: wcalvert

Page 1 of 3 1 2 3

Search: Search took 0.00 seconds.

  1. Replies
    38
    Views
    317

    All of the waveform definition and selection...

    All of the waveform definition and selection stuff needs to be moved out of the NoteOn function. The idea is you want to read your pots inside loop(), and if the selected waveform has changed, apply...
  2. Replies
    38
    Views
    317

    Hey no worries, to be honest I am learning a ton...

    Hey no worries, to be honest I am learning a ton hearing a musician's perspective, and voice stealing is something I really needed to address on my synth.

    The way I showed above is very naive...
  3. Replies
    38
    Views
    317

    Well, one thing first, I see your max release...

    Well, one thing first, I see your max release time is nearly 12 seconds which seems pretty high to me, but then again I don't know what's considered normal.

    The other thing, these oscillators...
  4. Replies
    38
    Views
    317

    That looks better. Yes, that would be a scope...

    That looks better.

    Yes, that would be a scope problem. The variables defined inside setup() are only in scope for that method, and once that method is finished executing, they're no longer in...
  5. Replies
    38
    Views
    317

    One minor thing, you might want to move the...

    One minor thing, you might want to move the declarations "Bounce *mybutton[]" and "AudioFilterStateVariable *myfilter[]" outside of your loop() method.
  6. Replies
    38
    Views
    317

    Glad I could help!

    Glad I could help!
  7. Replies
    38
    Views
    317

    Looking good... The next level is multiple...

    Looking good...

    The next level is multiple detuned oscillators per voice... that's on my todo list for my synth at some point.
  8. Replies
    38
    Views
    317

    idleVoices is an array of bools, so it's...

    idleVoices is an array of bools, so it's perfectly valid syntax. You don't need to explicitly type "if(idleVoices[i] == true)", the compiler knows what you mean.
  9. Replies
    38
    Views
    317

    Scroll down in my code, IdleCheck is listed...

    Scroll down in my code, IdleCheck is listed there. It deactivates the oscillators (sets the amplitude to 0) once the corresponding envelope has finished. Setting the oscillator amplitude to 0 saves...
  10. Replies
    38
    Views
    317

    bool idleVoices[12] = {1, 1, 1, 1, 1, 1, 1, 1, 1,...

    bool idleVoices[12] = {1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 };
    The "1" is very sloppy of me there. It should be "true" but I was just being lazy and my compiler doesn't seem to care.


    byte...
  11. Replies
    38
    Views
    317

    This is basically the system that I am using. It...

    This is basically the system that I am using. It does not allow note stealing. This code is edited a bit for clarity so there may be errors.


    bool idleVoices[12] = {1, 1, 1, 1, 1, 1, 1, 1, 1, 1,...
  12. Mutable Instruments has also open sourced their...

    Mutable Instruments has also open sourced their Yarns midi interface: https://github.com/pichenettes/eurorack/tree/master/yarns

    I haven't poked around the design yet but it could provide some...
  13. Kind of hard to parse your question, but if you...

    Kind of hard to parse your question, but if you trying to play .wav or .raw files with a Teensy, the answer is "yes, you can". See here for an example:...
  14. Replies
    3
    Views
    95

    The first thing to know is that audio is...

    The first thing to know is that audio is processed in blocks of 128 samples. So if a phase reset needs to occur in the middle of a block, let's say, it won't be possible to reset the phase until the...
  15. 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...
  16. Replies
    8
    Views
    253

    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...
  17. Replies
    4
    Views
    166

    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...
  18. 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...
  19. 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...
  20. Replies
    4
    Views
    166

    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...
  21. 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...
  22. 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...
  23. Replies
    5
    Views
    193

    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:...
  24. 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]) /...
  25. 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...
  26. Replies
    30
    Views
    1,392

    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...
  27. Replies
    102
    Views
    5,879

    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.
  28. 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.
  29. 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...
  30. 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...
  31. Replies
    102
    Views
    5,879

    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...
  32. 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...
  33. Replies
    102
    Views
    5,879

    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...
  34. Replies
    102
    Views
    5,879

    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...
  35. 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...
  36. Replies
    5
    Views
    326

    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...
  37. 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...
  38. Replies
    13
    Views
    446

    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...
  39. Replies
    22
    Views
    656

    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.
  40. Replies
    22
    Views
    656

    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.
  41. Replies
    13
    Views
    446

    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:...
  42. 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,...
  43. Replies
    11
    Views
    401

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

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

    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...
  46. Replies
    19
    Views
    1,007

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

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

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

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

    Oh wow, that is quite the library. Thanks for sharing that.
Results 1 to 50 of 105
Page 1 of 3 1 2 3