RGB values in the range of midi.
Hey guys,
I was wondering what would be the calculation or how do I range R G B values into midi. For example, the midi starts from note 24, up to 83 for example. So I have RGB - R = 135 , G = 30 , B = 87
How do I scale these numbers that are bigger than 84 or smaller than 24? I meant what is the calculation that is sensible to generate this midi note number in terms of R G B. Do I say that if it's bigger than 83 scale it to 83 and if it's smaller than 24 scale it 24?
Thank you.
Oh what I want to do is to connect the number to 16 mix oscillators to get different timbres
you want the [scale] object. I'd scale the full RGB range to the MIDI range you want, unless you have a reason not to...
scale 0 255 24 83
one each for R G B, unless you want to combine them somehow.