NegativeHarmonyGenerator

• Oct 6, 2021 - 17:40

I downloaded the "NegativeHarmonyGenerator" plugin.
But it doesn't seem to work.

Debug messages:

Running…
Plugin Details:
Menu Path: Plugins.NegativeHarmonyGenerator
Version: 1.0
Description: Generates the negative harmony of the selected/ whole score
Requires Score
Debug: STATE CHANGED HOVERED
Debug: STATE CHANGED
Debug: 2
Debug: C 0
Debug: C# 1
Debug: D 2
Debug: D# 3
Debug: E 4
Debug: F 5
Debug: F# 6
Debug: G 7
Debug: G# 8
Debug: A 9
Debug: A# 10
Debug: B 11
Debug: C 12
Debug: C# 13
Debug: D 14
Debug: D# 15
Debug: E 16
Debug: F 17
Debug: F# 18
Debug: G 19
Debug: G# 20
Debug: A 21
Debug: A# 22
Debug: B 23
Debug: C 24
Debug: C# 25
Debug: D 26
Debug: D# 27
Debug: E 28
Debug: F 29
Debug: F# 30
Debug: G 31
Debug: G# 32
Debug: A 33
Debug: A# 34
Debug: B 35
Debug: C 36
Debug: C# 37
Debug: D 38
Debug: D# 39
Debug: E 40
Debug: F 41
Debug: F# 42
Debug: G 43
Debug: G# 44
Debug: A 45
Debug: A# 46
Debug: B 47
Debug: C 48
Debug: C# 49
Debug: D 50
Debug: D# 51
Debug: E 52
Debug: F 53
Debug: F# 54
Debug: G 55
Debug: G# 56
Debug: A 57
Debug: A# 58
Debug: B 59
Debug: C 60
Debug: C# 61
Debug: D 62
Debug: D# 63
Debug: E 64
Debug: F 65
Debug: F# 66
Debug: G 67
Debug: G# 68
Debug: A 69
Debug: A# 70
Debug: B 71
Debug: C 72
Debug: C# 73
Debug: D 74
Debug: D# 75
Debug: E 76
Debug: F 77
Debug: F# 78
Debug: G 79
Debug: G# 80
Debug: A 81
Debug: A# 82
Debug: B 83
Debug: C 84
Debug: C# 85
Debug: D 86
Debug: D# 87
Debug: E 88
Debug: F 89
Debug: F# 90
Debug: G 91
Debug: G# 92
Debug: A 93
Debug: A# 94
Debug: B 95
Debug: C 96
Debug: C# 97
Debug: D 98
Debug: D# 99
Debug: E 100
Debug: F 101
Debug: F# 102
Debug: G 103
Debug: G# 104
Debug: A 105
Debug: A# 106
Debug: B 107
Debug: C 108
Debug: C# 109
Debug: D 110
Debug: D# 111
Debug: E 112
Debug: F 113
Debug: F# 114
Debug: G 115
Debug: G# 116
Debug: A 117
Debug: A# 118
Debug: B 119
Debug: C 120
Debug: C# 121
Debug: D 122
Debug: D# 123
Debug: E 124
Debug: F 125
Debug: F# 126
Debug: G 127
Debug: tpcfull = 14
Debug: tpcfull = 21
Debug: tpcfull = 16
Debug: tpcfull = 23
Debug: tpcfull = 18
Debug: tpcfull = 13
Debug: tpcfull = 20
Debug: tpcfull = 15
Debug: tpcfull = 22
Debug: tpcfull = 17
Debug: tpcfull = 24
Debug: tpcfull = 19
Debug: tpcfull = 14
Debug: tpcfull = 21
Debug: tpcfull = 16
Debug: tpcfull = 23
Debug: tpcfull = 18
Debug: tpcfull = 13
Debug: tpcfull = 20
Debug: tpcfull = 15
Debug: tpcfull = 22
Debug: tpcfull = 17
Debug: tpcfull = 24
Debug: tpcfull = 19
Debug: tpcfull = 14
Debug: tpcfull = 21
Debug: tpcfull = 16
Debug: tpcfull = 23
Debug: tpcfull = 18
Debug: tpcfull = 13
Debug: tpcfull = 20
Debug: tpcfull = 15
Debug: tpcfull = 22
Debug: tpcfull = 17
Debug: tpcfull = 24
Debug: tpcfull = 19
Debug: tpcfull = 14
Debug: tpcfull = 21
Debug: tpcfull = 16
Debug: tpcfull = 23
Debug: tpcfull = 18
Debug: tpcfull = 13
Debug: tpcfull = 20
Debug: tpcfull = 15
Debug: tpcfull = 22
Debug: tpcfull = 17
Debug: tpcfull = 24
Debug: tpcfull = 19
Debug: tpcfull = 14
Debug: tpcfull = 21
Debug: tpcfull = 16
Debug: tpcfull = 23
Debug: tpcfull = 18
Debug: tpcfull = 13
Debug: tpcfull = 20
Debug: tpcfull = 15
Debug: tpcfull = 22
Debug: tpcfull = 17
Debug: tpcfull = 24
Debug: tpcfull = 19
Debug: tpcfull = 14
Debug: tpcfull = 21
Debug: tpcfull = 16
Debug: tpcfull = 23
Debug: tpcfull = 18
Debug: tpcfull = 13
Debug: tpcfull = 20
Debug: tpcfull = 15
Debug: tpcfull = 22
Debug: tpcfull = 17
Debug: tpcfull = 24
Debug: tpcfull = 19
Debug: tpcfull = 14
Debug: tpcfull = 21
Debug: tpcfull = 16
Debug: tpcfull = 23
Debug: tpcfull = 18
Debug: tpcfull = 13
Debug: tpcfull = 20
Debug: tpcfull = 15
Debug: tpcfull = 22
Debug: tpcfull = 17
Debug: tpcfull = 24
Debug: tpcfull = 19
Debug: tpcfull = 14
Debug: tpcfull = 21
Debug: tpcfull = 16
Debug: tpcfull = 23
Debug: tpcfull = 18
Debug: tpcfull = 13
Debug: tpcfull = 20
Debug: tpcfull = 15
Debug: tpcfull = 22
Debug: tpcfull = 17
Debug: tpcfull = 24
Debug: tpcfull = 19
Debug: tpcfull = 14
Debug: tpcfull = 21
Debug: tpcfull = 16
Debug: tpcfull = 23
Debug: tpcfull = 18
Debug: tpcfull = 13
Debug: tpcfull = 20
Debug: tpcfull = 15
Debug: tpcfull = 22
Debug: tpcfull = 17
Debug: tpcfull = 24
Debug: tpcfull = 19
Debug: tpcfull = 14
Debug: tpcfull = 21
Debug: tpcfull = 16
Debug: tpcfull = 23
Debug: tpcfull = 18
Debug: tpcfull = 13
Debug: tpcfull = 20
Debug: tpcfull = 15
Debug: tpcfull = 22
Debug: tpcfull = 17
Debug: tpcfull = 24
Debug: tpcfull = 19
Debug: tpcfull = 14
Debug: tpcfull = 21
Debug: tpcfull = 16
Debug: tpcfull = 23
Debug: tpcfull = 18
Debug: tpcfull = 13
Debug: tpcfull = 20
Debug: tpcfull = 15
Debug: A
Debug: E
Debug: B
Debug: F#
Debug: C#
Debug: G#
Debug: A D
Debug: E G
Debug: B C
Debug: F# F
Debug: C# A#
Debug: G# D#
Debug: pitch = 47
Debug: pitch = 47
Debug: curnote = B
Debug: true
Debug: newnote = C
Debug: newp 0
Debug: 48
Debug: new = 48
Debug: pitch = 47
Debug: pitch = 47
Debug: curnote = B
Debug: true
Debug: newnote = C
Debug: newp 0
Debug: 48
Debug: new = 48
Debug: pitch = 62
Debug: pitch = 62
Debug: curnote = D
Debug: false
Debug: newnote = A
Debug: newp 0
Debug: newp 0
Debug: newp 0
Debug: newp 0
Debug: newp 0
Debug: 57
Debug: new = 57
Debug: pitch = 66
Debug: pitch = 66
Debug: curnote = F#
Debug: true
Debug: newnote = F
Debug: newp 0
Debug: 65
Debug: new = 65
Debug: pitch = 71
Debug: pitch = 71
Debug: curnote = B
Debug: true
Debug: newnote = C
Debug: newp 0
Debug: 72
Debug: new = 72
Debug: pitch = 62
Debug: pitch = 62
Debug: curnote = D
Debug: false
Debug: newnote = A
Debug: newp 0
Debug: newp 0
Debug: newp 0
Debug: newp 0
Debug: newp 0
Debug: 57
Debug: new = 57
Debug: pitch = 66
Debug: pitch = 66
Debug: curnote = F#
Debug: true
Debug: newnote = F
Debug: newp 0
Debug: 65
Debug: new = 65
Debug: pitch = 71
Debug: pitch = 71
Debug: curnote = B
Debug: true
Debug: newnote = C
Debug: newp 0
Debug: 72
Debug: new = 72
Debug: pitch = 47
Debug: pitch = 47
Debug: curnote = B
Debug: true
Debug: newnote = C
Debug: newp 0
Debug: 48
Debug: new = 48
Debug: pitch = 62
Debug: pitch = 62
Debug: curnote = D
Debug: false
Debug: newnote = A
Debug: newp 0
Debug: newp 0
Debug: newp 0
Debug: newp 0
Debug: newp 0
Debug: 57
Debug: new = 57
Debug: pitch = 66
Debug: pitch = 66
Debug: curnote = F#
Debug: true
Debug: newnote = F
Debug: newp 0
Debug: 65
Debug: new = 65
Debug: pitch = 71
Debug: pitch = 71
Debug: curnote = B
Debug: true
Debug: newnote = C
Debug: newp 0
Debug: 72
Debug: new = 72


Comments

Seems you left out the important part of the output, right at its end:
216:-1: Error: Cannot assign [undefined] to int
216:-1: Error: Cannot assign [undefined] to int
Warning: file:///.../negativeharmonygenerator_1.qml:216: Error: Cannot assign [undefined] to int

Hmm, it das that only in C. Seems to work on all others

Do you still have an unanswered question? Please log in first to post your question.