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

Add support for custom-designed waveform within one period. #55

Open
razterizer opened this issue May 29, 2024 · 0 comments
Open

Add support for custom-designed waveform within one period. #55

razterizer opened this issue May 29, 2024 · 0 comments
Assignees

Comments

@razterizer
Copy link
Owner

T=1/f
dt=1/fs
Num samples per period:
nspp = T / dt = fs/f
E.g.
f=440 Hz, fs=44100 Hz,
then:
nspp ~= 100.

Probably need to linearly interpolate these 100 samples (for instance) up to a bigger number of samples (f < 440 Hz) or down to a smaller number of samples (f > 440 Hz) to make it nearly frequency independent and make it easy enough to use.

Then use some data format to describe this waveform shape. E.g.

|
|# #
|## ##
|#### ####
|####### #######
|####################
+--------------------

@razterizer razterizer self-assigned this May 29, 2024
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