Skip to content

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

@razterizer

Description

@razterizer

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.

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

Metadata

Metadata

Assignees

Labels

No labels
No labels

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions