-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathioShell.java
More file actions
38 lines (29 loc) · 853 Bytes
/
ioShell.java
File metadata and controls
38 lines (29 loc) · 853 Bytes
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
import beads.*;
import java.util.ArrayList;
/*
// IO shell for audio components.
// Responsible for calling the correct methods to change parameters, and establishing proper IO ranges for each input.
// Used for both node-based assembly and realtime adjustment interfaces.
abstract class ioShell<T extends Function>{
private final FilterOption[] inputs;
private T ugen;
public ioShell(FilterOption[] inputs){
this.inputs = inputs;
}
// Update the value of the given input.
public void updateInput(String input, float value){
//inputs.get(input).setValue(value);
}
public String getName(int i){
return inputs[i].name;
}
public float getMin(int i){
return inputs[i].min;
}
public float getMax(int i){
return inputs[i].max;
}
public float setNormalized(int i, float value){
}
}
*/