Commit Graph

8 Commits

Author SHA1 Message Date
kris
6b612ffb0a Normalize audio at 0.5/99.5%iles to clip less 2023-01-24 21:49:33 +00:00
kris
efe821d215 Fix warning 2023-01-17 21:09:34 +00:00
kris
451523bdef Support for custom output bitrate, e.g. to target //gs in 2.8MHz mode.
For some reason playback speed is only about 1.6x (probably due to
slowing down accesses to the I/O page to 1MHz, so as not to mess up
hardware timings), but happily this comes within 3% of being 44100/2.
2019-07-14 22:05:20 +01:00
kris
ce3bed0d38 Try resampling with scipy and scaling audio power 2019-07-13 14:32:21 +01:00
kris
bd0aa6ad6b Simplify the accounting of audio ticks in video framing, and fix an off-by-one that was causing audio and video to become desynchronized.
Switch from 14340Hz to 14700Hz, which is 44100/3 i.e. a divisor of the
most common audio input sample rate.  This gives better quality
(and/or faster to encode) audio quality at the cost of producing <2%
faster playback.
2019-06-19 21:47:49 +01:00
kris
ce078f493f Start to flesh out function docstrings, add some more type annotations. 2019-03-21 22:41:05 +00:00
kris
cf493e782c Add module docstrings 2019-03-21 16:42:47 +00:00
kris
bbfcacd674 Move transcoder to new location 2019-03-21 16:10:16 +00:00