forked from googlecreativelab/inside-music
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Config.js
152 lines (147 loc) · 3.97 KB
/
Config.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
/**
* Copyright 2017 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the 'License');
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an 'AS IS' BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
import Tone from 'Tone/core/Tone'
import Detector from 'three/examples/js/Detector'
export const unitsPerSecond = 7
export const circleHeight = 0
export const radius = 1.1
export const sceneColor = '#faa'
export const tubeColor = '#ffffff'
export const title = 'Inside Music'
export const trackRadius = 2
export const useVoiceOver = true
export const supported = true; //Detector.webgl && Tone.supported
export const trackConfig = [
{
artist : 'Phoenix',
track : 'Ti Amo',
folder : 'phoenix',
intro : 'phoenix',
segments : 6,
duration : 208,
// duration : 5,
trackNames : ['VOCALS', 'DRUMS', 'GUITARS', 'BASS', 'PERCUSSION', 'SYNTHS', 'FX'],
names : ['vocals', 'drums', 'guitars', 'bass', 'percussion', 'synths', 'fx'],
soundRings: {
startColor: '#f7002d',
endColor: '#00edaa',
shape: 'triangle',
size: 8
},
floor: {
color: '#253934' //#263330'
}
},
{
artist : 'Alarm Will Sound',
track : 'Roadrunner',
folder : 'aws',
intro : 'aws',
duration : 364,
segments: 12,
trackNames : ['STRINGS', 'WINDS', 'BRASS', 'null', 'SYNTH', 'BASS', 'PERC'],
names : ['strings', 'winds', 'brass', 'null', 'synth', 'bass', 'percussion'],
soundRings: {
startColor: '#ffca7a',
endColor: '#cc3600',
size: 8
},
floor: {
color: '#cc3600'
}
},
{
artist : 'Clipping',
track : 'The Deep',
folder : 'clipping',
intro : 'clipping',
segments : 11,
duration : 328,
trackNames : ['LEAD_VOX', 'WATER', 'FX', 'BASS', 'SYNTH_BELLS', 'SYSTEM_VOICE', 'DRUMS'],
names : ['lead vocals', 'water', 'fx', 'bass', 'synth bells', 'system voice', 'drums'],
soundRings: {
startColor: '#aff702', //#00b3ff
endColor: '#00e1ff', //#efff00
shape: 'circle',
size: 4.5
},
floor: {
color: '#0a6166'
}
},
{
artist : 'Natalia Lafourcade',
track : 'Tu si sabes quererme',
folder : 'natalia_lafourcade',
intro : 'natalia_lafourcade',
segments : 8,
duration : 246,
trackNames : ['GUITARS', 'VOCALS', 'BASS', 'HARMONIUM', 'BACKING_VOCALS', 'PERCUSSION', 'JARANA'],
names : ['guitars', 'vocals', 'bass', 'harmonium', 'backing vocals', 'percussion', 'jarana'],
soundRings: {
startColor: '#f2c600',
endColor: '#b30071',
shape: 'circle',
size: 8
},
floor: {
color: '#391936' //'#402f31'
}
},
{
artist : 'Perfume Genius',
track : 'Slip Away',
intro : 'perfume_genius',
folder : 'perfume_genius',
segments : 5,
duration : 170,
// duration : 10,
trackNames : ['MBIRA', 'GUITARS', 'OTHER_VOCALS', 'SYNTHS_AND_PIANO', 'BASS_AND_BASS_SYNTHS', 'DRUMS', 'LEAD_VOCALS'],
names : ['mbira', 'guitars', 'other vocals', 'synths and piano', 'bass', 'drums', 'lead vocals'],
soundRings: {
startColor: '#18D2F6',
endColor: '#FF00CD',
shape: 'circle',
size: 5
},
floor: {
color: '#262137' //'#1b1c2b'
}
},
{
artist : 'Ibeyi',
track : 'Deathless',
intro : 'ibeyi',
folder : 'ibeyi',
segments : 6,
duration : 194,
trackNames : ['BASS', 'LEAD_VOCALS', 'BACKING_VOCALS_ONE', 'BACKING_VOCALS_TWO', 'SAXOPHONE', 'DRONE_AND_FX', 'DRUMS'],
names : ['Bass', 'Lead Vocals', 'Backing Vocals 1', 'Backing Vocals 2', 'Saxophone', 'Drone and FX', 'drums'],
soundRings: {
startColor: '#01903C',
endColor: '#E4AA24',
shape: 'circle',
size: 6.5
},
floor: {
color: '#252118'
}
},
]
export function getTrackData(artist){
const index = trackConfig.findIndex(t => t.artist === artist)
return trackConfig[index]
}