Sugar Labs

Music Blocks Invert Pitches Feature

Issue 30 Invert pitches clamp based on pitch interval

Ask Devin for more details (and read from link above), but...

If we have a change in pitch interval that goes +7,-3,+8 then the inversion should be: -7,+3,-8...

The trick is to make the software measure the pitch interval distance

"do4" to "mi4" is +4 because the difference between the two pitches is 4 semitones.

do4, do#4, re4, re4, mi4 (counted: 0,1,2,3,4)

This should be done in absolute pitch-space (octave is ALWAYS factored)

Task tags

  • Code
  • JavaScript

Students who completed this task

Shrix

Task type

  • code Code
close

2015