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

Search:

Type: Posts; User: quarterturn

Page 1 of 2 1 2

Search: Search took 0.00 seconds.

  1. Replies
    11
    Views
    300

    Thanks! I think actually COUNTS_PER_LFO should be...

    Thanks! I think actually COUNTS_PER_LFO should be 200 to get the slow part of the LFO to be 0.6 Hz and the fast part (which is 20x faster than the slow) to be 6.0 Hz. I just tried it and it does...
  2. Replies
    11
    Views
    300

    Great! Please share here so I can add it to my...

    Great! Please share here so I can add it to my repo.
  3. Sigh. Nope it was not the array of pointers. I...

    Sigh. Nope it was not the array of pointers. I re-wrote it with case statements and it still doesn't work. OK I will see if my 4-voice code works with 8 voices. I'd be satisfied with that.
  4. I went around commenting-out and bypassing things...

    I went around commenting-out and bypassing things and couldn't make it work so I went back to my 4-voice synth (which I know works, added in the balibrary.h, swapped in the WM8731, added my ensemble...
  5. troubleshooting code which crashes before setup()

    I have code here: https://github.com/quarterturn/teensy3-string-machine/tree/master which compiles with no errors on Arduino 1.8.8 yet apparently crashes on my Teensy 3.6. I can't get a...
  6. Replies
    11
    Views
    300

    Glad you like it! I will change BUFFER_SIZE to...

    Glad you like it! I will change BUFFER_SIZE to something like ENSEMBLE_BUFFER_SIZE. The LFO rate is determined by COUNTS_PER_LFO, which essentially tells the update method how many interrupts to skip...
  7. Replies
    8
    Views
    481

    Thanks! It works as above for me, I just had some...

    Thanks! It works as above for me, I just had some other mistake upstream which was tripping up the compiler.
  8. Replies
    8
    Views
    481

    Did you ever get this working? I'd like to do 16...

    Did you ever get this working? I'd like to do 16 voices and would love to not have to use a huge case statement for doing stuff to voices and envelopes.

    If it works for you, can you please show...
  9. Is there a decent 3D graphics library suitable...

    Is there a decent 3D graphics library suitable for the T3/T4? My needs are simple - just wireframe with hidden line removal. I'd be outputting to a vector generator running an XY display.
  10. Replies
    11
    Views
    300

    try just this: // Audio Connections...

    try just this:
    // Audio Connections
    AudioConnection patchIn(i2sIn,0, ensemble, 0); // route the input to the ensemble
    AudioConnection patchOut0(ensemble, 0, i2sOut, 0); // connect the...
  11. Replies
    11
    Views
    300

    Yes audio.h just has the include.

    Yes audio.h just has the include.
  12. Replies
    11
    Views
    300

    Did you replace audio.h? Also double-check the...

    Did you replace audio.h? Also double-check the patch settings. You might want to try taking i2sin straight to ensemble and then right to i2sout.
  13. Replies
    19
    Views
    841

    OK I have replaced the offset with the float...

    OK I have replaced the offset with the float divide by three and tweaked the LFO. I also added "stereo" by shifting the other channel LFO phase by 90 degrees.

    It sounds VERY lush now! I'm still...
  14. Replies
    19
    Views
    841

    I tried writing back to the block (having...

    I tried writing back to the block (having declared it as writeable) but couldn't get it to work, but I'll revisit it.

    I'm pretty sure it sounded louder with the constant in testing but logically I...
  15. Replies
    19
    Views
    841

    1. I'm new to this, saw it elsewhere in an audio...

    1. I'm new to this, saw it elsewhere in an audio lib and it seemed to work. I will look into memset though.
    2. Maybe, though I need 512 bytes for the effect and a block is only 128, right?
    3. I...
  16. Replies
    19
    Views
    841

    I've got a modulated chorus, it may help to have...

    I've got a modulated chorus, it may help to have a look: https://github.com/quarterturn/teensy3-ensemble-chorus. My screwup was failing to wrap around both ways for the index offset of the delay tap...
  17. Super! I would love to see some vector games done...

    Super! I would love to see some vector games done with the XY data sent to the DACs and maybe Z or RGB sent to a simple 4-bit ladder DAC. Not sure how easy or hard this is, I know I can't do the...
  18. Replies
    11
    Views
    300

    String Ensemble Chorus Effect created!

    Here's my first working version of a String Ensemble Chorus: https://github.com/quarterturn/teensy3-ensemble-chorus

    It's an emulation of the triple-delay modulated 120 degrees out of phase with a...
  19. Since I'm getting a null, I tried using this code...

    Since I'm getting a null, I tried using this code from effect_freeverb.cpp to give it values:


    block = receiveWritable(0);
    if (!block)
    {
    block = &zeroblock;
    }

    This...
  20. Ah yep, it's null. I can take a working example...

    Ah yep, it's null. I can take a working example like the one below, substitute 'ensemble' for 'reverb' and get a null


    /*************************************************************************
    ...
  21. It crashes right at the block->data[i] = ......

    It crashes right at the block->data[i] = ... line. I had it surrounded with Serial.print statements and it only printed the one before.
  22. I've re-written my code and it should be making...

    I've re-written my code and it should be making sense for processing blocks in and out of a ring buffer. Anyhow, not working - I'm going out to lunch when I try to load the combined delay offset data...
  23. I don't think my code is right for block...

    I don't think my code is right for block processing. I need to study effect_chorus.cpp more.
  24. Yeah it's an artifact of initially doing it...

    Yeah it's an artifact of initially doing it backwards ie. doing the modulation on the input pointer and keeping the output steady. Thanks for pointing it out, I will fix it.
  25. Welp here's my first attempt:...

    Welp here's my first attempt: https://github.com/quarterturn/teensy3-ensemble-chorus

    It does not work. The freeverbs code checks that the input block got something from receiveReadOnly(), so I use...
  26. Same error, unfortunately.

    Same error, unfortunately.
  27. Where should my LFO table go? I was using...

    Where should my LFO table go? I was using something like this with the due in lfo.h:


    const PROGMEM int LFO_TABLE[]=
    {
    0,
    1,
    2,
    3,
    ...
  28. This has been very helpful. I should have a...

    This has been very helpful. I should have a working library soon!
  29. Aha in the freeverb code I see: block =...

    Aha in the freeverb code I see:


    block = receiveReadOnly(0);

    I guess I'd just allocate another block for channel 1. Is there a way to know how many channels are available?
  30. I'm looking over effect_freeverb.cpp in section...

    I'm looking over effect_freeverb.cpp in section void AudioEffectFreeverbStereo::update()

    I'm confused that there's only one block pointer for the input:


    #if defined(__ARM_ARCH_7EM__)
    const...
  31. Thanks! So looks like each block I just run...

    Thanks!

    So looks like each block I just run 128 iterations of the per-interrupt code and then pass on the completed block. Got it. I was updating my wavetable pointer every 100 interrupts so...
  32. getting started with library writing - samples vs blocks and AUDIO_BLOCK_SAMPLES

    I'd like to translate my Arduino Due 'string ensemble chorus' effect to an Audio Library-compatible library, but I could use a few pointers.

    First, my Due code deals with samples as they come in...
  33. Replies
    27
    Views
    1,138

    DOH! I figured it out! I was not accounting...

    DOH! I figured it out!

    I was not accounting for the LFO wrapping the buffer index BACKWARDS! I have corrected that, and now it works!

    I'll be doing further commits as I tweak the LFO waveform....
  34. Replies
    27
    Views
    1,138

    If I don't offset the output indexes with the...

    If I don't offset the output indexes with the LFO, it's silent. If I allow it to add the offsets but keep them static, it's silent. Hmm... maybe the noise comes from discontinuous jumps in the LFO...
  35. Replies
    27
    Views
    1,138

    The timer code returns "time = 5 us", so at least...

    The timer code returns "time = 5 us", so at least I'm not overrunning the interrupt. Every 200 interrupts it advances the LFO indexes, but it's only a few lines of code which doesn't do much. I've...
  36. Replies
    27
    Views
    1,138

    Here's a link to a quick video demo:...

    Here's a link to a quick video demo: https://youtu.be/trdEuEkJ5kU

    I used my Casio MT-600, since it's battery operated and easy to get close to my code desk. I chose the driest preset it has, which...
  37. Replies
    27
    Views
    1,138

    Have a look at the latest code:...

    Have a look at the latest code: https://github.com/quarterturn/due_ensenble_chorus/tree/master/chorus_test. If you ignore the Due-specific stuff you should easily get it working on a Teensy. It's now...
  38. Replies
    27
    Views
    1,138

    No doubt the audio shield would sound better, as...

    No doubt the audio shield would sound better, as would using floating point to update the delay time each sample, vs having to stretch it out to avoid a very large wavetable. The PedalShield does...
  39. Replies
    27
    Views
    1,138

    As promised, here's my attempt:...

    As promised, here's my attempt: https://github.com/quarterturn/due_ensenble_chorus

    It is not working well - there's a TON of noise and aliasing. This may well be down to the Due plus PedalShield...
  40. Replies
    27
    Views
    1,138

    It looks like it is varying a pointer offset to...

    It looks like it is varying a pointer offset to the audio block from 0 to delaytime and back down. It is like a triangle wave. It takes the delay offset to the pointer and sums the sample data from...
  41. Replies
    27
    Views
    1,138

    If I get it working I'll certainly post a...

    If I get it working I'll certainly post a follow-up. I will probably start from scratch and not use the audio library though.
  42. Replies
    27
    Views
    1,138

    Hopefully COd3man will update. In the...

    Hopefully COd3man will update.

    In the meantime, I will try it the "hard way" which is to create a wavetable in setup() something like:


    2+sin(((2.0*pi)/samples)*index)) +...
  43. Replies
    27
    Views
    1,138

    It would be COd3man's code linked in this post:...

    It would be COd3man's code linked in this post: https://forum.pjrc.com/threads/56532-Modulated-Delay-Chorus-Flanger. I haven't tried it myself.
  44. Replies
    27
    Views
    1,138

    Ah yes - looks like delay does not play nice with...

    Ah yes - looks like delay does not play nice with continually updating the time parameter. That's too bad. I have an Electrosmash Pedalshield lying around, I should get another Due for it and look...
  45. Replies
    27
    Views
    1,138

    string ensemble chorus - anyone try it?

    I want a good string ensemble chorus sound without resorting to expensive implementations of actual BBD circuits. It should not be hard, I think. Here is what is needed at a high level:

    0.6 Hz and...
  46. Replies
    12
    Views
    1,405

    I swapped the 2.2 uF caps with 1k resistors (they...

    I swapped the 2.2 uF caps with 1k resistors (they were the only 0603 parts I had). Here's the results:

    The 'dc' object is really just meant to provide evelope control inside the audio library. Yes...
  47. Replies
    12
    Views
    1,405

    Thanks Paul. I plan on using a buffer-amp circuit...

    Thanks Paul. I plan on using a buffer-amp circuit found here in the forums (it's from a Mutable Instruments module) to get the CV to the +/- 10V range needed by the rest of the analog circuitry....
  48. Replies
    12
    Views
    1,405

    I'm trying to keep the analog output under...

    I'm trying to keep the analog output under control of the Audio Library. I guess I'll have to hook the SGTL5000 up to a DC source in the designer and see what it does. Certain things like resonance...
  49. Replies
    12
    Views
    1,405

    SGTL5000 for DC control voltage output

    Can the SGTL5000 be used like a regular DAC with regards to just staying at a certain voltage if desired? I would like to use it for modular synth control voltage (CV). Just want to make sure it's...
  50. I'll see if I can re-assemble my Teensy 3.x MIDI...

    I'll see if I can re-assemble my Teensy 3.x MIDI setup and try this.

    Did anything get updated since with the lowpass filter behavior? I see to recall there was an issue with high cutoff frequency...
Results 1 to 50 of 71
Page 1 of 2 1 2