Staff Position to Diatonic Step
Resolve signed line/space steps from conventional five-line staff bottom under treble/bass/alto/tenor clef, yielding natural letter/octave; accidentals/key signature not inferred.
Description
Staff placement follows diatonic letters and the clef’s bottom-line reference.
Staff placement follows diatonic letters and the clef’s bottom-line reference. Accidentals change sound without moving a note’s staff position.1
Enter exact treble/bass/alto/tenor clef and integer displacement −28…28 from its bottom line. Return natural scientific note and absolute diatonic index; pitch must fit MIDI range.
When to use Staff Position to Diatonic Step
Use Staff Position to Diatonic Step when you need to evaluate the supplied records under the calculation and evidence rules below. No key signature, accidental, clef octave transposition or sounding instrument offset is applied.
Enter the written notes, explicit grouping, pitch observations or supported chord tokens requested. Keep scientific octaves, accidentals and caller evidence consistent.
How to use Staff Position to Diatonic Step and understand its results
- Enter the written notes, explicit grouping, pitch observations or supported chord tokens requested. Keep scientific octaves, accidentals and caller evidence consistent.
- Enter clef, signedStepsFromBottomStaffLine using the field table and calculation rules, then run the tool.
- Read naturalScientificNote, diatonicPitchIndex. The explanation below defines the units, signs, ordering and any flags or placeholder values.
- If the tool reports an input issue, correct the values and run it again. Apply the stated assumptions when interpreting a successfully returned result.
| Input field | Meaning | Value type; see rules below | Requirement |
|---|---|---|---|
| clef | Clef | string | Required |
| signedStepsFromBottomStaffLine | Signed steps from bottom staff line | number | Required |
Enter exact treble/bass/alto/tenor clef and integer displacement −28…28 from its bottom line. Return natural scientific note and absolute diatonic index; pitch must fit MIDI range.
staffIndex=clefBottom+signedSteps; octave=floor(staffIndex/7) Units, indexing, boundary conditions and exceptional cases are defined in the calculation rules above.
| Output field | Meaning | Value type |
|---|---|---|
| naturalScientificNote | Natural scientific note | string |
| diatonicPitchIndex | Diatonic pitch index | number |
{
"input": {
"clef": "treble",
"signedStepsFromBottomStaffLine": 3
},
"output": {
"naturalScientificNote": "A4",
"diatonicPitchIndex": 33
}
} Limitations and assumptions
No key signature, accidental, clef octave transposition or sounding instrument offset is applied.
Numeric inputs, where present, must be finite. Follow the calculation-specific rules for overflow, underflow and exceptional cases. Extremely large text inputs are rejected. Missing required fields, extra fields, wrong value types and violations of the calculation rules are input errors.
Alternative or Complementary methods
Use Ledger Line Count For Pitch: Ledger lines follow written staff height, while spaces outside the staff need fewer added lines. Accidentals leave vertical placement unchanged. For a complementary task, use Note Name to MIDI Converter: Scientific pitch notation combines letter, accidental and octave. Accidentals can cross the written octave boundary while sounding as one MIDI note.
References
-
Staff Position to Diatonic Step — tool.io
Similar or alternative tools
- Ledger Line Count For Pitch
Ledger lines follow written staff height, while spaces outside the staff need fewer added lines. Accidentals leave vertical placement unchanged.
- Note Name to MIDI Converter
Scientific pitch notation combines letter, accidental and octave. Accidentals can cross the written octave boundary while sounding as one MIDI note.