-
Notifications
You must be signed in to change notification settings - Fork 0
/
HTempo.cs
73 lines (60 loc) · 2.55 KB
/
HTempo.cs
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
namespace ManagedBass.Fx
{
public class HTempo : HChannel
{
HTempo(int Handle) : base(Handle) { }
public HChannel Source => BassFx.TempoGetSource(this);
public double RateRatio => BassFx.TempoGetRateRatio(this);
public double Tempo
{
get { return GetAttribute(ChannelAttribute.Tempo); }
set { SetAttribute(ChannelAttribute.Tempo, value); }
}
public double Pitch
{
get { return GetAttribute(ChannelAttribute.Pitch); }
set { SetAttribute(ChannelAttribute.Pitch, value); }
}
public static implicit operator HTempo(int Handle) => new HTempo(Handle);
public int AntiAliasFilterLength
{
get { return (int)GetAttribute(ChannelAttribute.TempoAAFilterLength); }
set { SetAttribute(ChannelAttribute.TempoAAFilterLength, value); }
}
public double TempoFrequency
{
get { return GetAttribute(ChannelAttribute.TempoFrequency); }
set { SetAttribute(ChannelAttribute.TempoFrequency, value); }
}
public int OverlapMilliseconds
{
get { return (int)GetAttribute(ChannelAttribute.TempoOverlapMilliseconds); }
set { SetAttribute(ChannelAttribute.TempoOverlapMilliseconds, value); }
}
public bool PreventClicks
{
get { return (int)GetAttribute(ChannelAttribute.TempoPreventClick) != 0; }
set { SetAttribute(ChannelAttribute.TempoPreventClick, value ? 1 : 0); }
}
public int SeekWindowMilliseconds
{
get { return (int)GetAttribute(ChannelAttribute.TempoSeekWindowMilliseconds); }
set { SetAttribute(ChannelAttribute.TempoSeekWindowMilliseconds, value); }
}
public int SequenceMilliseconds
{
get { return (int)GetAttribute(ChannelAttribute.TempoSequenceMilliseconds); }
set { SetAttribute(ChannelAttribute.TempoSequenceMilliseconds, value); }
}
public bool UseAntiAliasFilter
{
get { return (int)GetAttribute(ChannelAttribute.TempoUseAAFilter) != 0; }
set { SetAttribute(ChannelAttribute.TempoUseAAFilter, value ? 1 : 0); }
}
public bool UseQuickAlgorithm
{
get { return (int)GetAttribute(ChannelAttribute.TempoUseQuickAlgorithm) != 0; }
set { SetAttribute(ChannelAttribute.TempoUseQuickAlgorithm, value ? 1 : 0); }
}
}
}