Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Emulator implementation. #4

Open
audetto opened this issue May 13, 2023 · 0 comments
Open

Emulator implementation. #4

audetto opened this issue May 13, 2023 · 0 comments

Comments

@audetto
Copy link

audetto commented May 13, 2023

Hi,

I would like to try to implement a more correct speaker behaviour in AppleWin.

For this I have a couple of open questions, which you might be able to help with

General questions:

  1. inv_scale: with a brute force attack I checked that the minimum scale to ensure [-1, 1] is just below 3300. The current value of 1738 is a bit short of this. How did you select it? You say you used the equilibrium value (I get 1755), but this risks a lot of clipping.
  2. sub question. is encoding volume-dependent?
  3. initialisation: do the initial values of y1 y2 v1 v2 matter? probably very very little as I can see from the simulation

Emulation:

  1. the hardest part is coding librosa.resample in c++ without making it too complicated. Do you have any suggestion on how to implement a very simple but acceptable downsample? Currently AppleWin does an average of the values every 23 samples.
  2. I was thinking of coding a low-pass filter at 22050Hz and then decimate. What do you think?
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant