Search results

  1. T

    envelope without note off

    If you set sustain to 0, you can control the time that the envelope lasts using the attack, hold and decay parameters. This will be sufficient for bursts of sound, but without note off, doing sustained sounds isnt really possible.
  2. T

    Custom resonant variable filters

    There was a thread a little while back about porting moog ladder filter models to teensy, though I don't think there was ever a simple drag and drop moog filter object. https://forum.pjrc.com/threads/60488-Porting-moog-ladder-filters-to-audio-objects On my synth projects I have experimented...
  3. T

    Audio glitches when using ILI9341.

    Whenever I draw lots of shapes/text on the display, the audio glitches for a short moment. Context: I am using the ili9341 to display different menu screens, whenever I switch between menus the problem occurs. Switching menus involves drawing quite a lot of text (I have optimized clearing the...
  4. T

    Best cheap stereo headphone and line level dac?

    Here's my idea so far... Add a stereo potentiometer after the pt8211, this will increase the load of the headphones, and should maybe allow them to be driven by line level outputs meant for much larger loads? I'm still very much a beginner in electronics so if there is a better way to do this...
  5. T

    Best cheap stereo headphone and line level dac?

    Would using a trimmer pot to reduce the volume work perhaps?
  6. T

    Best cheap stereo headphone and line level dac?

    Thanks for the reply. The UDA1334A boards look interesting, but they all seem to be at line level - just using headphone jacks. When looking into headphone amplifiers they seem to be expensive and involve op-amp circuits which are way beyond me :) The audio board is seeming like my best option...
  7. T

    Best cheap stereo headphone and line level dac?

    I have been using the audio board but it is $22 in my country and I only need the stereo line and headphone out (not the SD card and flash memory). The pt8211 looked good but it looks like it is only meant for line level, is there a way to use headphones with the PT8211 - maybe using a...
  8. T

    Playing audio from PSRAM.

    I have managed to get it working but the cpu usage is very high. The cpu usage using program memory is ~35%, while when using psram, it is ~52%
  9. T

    Playing audio from PSRAM.

    I have recently purchased 2 psram chips and soldered them to my teensy 4.1. The memory test worked fine, however when I tried to use them in my program for audio - they didn't work. I was using them to store wavetables which I was playing back with the a modified version of the waveform object...
  10. T

    freeverb noise ?

    This is a big step up from freeverb - the fine controls look very nice as well. How is the processor usage? I always found that floats can be quite intensive even on the teensy 4.
  11. T

    freeverb noise ?

    I have had this problem also. Here are some things that helped for me. -Have a wet/dry control, If all the sound goes through the reverb you will get more noise, so have some of the dry sound mixed in. -Low pass filter on output of reverb. I used a state variable filter to lowpass filter the...
  12. T

    Crackling when Processor usage reaches 35%

    SOLVED !! The problem (which I still dont entirely understand) was to do with using output i2s and output usb at the same time. As per the instruction "At least one non-USB input or output object must be present for the entire library to update properly." I had added an output i2s object to my...
  13. T

    Crackling when Processor usage reaches 35%

    I overclocked my teensy 4 up to 816Mhz, This reduced the CPU load below 35%. So even use my all of my modifications, there was no crackling. Could having code in the loop() be perhaps causing this by interrupting the audio library?
  14. T

    Crackling when Processor usage reaches 35%

    Thanks for the suggestions mark, I have moved the switch outside of the loop as you suggested as well as slightly optimizing the oscillator sync. The crackling is still noticeable if I play a lot of notes as well as using 'oscillator sync' on more than 1 waveform. I just ran a test where i didnt...
  15. T

    Crackling when Processor usage reaches 35%

    No it doesn't crackle when using the original waveform object. Though I suspect this is because the modified one is more CPU heavy. I tested removing my edits to the waveform object and adding a pointless (but CPUintensive) calculation to it. The same crackling occurred then. I also tested by...
  16. T

    Crackling when Processor usage reaches 35%

    https://pastebin.com/AFwSNX0m This is the modified part of waveform object. It adds pulse width modulation and 'oscillator sync' to the arbitrary waveform. There are some added variables in the header for this as well. https://pastebin.com/tZhdcH4n These are the other audio objects in use. The...
  17. T

    Crackling when Processor usage reaches 35%

    I am working on a project with many audio objects, in situations where they are all active and the CPU usage rises significantly - the audio starts to crackle and pop. I have found that when the processor usage is below ~35% (using AudioProcessorUsageMax ) there is no crackling and the audio is...
  18. T

    Using integer math instead of floating point?

    This looks interesting mark, I think i saw some of this in paul's code for waveformMod, it really looks like something useful to learn. I will look into this and also the arm special instructions (with the really long function names).
  19. T

    Using integer math instead of floating point?

    Yeah the interpolated number does end up as an integer. I just don't know where to really start converting it all into integer math, because the interpolation is modular but the multiplier for the sample position isn't modular. I was thinking if i made tablepos an int, i could maybe rshift it to...
  20. T

    Using integer math instead of floating point?

    I'm using floating point math for interpolation through a wavetable, but it seems quite inefficient and requires converting ints to floats and vice versa. Is there a way to convert my code to work using only integers? case WAVEFORM_ARBITRARY: if (!arbdata) { release(block); if...
  21. T

    Large wavetables using waveform object.

    I have managed to modify the waveform object to work with wavetables - the only current problem is that the interpolation all uses floats, and the audio stream inputs are 16 bit ints. case WAVEFORM_ARBITRARY: if (!arbdata) { release(block); if (shapedata) release(shapedata); return...
  22. T

    Large wavetables using waveform object.

    I was doing the crossfading before and it worked well, I was just looking really for a way to modulate the table position using LFOs and envelopes. I was hoping to get the shape input to work as table position, but if there is a way to use the output from LFOs and envelopes in my arduino sketch...
  23. T

    Large wavetables using waveform object.

    I have managed to create wavetables containing ~5 waves by assigning them to seperate waveform objects and then fading between them. However this is starting to get quite CPU intensive for more waves. I have been trying to figure out the best way to adapt the waveform arbitrary code, to allow...
  24. T

    Settings waveform modulated phase.

    I'm quite new to c++, so I dont fully understand a lot of the code in waveformMod. I can't see a simple variable for the unmodulated phase, the only thing i was really able to identify was phasedata, which appears to store the current phase (including modulation). I don't really know how to go...
  25. T

    Settings waveform modulated phase.

    I dont think so, because phaseModulation is relative to the current phase I can't see a way of it being useful for setting an absolute phase value without knowing the current phase. Also, I am using the FM input for portamento, pitch bend and LFO modulation of the pitch.
  26. T

    Settings waveform modulated phase.

    I am trying to implement oscillator sync into my synth. The waveform class supports the phase(angle) function which would have been pretty essential but the waveformMod class doesn't seem to. Is there a way i could go about adding the phase(angle) function to the waveformMod class? It would also...
  27. T

    Amplitude Modulation with offset

    I would have the waveform object have an amplitude of 1. Have the lfo have an amplitude of 0.1 and an offset of 0.7. Use the multiply object (in the effects section) to multiply the 2 together. https://imgur.com/a/PPDJKv3 Ich hoffe das hilft dir :)
  28. T

    Question about waveform modulated.

    The code in waveform modulated is way beyond me :), i will try figure out what is actually going on before trying to implement a different kind of FM. Do you know what rshift and rshift rounded are?
  29. T

    Question about waveform modulated.

    Is phase modulation what i am looking for?
  30. T

    Question about waveform modulated.

    I have noticed that waveform modulated uses exponential FM, however i am interested in achieving linear FM. Is there a way to either modify the waveform modulated object to support linear FM, or to instead process the signal before it reaches the FM input, so that even if the signal is...
  31. T

    How to achieve linear FM with waveform modulated?

    I'm looking into creating an FM synth and have noticed that, while most FM synths use linear FM, the waveform modulated object uses exponential. Would there be a way of modifying the waveform modulated object perhaps to allow for linear FM. If it is as simple as modifying the frequency, would...
  32. T

    Best large memory solution for sampler?

    For the size of the samples, anything 10 seconds + would be great. As for the teensy, i have a 4 on hand, but i wouldn't mind using a 4.1 if it allowed for easy memory expansion. I'm thinking of using a modified version of playFlashRaw (I'm working on in/out points, variable speed and looping)...
  33. T

    Best large memory solution for sampler?

    I'm looking to make a sampler with multiple polyphonic samples. I'm hoping to have up to 12 different samples loaded at a time. My initial idea was to use an sd card to store the samples, then load them onto a flash chip when they are selected. for example, if a drum sample is chosen, the drum...
  34. T

    Teensy in a hacksmith video.

    Just watched the newest hacksmith video and saw that they used a teensy 3.6 to control a bionic arm. Not sure if this is the right forum for this - but I thought this was a pretty neat use of a teensy. https://youtu.be/L0esNg2ys_s?t=1046
  35. T

    Lots of midi inputs.

    I'm trying to use multiple different midi controllers on one teensy4. What is the best way to connect multiple different midi controllers to one teensy? I saw that you can use a usb hub to handle multiple midi inputs - would this still allow for differentiation of the different controllers...
  36. T

    Most practical way to use lots of audio inputs/outputs.

    Thanks for all the help, I think I have found a solution which uses much fewer audio rate channels. I'm going to try the satellite idea and have the satellites convert potentiometers and sliders to midi. That way, I will only really need maximum 4 audio rate channels per module (most likely only...
  37. T

    Most practical way to use lots of audio inputs/outputs.

    Could one of the teensy's analog output pins update at 192x the audio sample rate? if so, would it be possible to output a serial signal through the tx pin and then multiplex it when it arrives at the control box (separating all the channels), then use sample and hold ics to hold the output as...
  38. T

    Most practical way to use lots of audio inputs/outputs.

    I'm designing "control boxes" which act as the io for my teensy project. They have cv inputs and outputs as well as potentiometers and LEDs. The general idea is that I could connect multiple control boxes to one teensy, and it would use them to control various functions. For example one control...
  39. T

    Creating custom audio objects that are more similar to modular synth components.

    I was thinking to create an audio object to neaten up my code and audio graph. To implement all the types of synthesis my design needs would take a pretty complex node setup and program. For example, when making an 8 voice polysynth I pretty much had to make everything 8 times, the resulting...
  40. T

    Creating custom audio objects with many inputs/outputs.

    I have been working for some time on a polyphonic synthesizer, however I have been running into a lot of scalability issues due to some very spaghetti code and difficulty interfacing between my sketch and the audio library. A potential solution I have been considering is creating some custom...
  41. T

    Creating custom audio objects that are more similar to modular synth components.

    I have been working for some time on a polyphonic synthesizer, however I have been running into a lot of scalability issues due to some very spaghetti code and difficulty interfacing between my sketch and the audio library. A potential solution I have been considering is creating some custom...
  42. T

    using a power in teensy gui.

    I am trying to implement portamento to a synthesizer, the formula for doing so is (interpolating value) ^ ((semitone difference)/12). I am trying to use this with the waveformMod node and using an envelope to generate the interpolating value (between 0 and 1). However, i can't find a way to use...
  43. T

    Can i use an envelope output in code?

    I am currently using a dc signal and an envelope to create control signals. However, I need to use these in code and can't find a way to access them. I have tried using peak amplitude, but it seems to permanently just output either 0 or 1. Is there another way that i could use the output of the...
  44. T

    Crackling/Clicking noise when note is pressed down (Teensy 4 polyphonic synthesizer).

    whenever a note is pressed down there is a noticeable, but short, crackling noise. This same noise occurs whenever the note is taken off as well. An example: https://drive.google.com/file/d/1Mj9zz4CayzUUcvzXVu26WvS21D-KUJvl/view?usp=sharing Code seems to have been formatted weirdly on here so...
Back
Top