Commit Graph

5 Commits

Author SHA1 Message Date
kris 893e872da4 Tidy 2022-07-22 14:29:31 +01:00
kris b35e4f86fb Add shebang and tidy some more 2020-08-11 23:26:55 +01:00
kris 1bbbd8c154 Merge preprocess_audio back in. We didn't end up getting a speed
boost from pypy, perhaps because the critical path is in numpy code.

Add some comments and clean up a bit.
2020-08-11 23:23:33 +01:00
kris 0f8ad1bf17 Checkpoint working code that implements delta modulation with look-ahead.
I split out preprocess_audio because scipy/librosa don't run under
pypy and I was hoping that would speed up the encoding, but it does
not for some reason (maybe numpy interactions?)

Anyway, I should be able to vectorize the slow path which will likely
help a lot.
2020-08-10 21:03:12 +01:00
kris d283789199 Initial commit of working delta modulation playback over ethernet
(moved over from rewolf repository).

Using a 13-cycle period neatly divides the 65-cycle 'long cycle'
period of the Apple II which avoids audio transients when playing
'silence'.  This also aligns with the horizontal refresh period which
should make it possible to do some interesting visual effects.

TODO
- implement predictive encoding that looks ahead to next N samples and
  minimizes average error.  This should improve quality

- get page-flipping effects looking nice
2020-08-07 12:50:32 +01:00