Jason (jcreed) wrote,

Had a bleary crappy sick-feeling day for most of today, but after a nap and some food I dug myself out of my hole enough to copy and paste enough code from puredata enough to get a tiny standalone C midi-to-jackd synthesizer going. My naive attempt at dealing with clipping artefacts at note-on and note-off time without actually doing any real ADSR was just "if the absolute difference between the current signal and the last step is bigger than THRESHOLD, just pretend it was THRESHOLD instead". Turns out this really fucks with normal audio signals if their frequency is high enough, or if they are polyphonic enough, because both of these produce slopes high enough for the filter to grab hold of. Anyway, it is the grand tradition of audiovisual programming of all kinds that the bugs are often as interesting as what you meant to do. My bug sounds like this.
Tags: audio, programming

  • (no subject)

    K's off at an atypically Saturdayish Type-Thursday event, so I stuck around the apartment hiding from 100-degree heat, and noodled around with…

  • (no subject)

    Playing around with the agda javascript backend, now. Like, my ears are popping from the sudden change of type-theory-pressure.

  • (no subject)

    https://deadlockempire.github.io is a very cute edutainment game, meant to teach people about deadlocks and race conditions and concurrency…

  • Post a new comment


    Anonymous comments are disabled in this journal

    default userpic

    Your reply will be screened

    Your IP address will be recorded