加入c2序列模式,可以在自定义或mod中开启
This commit is contained in:
@@ -119,7 +119,7 @@ MODOPT={--Mod options
|
||||
},
|
||||
{no=19,id="CS",name="customSeq",
|
||||
key="b",x=680,y=470,color="blue",
|
||||
list={"bag","his4","rnd","reverb"},
|
||||
list={"bag","his4","c2","rnd","reverb"},
|
||||
func=function(P,O)P.gameEnv.sequence=O end,
|
||||
unranked=true,
|
||||
},
|
||||
|
||||
@@ -36,6 +36,26 @@ local sequenceModes={
|
||||
yield()
|
||||
end
|
||||
end,
|
||||
c2=function(P,seq0)
|
||||
local len=#seq0
|
||||
local weight={}
|
||||
for i=1,len do weight[i]=0 end
|
||||
|
||||
while true do
|
||||
while #P.nextQueue<6 do
|
||||
local maxK=1
|
||||
for i=1,len do
|
||||
weight[i]=weight[i]*.5+P:RND()
|
||||
if weight[i]>weight[maxK]then
|
||||
maxK=i
|
||||
end
|
||||
end
|
||||
weight[maxK]=weight[maxK]/3.5
|
||||
P:getNext(seq0[maxK])
|
||||
end
|
||||
yield()
|
||||
end
|
||||
end,
|
||||
rnd=function(P,seq0)
|
||||
P:getNext(seq0[rnd(#seq0)])
|
||||
while true do
|
||||
|
||||
@@ -190,7 +190,7 @@ scene.widgetList={
|
||||
|
||||
WIDGET.newSelector{name="sequence",
|
||||
x=1080,y=60,w=200,color="yellow",
|
||||
list={"bag","his4","rnd","reverb","loop","fixed"},
|
||||
list={"bag","his4","c2","rnd","reverb","loop","fixed"},
|
||||
disp=lnk_CUSval("sequence"),
|
||||
code=lnk_CUSsto("sequence")
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user