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

Search:

Type: Posts; User: duff

Page 1 of 10 1 2 3 4

Search: Search took 0.01 seconds.

  1. Replies
    1
    Views
    82

    You need to copy the arm_math.h...

    You need to copy the arm_math.h, arm_const_structs.h and arm_comman_tables.h to the teensy ".../cores/teensy3/" directory in Arduino renaming or removing the old arm_math.h and arm_comman_tables.h....
  2. Haha, no problem. So the incoming audio...

    Haha, no problem.



    So the incoming audio is a human voice that you are trying to detect what frequency they are signing at? Not sure how you would "re-start the cycles" but you could look at...
  3. Sorry for offending your awesomeness, :cool:

    Sorry for offending your awesomeness, :cool:
  4. Correction: 24 Audio Blocks would be able to...

    Correction: 24 Audio Blocks would be able to detect a signal down to around 29 Hz actually, my bad:confused:

    85Hz would need about 10 Blocks for it to detected, this can be set here...
  5. No problem, I'll use the Audio library sample...

    No problem, I'll use the Audio library sample rate of 44117Hz, that means one sample takes around (1/44117) seconds and you will have 44117 samples in 1 second.

    An Audio block is a collection of...
  6. The number of detections would be related to the...

    The number of detections would be related to the frequency of the signal and the duration of the signal. A 85 Hz signal would at a very minimum take around 24 Audio Blocks of data to detect which is...
  7. The audio library sample rate is ~44100 Hz so...

    The audio library sample rate is ~44100 Hz so 200ms would have around 8828 samples of data or do you mean you only get 2-3 noteFrequency outputs? If the later what is the frequency range of sine...
  8. It uses a type of autocorrelation...

    It uses a type of autocorrelation (http://recherche.ircam.fr/equipes/pcm/cheveign/pss/2002_JASA_YIN.pdf) to detect the fundamental frequency of a signal mainly designed for music. The only tunable...
  9. Replies
    4
    Views
    412

    Ok I'll work on this again, it's going to be a...

    Ok I'll work on this again, it's going to be a slow slog though, there are so many things with the M7 processor that you have consider that you didn't in the arm M0/M4!
  10. Replies
    30
    Views
    1,778

    Not that its not appropriate just that you...

    Not that its not appropriate just that you probably be better served starting your own thread about this specific topic.

    As far as time stretching it looks like you know what your looking for...
  11. Replies
    30
    Views
    1,778

    I'm not exactly sure at the moment how this would...

    I'm not exactly sure at the moment how this would be done, are you looking to slow down the tempo of a piece of music while keeping the same pitch like the Amazing Slow Downer? In the future,...
  12. Replies
    4
    Views
    412

    Teensy 4.0 Low Power

    Hi All, just wanted to gauge the priority of low power operation of the Teeny 4.0? I have worked on it for Snooze off and on for a bit now and it's not exactly an easy thing to implement since it is...
  13. Replies
    30
    Views
    1,778

    Thanks for the link, I'll check out Java code to...

    Thanks for the link, I'll check out Java code to see the demodulation technique, did you implement it yet in your Audio Object?
  14. Replies
    30
    Views
    1,778

    .....Link?

    .....Link?
  15. Replies
    30
    Views
    1,778

    here is my first release of the vocoder for the...

    here is my first release of the vocoder for the Audio library -> https://github.com/duff2013/AudioEffectVocoder

    There are two examples that pitch shift (+- semitones) a female singing a short clip...
  16. Replies
    30
    Views
    1,778

    Do you have any wavelet code that runs on...

    Do you have any wavelet code that runs on Teensy3-4 using Audio library?
  17. Replies
    30
    Views
    1,778

    @MikeDB is correct, you can substantially speed...

    @MikeDB is correct, you can substantially speed up your (@Blackaddr) algorithm by using a trig equalities trick for a constant stepped sine, cos. That being said, in my work on the Oceans algorithm...
  18. Look at the example...

    Look at the example Low_power_push_Button_Hold_SD_Logger.
  19. millis/micros will be updated when woken if you...

    millis/micros will be updated when woken if you use the timer driver not the rtc driver inwhich you do currently. Try the Timer driver instead and see if that helps.
  20. Your example looks fine. I looked into this...

    Your example looks fine.


    I looked into this library a little and it uses micros to keep track of it's "os" time. When you hibernate sleep the clock that runs micros is off, so it won't be...
  21. Never used the LMIC Library but Serial printing...

    Never used the LMIC Library but Serial printing (USB) and sleeping are not going to work as you expect and could be some of your issues. For a more robust printing solution use the Hardware Serial...
  22. Ok looking at the setRtcTimer function in Snooze...

    Ok looking at the setRtcTimer function in Snooze the hours, minutes and seconds are defined uint8_t so the maximum value can only be 255 for each, so 14 days would be 336 hours! Since I'm doing a...
  23. This is very interesting, so the first RTC alarm...

    This is very interesting, so the first RTC alarm wakeup always works even if it's say three weeks away but after going back to sleep (for like a two weeks or longer), does it fail every time? Can you...
  24. It looks like you got it working but do you want...

    It looks like you got it working but do you want to add 100 msec to the timer each time you wake up? If not then you don't have to update the "TimerLength" or reset the timer it will keep that value...
  25. I've never used a gps module but it seems that...

    I've never used a gps module but it seems that you are reading the gps data then going to sleep, shouldn't you read the gps receiver after waking? Does this module toggle a pin when new data has...
  26. That time is from the gps module as far as I can...

    That time is from the gps module as far as I can see: "gps.time.minute()"
  27. Not sure why you are getting stale data, is this...

    Not sure why you are getting stale data, is this data coming from the GPS or from millis on the Teensy? Is this stale data what you are printing after waking, i.e.


    if (who == 16) {// pin wakeup...
  28. Can you try this: SnoozeBlock config(usb,...

    Can you try this:


    SnoozeBlock config(usb, digital);
  29. Replies
    4,360
    Views
    481,890

    Hi All, I've been pretty quite on the T4 as of...

    Hi All, I've been pretty quite on the T4 as of late but have made some progress with the low power features of this chip. I'm decoupling Snooze from the each of the teensy chips and putting all the...
  30. Replies
    17
    Views
    887

    I would just use one file and you can use...

    I would just use one file and you can use elapsedMillis for the timing.
  31. Replies
    17
    Views
    887

    That should work, how much more does it play...

    That should work, how much more does it play after that?
  32. Replies
    12
    Views
    518

    This script should take care of those 'USB...

    This script should take care of those 'USB Serial# #' devices.


    #!/bin/sh
    #https://www.jamf.com/jamf-nation/discussions/24815/deleting-usb-network-interfaces


    IFS=$'\n'...
  33. Replies
    4
    Views
    470

    Even with sleeping the Teensy you should look...

    Even with sleeping the Teensy you should look into shutting down all the external components when you want the Teensy to sleep. In my audio applications the Teensy 3.2 actually is the least power...
  34. Replies
    4,360
    Views
    481,890

    has anyone noticed that USB Serial doesn't work...

    has anyone noticed that USB Serial doesn't work if compile and upload a blank sketch?
  35. Replies
    4,360
    Views
    481,890

    Oh thanks I didn't look at the commit time I...

    Oh thanks I didn't look at the commit time I thought that Teensy GitHub mirrored the teensyduino installer.
  36. Replies
    4,360
    Views
    481,890

    Weird, just downloaded a fresh Arduino IDE and...

    Weird, just downloaded a fresh Arduino IDE and installed 1.46 and noticed that the githubs core_pins.h does not match the core_pins.h I just installed. Mine has no mention of #if...
  37. Replies
    4,360
    Views
    481,890

    Since putting the beta1 board on hold for awhile...

    Since putting the beta1 board on hold for awhile I've started looking at the low power features again and was wondering if the new beta2 boards will have the bootloader go into lower power mode....
  38. Replies
    6
    Views
    681

    Those are the wakeup pins for deepSleep and...

    Those are the wakeup pins for deepSleep and hibernate only so if you want every pin to be able wake the teensy up those are your choices.

    If I where you I would work one step at a time, having a...
  39. https://github.com/duff2013/Zilch/releases/tag/v0....

    https://github.com/duff2013/Zilch/releases/tag/v0.3
  40. Replies
    17
    Views
    2,268

    Can you please put your code between code...

    Can you please put your code between code brackets in this forum, it makes reading your code much easier. Just to be sure you are using the Arduino Serial Monitor and what OS?

    I don't know why you...
  41. The latest version dose not currently work with...

    The latest version dose not currently work with the LC, it did before I rewrote it. It's on my todo list so you bringing it up might help me speed up that. I'm currently got a lot of irons in the...
  42. Replies
    17
    Views
    2,268

    Can you try the "deepSleep_usb_serial" example...

    Can you try the "deepSleep_usb_serial" example and make sure your "USB_Type:" in Arduino is "Serial".
  43. Replies
    3
    Views
    353

    Also in the bigger picture this library uses...

    Also in the bigger picture this library uses double buffering so when one buffer is filling up the other is being worked on, this helps with latency. This algorithm has a high cpu load so I had to...
  44. Replies
    3
    Views
    353

    Yes, it was done for performance issues. You also...

    Yes, it was done for performance issues. You also should lowpass filter the data stream before feeding it to notefreq. If you look at my GitHub version I do that for you when decimating the audio...
  45. Replies
    4,360
    Views
    481,890

    Where is the 3.3V regulator located on the board?

    Where is the 3.3V regulator located on the board?
  46. Replies
    14
    Views
    3,318

    I've been working on a phase vocoder off and on...

    I've been working on a phase vocoder off and on for awhile now and I can tell you its not easy, well not easy for realtime pitch shifting using Audio library.

    First off the q15 data type for CMSIS...
  47. Replies
    4,360
    Views
    481,890

    Ok so DMAMEM is OCRAM which is 256k makes sense...

    Ok so DMAMEM is OCRAM which is 256k makes sense now. I saw this comment on this thread just now that explains that Paul is using fixed memory sections in the linker script and will fix later. Ok I'm...
  48. Replies
    4,360
    Views
    481,890

    With beta9 I get the cryptic memory error...

    With beta9 I get the cryptic memory error (section `.bss' is not within region `DTCM') with this sketch:


    #define BUF_SIZE 30066
    uint32_t buffer[BUF_SIZE];


    void setup() {
    memset(buffer,...
  49. Replies
    4,360
    Views
    481,890

    Thanks I did not see this before it definitely...

    Thanks I did not see this before it definitely helps.

    I know what was wrong with my optimized fft issue, had to change define about using Kinetis K chips. Even with dsp v1.5.1 it still beats the...
  50. Replies
    4,360
    Views
    481,890

    Just got my T4 and expansion board yesterday,...

    Just got my T4 and expansion board yesterday, just been poking around for now. Going to work on the low power stuff soon but it looks like I will have to mess with the cpu speeds, voltages and...
Results 1 to 50 of 500
Page 1 of 10 1 2 3 4