Skip to content

Wrong chroma / normalized chroma #284

@ohmycode

Description

@ohmycode

Hi @danigb, I stumbled across the following issue:

let scale = Scale.get('D major');  
console.log(scale);

returns:

aliases: ['ionian']
chroma: "101011010101"
empty: false 
intervals: (7) ['1P', '2M', '3M', '4P', '5P', '6M', '7M']
name: "D major"
normalized: "101010110101"
notes: (7) ['D', 'E', 'F#', 'G', 'A', 'B', 'C#']
setNum: 2773
tonic: "D"
type: "major"

I think neither the chroma nor the normalized chroma is correct.

whereas

console.log(Pcset.chroma(['D', 'E', 'F#', 'G', 'A', 'B', 'C#']));

returns 011010110101 which works as expected.

I tried to find the bug, but couldn't find it.

Any Idea?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions