-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathVstParameter.cs
More file actions
32 lines (29 loc) · 856 Bytes
/
VstParameter.cs
File metadata and controls
32 lines (29 loc) · 856 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
namespace VST.NET
{
public class VstParameter
{
public readonly VstLibraryContext Library;
public readonly int Index;
public readonly string Name;
public readonly string Label;
public readonly string Display;
public readonly float DefaultValue;
public VstParameter(VstLibraryContext library, int index)
{
Library = library;
Index = index;
Name = library.GetParameterName(index);
Label = library.GetParameterLabel(index);
Display = library.GetParameterDisplay(index);
DefaultValue = library.GetParameter(index);
}
public float Get()
{
return (Library.GetParameter(Index));
}
public void Set(float value)
{
Library.SetParameter(Index, value);
}
}
}