Skip to content

Main content

Tuning Reference Octave Carry Tool

Normalize supplied tuning-step/octave indices under a caller-defined division; no frequency or temperament table.

Loading tool…

Description

Use exact integer modular arithmetic for nonnegative step remainder and add its floor-based carry to octave, exporting safe numeric integers.

Cyclic musical positions need a cycle length, origin and tie policy. Negative positions and half-cycle differences require careful modular conventions, especially when returning both a local phase and a whole-cycle carry.

Use exact integer modular arithmetic for nonnegative step remainder and add its floor-based carry to octave, exporting safe numeric integers.

When to use this tool

Use Tuning Reference Octave Carry when you need an explicit rhythmic or tuning-cycle coordinate calculation.

How to use the tool and how it works

  1. Enter step, octave, stepsPerOctave. Use the units and conventions below.
  2. Run the tool. Correct any format, range, or cross-field input error before interpreting the output.
  3. Read normalizedStep, normalizedOctave. Use the output convention below.

Require integer step/octave and positive integer stepsPerOctave. Use exact integer modular arithmetic for nonnegative step remainder and add its floor-based carry to octave, exporting safe numeric integers.1

Input fieldMeaning and unitsAccepted input
stepStepRequired. Safe integer.
octaveOctaveRequired. Safe integer.
stepsPerOctaveSteps Per OctaveRequired. Safe integer; minimum 1.
Output fieldInterpretationReturned shape
normalizedStepNormalized StepRequired. Safe integer.
normalizedOctaveNormalized OctaveRequired. Safe integer.
json
{
  "input": {
    "step": 14,
    "octave": 4,
    "stepsPerOctave": 12
  },
  "output": {
    "normalizedStep": 2,
    "normalizedOctave": 5
  }
}

Limitations and assumptions

  • Negative steps carry into the prior octave. The supplied step system is not assumed twelve-tone and no frequency or cultural tuning standard is inferred.
  • 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 the intended musical notation and source annotations to establish the cycle and origin. A numerical wrap cannot determine meter, tuning practice or cultural meaning by itself.

References

  1. Calculation and input contract: ethnomusicology/tuning-reference-octave-carry — tool.io

Similar or alternative tools