-
Notifications
You must be signed in to change notification settings - Fork 0
/
easy_bass_example.txt
64 lines (55 loc) · 1.05 KB
/
easy_bass_example.txt
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
--@name Easy Bass Example
--@author
--@client
--@include lkl/easy_bass.txt
require( "lkl/easy_bass.txt" )
if player() ~= owner() then return end
local bassObj
-- LoadFile Test
--
easyBass.loadFile(
"buttons/button1.wav",
{
Flags = "3d stereo noblock noplay",
Volume = 1,
Pitch = 1,
FadeStart = 700,
FadeEnd = 2000,
FadeIn = 0,
FadeOut = 0,
Duration = nil,
Target = chip(),
Loop = false,
DestroyWhenDone = true,
StaleThreshold = 30,
},
function( x )
bassObj = x
-- Blah
end
)
--]]
-- Fade In/Out Test
--[[
easyBass.loadFile(
"synth/pink_noise.wav",
{
Flags = "3d stereo noblock noplay",
Volume = 0.5,
Pitch = 1,
FadeStart = 700,
FadeEnd = 2000,
FadeIn = 1,
FadeOut = 1,
Duration = 3,
Target = chip(),
Loop = false,
DestroyWhenDone = true,
StaleThreshold = 30,
},
function( x )
bassObj = x
-- Blah
end
)
--]]