This topic is to get an idea of what themers use the functions that will be affected. If you use any of the functions listed at the bottom in your theme, respond.
Several functions in TimingData return tables of strings of the form "beat=value". I think it would be more useful if they returned tables of tables, of the form "{beat, value}".
So instead of needing to use split() to split the string into the beat and value, you'll just access the first and second elements of the table.
Example:
Old code:
New code:
I'm going to make a pull request that changes all the TimingData functions that return tables in this style because it shouldn't be necessary to parse a string when you could have been given the numbers directly.
List of affected functions:
Several functions in TimingData return tables of strings of the form "beat=value". I think it would be more useful if they returned tables of tables, of the form "{beat, value}".
So instead of needing to use split() to split the string into the beat and value, you'll just access the first and second elements of the table.
Example:
Old code:
local bpms= timingData:GetBPMsAndTimes()
for i, bpm in ipairs(bpms) do
local data= split("=", bpm)
local beat= data[1]
local value= data[2]
-- ...
end
New code:
local bpms= timingData:GetBPMsAndTimes()
for i, bpm in ipairs(bpms) do
local beat= bpm[1]
local value= bpm[2]
end
I'm going to make a pull request that changes all the TimingData functions that return tables in this style because it shouldn't be necessary to parse a string when you could have been given the numbers directly.
List of affected functions:
GetBPMs()
GetBPMsAndTimes()
GetCombos()
GetDelays()
GetFakes()
GetLabels()
GetScrolls()
GetSpeeds()
GetStops()
GetTickcounts()
GetTimeSignatures()
GetWarps()
< cybik> til Kyzentun fixes bugs for breakfast
--
< maxvg1> shakesoda: then why do i still play lol
<@shakesoda> because you're an ITG player. And thus, a masochist
--
<@shakesoda> Kyzentun: I think you might need to put down the meshes for a bit
--
< maxvg1> shakesoda: then why do i still play lol
<@shakesoda> because you're an ITG player. And thus, a masochist
--
<@shakesoda> Kyzentun: I think you might need to put down the meshes for a bit