midi velocity percentage calculator
MIDI Velocity Percentage Calculator guide
A piano-roll editor may express note velocity as a percentage while a MIDI event monitor shows a single integer. This calculator maps a position on a linear full-scale slider to the nearest seven-bit velocity. Enter a percentage from zero through one hundred, including decimals, and read both the decimal and hex representations of the same result.
Play the instrument ↑- Default result
- 64 MIDI velocity
Calculation and units
Multiply the percentage by 127, divide by 100 and round to the nearest integer. At an exact half step the result rounds upward. Fifty percent gives 63.5 before rounding and therefore 64 afterward. The lowest and highest slider positions land on zero and 127. Percentages close together can land on the same integer.
Worked examples
Select a named case in the Worked example control to load these values. You can then edit any input to compare the result.
Middle of the range
Percent of full velocity = 50.
64 MIDI velocity. Hex 40 · nearest integer on a linear 0–127 scale. Velocity response depends on the receiving instrument.
Half of 127 lands halfway between two integers. The explicit upward tie rule picks 64, which is a common reference velocity in examples and a useful check on rounding.
Maximum attack value
Percent of full velocity = 100.
127 MIDI velocity. Hex 7F · nearest integer on a linear 0–127 scale. Velocity response depends on the receiving instrument.
The largest valid seven-bit data value appears at the top of the linear slider. An instrument can respond with a special articulation or sample layer at that position.
Zero attack value
Percent of full velocity = 0.
0 MIDI velocity. Hex 00 · nearest integer on a linear 0–127 scale. A Note On with zero velocity acts as Note Off.
This position encodes zero. On a MIDI 1.0 Note On that has release semantics, so it cannot be used as an ordinary sounding attack with silent velocity.
Smallest nonzero region
Percent of full velocity = 0.4.
1 MIDI velocity. Hex 01 · nearest integer on a linear 0–127 scale. Velocity response depends on the receiving instrument.
Multiplying by 127 gives just over half of one velocity unit before rounding. The result reaches one, although perceived level at this value is determined by the patch.
Below the first threshold
Percent of full velocity = 0.3.
0 MIDI velocity. Hex 00 · nearest integer on a linear 0–127 scale. A Note On with zero velocity acts as Note Off.
A slightly smaller percentage falls below half a unit and rounds down. Compare the previous case to see why a positive percentage alone does not guarantee a sounding Note On.
Three-quarter accent
Percent of full velocity = 75.
95 MIDI velocity. Hex 5F · nearest integer on a linear 0–127 scale. Velocity response depends on the receiving instrument.
The ideal value is 95.25, so the nearest integer is 95. This illustrates why multiplying by 128 and truncating gives different results for some commonly used slider positions.
Interpreting the result
Use this mapping when the editor’s percentage describes an absolute position. A command to scale existing velocities by fifty percent means something different. Scaling an existing velocity of 80 by one half produces 40. Entering fifty into this calculator produces 64 because it is half of the whole velocity range, rounded to a byte.
Write down whether a control uses velocity for attacks, releases or both. Release velocity describes how a key was released and travels in a different context from the attack byte used here. For a useful comparison, fix the pitch, patch and MIDI channel, then vary only the attack value. This avoids attributing a patch change or a different sampled note to the percentage mapping.
Measurement and model limits
When comparing a sequence to a drum machine, confirm that the device uses the same velocity curve, accent map and articulation. A sampler may switch recordings between two adjacent values. Another instrument may use the value only to open a filter. Linear byte values do not imply equal perceived steps in loudness or an acoustic pressure level.
Music theory tools → · MIDI Note On Calculator → · MIDI Association message definitions →
Answers before you play
Common questions
Can zero make an extremely quiet Note On?
In MIDI 1.0, a Note On carrying velocity zero acts as a Note Off. To retain a sounding attack, use a nonzero velocity supported by the receiving instrument and manage the audible level separately.
How do I recover the percentage from a byte?
Divide the integer velocity by 127 and multiply by one hundred for its exact full-scale position. The source percentage before rounding cannot always be recovered because several nearby slider values map to the same byte.
What does 7F mean in a packet monitor?
It is hexadecimal for 127, the maximum seven-bit velocity. FF is outside the data-byte range and cannot represent a stronger ordinary MIDI 1.0 note attack.
How much slider travel is one step?
One velocity count corresponds to about 0.7874 percentage points on this linear scale. Rounding means the threshold between adjacent values lies midway between their exact slider positions.