Ignotus-mago / PixelAudio

PixelAudio maps arrays of audio samples onto arrays of pixel values.
Other
0 stars 0 forks source link

ApplyChannel Enhancements #4

Open Ignotus-mago opened 1 week ago

Ignotus-mago commented 1 week ago

In PixelAudioMapper I wrote eight "apply" methods: applyBrightness, applyHue, applySaturation, applyRed, applyGreeen, applyBlue, applyAlpha, applyAll. Each method accepts a float value and an int, which should be an audio value and an RGB value. The float is applied in the selected channel and returned as an RGB value.

The code that call the apply methods was simplified, as expected. This may be all we need to do. However, all these methods have the signature applyChannel(float, int). Perhaps further thought is needed for situations where both arguments are RGB int values.