# Chord Melody tool

**URL:** <https://forum.juce.com/t/chord-melody-tool/39471>\
**Category:** General JUCE discussion\
**Created:** [May 16, 2020, 12:08pm UTC](https://forum.juce.com/t/chord-melody-tool/39471 "2020-05-16T12:08:38Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Willogical](https://avatars.discourse-cdn.com/v4/letter/w/a5b964/32.png) [@Willogical](https://forum.juce.com/u/Willogical)\
**Post date:** [May 16, 2020, 12:08pm UTC](https://forum.juce.com/t/chord-melody-tool/39471/1 "2020-05-16T12:08:38Z")

</div>

Hey! I noticed when playing my guitar that I wanted a quick util to match all chord inversions for a melody note in one place. Does anyone know an efficient way to calculate arbitrary harmonies for a single midi note and then have slider to playback one at a time?

---

<div class="post-metadata">

**Author:** ![daniel](https://sea2.discourse-cdn.com/flex026/user_avatar/forum.juce.com/daniel/32/790_2.png) [@daniel](https://forum.juce.com/u/daniel)\
**Post date:** [May 16, 2020, 12:20pm UTC](https://forum.juce.com/t/chord-melody-tool/39471/2 "2020-05-16T12:20:17Z")

</div>

That depends, for triads it is quite simple to compute (assume the midi note as base note, then as third and as fifth, and getting the other two are easy to fill.

It becomes more difficult, if you don’t know the current key, so you have to take major/minor into account. If you add 7th chords you get more solutions.

The problem is not to find the possible ones, but to limit the options with heuristics. Otherwise you end up with 12 or more options.

---

<div class="post-metadata">

**Author:** ![Willogical](https://avatars.discourse-cdn.com/v4/letter/w/a5b964/32.png) [@Willogical](https://forum.juce.com/u/Willogical)\
**Post date:** [May 16, 2020, 12:32pm UTC](https://forum.juce.com/t/chord-melody-tool/39471/3 "2020-05-16T12:32:35Z")

</div>

Alright so there’s a slider that chooses the key.

Another that limits between extensions and triads.

Then another that gauruntees that all slash chords/root positions have the melody note I want in the top to help me arrange my chord Melody song.

Last I want to choose the octave. I believe a six string guitar has two.
