-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex_options.js
152 lines (139 loc) · 2.69 KB
/
index_options.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
const PLAYLIST_NEW_WAYS = "PLqL0pXShgu8dQlM_JOZbatTZrmA69-muy";
const PLAYLIST_OLD_WAYS = "PLqL0pXShgu8dm1-YpfKmurh_2orePUaU_";
const PLAYLIST_OLD_WAYS2 = "PLqL0pXShgu8eeBUMp9OYogezZ54GsrRtQ";
const PLAYLIST_SPEAK = "PLqL0pXShgu8cbXSFmq9ls3W6Saf-5BDky"
const FPS = 30
const KEY_COLOR = 0
//***********
//** OPTIONS
//***********
const OPTIONS = {
record: false,
videoWidth: 640,
videoHeight: 407
}
const SRT_1 = {
id:"audioOld",
isAudio: true,
autoPlay: false,
audioPlayback: {
fft: 128,
ampScale: { min: 0, max: .12 },
volume: {
min: 0.6,
max: 1
},
playEveryBars: 16,
effects: [{
key: 'lowpass',
params:{
frequency:1000
},
value: 1000
}]
},
}
const SRT_2 = {
id:"audioSpeak",
isAudio: true,
autoPlay: true,
subsPerPhrase: 4,
audioPlayback: {
fft: 128,
offset: 4,
volume: {
min: 0.4,
max: 1
},
ampScale: { min: 0, max: .12 },
playEveryBars: 8,
effects: [{
key: 'lowpass',
params:{
frequency:1300
},
value: 1400
}]
},
}
const VIDEO_1 = {
id:"videoOld",
isAudio: false,
autoPlay: true,
playNewEveryBars: 8,
playlists: [PLAYLIST_OLD_WAYS2],
isSlave:'audioOld'
}
const VIDEO_2 = {
id:"videoNew",
isAudio: false,
autoPlay: true,
playNewEveryBars: 8,
playlists: [PLAYLIST_NEW_WAYS]
}
const RENDERER_BLEND = {
type: 'blend',
enabled:true,
textures: {
'background': 0,
'foreground': 1
},
uniforms: {
blendMode: 4
}
}
const RENDERER_CHROMA = {
type: 'chromaSimple',
enabled:true,
textures: {
'tOne': 0,
'tTwo': 1
},
uniforms: {
uMixRatio: .7,
uThreshold: 0.2,
uKeyColor: KEY_COLOR
}
}
const RENDERER_PASSES = [RENDERER_CHROMA, RENDERER_BLEND]
const VIDEO_LAYER_1 = {
time: 0.5,
passes: [{
type: 'color',
uniforms: {
uSaturation: 0.5,
uBrightness: 0,
uContrast: 0.35,
uHue: 1
}
}]
}
const VIDEO_LAYER_2 = {
time: 0.5,
passes: [{
type: 'color',
uniforms: {
uSaturation: 0.3,
uBrightness: 0,
uContrast: 0.,
uHue: 1
}
}]
}
export {
PLAYLIST_NEW_WAYS,
PLAYLIST_OLD_WAYS,
PLAYLIST_SPEAK,
FPS,
OPTIONS,
RENDERER_PASSES,
RENDERER_CHROMA,
RENDERER_BLEND,
SRT_1,
SRT_2,
VIDEO_1,
VIDEO_2,
VIDEO_LAYER_1,
VIDEO_LAYER_2,
KEY_COLOR
}