Description
Measure a signed onset offset between recording channels.
Musical field records distinguish performer/community attribution, transcription and naming sources, cyclic beat coordinates and recorded permission. A public-access label is different from a reuse license, and a numerical timing residual is different from performance interpretation. Cultural context and actual consent remain tied to original sources.
Measure a signed onset offset between recording channels.
When to use this tool
Use Recording Channel Onset Offset when checking the stated public-record, timing, attribution or permission convention.
How to use the tool and how it works
- Enter firstChannelOnsetSamples, secondChannelOnsetSamples, sampleRateHz. Use the units and conventions below.
- Run the tool. Correct any format, range, or cross-field input error before interpreting the output.
- Read offsetSamples, offsetSeconds. Use the output convention below.
Require nonnegative whole channel-onset sample indices and sampleRateHz>0. Return second-first sample offset and divide by rate for seconds.1
| Input field | Meaning and units | Accepted input |
|---|---|---|
| firstChannelOnsetSamples | First Channel Onset Samples | Required. Safe integer; minimum 0. |
| secondChannelOnsetSamples | Second Channel Onset Samples | Required. Safe integer; minimum 0. |
| sampleRateHz | Sample Rate Hz | Required. Finite number; strictly above 0. |
| Output field | Interpretation | Returned shape |
|---|---|---|
| offsetSamples | Offset Samples | Required. Safe integer. |
| offsetSeconds | Second-minus-first sample onset divided by sampleRateHz. | Required. Finite number. |
{
"input": {
"firstChannelOnsetSamples": 1000,
"secondChannelOnsetSamples": 1240,
"sampleRateHz": 48000
},
"output": {
"offsetSamples": 240,
"offsetSeconds": 0.005
}
} Limitations and assumptions
- Onsets and rate are supplied rather than measured; no audio is loaded, channels aligned or actual performance timing analyzed.
- 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
Use original recordings and community/source conventions, with appropriate verified consent and rights review for actual interpretation, reproduction or sharing.
References
Similar or alternative tools
- Performance Tempo Local Reference Offset
Calculate a local tempo's signed difference from a supplied reference.
- Musical Pulse Timing Residual
Calculate a musical pulse's signed timing residual.