-
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Using better semantics for symmetric harmonies
Warm/cold semantics were not deterministic as harmonies could go clockwise or anti-clockwising depending on their parent color. Using left and right avoids this problem, and feels like the simplest vocabulary.
- Loading branch information
1 parent
ba01188
commit 0f033f6
Showing
19 changed files
with
146 additions
and
171 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
import {rotateHue} from '$lib/color/manipulation'; | ||
import type {NodeDef} from '$lib/stores/nodes'; | ||
|
||
export default { | ||
type: 'scl', | ||
label: 'Left split complementary', | ||
description: '', | ||
params: [], | ||
samples: 'single', | ||
apply(color) { | ||
return rotateHue(color, -150); | ||
} | ||
} as NodeDef; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
import {rotateHue} from '$lib/color/manipulation'; | ||
import type {NodeDef} from '$lib/stores/nodes'; | ||
|
||
export default { | ||
type: 'scr', | ||
label: 'Right split complementary', | ||
description: '', | ||
params: [], | ||
samples: 'single', | ||
apply(color) { | ||
return rotateHue(color, 150); | ||
} | ||
} as NodeDef; |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
import {rotateHue} from '$lib/color/manipulation'; | ||
import type {NodeDef} from '$lib/stores/nodes'; | ||
|
||
export default { | ||
type: 'ttl', | ||
label: 'Left tetrad', | ||
description: '', | ||
params: [], | ||
samples: 'single', | ||
apply(color) { | ||
return rotateHue(color, -90); | ||
} | ||
} as NodeDef; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
import {rotateHue} from '$lib/color/manipulation'; | ||
import type {NodeDef} from '$lib/stores/nodes'; | ||
|
||
export default { | ||
type: 'ttr', | ||
label: 'Right tetrad', | ||
description: '', | ||
params: [], | ||
samples: 'single', | ||
apply(color) { | ||
return rotateHue(color, 90); | ||
} | ||
} as NodeDef; |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
import {rotateHue} from '$lib/color/manipulation'; | ||
import type {NodeDef} from '$lib/stores/nodes'; | ||
|
||
export default { | ||
type: 'trl', | ||
label: 'Left triad', | ||
description: '', | ||
params: [], | ||
samples: 'single', | ||
apply(color) { | ||
return rotateHue(color, -120); | ||
} | ||
} as NodeDef; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
import {rotateHue} from '$lib/color/manipulation'; | ||
import type {NodeDef} from '$lib/stores/nodes'; | ||
|
||
export default { | ||
type: 'trr', | ||
label: 'Right triad', | ||
description: '', | ||
params: [], | ||
samples: 'single', | ||
apply(color) { | ||
return rotateHue(color, 120); | ||
} | ||
} as NodeDef; |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,18 +1,18 @@ | ||
import splitComplementaryCold from '$lib/definitions/nodes/splitComplementaryCold'; | ||
import splitComplementaryWarm from '$lib/definitions/nodes/splitComplementaryWarm'; | ||
import splitComplementaryLeft from '$lib/definitions/nodes/splitComplementaryLeft'; | ||
import splitComplementaryRight from '$lib/definitions/nodes/splitComplementaryRight'; | ||
import type {Preset} from '$lib/presets'; | ||
|
||
export default { | ||
label: 'Split complementary', | ||
description: '', | ||
nodes: [ | ||
{ | ||
type: splitComplementaryCold.type, | ||
token: 'Cold $ complementary' | ||
type: splitComplementaryLeft.type, | ||
token: 'Left $ complementary' | ||
}, | ||
{ | ||
type: splitComplementaryWarm.type, | ||
token: 'Warm $ complementary' | ||
type: splitComplementaryRight.type, | ||
token: 'Right $ complementary' | ||
} | ||
] | ||
} as Preset; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,18 +1,18 @@ | ||
import tetradCold from '$lib/definitions/nodes/tetradCold'; | ||
import tetradWarm from '$lib/definitions/nodes/tetradWarm'; | ||
import tetradLeft from '$lib/definitions/nodes/tetradLeft'; | ||
import tetradRight from '$lib/definitions/nodes/tetradRight'; | ||
import type {Preset} from '$lib/presets'; | ||
|
||
export default { | ||
label: 'Tetrad', | ||
description: '', | ||
nodes: [ | ||
{ | ||
type: tetradCold.type, | ||
token: 'Cold $ tetrad' | ||
type: tetradLeft.type, | ||
token: 'Left $ tetrad' | ||
}, | ||
{ | ||
type: tetradWarm.type, | ||
token: 'Warm $ tetrad' | ||
type: tetradRight.type, | ||
token: 'Right $ tetrad' | ||
} | ||
] | ||
} as Preset; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,18 +1,18 @@ | ||
import triadCold from '$lib/definitions/nodes/triadCold'; | ||
import triadWarm from '$lib/definitions/nodes/triadWarm'; | ||
import triadLeft from '$lib/definitions/nodes/triadLeft'; | ||
import triadRight from '$lib/definitions/nodes/triadRight'; | ||
import type {Preset} from '$lib/presets'; | ||
|
||
export default { | ||
label: 'Triad', | ||
description: '', | ||
nodes: [ | ||
{ | ||
type: triadCold.type, | ||
token: 'Cold $ triad' | ||
type: triadLeft.type, | ||
token: 'Left $ triad' | ||
}, | ||
{ | ||
type: triadWarm.type, | ||
token: 'Warm $ triad' | ||
type: triadRight.type, | ||
token: 'Right $ triad' | ||
} | ||
] | ||
} as Preset; |
Oops, something went wrong.