license stuff, also more ease progress

This commit is contained in:
jill 2021-03-05 00:13:35 +03:00
parent 41dbd8a376
commit 2c31e50c30
Signed by: oat
GPG Key ID: DD83A9617A252385
2 changed files with 68 additions and 8 deletions

View File

@ -1,3 +1,26 @@
<!--
mirinda_ease.xml - a plugin to help with easing in the Mirin template, part of the Mirinda project
Copyright (C) 2021 Jill "oatmealine"
This program is free software: you can redistribute it and/or modify it under
the terms of the GNU Affero General Public License as published by the Free
Software Foundation, either version 3 of the License, or (at your option)
any later version.
This program is distributed in the hope that it will be useful, but WITHOUT
ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for more
details.
You should have received a copy of the GNU Affero General Public License along
with this program. If not, see <https://www.gnu.org/licenses/>.
Source: https://gitdab.com/oat/mirinda/
-->
<Mods LoadCommand = "%xero(function(self)
--[[
@ -83,6 +106,9 @@
?beatobj:merge() -- merge beats that are on the same beat and column
+beatobj:aggressivemerge() -- merge beats that are on the same beat
/beatobj:offset(b) -- offset each beat by b beats
-beatobj:setstart(b) -- offset each beat so that the first beat is on b
]]
local function copyTable(datatable)
@ -112,6 +138,7 @@
_ease = inOutCirc,
_align = 0.5,
_length = 1,
_plr = {},
-- setters
setl = function(self, a) self._length = a; return self end,
@ -200,6 +227,13 @@
self._beats = merged
return self
end,
offset = function(self, beat)
for _,v in ipairs(self._beats) do
v[1] = v[1] + beat
end
return self
end,
-- mods
wiggle = function(self, perc, mod)
@ -208,7 +242,7 @@
for i,v in ipairs(self._beats) do
local len = self._length
local off = i%2*2-1
ease {v[1] - len / (1 / self._align), len, self._ease, perc * off, mod}
ease {v[1] - len / (1 / self._align), len, self._ease, perc * off, mod, plr = self._plr}
end
return self
@ -219,7 +253,7 @@
for i,v in ipairs(self._beats) do
local len = self._length
local off = i%2
ease {v[1] - len / (1 / self._align), len, self._ease, perc * off, mod}
ease {v[1] - len / (1 / self._align), len, self._ease, perc * off, mod, plr = self._plr}
end
return self
@ -230,7 +264,7 @@
for i,v in ipairs(self._beats) do
local len = self._length
add {v[1] - len / (1 / self._align), len, self._ease, perc, mod}
add {v[1] - len / (1 / self._align), len, self._ease, perc, mod, plr = self._plr}
end
return self
@ -250,7 +284,7 @@
for i,v in ipairs(self._beats) do
local len = self._length
ease {v[1], len, bounceease, perc, mod}
ease {v[1], len, bounceease, perc, mod, plr = self._plr}
end
return self
@ -266,7 +300,7 @@
for _,v in ipairs(self._beats) do
local len = self._length
ease {v[1], len, out, perc, mod}
ease {v[1], len, out, perc, mod, plr = self._plr}
end
return self
@ -285,7 +319,7 @@
for _,v in ipairs(self._beats) do
local len = self._length
ease {v[1] - len / (1 / self._align), len, map, perc, mod}
ease {v[1] - len / (1 / self._align), len, map, perc, mod, plr = self._plr}
end
return self
@ -305,7 +339,7 @@
local len = self._length
local off = i%2*2-1
ease {v[1] - len / (1 / self._align), len, map, perc * off, mod}
ease {v[1] - len / (1 / self._align), len, map, perc * off, mod, plr = self._plr}
end
return self
@ -322,7 +356,7 @@
for i,v in ipairs(self._beats) do
local len = self._length
ease {v[1] - len / (1 / self._align), len, temp, perc, mod}
ease {v[1] - len / (1 / self._align), len, temp, perc, mod, plr = self._plr}
end
return self
@ -340,6 +374,7 @@
else
self._beats = P1:GetNoteData(start, ending)
end
self._plr = plr
return self
end
@ -353,6 +388,7 @@
end
self._beats = v
self._plr = plr
return self
end
@ -361,6 +397,7 @@
for _,b in ipairs(tbl) do
table.insert(self._beats, {b})
end
self._plr = plr
return self
end
end)"

View File

@ -1,3 +1,26 @@
<!--
mirinda_spline.xml - a plugin to help with splines in the Mirin template, part of the Mirinda project
Copyright (C) 2021 Jill "oatmealine"
This program is free software: you can redistribute it and/or modify it under
the terms of the GNU Affero General Public License as published by the Free
Software Foundation, either version 3 of the License, or (at your option)
any later version.
This program is distributed in the hope that it will be useful, but WITHOUT
ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for more
details.
You should have received a copy of the GNU Affero General Public License along
with this program. If not, see <https://www.gnu.org/licenses/>.
Source: https://gitdab.com/oat/mirinda/
-->
<Mods LoadCommand = "%xero(function(self)
local maxindex = 39 -- probably best not to change, but if youre getting massive performance issues go ahead