Search results

  1. T

    AudioSynthWaveformModulated pk-pk values?

    with amplitude(1.0), what is the pk-to-pk limits of the various waveforms? WAVEFORM_BANDLIMIT_SAWTOOTH WAVEFORM_BANDLIMIT_PULSE WAVEFORM_TRIANGLE_VARIABLE It looks like the levels for the flat parts of WAVEFORM_BANDLIMIT_PULSE lower than for WAVEFORM_PULSE because of there is more head room...
  2. T

    Purpose of Q1 on Teensy 4.1?

    Oh!!! That makes sense! Thanks!
  3. T

    Purpose of Q1 on Teensy 4.1?

    MarkT, thanks. That's what I figured. I just wanted to make sure there wasn't some other reason. I suppose it will essentially do the same thing with the source as the input as soon as the input gets above the gate-to-source turn on voltage. The turn on voltage will be different, though...
  4. T

    Purpose of Q1 on Teensy 4.1?

    What is the purpose of Q1? A high-side pass transistor would normally be wired from source to drain with a control signal on the gate, right? This one seems to be wired from drain to source. Maybe it does the same forward and backwards?
  5. T

    Teensy 4.0 integration to PCB

    just in case you haven't seen this... https://www.pjrc.com/store/ic_mkl02_t4.html ...it might help.
  6. T

    Dynamic Range Compressor new class library. I wish to share.

    I'm trying to get it to work, but can't seem to get audio out. Maybe I'm just not getting how to connect it. it has 3 inputs: INPUT (port 0), SideChainA (port 1), and SideChainB (port 2). as far as i can tell from the code, the input is only used if the compressor is not enabled. If the...
  7. T

    AudioEffectsDelayStereo_F32

    I figured the t*t had to be something like that. Thanks. I'm still decoding the second part, but I'll get there--eventually :) Thanks
  8. T

    AudioEffectsDelayStereo_F32

    First i'd like to say, this library is really cool! here's a link to the github (in case you haven't seen it) https://github.com/hexeguitar/hexefx_audiolib_F32 But I have a couple of questions regarding the AudioEffectsDelayStereo_F32. 1st question: why in time() does it square "t"? void...
  9. T

    4.1 USB Host connected to 3.2 USB Device Problem?

    I have a Teensy 4.1 based, USB MIDI Host Synthesizer that I'm controlling with a NuEVI (or NuRAD) USB device midi controller. The NuEVI and NuRAD controllers are based on Teensy 3.2. These controllers have internal batteries as does my USB MIDI Host Synth. Problem: when I run the Host Synth on...
  10. T

    how to modulate Pulse Width across shape input 1.0 "boundary"?

    I think I can probably modify synth_waveform.cpp AudioSynthWaveformModulated::update(void) the section here... case WAVEFORM_PULSE: if (shapedata) { magnitude15 = signed_saturate_rshift(magnitude, 16, 1); for (i=0; i < AUDIO_BLOCK_SAMPLES; i++) {...
  11. T

    how to modulate Pulse Width across shape input 1.0 "boundary"?

    Thanks for the response. I'm looking for a solution that can be in the signal chain between the sine wave and the "Shape" input to the pulse wave. This way, it can do this at audio rates or at least at high LFO rates.
  12. T

    how to modulate Pulse Width across shape input 1.0 "boundary"?

    I'm trying to modulate the pulse width across the "boundary" of the Shape input. That is, the Shape input to the waveformMod can be between -1.0 to +1.0. from my testing I've found that when Shape = 0.0, the duty cycle is 50%, when Shape = -0.9, the duty cycle is 90% (hi 90% of the time), and...
  13. T

    Dynamic Range Compressor new class library. I wish to share.

    Would you consider the license of this code to be as permissive as the "MIT" type of license that all of the pjrc code has on it?
  14. T

    Arduino Maker Workshop Extension with Teensy?

    Has anyone used the Arduino Maker Workshop Extension with Teensy libraries and loader? I'm wondering if I would be able to keep my existing Arduino IDE environment a long side this or not. Here is a youTube video describing it. Arduino Maker Workshop Extension for Visual Studio Code
  15. T

    Floating-Point Audio Library Extension

    It sounds great now--no clicks at all. I had oscillator at 0.04 because it was super loud into a pair of old apple earbuds (i mistakenly had it at 1.0 first and OUCH!)-- I should have changed sgtl5000_1.volume(0.80) down instead. Anyway, thank you so much for this! It really solved a the...
  16. T

    Floating-Point Audio Library Extension

    Wow! thanks! that was fast! The tails are coming through now. There is still a click when the note off happens if the tails are still ringing. Also, I haven't tried it but will the spring reverb also have this same issue?
  17. T

    Floating-Point Audio Library Extension

    Hopefully I'm in the right place to ask this question. I'm trying to get AudioEffectPlateReverb_F32 working. I've got a small design that starts with oscillators and envelopes in I16 space and sends it through the converters to F32 space, through the reverb (verb_F32) and then back through a...
  18. T

    freeverbs noisy 'tails' on Teensy 4.1 with TEENSY4_AUDIO board electronics

    The freeverbs module output seems to have quantization noise in it. The left channel seems worse than the right channel. I've made a small sketch (attached) to show the problem I'm having (diagram below). The sketch plays a short sine wave note at 440 waits a few seconds and repeats. Every...
  19. T

    super loud click when reprogramming Teensy 4.1 with Audio board.

    I found a work around--probably not necessary, but it was a challenge to figure it out... // in control_sgtl5000.h // in public area #define SGTL5000_CHECK_PWRON_DEFAULT unsigned int read_b4_enable(unsigned int reg); // ws, added to avoid enabling twice after exting bootloader // in...
  20. T

    super loud click when reprogramming Teensy 4.1 with Audio board.

    Yeah, not wearing the hp is the easy solution (well assuming I can remember to do that when i'm deep in some iteration of another problem :) ). It is definitely happening when the code calls sgtl5000_1.enable(), because I've isolated it with delays. I've have determined it happens because the...
  21. T

    super loud click when reprogramming Teensy 4.1 with Audio board.

    If someone happens to have headphones in their ears when they update the software, they get a very loud surprise--it's quite painful. I know now not to have my headphones in when I update, and I'd put a warning message in with every unit i'd ship to someone. However, people do forget/ignore...
  22. T

    super loud click when reprogramming Teensy 4.1 with Audio board.

    I'm getting a really loud click out of the headphone jack after I load a new sketch into the Teensy 4.1 with Audio Shield board (circuitry). I have duplicated the circuitry of the TEENSY4_AUDIO (revD) on my custom board. Unfortunately I don't have an actual TEENSY4_AUDIO shield to try. I only...
  23. T

    4X Oversample for AudioFilterStateVariable

    I changed filter_variable.cpp and filter_variable.h (attached) to add an option for 4X Oversampling (instead of just 2x). ( #define OVERSAMPLE_4X in filter_variable.h which can be commented out to put the code back to the way it was.) This allows the filters to have a q of as low as 0.5 while...
  24. T

    Teensy 4.1 USBHost Audio In/Out

    Well, I did some more google searches and found this... https://forum.pjrc.com/threads/53751-Teensy-USB-Host-Audio ...which is now several years old. Perhaps someone has a solution now?
  25. T

    Teensy 4.1 USBHost Audio In/Out

    Can anyone point me to some example code that uses a Teensy 4.1 with an Audioshield that can send/receive audio to/from the USBHost port? I can get the audio going in/out of the usb device connector, (the micro usb connector on the teensy 4.1--which isn't what I want), but I can't see any way to...
  26. T

    EWI mouthpiece with breath and bite (lip pressure) sensors

    Hi JohnEVI, What is a "powerboard case"?
  27. T

    AudioFilterStateVariable unwanted noise

    actually, I had to change fmult max to: if (fmult > 2965372) fmult = 2965372; // fmult <= 0.7, to allow q to go down to 0.5 instead of 0.7 This means with 4x oversampling Fc max is about 20kHz.
  28. T

    AudioFilterStateVariable unwanted noise

    I've made a couple more hacks to this so it works better for my purposes: 1. I changed void AudioFilterStateVariable::update_variable to use 4x oversampling instead of just 2x; old 2x code snippet: (starting around line 147 in filter_variable.cpp) // now do the state variable filter as...
  29. T

    AudioFilterStateVariable unwanted noise

    Ok, so after analyzing filter_variable.cpp, I fixed the problem with the noise. I made a couple of changes to filter_variable.cpp First, I uncommented line 42 to define IMPROVE_HIGH_FREQUENCY_ACCURACY next I changed line 133 from: if (fmult > 5378279) fmult = 5378279; to: if (fmult >...
  30. T

    AudioFilterStateVariable: why is the code written twice?

    Thanks Paul. Do you think this will help with the harsh noise that happens with this filter? See the following thread... https://forum.pjrc.com/threads/67358-AudioFilterStateVariable-unwanted-noise
  31. T

    AudioFilterStateVariable: why is the code written twice?

    Hi MarkT, I did finally see that it was 2x over sampled, but I figured it would just adjust the parameters accordingly and run the simpler code. But the musicdsp.org site had some more explanaitions. Thanks for the response.
  32. T

    AudioFilterStateVariable unwanted noise

    Apparently, there is a limit to the F after the calculation F = Fcenter*2^(signal*octaves). in void AudioFilterStateVariable::update_variable(const int16_t *in, const int16_t *ctl, int16_t *lp, int16_t *bp, int16_t *hp) ... if (fmult > 5378279) fmult = 5378279; fmult = fmult << 8; ...
  33. T

    AudioFilterStateVariable: why is the code written twice?

    Ok. I found some explanations here... https://www.musicdsp.org/en/latest/Filters/92-state-variable-filter-double-sampled-stable.html#state-variable-filter-double-sampled-stable the extra code boils down to trying to make the filter more stable.
  34. T

    AudioFilterStateVariable: why is the code written twice?

    I've been looking through the code for the AudioFilterStateVariable (...\Arduino\hardware\teensy\avr\libraries\Audio\filter_variable.cpp), trying to understand the filter better. the part that does the state variable filter ("Chamberlin Filter") looks like it has the filter coded twice (sort...
  35. T

    AudioFilterStateVariable unwanted noise

    I'm getting a raspy noise from the AudioFilterStateVariable under certain conditions. (I'm using a Teensy 4.1 with TEENSY4_AUDIO adapter board). when the combination of the freq control input, frequency(freq) and resonance(.707) push the filter parameters out of wack the filter outputs a awful...
  36. T

    triangle & sawtooth oscillators : how to deal with aliasing ?

    Thanks MarkT, for the information. It looks like the difference is just 4 files (3 changed files and one new file). data_bandlimit_step.c keywords.txt synth_waveform.cpp synth_waveform.h I can just put these in ..Arduino\hardware\teensy\avr\libraries\Audio changed my project to use...
  37. T

    triangle & sawtooth oscillators : how to deal with aliasing ?

    Has this bandlimited version been incorporated yet? If so, how might one get it installed? (i'm new to this, so forgive naive question.) thanks, tim.
  38. T

    USB Host on teensy 4.1, doesn't receive midi from EWI 5000 usb

    SOLVED the problem: I found another post someone solved a similar problem. I just had to use: MIDIDevice_BigBuffer midi_ho(myUSBHost); instead of: //MIDIDevice midi_ho(myUSBHost); I had used a USB sniffer program to look at the usb packets and noticed that some were 512 long, so that was it...
  39. T

    USB Host on teensy 4.1, doesn't receive midi from EWI 5000 usb

    I'm able to get my teensy 4.1 usb host to receive midi from a keyboard controller (12Mbits/sec), But I can't get it to receive midi from my EWI 5000 through it's usb connection. the EWI 5000 is 480 Mbits/sec. The EWI 5000 works fine with other hosts like Windows 10 or an iConnectMIDI. (e.g...
Back
Top