home/ atoms/ renardo-microtone-degree

Renardo supports microtonal pitches as floating-point scale degrees interpolated between semitones

In Renardo’s scale-to-MIDI conversion, degree values are not limited to integers. A float like 2.5 is interpreted as midway between scale degree 2 and degree 3, with the actual pitch interpolated using the semitone distance between those degrees. This enables microtonal inflections in any scale without custom tuning systems. In the electro_pop example, [2, 2.5] plays degree 2 and then a note halfway to degree 3. With Tuning.just or Tuning.bohlen_pierce, the conversion uses non-equal temperament grids. A misconception is that 2.5 means MIDI note 2.5 — it is a fractional scale step.

Examples

# From melodic_techno.py:
b2 >> blip([0, -1, 2, 5, [2, 2.5], -1], dur=0.5)
# [2, 2.5] plays degree 2 then a microtone halfway to degree 3

Assessment

What pitch does degree 1.5 represent in Scale.major (semitone intervals [0,2,4,5,7,9,11])? How does this differ from using Tuning.just?

“# Work out any microtones micro = (degree - lo) if micro > 0: ex_scale = list(scale) + [stepsPerOctave]”
corpus · renardo-python-over-supercollider-foxdot-successor-with-buil · chunk 78