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

Search:

Type: Posts; User: h4yn0nnym0u5e

Search: Search took 0.00 seconds.

  1. 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...
  2. Replies
    2
    Views
    45

    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...
  3. Replies
    8
    Views
    168

    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...
  4. Replies
    8
    Views
    168

    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...
  5. Replies
    8
    Views
    168

    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"...
  6. Replies
    8
    Views
    168

    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...
  7. Replies
    8
    Views
    168

    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...
  8. Replies
    5
    Views
    133

    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...
  9. Replies
    11
    Views
    3,108

    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...
  10. Replies
    5
    Views
    133

    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,...
  11. Replies
    5
    Views
    133

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

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

    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,...
  13. Replies
    20
    Views
    1,201

    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...
  14. Replies
    20
    Views
    1,201

    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...
  15. 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...
  16. Replies
    20
    Views
    1,201

    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...
  17. Replies
    25
    Views
    606

    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...
  18. ... 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
  19. Replies
    25
    Views
    606

    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...
  20. 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...
  21. 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...
  22. That's pretty clear. If I grab your Tsynth from...

    That's pretty clear. If I grab your Tsynth from github and replace the envelopes, that's what you're running, yes? Do I need to change parameters in real time, or is there a fixed set that will...
  23. Replies
    25
    Views
    606

    Both your examples attempt to update every...

    Both your examples attempt to update every millisecond, but the Audio Engine only runs every 2.9ms, which will add to the roughness. Then the gain will be fixed for the entire 128 samples processed...
  24. Thanks. Not understanding the...

    Thanks. Not understanding the left/right/polyphonic part of your post - the envelope is a monophonic object

    Is it more likely at very fast or slow A/D/R speeds, do you know? I probably haven’t...
  25. I’ve tried to make the behaviour when...

    I’ve tried to make the behaviour when retriggerings as logical as possible, so it does start from the prevailing value, unless it’s in the Attack or Hold stages when the retrigger is ignored (you’d...
  26. OK, I've taken a look and made a minor change to...

    OK, I've taken a look and made a minor change to some code that "should never happen", but might have caused problems if it did. Please give...
  27. That's odd. I haven't thrashed it in a busy...

    That's odd. I haven't thrashed it in a busy system, so there could easily be gremlins that I didn't catch in testing, but the outer skin is effectively exactly the same as the original linear...
  28. Replies
    48
    Views
    2,872

    Excellent. Not essential for Dynamic Updates to...

    Excellent. Not essential for Dynamic Updates to the audio routing, but I'm thinking it would be really handy for a hard/soft synth for routing physical front panel controls or MIDI control data to...
  29. Replies
    48
    Views
    2,872

    Quick question... I looked at the Node Red...

    Quick question... I looked at the Node Red website and it appears the only place ports can be placed on a node are left (in) and right(out). However, it also says you can only have one input port,...
  30. +1 for that - it would break too much existing...

    +1 for that - it would break too much existing code to change the basics, hence my concern about "fixing" the documented misfeature: I don't know there isn't something out there that relies on it!
    ...
  31. No worries - I hope this is just the start! I...

    No worries - I hope this is just the start!

    I just realised that I've actually changed the documented operation, whereby "If you attempt to connect many outputs to a single input, only the last...
  32. Bit of a cross-posting, but dynamic connections...

    Bit of a cross-posting, but dynamic connections are possibly working now, see https://github.com/h4yn0nnym0u5e/cores/tree/feature/Audio%2Fminor-connection-improvements.

    In other news, manicksan, I...
  33. Fixed in...

    Fixed in https://github.com/h4yn0nnym0u5e/cores/tree/feature/Audio%2Fminor-connection-improvements, and I've put in PR #556 on GitHub. I believe this not only fixes this bug, but also makes it safe...
  34. If itís any help, I think Iím on track to make...

    If itís any help, I think Iím on track to make AudioConnection objects properly reconfigurable, so they can be disconnected, reconnected to different sockets (not possible right now), created and...
  35. Yes, as noted in the thread linked by MarkT,...

    Yes, as noted in the thread linked by MarkT, disconnecting doesnít work properly. Obviously if you donít do it, you wonít have run into any problems! Connection objects as they stand are a bit pants,...
  36. Thanks MarkT. I’ve seen (and even posted on!)...

    Thanks MarkT. I’ve seen (and even posted on!) that thread, though not 100% sure a fix is pending as such, though a problem has definitely been identified. I’m actually in the throes of playing with a...
  37. Agree - there's a lot of "whizz down lists doing...

    Agree - there's a lot of "whizz down lists doing stuff" that could do with cleaning up.

    Also the red code here:

    if (p == NULL) {
    //>>> PAH re-enable the IRQ
    __enable_irq();
    return;
    }...
  38. Exponential envelope generator object

    Hi folks

    As part of familarising myself with the Audio ecosystem I've made a slightly different envelope generator which can be found at:...
  39. Brilliant, thanks so much manicksan! There's a...

    Brilliant, thanks so much manicksan! There's a lot to digest there, but the first quick look I just gave it suggests it's all going to be really useful.

    [I "need" to run a few more tests on the...
  40. Replies
    18
    Views
    539

    What were the pullups before? You didn't post a...

    What were the pullups before? You didn't post a schematic :) Fast speeds generally need lower value pullups (up to a point).
  41. Sure, it's understood that the Audio core needs...

    Sure, it's understood that the Audio core needs changes in order to construct and destroy Audio objects and their connections at runtime - that's absolutely the point of this thread, to check no-one...
  42. Thanks for that thread link, houtson. I knew it...

    Thanks for that thread link, houtson. I knew it could be done but it drew my attention to a couple of interesting points... Sounds from TigerBalm2ís post as if there would be interest in this ... and...
  43. Replies
    13
    Views
    438

    Excellent! For the benefit of future readers,...

    Excellent!

    For the benefit of future readers, the 6N137’s pin 6 is open drain, so if you do as ghostintranslation has done and pull it up to the Teensy’s 3.3V rail there’s no problem with...
  44. Replies
    13
    Views
    438

    ...actually, 2k could be a bit high, 1k or 470R...

    ...actually, 2k could be a bit high, 1k or 470R might be better. And (3b) would be to open Serial1 at 31250 baud and print out what you receive, before diving into the MIDI library

    Cheers
    ...
  45. Replies
    13
    Views
    438

    Nearly there! (1) get the Tx Teensy to toggle its...

    Nearly there! (1) get the Tx Teensy to toggle its output at 1Hz and run your first program to show what’s seen. If nothing then (2) check your wiring, especially the polarity... Assuming you get that...
  46. Replies
    18
    Views
    539

    At least test at 400kHz to see if that's the...

    At least test at 400kHz to see if that's the issue... don't think you can use it even at 4.5V, as the minimum Vih is 0.8xVdd so 3.6V. You might find a sweet spot where Vdd is high enough to get 1MHz,...
  47. Replies
    18
    Views
    539

    Also, what power rail are you using? The...

    Also, what power rail are you using? The datasheets don’t show characteristics for 1MHz, but at 1.7MHz they both need 4.5V or more. Try at 400kHz.

    Cheers

    Jonathan
  48. Replies
    13
    Views
    438

    What colour LED? If its Vf is much greater than...

    What colour LED? If its Vf is much greater than the Vf of the 6N137 then it wonít light when itís connected to the right side of R7, because it doesnít have a high enough voltage. A red LED is your...
  49. Thanks manicksan. This would let one switch the...

    Thanks manicksan. This would let one switch the connections on the fly (at the cost of considerable complexity!), but as far as I can tell the AudioConnections can be changed anyway, though of course...
  50. Roadmap "Dynamic Updates": any effort going on?

    Hi folks

    Just got my first Teensy (4.1, start at the top, right?) and dead excited about the audio possibilities. I've toyed with the Nord Modular kit in the past, and this looks very like it in...
Results 1 to 50 of 50