Description
Map an explicit seven-bit MIDI channel pressure to a caller-supplied ascending finite numeric range; linear caller model, not synth-specific response.
MIDI 1.0 channel messages use a status byte identifying a message type and a channel, followed by one or two seven-bit data bytes. This family uses channel indexes 0–15 and raw program values 0–127. Raw message bytes do not include musical timing, instrument state or a MIDI file container.1
Map an explicit seven-bit MIDI channel pressure to a caller-supplied ascending finite numeric range; linear caller model, not synth-specific response.
When to use this tool
Use this tool to map an explicit seven-bit MIDI channel pressure to a caller-supplied ascending finite numeric range; linear caller model, not synth-specific response.
How to use the tool and how it works
- Enter pressure, minimum, maximum using the field definitions below.
- Run the operation. Correct input errors before interpreting an output.
- Read result.value. Use the ordering, boundary rules and absence conditions described below.
Linearly map pressure from integer range 0–127 onto the supplied inclusive minimum/maximum range.2
| Input field | Meaning and units | Accepted input |
|---|---|---|
| pressure | Channel pressure integer 0–127. | A finite safe integer within the operation’s stated bounds. |
| minimum | Lower endpoint of the caller-defined mapped output range. | A finite number satisfying the operation’s stated comparisons. |
| maximum | Upper endpoint of the caller-defined mapped output range. | A finite number satisfying the operation’s stated comparisons. |
| Output field | Interpretation |
|---|---|
| result | Object containing the named fields below. |
| result.value | Unsigned fourteen-bit value or caller-range pressure mapping, as described above. |
{
"input": {
"pressure": 127,
"minimum": -1,
"maximum": 1
},
"output": {
"result": {
"value": 1
}
}
} Limitations and assumptions
- Output uses the supplied range’s units; no instrument response curve or pressure measurement is inferred.
- Message data bytes must be integers 0–127 and channel statuses 128–239. Channels are zero-based; this family does not implement MIDI 2.0 UMP, audio synthesis or a complete timed MIDI file.
- Every declared top-level input field is required and unexpected fields are rejected. Ordinary strings are limited to 8,192 UTF-16 code units and lists to 128 entries, with tighter operation-specific bounds where stated. JSON text has bounded nesting and node counts.
- Numeric outputs must be finite and no larger in absolute magnitude than the safe-integer limit; operations returning exact large integers use decimal text. Positions are zero-based and spans end exclusively unless the operation explicitly states a different convention.
Alternative or Complementary methods
Separate channel-message encoding from timing, running status and device interpretation. Use a MIDI sequencer or full file/stream parser when those additional layers matter.
References
-
Summary of MIDI 1.0 Messages — The MIDI Association
-
Tool behavior and example: MIDI Channel Pressure Range Map — tool.io
Similar or alternative tools
- MIDI Channel Message Byte Count
Return required MIDI 1.0 channel-message byte counts from an explicit status, excluding running-status omission and system messages.
- MIDI Channel Message Channel Remapper
Remap all MIDI channel-message channels through an explicit sixteen-entry old-to-new channel table; preserve message type and data.