MAP

The MAP node is arguably the most important utility for escape room hardware. It takes a value from one range and scales it proportionally into a completely different range.
When to use this node: * Sensor Conversion: Mapping a 10-bit analog sensor (0–1023) to a standard 8-bit RGB color channel (0–255). * Volume Control: Converting a percentage (0–100) into the specific decibel range required by an external audio player. * Progress Tracking: Mapping a game timer (e.g., 3600 seconds down to 0) to a progress bar's width or a dial's rotation (0 to 180 degrees).
Pro Tip:
The MAP node automatically handles the math for you. Even if your ranges are inverted (e.g., mapping 0–100 to 255–0), the node will correctly "flip" the values.
Connectors in
- int [type: variant]
- inMin [type: variant]
- inMax [type: variant]
- outMin [type: variant]
- outMax [type: variant]
Connectors out
- int [type: variant]
Node properties
- inMax [type: integer]
- inMin [type: integer]
- outMax [type: integer]
- outMin [type: integer]