Skip to content

Comment on I need to grow away from these rootsparent

Comments

A basic c maj chord is c4 f4 g4. Inversions move bottom notes to the top, like f4 g4 c5, or g4 c5 f5. They significantly change the flavor of the chord.

Yes, those are 'closed' voicings of the basic inversions, though. What about f4 c5 g5? Still a C/F, but an open voicing.

I mentioned Sonic Pi in my post - it actually has a bunch of built in API support for this sort of thing.

Generating all the basic inversions of all those chords for all those root notes is as simple as:

    (note_range :A2, :D5).each { |root|
      [:major, :minor, :major7, :minor7].each { |chord|
        chord_size = chord(root, chord).to_a.length
      
        for i in 0..chord_size do
        
          the_chord = chord(root, chord, inversion: i)
        
        end
      }
    }
 
'the_chord' gets set to arrays of midi notes corresponding to every inversion of every chord.

Pretty sure that's a C sus4

Ha, true. Derp.

i thot it was c4 e4 g4?

AboutSource Built by g1lg1l

Hackerly is an independent reader for Hacker News, built on the public HN API. Not affiliated with Y Combinator.