Description
Convert event-minus-origin into beats, round to nearest using Math.round and return event minus that nearest grid point in seconds.
Musical timing can be expressed in seconds, pulses, beats and phrase positions. A grid or cycle is an explicit model; calculating its coordinates does not detect onsets, determine a tradition's meter or evaluate a performance.
Convert event-minus-origin into beats, round to nearest using Math.round and return event minus that nearest grid point in seconds.
When to use this tool
Use Recording Beat Grid Offset when you need a supplied timing-grid, pulse or phrase calculation.
How to use the tool and how it works
- Enter eventSeconds, gridOriginSeconds, secondsPerBeat. Use the units and conventions below.
- Run the tool. Correct any format, range, or cross-field input error before interpreting the output.
- Read beatCoordinate, nearestBeat, offsetSeconds. Use the output convention below.
Require positive secondsPerBeat. Convert event-minus-origin into beats, round to nearest using Math.round and return event minus that nearest grid point in seconds.1
| Input field | Meaning and units | Accepted input |
|---|---|---|
| eventSeconds | Event Seconds | Required. Finite number. |
| gridOriginSeconds | Grid Origin Seconds | Required. Finite number. |
| secondsPerBeat | Seconds Per Beat | Required. Finite number; strictly above 0. |
| Output field | Interpretation | Returned shape |
|---|---|---|
| beatCoordinate | Beat Coordinate | Required. Finite number. |
| nearestBeat | Nearest Beat | Required. Safe integer. |
| offsetSeconds | Offset Seconds | Required. Finite number. |
{
"input": {
"eventSeconds": 1.1,
"gridOriginSeconds": 0,
"secondsPerBeat": 0.5
},
"output": {
"beatCoordinate": 2.2,
"nearestBeat": 2,
"offsetSeconds": 0.10000000000000009
}
} Limitations and assumptions
- Negative positions are allowed and half ties go toward positive infinity. No onset detection, meter inference or actual performance quantization is performed.
- Inputs must satisfy both the field types and the cross-field conditions above. Invalid input causes an error; a successful false flag or documented placeholder is a different result.
- Numeric calculations use binary floating point unless exact decimal-integer arithmetic is explicitly stated. No hidden measurement tolerance or decimal rounding is added; nonfinite or out-of-contract results are rejected. Numeric signed-zero results are exported as zero.
Alternative or Complementary methods
Inspect the recording and its relevant musical context for transcription or interpretation. Keep time units, pulse definitions, tempo changes and source annotations explicit.
References
Similar or alternative tools
- Transcription Onset Grid Offset
Return gridOrigin+suppliedGridIndex×gridStep and onset minus that grid time.
- Authorized Recording Credit Share Tool
Account for explicitly authorized recording credits; no copyright or community permission is inferred.