Open relic-se opened 3 weeks ago
I think we need to add more fluff for the full effects package as well.
I think we need to add more fluff for the full effects package as well.
* Maybe a bitcrasher?
I don't know exactly what you mean by "fluff", but the audiofilters.DistortionMode.LOFI
is a bitcrusher. In fact, it may need to be renamed to better represent that.
New audio effects class,
audiofilters.Distortion
, to distort audio samples using one of the available modes available in theaudiofilters.DistortionMode
enum.Todo:
DistortionMode.CLIP
,DistortionMode.OVERDRIVE
andDistortionMode.WAVESHAPE
algorithms.Comments:
audiofilters.Filter
effect? (ie:filter.play(distortion.play(sample))
)pre_gain
andpost_gain
properties are currently measured in decibels which requires the addition of adb_to_linear
function to make those values linear. Would it be more ideal to forego decibels altogether and make those properties linear?Parameters, documentation copy and algorithms are mostly credited to Godot Engine under the MIT License.
Example Code: