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

Search:

Type: Posts; User: saxen

Search: Search took 0.00 seconds.

  1. Thread: Audio Library

    by saxen
    Replies
    1,286
    Views
    637,628

    Thanks, Paul. I'm gonna have a look to Pedvide's...

    Thanks, Paul.
    I'm gonna have a look to Pedvide's ADC library.
    I was thinking, would it be possible to create another object like AudioInputAnalog1, that uses instead ADC1?

    Enrico
  2. Thread: Audio Library

    by saxen
    Replies
    1,286
    Views
    637,628

    Hi Paul, is it possible to read form an analog...

    Hi Paul,
    is it possible to read form an analog input of teensy while using the AudioAnalogInput of the Audio Library?
    I would like to acquire an analog signal (ecg) while the mic is getting audio...
  3. Thread: Audio Library

    by saxen
    Replies
    1,286
    Views
    637,628

    I'm still having this problem with the internal...

    I'm still having this problem with the internal reference for the adc. As soon as the adc reference changes

    ADC0_SC2 = ADC_SC2_REFSEL(1); // 1.2V ref
    I get zero output. Has anybody noticed a...
  4. Thread: Audio Library

    by saxen
    Replies
    1,286
    Views
    637,628

    I tried to save in memory half a second of...

    I tried to save in memory half a second of recording, stop recording and print after. With DEFAULT analog reference I get the right (a bit noisy) audio back (this time I do not lose samples). With...
  5. Thread: Audio Library

    by saxen
    Replies
    1,286
    Views
    637,628

    Yes, the gain is already set to max. I've also...

    Yes, the gain is already set to max. I've also removed the POWER_LED_PIN. Still, I get mostly zero output... How test it without printing out the samples?
    Thanks.
  6. Thread: Audio Library

    by saxen
    Replies
    1,286
    Views
    637,628

    Thank you! I was definitely missing something. I...

    Thank you! I was definitely missing something. I tried in the meantime to double the period, and I was actually getting 22050 blocks per second, instead of 44100.

    However, I'm still not managing...
  7. Thread: Audio Library

    by saxen
    Replies
    1,286
    Views
    637,628

    Hi Paul, in "pdb.h" i read: #define...

    Hi Paul,
    in "pdb.h" i read:

    #define PDB_PERIOD 1087 // 48e6 / 44100
    If I'm not wrong this should be the period of the PDB, that is used both by the ADC and the DAC object. Does this setting...
  8. Thread: Audio Library

    by saxen
    Replies
    1,286
    Views
    637,628

    Ok, my solution needed a little bit more of work....

    Ok, my solution needed a little bit more of work. In that way I am able to decouple the two chains, and solve the problem of update_responsability. However, even though the dac is going into the...
  9. Thread: Audio Library

    by saxen
    Replies
    1,286
    Views
    637,628

    I think I have found a solution. I don't know how...

    I think I have found a solution. I don't know how good this approach is, or how much you will like it, but things seem to work in this way....

    1) I removed the begin() methods from the...
  10. Thread: Audio Library

    by saxen
    Replies
    1,286
    Views
    637,628

    Sorry, Paul. You are right! I'm attaching a...

    Sorry, Paul. You are right!
    I'm attaching a modified version of the PlayFromSketch example. This is what I observe:
    - I start with an AudioPlayMemory connected to the dac. I have a print in the...
  11. Thread: Audio Library

    by saxen
    Replies
    1,286
    Views
    637,628

    I'm not using the audio adapter, so I have to...

    I'm not using the audio adapter, so I have to solve this in a different way. At the moment, I'm thinking to follow one of these possible solutions;
    1) I noticed that the method connect (in...
  12. Thread: Audio Library

    by saxen
    Replies
    1,286
    Views
    637,628

    Thank you! Anyway, I was not getting any input...

    Thank you!
    Anyway, I was not getting any input because I was using in my sketch both an analog input and an analog output. If I remove the dac output, I start getting something from the adc....
  13. Thread: Audio Library

    by saxen
    Replies
    1,286
    Views
    637,628

    Great, thank you! I tried with receiveReadOnly...

    Great, thank you! I tried with receiveReadOnly and it works, saving a little bit of memory.


    Now I would like to run a sketch that uses AudioInputAnalog as input, but I'm not finding a way to...
  14. Thread: Audio Library

    by saxen
    Replies
    1,286
    Views
    637,628

    Hey Pete, quick question, why do you use...

    Hey Pete,
    quick question, why do you use receiveWritable() in the fir filter object? When FIR_PASSTHRU, it does not seem to be needed. Otherwise, does arm_fir_q15 require it?

    Thank you,
    Enrico
  15. Thread: Audio Library

    by saxen
    Replies
    1,286
    Views
    637,628

    Hi Paul, I had a look at Audio Connections and...

    Hi Paul,
    I had a look at Audio Connections and Memory and Processor Usage and Interrupts, and it seems to be the most important part of the documentation. It took me some time to understand the...
  16. Thread: Audio Library

    by saxen
    Replies
    1,286
    Views
    637,628

    Well it is not a big deal duplicating the...

    Well it is not a big deal duplicating the coefficient set. However, biquadratic filters are usually meant to be used in cascade, and very often with the same set of parameters. That's why I would say...
  17. Thread: Audio Library

    by saxen
    Replies
    1,286
    Views
    637,628

    Thanks for your answer! I tried your code, but I...

    Thanks for your answer! I tried your code, but I get the same result as for the "vanilla" code.

    I did few more testing, and I observed something strange.
    - I print the value of the aprev and...
  18. Thread: Audio Library

    by saxen
    Replies
    1,286
    Views
    637,628

    Hi robsoles, "aprev" and "bprev" are indeed...

    Hi robsoles,
    "aprev" and "bprev" are indeed saved in the state array,

    *(state-2) = bprev;
    *(state-3) = aprev;
    however, in every update() call (every 128 samples) we also assign,

    state =...
  19. Thread: Audio Library

    by saxen
    Replies
    1,286
    Views
    637,628

    Hi Paul, is there a reason why you reset the...

    Hi Paul,
    is there a reason why you reset the "aprev" and "bprev" variables every AUDIO_BLOCK_SAMPLES in the biquadratic filter?
    Doing in this way, I have some problem with the filter initial...
  20. Thread: Audio Library

    by saxen
    Replies
    1,286
    Views
    637,628

    Thank you! Now the question is, am I the only one...

    Thank you! Now the question is, am I the only one having this problem with the latest version of the library? Based on what I've tested, I cannot set the internal reference...

    Enrico
  21. Thread: Audio Library

    by saxen
    Replies
    1,286
    Views
    637,628

    Thanks for your answers. I think I've found where...

    Thanks for your answers. I think I've found where is the problem. Everything works fine when I comment "dac.analogReference(INTERNAL);".
    I had this line left since I was playing with the reference....
  22. Thread: Audio Library

    by saxen
    Replies
    1,286
    Views
    637,628

    Hi! I've been working with the old single-file...

    Hi!
    I've been working with the old single-file version of the library, and everything was working fine. I've just updated to the new splitted version, and I am having some problems.
    I'm using the...
  23. Thread: Audio Library

    by saxen
    Replies
    1,286
    Views
    637,628

    Hi Pete, thanks for your answers. I'm gonna give...

    Hi Pete,
    thanks for your answers. I'm gonna give a try to the arm sine function!

    Enrico
  24. Thread: Audio Library

    by saxen
    Replies
    1,286
    Views
    637,628

    Hi! I've started playing with teensy 3.1 and...

    Hi!
    I've started playing with teensy 3.1 and this great audio library. First of all, thank you for providing such a great hardware and software.
    I have got a couple of questions...
    - As somebody...
  25. Replies
    16
    Views
    17,723

    Hi Paul, thank you for your answers. About...

    Hi Paul,
    thank you for your answers.
    About recording, maybe this was not the right word to use, sorry. What I meant was getting 44100 samples per second from the ADC (analogRead?) and do some...
  26. Replies
    16
    Views
    17,723

    audio record, processing and play with teensy 3.1

    Hello everybody,
    I'm going to start a project soon, and after searching around about the hardware to use (arduino, rpy, etc.), I found out about teensy 3.1. It seems very interesting, but I want to...
Results 1 to 26 of 26