In Chapter 6, Data Acquisition and Mapping, we demonstrated how we can essentially map any consecutive range to any other with respect to distribution curves. In this section, we will extend our arsenal of encoding techniques and introduce ourselves to how to implement complex and intelligent encodings.
There are situations wherein what we need is some kind of intelligence that will take the necessary decisions and select the appropriate process from a broader range of candidates in order to encode our data properly. To realize such mappings, we need some kind of mechanism that ensures the right decisions are taken and, of course, we need to define alternative behaviors. A simplistic way to implement decision-making algorithms would be by using test mechanisms and control flow structures, such as if
or case
. For the following simplistic example, assume that we want to sonify floating-point numerical values in the range of 0 to 1 so that they...