-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathFlexatarSDK.js
63 lines (46 loc) · 1.12 KB
/
FlexatarSDK.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
class FlexatarAnimator {
constructor(token) {
this.tok = token
this.renderer = new Renderer()
}
// returns the list of flexatars
availableFlexatars() {
}
// returns preview image and name
preview(ftar) {
}
// accepts a list of either single or couple flexatars
// also downloads flexatars from the cloud
// continuous rendering is ensured
// models are updated when downloading in finished
useFlexatars(ftars) {
this.renderer.useFlexatars(ftars)
}
useEffect(effect) {
this.renderer.useEffect(effect)
}
// starts a+v streaming from the input audio
stream(audioIn) {
}
// free gpu resources
destroy() {
this.renderer.destroy()
}
}
const ModeMix = 0
const ModeMorph = 1
const ModeHybrid = 2
class Effect {
constructor(fn) {
this.fn = fn // fn(float seconds) int Mode, float Parameter
// function fn(time<in seconds>){
// return Mode, Parameter
//}
}
static mix(mixWeight) {
}
static morph(duration) {
}
static hybrid(duration) {
}
}