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

Search:

Type: Posts; User: h4yn0nnym0u5e

Page 1 of 2 1 2

Search: Search took 0.00 seconds.

  1. Replies
    29
    Views
    600

    Time difference for serial printing 6 characters...

    Time difference for serial printing 6 characters rather than 4? You might want to read CYCCNT immediately after the loops end...
  2. I was going to suggest you use my Dynamic Audio...

    I was going to suggest you use my Dynamic Audio Objects library, which allows creation or deletion of AudioStream and AudioConnection objects on the fly, but then noticed you're using a Teensy 3.2...
  3. Replies
    9
    Views
    340

    Don’t think I needed to using this technique -...

    Don’t think I needed to using this technique - USB-right is the reference signal, and USB-left the delayed one. I believe the OP was interested in i2s in to out delay, and I think I’ve measured that....
  4. Replies
    7
    Views
    239

    Here's a simple demo of how I might do it. Note...

    Here's a simple demo of how I might do it. Note you can get into trouble if you change the struct definition, as all the structure members are likely to move, but it makes life pretty simple and you...
  5. Replies
    9
    Views
    340

    Who, me? Well, I did, anyway :) I created a...

    Who, me? Well, I did, anyway :)

    I created a simple audio engine, and physically connected i2s2 out R to i2s1 in R. Hence i2s2 out L will be the same as out R, but delayed by the overall latency of...
  6. Replies
    9
    Views
    340

    Not quite right, no :) Although the audio...

    Not quite right, no :)

    Although the audio designer shows the signal flow as a chain (or a mesh for more complex designs), the whole "engine" is run in its entirety every 2.9ms. Neglecting any...
  7. Been following these threads for a while,...

    Been following these threads for a while, somewhat bemused ... but a couple of (possibly dumb) questions occur to me ...

    Does the notwired.co PCBA follow their schematic or the InvenSense...
  8. I've brought both the cores and AudioStream...

    I've brought both the cores and AudioStream library into sync with Teensyduino 1.54, I believe. As ever, any problems, please post on this thread or raise an issue on github.

    Cheers

    Jonathan
  9. Hi there The Audio Library is at...

    Hi there

    The Audio Library is at features/dynamic-updates, and the modified core at cores. Note that from the latter you should only take AudioStream.cpp and AudioStream.h from the teensy4 folder,...
  10. Replies
    12
    Views
    1,781

    Hi there Just happened across this again -...

    Hi there

    Just happened across this again - very impressive!

    I'm slightly curious why you elected to use 101 "tonewheels" and equal temperament tuning, when the Hammond has 91 (with some weird...
  11. I think you should only need as many mixer inputs...

    I think you should only need as many mixer inputs as you have simultaneously playing samples - all the sample player objects let you nominate the sample to play, either by file name or memory...
  12. Hi Dan Yes, that should be possible. TBH I've...

    Hi Dan

    Yes, that should be possible. TBH I've not used sample playback much, but I've seen quite a lot of wisdom around here on the pitfalls, especially the occasionally slow response time on SD...
  13. Sure, I did see there were many more closed than...

    Sure, I did see there were many more closed than still open, though I didn't look to see how many were merged and how many just dried up and blew away...

    Know what you mean about putting bugs in...
  14. Replies
    176
    Views
    23,307

    Hi Rolf Excellent news! Cheers Jonathan

    Hi Rolf

    Excellent news!

    Cheers

    Jonathan
  15. In the repo you've put the PR in, there are no...

    In the repo you've put the PR in, there are no fewer than 61 open Pull Requests, the oldest going back as far as 2014. Quite a few are yours, as it happens. So I'm just curious as to whether putting...
  16. Will that help? There’s PRs going back to 2014 in...

    Will that help? There’s PRs going back to 2014 in there...
  17. The Audio Core defines the base classes on which...

    The Audio Core defines the base classes on which the Audio Library is built, and is stored elsewhere. So on my Windows machine the core is in C:\Program Files...
  18. Replies
    176
    Views
    23,307

    Hi Rolf Glad it's all OK again. I did a quick...

    Hi Rolf

    Glad it's all OK again. I did a quick text compare of the non-working and latest AudioStream code, and thought the problem might likely be the relative location of the ampEnvelope blocks,...
  19. Thanks for the plug, @manicksan! Yes, my...

    Thanks for the plug, @manicksan!

    Yes, my updated audio core and library (Dynamic Audio Objects) should make this fairly trivial:

    // GUItool: begin automatically generated code
    AudioInputAnalog...
  20. Replies
    176
    Views
    23,307

    6ms sounds like two audio interrupt periods of...

    6ms sounds like two audio interrupt periods of 2.9ms each. In the absence of your source code, I'd check that you have created the AudioStream objects in your required execution order as per the...
  21. Additional ... the FFT may not be massively...

    Additional ... the FFT may not be massively forgiving of you stopping the Audio engine, but I don't know for sure: you may see huge spikes at multiples of 1000/2.9 = 345Hz because of the missing...
  22. Ah, good observation. And I note that your glitch...

    Ah, good observation. And I note that your glitch blocks are about 13 LEDs long, and at line 38 of OctoWS2811_imxrt.cpp we find #define BYTES_PER_DMA 40, which is about (but not exactly) 13 LEDs -...
  23. A channel of 165 LEDs will take 4.95ms to update,...

    A channel of 165 LEDs will take 4.95ms to update, so the Audio engine will run in the middle of that even if you're in sync with it: a bit of double-buffering might be indicated? Definitely worth...
  24. I suspect you'd be way better off ditching...

    I suspect you'd be way better off ditching FastLED and using only OctoWS2811: from the documentation, the latter does use DMA (dunno about FastLED).

    Bear in mind the Audio library kicks off an...
  25. Replies
    6
    Views
    506

    If you want to look at the (OK, one...) bleeding...

    If you want to look at the (OK, one...) bleeding edge of the Audio library, I've taken a stab at making it re-configurable at run time, rather than largely fixed at compile time. See...
  26. I had one problem where the USB port on my...

    I had one problem where the USB port on my desktop PC latched up and stopped talking to the Teensy (4.1 in this case). Re-start didn't work, I had to completely power down, including switching off at...
  27. Not 100% clear if you added your new veroboard...

    Not 100% clear if you added your new veroboard mux to the existing hardware, or built a new 3-mux system; or if the fault is with both switch muxes or just the added one. But ... sounds like hardware...
  28. Replies
    61
    Views
    4,870

    That's great, I think it'll be really helpful -...

    That's great, I think it'll be really helpful - thanks. It's so useful to have the demo JSON easy to load, makes everything very clear.

    One thing I've been struggling with (hence the delayed...
  29. Replies
    61
    Views
    4,870

    Hi manicksan OK, so having posted my first...

    Hi manicksan

    OK, so having posted my first effort at a dynamically-configurable audio engine DCAE (https://forum.pjrc.com/threads/66840-Roadmap-quot-Dynamic-Updates-quot-any-effort-going-on, as...
  30. Very Preliminary Alpha Test Dynamic Audio Objects For Teensy 4

    Hi folks

    I could definitely tinker for a lot longer, but why not let a few brave souls have a crack at breaking the code in its current state - I fear it will be all too easy... You will need both...
  31. Replies
    5
    Views
    353

    Also, as I found out last night, you need to set...

    Also, as I found out last night, you need to set the noise generator going by setting its amplitude to a non-zero value...
  32. Replies
    8
    Views
    528

    One final item to note... Len discovered that the...

    One final item to note... Len discovered that the original MIDI file isn’t as clean as it looks. The note ends jitter a tiny bit, about 3ms, and if they go long then the allocation algorithm uses an...
  33. Replies
    8
    Views
    528

    It's in the Issues. Well, Issue - there's only...

    It's in the Issues. Well, Issue - there's only one open :D https://github.com/LenShustek/miditones/issues/24. I'm assuming it's visible to everyone, not just me. He posted a ZIP file with the source...
  34. Replies
    8
    Views
    528

    Hi Pete Gave it a quick try, and unfortunately...

    Hi Pete

    Gave it a quick try, and unfortunately yours goes AWOL on the very next line :eek: Your output:

    // Playtune bytestream for file "bach_brandenburg_concerto_3_1st_bwv_1041_ORCH.mid"...
  35. Replies
    8
    Views
    528

    Thanks for that, Pete. I don't have the tools to...

    Thanks for that, Pete. I don't have the tools to compile it, unfortunately :(

    I worked on it a bit more after posting, concluded there was a bug, and raised an issue with Len on github. He's fixed...
  36. Replies
    8
    Views
    528

    Correct use of "miditones" utility?

    Hi folks

    I'm trying to use the latest version of the executable from https://github.com/LenShustek/miditones to process a 10-track MIDI file to a C source. I believe I have it such that each track...
  37. Replies
    5
    Views
    436

    Can't argue that the Audio library and GUI are...

    Can't argue that the Audio library and GUI are great to get started from, and kudos to Paul for putting the effort in. He's got a business to run, and I wouldn't expect any more attention from him...
  38. Replies
    23
    Views
    3,762

    Am I right in thinking that using __brkval only...

    Am I right in thinking that using __brkval only shows you the "most ever" used heap memory, rather than some estimate of the "current state"? I'm interested in checking for the latter, to ensure...
  39. Replies
    5
    Views
    436

    I knew that... :D Except ... it should really...

    I knew that... :D

    Except ... it should really be neither of those things. The hex constant may be what the original programmer intended, but forgot the 0x; but why should it be a hex constant,...
  40. Replies
    5
    Views
    436

    Just noticed another thing: the Stop event only...

    Just noticed another thing: the Stop event only silences 10 of the 16 MIDI channels...
  41. Replies
    5
    Views
    436

    Bug in PlaySynthMusic demo

    This code doesn't end cleanly: the last note off command is read, but before it gets acted on the stop command is prematurely fetched and acted on, rather than waiting for the next "note" (command,...
  42. Replies
    21
    Views
    1,884

    Thanks for being so understanding - having posted...

    Thanks for being so understanding - having posted I felt I might have come across as a bit over-critical! I think it's great that there's so many options for people to choose from, depending on their...
  43. Replies
    21
    Views
    1,884

    Just out of interest, I took a look... ADR...

    Just out of interest, I took a look...

    ADR phase [timing] changes don't seem to take effect in real time, but wait until the next envelope*
    A sustain level change during decay results in a...
  44. I've just implemented a float getGain() function...

    I've just implemented a float getGain() function on my variant of an exponential envelope generator - grab the latest code from https://github.com/h4yn0nnym0u5e/Audio/tree/features/expEnvelope. As...
  45. Replies
    21
    Views
    1,884

    Be interesting to know how the CPU load and...

    Be interesting to know how the CPU load and memory footprint compare to my ExpEnvelope variant, to be found at https://github.com/h4yn0nnym0u5e/Audio/tree/features/expEnvelope, and discussed in this...
  46. Replies
    25
    Views
    1,393

    Thanks @ghost, it’d be good to know it works in...

    Thanks @ghost, it’d be good to know it works in Real Life! With luck you won’t be able to tell the difference, I just wrote it to prove it could be done, and for use cases where floating point...
  47. ... and more to the point, itís a decoupling...

    ... and more to the point, itís a decoupling capacitor, so either your unpolarised 0.1uF one or your polarised 1uF one will be fine
  48. Replies
    25
    Views
    1,393

    Hi folks Integer-only version of doing a...

    Hi folks

    Integer-only version of doing a gradual change can be found at https://github.com/h4yn0nnym0u5e/Audio/tree/features/slew-gain, which includes updated documentation in the GUI tool. Not...
  49. I found a few issues following the above advice,...

    I found a few issues following the above advice, and when making changes to figure out the bug in ExpEnvelope:

    you can't just comment out checkMux(), as it has to run once to enable the sound...
  50. Found it! It was a block overrun, as I suspected,...

    Found it! It was a block overrun, as I suspected, but not where I suspected... Grab the latest commit from https://github.com/h4yn0nnym0u5e/Audio/tree/features/expEnvelope and see how you go, sounds...
Results 1 to 50 of 79
Page 1 of 2 1 2