Virtual Mapping Techniques

“Cycled State” mappings

A toggle state cycles between just two values. This demo show one way of cycling between up to 16 values by using Dispatcher

This Demo

VM4_cycled_mappings.mhp

The Demo line source will cycle between certain inputs dictated by the Dispatcher channels selected.


Notes:

  1. Whereas a “Scale Down → Scale Up” mapping will allow output values like 16, 24, 40, 48, 56, 64, this technique goes through the values in (‘Round Robin’) order
    and allows us to skip values to give, say, 16, 24, 56, 64

  2. This Dispatcher is set to the original ‘Round Robin’ Algorithm to ascend the values and then cycle back to the lowest.

    Setting to ‘Ping Pong’ or ‘Random’ will give quite different results which may also be useful or interesting.

  3. The key Transform uses Set Value to Incoming Channel. This produces values 0, 8, 16, 24,…
    A Rescale is included to change this to whatever mapping is suitable.



Other techniques which can give similar results include:

  • Multiple “Range” mappings.
    A pipe per value approach.
    More flexible, can be any length/spacing, more laborious to write and adapt

  • Scale Remap approaches.
    Limited to 12 values initially.
    Very useful when you need a custom route through a set of values
    (This is not yet included in the series, but an example can be found here)


back to contents
1 Like