Search results

  1. L

    Memory usage on teensy 3.6 [replacing AudioSynthWavetable::instrument_data in memory]

    Trying to dig into options, I guess the solution might be if there is a sensible way to get the instrument to play from SPI memory
  2. L

    Memory usage on teensy 3.6 [replacing AudioSynthWavetable::instrument_data in memory]

    It would be easy to implement, and that was the direction I was going, problem is that the instrument is currently stored in flash which is read only, so I cannot over right. I can get it to load into ram (not a lot of work), but there is only 256KB of ram vs 1MB of flash, and that is borderline...
  3. L

    Memory usage on teensy 3.6 [replacing AudioSynthWavetable::instrument_data in memory]

    I'm in the process of building an electric piano controller using the synth_wavetable library and a teensy 3.6 The problem right now is to figure out how to be able to replace instruments in memory, as there is not enough memory available for multiple instruments. From what I see the...
  4. L

    Compatibility between Wavetable-Synthesis and teensy audio library

    I modified the library to do exponential attenuation on Delay and Release per the Soundfont spec. Modified code can be found in my fork of the Audio library in case there is interest in pulling it into mainline or someone else wants to use it (not sure how to suggest a change to the library...
  5. L

    Lowering electromagnetic noise for audio recording via microphone and cable

    It really depends on the microphone you are using, but most microphones have a pretty high output impedance which makes the line to the receiver a great antenna for noise. The best options are usually to add a transistor or opamp as close to the mic as possible to reduce output impedance and...
  6. L

    Compatibility between Wavetable-Synthesis and teensy audio library

    I dug deeper 1. had a look at mac's garage band, different instrument, but also shows similar behavior to fluidsynth 2. BTW, fluidsynth and garage band show an exponential decay behavior (linear in dB domain), the behavior of synth wavetable is linear in the amplitude domain (logarithmic in dB...
  7. L

    Compatibility between Wavetable-Synthesis and teensy audio library

    Everything runs and plays now, the problem is that it does not play correctly. The amplitude decays incorrectly. I attached the output from the WavetableSynth (left) and Fluidsynth (right), both for middle C on the same sound font file, plot is of waveform in dB Any ideas where to start to...
  8. L

    ADC library conflicts with Audio library dac output

    That is what I resorted to at the moment, the only thing is that it does not allow me to control any settings not the dac (number of bits, conversion speed and averaging). Thanks
  9. L

    Compatibility between Wavetable-Synthesis and teensy audio library

    Thanks, seem to work, will test farther tomorrow (had a busy weekend). The one comment, is that I think that my comment regarding using 100 instead of 1000 in get_timecents_value still holds. Basing subjectively on how the piano sounds as well as objectively on how FluidSynth plays the same...
  10. L

    ADC library conflicts with Audio library dac output

    Not trying to do analogRead with AudioInputAnalog. Trying to do analogRead with the ADC and output to the dac with Audio lib Very simple, this works: #include <Audio.h> AudioSynthWaveformSine sine; AudioOutputAnalogStereo dacs; AudioConnection patchCord1(sine, 0, dacs, 0)...
  11. L

    Compatibility between Wavetable-Synthesis and teensy audio library

    I also think that under the get_timecents_value function in the same file it should read val = gen.cents * 100.0 if gen else default instead of val = gen.cents * 1000.0 if gen else default matches what I would expect cents to mean and decay time sounds correct now
  12. L

    Compatibility between Wavetable-Synthesis and teensy audio library

    Ok, I hope that this link will have a shelf life of more than two days (some changes at work that may invalidate it), these updates to decoder.py will make the output work with the new changes https://www.dropbox.com/s/up2fccatyfai5fr/decoder.py?dl=0
  13. L

    Compatibility between Wavetable-Synthesis and teensy audio library

    I just went through your post again and it does seem like the same problem. There were a bunch of naming changes at some point it seems. I tested this with teensyduino 1.44 After a lot of work I got it to work. I'm using the python version from git (on a Mac), hosted here...
  14. L

    Compatibility between Wavetable-Synthesis and teensy audio library

    I have been using Wavetable-Synthesis for a project and it seems to have broke with the recent update. It looks like large parts of it have been incorporated into the teensy audio library (in synth_wavetable.[h/cpp], but in a way that conflicts with the Wavetable-Synthesis. Also, previously...
  15. L

    ADC library conflicts with Audio library dac output

    I am trying to use a teensy 3.6 to read an analog input and put signals to the dac pins using the soundwave synthesis library and AudioOutputAnalogStereo dacs Running each one of these alone works fine, however the moment I setup "ADC *adc = new ADC();" the dac output using...
  16. L

    Good way to make a teensy based electric piano

    I've been working on a project fixing up a Yamaha Clavinova clp-123 piano I got hold off with a burnt out motherboard (3 of the ICs are overheating and no sound, so that is at least my assumption). I've replaced the motherboard with a teensy 3.6 and figured out how to scan the keys (key array...
  17. L

    Up to 8 channel delay timer

    I don't think that it's the wrap around issue as looking with a scope, 40ms seems to be fine (looks like wrap around is around 43ms when running at a 96MHz clock), and the other samples that work and do use 40ms work. The one that doesn't actually only goes up to 20ms. Also, it does fire...
  18. L

    Weird digital write behavior in TeensyDelay library and digitalWrite in interupts

    Apologies It was referenced from the intervalTimer library (which does come with teensy) and the source for it is found here https://github.com/luni64/TeensyDelay/tree/master/src
  19. L

    Weird digital write behavior in TeensyDelay library and digitalWrite in interupts

    I have this weird behavior when working with TeensyDelay to trigger a digitalWriteFast on a teensy 3.1 board (digitalWriteFast is a small library to use the FTM clock as a single shot timer) With the following code, all interrupts are called (a and b variables are continuously updated and...
  20. L

    Up to 8 channel delay timer

    I've been trying to use this library to get a 20Hz output trigger running but was running into a couple of weird issues I was wondering about 1. My main problem is that the trigger won't go higher than roughly 40ms delay (I need 50ms). A little about that it starts aliasing to a shorter delay...
  21. L

    ADC library, with support for Teensy 4, 3.x, and LC

    I've been looking into this as I was suffering from this as well. It did seem to come and go, but I did find a few weird things in the library code: 1. Line 161 of RingBufferDMA.cpp return (p + 1)&(2*b_size-1); I believe that that 2 should not be there, i.e the line should read return (p...
Back
Top