chaudio.plugins.resolution

changes the minimum resolution

rounds each sample to the nearest value of “step”, which has the graphical effect of a “pixelated” waveform (similar to square wave)

Classes

Resolution(**kwargs) changes the minimum resolution
class chaudio.plugins.resolution.Resolution(**kwargs)[source]

changes the minimum resolution

rounds each sample to the nearest value of “step”, which has the graphical effect of a “pixelated” waveform (similar to square wave)

process(_data)[source]

Returns the result, but rounded in every step, effectively outputting with less resolution

“norm”:If True, then normalize before scaling (default is True), then multiply back so it is effectively untouched. Note you still get the same amplitude back either way, so it isn’t permanently normalizing. This is so that the step values are treated like proportions (where .5 == 50%), and the result is roughly similar to all inputted waveforms. You should not change this
“step”:The value to have the audio data rounded to. If norm==True, then this is treated as a proportion. i.e. if step==.1, then the resulting audio data only has 19 (2.0/step-1) possible amplitudes, which creates interesting effects