Spaces:
Runtime error
Runtime error
Ron Au
commited on
Commit
•
d400a31
1
Parent(s):
1b5779c
ui(colors): Replace red tones with monochrome
Browse files
source/tokensequence.py
CHANGED
@@ -32,12 +32,13 @@ def token_sequence_to_image(token_sequence):
|
|
32 |
image_height = max_pitch - min_pitch + 1
|
33 |
image_width = int(16 * 4)
|
34 |
|
35 |
-
color = (
|
36 |
|
37 |
# Indicate that this bar was used for composition.
|
38 |
image = Image.new("RGB", (image_width, image_height), color)
|
39 |
|
40 |
-
colors = [(0, 0, 0), (255, 255, 255), (255, 0, 0), (0, 255, 0), (0, 0, 255), (255, 255, 0), (255, 0, 255), (0, 255, 255)]
|
|
|
41 |
|
42 |
instrument_to_color_index = {}
|
43 |
|
|
|
32 |
image_height = max_pitch - min_pitch + 1
|
33 |
image_width = int(16 * 4)
|
34 |
|
35 |
+
color = (12, 12, 12)
|
36 |
|
37 |
# Indicate that this bar was used for composition.
|
38 |
image = Image.new("RGB", (image_width, image_height), color)
|
39 |
|
40 |
+
# colors = [(0, 0, 0), (255, 255, 255), (255, 0, 0), (0, 255, 0), (0, 0, 255), (255, 255, 0), (255, 0, 255), (0, 255, 255)]
|
41 |
+
colors = [(248, 249, 250), (233, 236, 239), (173, 181, 189), (52, 58, 64)]
|
42 |
|
43 |
instrument_to_color_index = {}
|
44 |
|
source/ui/src/lib/Notes.svelte
CHANGED
@@ -74,7 +74,7 @@ const keyDown = (e: KeyboardEvent): void => {
|
|
74 |
|
75 |
{#if $audioBlob}
|
76 |
<section transition:fade>
|
77 |
-
<img class="
|
78 |
<div
|
79 |
bind:this={player}
|
80 |
class="player"
|
@@ -114,9 +114,10 @@ section {
|
|
114 |
transform: translateX(-50%);
|
115 |
cursor: pointer;
|
116 |
}
|
117 |
-
.
|
118 |
width: min(100%, 512px);
|
119 |
margin: auto;
|
|
|
120 |
}
|
121 |
|
122 |
audio {
|
|
|
74 |
|
75 |
{#if $audioBlob}
|
76 |
<section transition:fade>
|
77 |
+
<img class="notes" src={$notesImage} alt="" bind:this={visualisation} />
|
78 |
<div
|
79 |
bind:this={player}
|
80 |
class="player"
|
|
|
114 |
transform: translateX(-50%);
|
115 |
cursor: pointer;
|
116 |
}
|
117 |
+
.notes {
|
118 |
width: min(100%, 512px);
|
119 |
margin: auto;
|
120 |
+
box-shadow: 0 0 5px 0.1px hsl(210, 10%, 20%);
|
121 |
}
|
122 |
|
123 |
audio {
|