There is this post: Output Transform Tone Scale - #189 by jedsmith
But I’m not sure about the larger question.