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

Search:

Type: Posts; User: quarterturn

Search: Search took 0.00 seconds.

  1. 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....
  2. 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...
  3. 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...
  4. 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...
  5. 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...
  6. 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...
  7. 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...
  8. 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...
  9. 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.
  10. 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)) +...
  11. 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.
  12. 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...
  13. 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...
  14. Replies
    12
    Views
    1,314

    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...
  15. Replies
    12
    Views
    1,314

    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....
  16. Replies
    12
    Views
    1,314

    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...
  17. Replies
    12
    Views
    1,314

    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...
  18. 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...
  19. Thanks, Paul. This explains why, under 1.6.1 and...

    Thanks, Paul. This explains why, under 1.6.1 and Teensyduino 1.21 I wasn't seeing any libraries. I was using an Arduino Leonardo, which is the same MCU as the classic Teensy but isn't 'teensy'...
  20. Teensyduino 1.21 + Arduino 1.6.1 Libraries Location?

    Why does the Teensyduino 1.21 install put selected libraries into ./Applications/Arduino.app/Contents/Resources/Java/hardware/teensy/avr/libraries/ vs ~/Documents/Arduino/Libraries? What about...
  21. Replies
    9
    Views
    2,372

    I think I have it properly working. At the start...

    I think I have it properly working. At the start of the adjust() function of SettingSetTime.h, I added a filling-in of the time array using breakTime, as follows:


    void adjust(int d) {
    ...
  22. Replies
    9
    Views
    2,372

    Thanks. I will give that a try tonight.

    Thanks. I will give that a try tonight.
  23. Replies
    9
    Views
    2,372

    OK, so as it stands in the 'Aurora' code, we...

    OK, so as it stands in the 'Aurora' code, we have:

    tmElements_t time; - the data type presumably from the time.h library

    and this allows us to reference units eg. time.Hour, time.Minute, etc......
  24. Replies
    9
    Views
    2,372

    Code is here:...

    Code is here: https://github.com/quarterturn/aurora

    I think it's way too much to paste here, but I will if you'd like.

    I guess I just don't understand what the time.h library is doing. I'll...
  25. Replies
    9
    Views
    2,372

    Teensy 3 Time Library question

    I am working to modify the "Aurora" code ( https://github.com/pixelmatix/aurora ), which is a program to provide animations and a clock on a 32x32 RGB LED matrix. I want to modify the code to use the...
  26. Replies
    11
    Views
    4,100

    I've looked around a bit online, and while there...

    I've looked around a bit online, and while there seem to be non-c/c++ examples of all sorts of filters, ie. Moog Ladder, 18-db/oct TB303, etc..., the math involved in understanding how they work to...
  27. Replies
    11
    Views
    4,100

    Feel free to use it as you wish. I've updated my...

    Feel free to use it as you wish. I've updated my github with a fixed version, where all four voices work and pitch bend is working (though it sounds bad, since for testing I used a +/- a full octave...
  28. Replies
    11
    Views
    4,100

    Thanks! Raising the audio buffers to 32 resolved...

    Thanks! Raising the audio buffers to 32 resolved the voice killing and the filter noise. I am very pleased with the performance.

    All that remains to fix is my pitch bend code. Once that's working,...
  29. Replies
    11
    Views
    4,100

    I've surrounded all my envelope and waveform...

    I've surrounded all my envelope and waveform changes with AudioInterrupts()/AudioNoInterrupts(), but the problem persists.

    I'll have to try the serial CPU debugging.

    It's got to be my code. If...
  30. Replies
    11
    Views
    4,100

    Teensy 3.1 Audio Library limits

    I'm using a Teensy 3.1 along with the audio board for purposes of creating a polyphonic soft synth. It is a "classic" subtractive achitecture of two waveforms, a filter, and finally an amplitude EG....
  31. I should note that a count of 8192 is actually...

    I should note that a count of 8192 is actually 1489 ms, not 1600 ms. A tenth of a second difference is not perceptible.

    I appreciate your involvement in minor details like this. The library, the...
  32. Good grief! I lost a left-shift! effec_envelope.h...

    Good grief! I lost a left-shift! effec_envelope.h private milliseconds2count needs to look like this:

    private:
    uint16_t milliseconds2count(float milliseconds) {
    if (milliseconds < 0.0)...
  33. I've played with this some more, it's not right....

    I've played with this some more, it's not right.

    In noteOn, the attack increment is calculated as:
    inc = (0x10000 / count ) >> 3;

    so, milliseconds2count can't ever return more than 8192, since...
  34. Thanks for the reply! I made the following...

    Thanks for the reply!

    I made the following change to effect_envelope.h:

    private:
    uint16_t milliseconds2count(float milliseconds) {
    if (milliseconds < 0.0) milliseconds = 0.0;
    uint32_t c...
  35. examine the attack phase: attack_count gets set...

    examine the attack phase:
    attack_count gets set in void AudioEffectEnvelope::noteOn(void)

    defined in effect_envelope.h:
    void attack(float milliseconds) {
    attack_count =...
  36. Ah, I didn't see the last part of the...

    Ah, I didn't see the last part of the documentation - there it is!

    I'll look the the source some more and try to see why it's limited to 200 ms.

    The fade stuff is not desirable for an ADSR,...
  37. Teensy 3.1 Audio Library - Envelope limited to 1000 ms?

    I've been testing the Teensy 3.1 audio library and find that the envelope object doesn't seem to respond to A, D, or R values greater than 1000 ms, perhaps even a bit shorter.

    In my example code...
  38. Replies
    1,286
    Views
    474,416

    I see a few pages back someone was developing a...

    I see a few pages back someone was developing a 24 db/oct audio lowpass filter. Has anyone implemented a Teensy 3.x-specific filter (lowpass or multimode) capable of self-oscillation at high...
  39. Replies
    0
    Views
    1,567

    high-rez NTSC out on Teensy 3.1

    Now that we have 64 KB RAM with the teesy 3.1, has anyone considered doing a high-rez tvout library? 640 x 240 is doable where overscan is limited and provides an 8x10 character cell, enough for...
Results 1 to 39 of 39