Skip to content

Commit

Permalink
Merge pull request #6 from fanta-git/fix-focus-group_#2
Browse files Browse the repository at this point in the history
fix: 画面移動時、groupの位置を考慮するように #2
  • Loading branch information
fanta-git authored Jan 12, 2024
2 parents 8cec9f3 + ed09d6f commit c327a8b
Show file tree
Hide file tree
Showing 35 changed files with 120 additions and 50 deletions.
6 changes: 4 additions & 2 deletions output/input-A.lua
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
local KEY = "a"
local KEY_NAME = "A"
local KEY_LENGHT = {3,2,1}
local KANA_RULES = {["za"]={""},["dya"]={"ぢゃ"},["cha"]={"ちゃ"},["fwa"]={"ふぁ"},["cya"]={"ちゃ"},["dwa"]={"どぁ"},["vya"]={"ゔゃ"},["nya"]={"にゃ"},["hya"]={"ひゃ"},["bya"]={"びゃ"},["hwa"]={"ふぁ"},["a"]={""},["kya"]={"きゃ"},["lwa"]={""},["kwa"]={"くぁ"},["sha"]={"しゃ"},["tha"]={"てゃ"},["jya"]={"じゃ"},["gwa"]={"ぐぁ"},["tya"]={"ちゃ"},["sya"]={"しゃ"},["twa"]={"とぁ"},["swa"]={"すぁ"},["pya"]={"ぴゃ"},["xa"]={""},["rya"]={"りゃ"},["tsa"]={"つぁ"},["wa"]={""},["ta"]={""},["sa"]={""},["ra"]={""},["xya"]={""},["dha"]={"でゃ"},["xwa"]={""},["va"]={"ゔぁ"},["ma"]={""},["la"]={""},["ka"]={""},["ja"]={"じゃ"},["ya"]={""},["pa"]={""},["gya"]={"ぎゃ"},["na"]={""},["mya"]={"みゃ"},["da"]={""},["lya"]={""},["ba"]={""},["zya"]={"じゃ"},["ha"]={""},["ga"]={""},["fa"]={"ふぁ"}}
local KANA_RULES = {["kwa"]={"くぁ"},["hya"]={"ひゃ"},["kya"]={"きゃ"},["hwa"]={"ふぁ"},["mya"]={"みゃ"},["lya"]={""},["nya"]={"にゃ"},["swa"]={"すぁ"},["pya"]={"ぴゃ"},["tsa"]={"つぁ"},["rya"]={"りゃ"},["tya"]={"ちゃ"},["twa"]={"とぁ"},["xya"]={""},["zya"]={"じゃ"},["sya"]={"しゃ"},["cya"]={"ちゃ"},["jya"]={"じゃ"},["bya"]={"びゃ"},["fwa"]={"ふぁ"},["ra"]={""},["tha"]={"てゃ"},["pa"]={""},["ma"]={""},["na"]={""},["ka"]={""},["la"]={""},["ya"]={""},["za"]={""},["wa"]={""},["xa"]={""},["dwa"]={"どぁ"},["va"]={"ゔぁ"},["sa"]={""},["ta"]={""},["xwa"]={""},["ba"]={""},["dha"]={"でゃ"},["lwa"]={""},["sha"]={"しゃ"},["a"]={""},["cha"]={"ちゃ"},["vya"]={"ゔゃ"},["fa"]={"ふぁ"},["ja"]={"じゃ"},["ga"]={""},["ha"]={""},["gwa"]={"ぐぁ"},["dya"]={"ぢゃ"},["gya"]={"ぎゃ"},["da"]={""}}
local SLIDE_CHARS = {"","","","","","","","","`"}
local LYRIC_END_CHARS = {"+","-","`"}
local NEXT_NOTE_CHAR = "/"
Expand Down Expand Up @@ -77,9 +77,11 @@ end
---@param note Note
local function focusNote(mainEditor, note)
local coordinate = mainEditor:getNavigation()
local currentGroup = mainEditor:getCurrentGroup()
local viewRangeHorizontal = coordinate:getTimeViewRange()
local viewLeft, viewRight = viewRangeHorizontal[1], viewRangeHorizontal[2]
local noteLeft, noteRight = note:getOnset(), note:getEnd()
local groupLeft = currentGroup:getOnset()
local noteLeft, noteRight = note:getOnset() + groupLeft, note:getEnd() + groupLeft

local toleranceBlicks = (viewRight - viewLeft) * VIEW_TOLERANCE

Expand Down
4 changes: 3 additions & 1 deletion output/input-B.lua
Original file line number Diff line number Diff line change
Expand Up @@ -77,9 +77,11 @@ end
---@param note Note
local function focusNote(mainEditor, note)
local coordinate = mainEditor:getNavigation()
local currentGroup = mainEditor:getCurrentGroup()
local viewRangeHorizontal = coordinate:getTimeViewRange()
local viewLeft, viewRight = viewRangeHorizontal[1], viewRangeHorizontal[2]
local noteLeft, noteRight = note:getOnset(), note:getEnd()
local groupLeft = currentGroup:getOnset()
local noteLeft, noteRight = note:getOnset() + groupLeft, note:getEnd() + groupLeft

local toleranceBlicks = (viewRight - viewLeft) * VIEW_TOLERANCE

Expand Down
6 changes: 4 additions & 2 deletions output/input-C.lua
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
local KEY = "c"
local KEY_NAME = "C"
local KEY_LENGHT = {2}
local KANA_RULES = {["nc"]={"","c"},["cc"]={"","c"}}
local KANA_RULES = {["cc"]={"","c"},["nc"]={"","c"}}
local SLIDE_CHARS = {"","","","","","","","","`"}
local LYRIC_END_CHARS = {"+","-","`"}
local NEXT_NOTE_CHAR = "/"
Expand Down Expand Up @@ -77,9 +77,11 @@ end
---@param note Note
local function focusNote(mainEditor, note)
local coordinate = mainEditor:getNavigation()
local currentGroup = mainEditor:getCurrentGroup()
local viewRangeHorizontal = coordinate:getTimeViewRange()
local viewLeft, viewRight = viewRangeHorizontal[1], viewRangeHorizontal[2]
local noteLeft, noteRight = note:getOnset(), note:getEnd()
local groupLeft = currentGroup:getOnset()
local noteLeft, noteRight = note:getOnset() + groupLeft, note:getEnd() + groupLeft

local toleranceBlicks = (viewRight - viewLeft) * VIEW_TOLERANCE

Expand Down
4 changes: 3 additions & 1 deletion output/input-D.lua
Original file line number Diff line number Diff line change
Expand Up @@ -77,9 +77,11 @@ end
---@param note Note
local function focusNote(mainEditor, note)
local coordinate = mainEditor:getNavigation()
local currentGroup = mainEditor:getCurrentGroup()
local viewRangeHorizontal = coordinate:getTimeViewRange()
local viewLeft, viewRight = viewRangeHorizontal[1], viewRangeHorizontal[2]
local noteLeft, noteRight = note:getOnset(), note:getEnd()
local groupLeft = currentGroup:getOnset()
local noteLeft, noteRight = note:getOnset() + groupLeft, note:getEnd() + groupLeft

local toleranceBlicks = (viewRight - viewLeft) * VIEW_TOLERANCE

Expand Down
6 changes: 4 additions & 2 deletions output/input-E.lua
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
local KEY = "e"
local KEY_NAME = "E"
local KEY_LENGHT = {3,2,1}
local KANA_RULES = {["gwe"]={"ぐぇ"},["hwe"]={"ふぇ"},["gye"]={"ぎぇ"},["hye"]={"ひぇ"},["e"]={""},["dwe"]={"どぇ"},["cye"]={"ちぇ"},["dye"]={"ぢぇ"},["the"]={"てぇ"},["she"]={"しぇ"},["fe"]={"ふぇ"},["de"]={""},["be"]={""},["tye"]={"ちぇ"},["ne"]={""},["me"]={""},["le"]={""},["ke"]={""},["je"]={"じぇ"},["swe"]={"すぇ"},["he"]={""},["ge"]={""},["ve"]={"ゔぇ"},["twe"]={"とぇ"},["te"]={""},["se"]={""},["re"]={""},["zye"]={"じぇ"},["pe"]={""},["fwe"]={"ふぇ"},["rye"]={"りぇ"},["sye"]={"しぇ"},["mye"]={"みぇ"},["nye"]={"にぇ"},["ze"]={""},["ye"]={"いぇ"},["xe"]={""},["we"]={"うぇ"},["dhe"]={"でぇ"},["che"]={"ちぇ"},["tse"]={"つぇ"},["pye"]={"ぴぇ"},["kwe"]={"くぇ"},["jye"]={"じぇ"},["kye"]={"きぇ"},["bye"]={"びぇ"}}
local KANA_RULES = {["swe"]={"すぇ"},["twe"]={"とぇ"},["sye"]={"しぇ"},["tye"]={"ちぇ"},["mye"]={"みぇ"},["nye"]={"にぇ"},["pye"]={"ぴぇ"},["kwe"]={"くぇ"},["jye"]={"じぇ"},["kye"]={"きぇ"},["gwe"]={"ぐぇ"},["hwe"]={"ふぇ"},["gye"]={"ぎぇ"},["fwe"]={"ふぇ"},["zye"]={"じぇ"},["ze"]={""},["te"]={""},["re"]={""},["se"]={""},["xe"]={""},["ye"]={"いぇ"},["ve"]={"ゔぇ"},["we"]={"うぇ"},["le"]={""},["me"]={""},["je"]={"じぇ"},["ke"]={""},["pe"]={""},["ne"]={""},["she"]={"しぇ"},["de"]={""},["dwe"]={"どぇ"},["be"]={""},["dye"]={"ぢぇ"},["he"]={""},["cye"]={"ちぇ"},["fe"]={"ふぇ"},["ge"]={""},["hye"]={"ひぇ"},["e"]={""},["rye"]={"りぇ"},["bye"]={"びぇ"},["tse"]={"つぇ"},["the"]={"てぇ"},["dhe"]={"でぇ"},["che"]={"ちぇ"}}
local SLIDE_CHARS = {"","","","","","","","","`"}
local LYRIC_END_CHARS = {"+","-","`"}
local NEXT_NOTE_CHAR = "/"
Expand Down Expand Up @@ -77,9 +77,11 @@ end
---@param note Note
local function focusNote(mainEditor, note)
local coordinate = mainEditor:getNavigation()
local currentGroup = mainEditor:getCurrentGroup()
local viewRangeHorizontal = coordinate:getTimeViewRange()
local viewLeft, viewRight = viewRangeHorizontal[1], viewRangeHorizontal[2]
local noteLeft, noteRight = note:getOnset(), note:getEnd()
local groupLeft = currentGroup:getOnset()
local noteLeft, noteRight = note:getOnset() + groupLeft, note:getEnd() + groupLeft

local toleranceBlicks = (viewRight - viewLeft) * VIEW_TOLERANCE

Expand Down
4 changes: 3 additions & 1 deletion output/input-F.lua
Original file line number Diff line number Diff line change
Expand Up @@ -77,9 +77,11 @@ end
---@param note Note
local function focusNote(mainEditor, note)
local coordinate = mainEditor:getNavigation()
local currentGroup = mainEditor:getCurrentGroup()
local viewRangeHorizontal = coordinate:getTimeViewRange()
local viewLeft, viewRight = viewRangeHorizontal[1], viewRangeHorizontal[2]
local noteLeft, noteRight = note:getOnset(), note:getEnd()
local groupLeft = currentGroup:getOnset()
local noteLeft, noteRight = note:getOnset() + groupLeft, note:getEnd() + groupLeft

local toleranceBlicks = (viewRight - viewLeft) * VIEW_TOLERANCE

Expand Down
6 changes: 4 additions & 2 deletions output/input-G.lua
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
local KEY = "g"
local KEY_NAME = "G"
local KEY_LENGHT = {2}
local KANA_RULES = {["gg"]={"","g"},["ng"]={"","g"}}
local KANA_RULES = {["ng"]={"","g"},["gg"]={"","g"}}
local SLIDE_CHARS = {"","","","","","","","","`"}
local LYRIC_END_CHARS = {"+","-","`"}
local NEXT_NOTE_CHAR = "/"
Expand Down Expand Up @@ -77,9 +77,11 @@ end
---@param note Note
local function focusNote(mainEditor, note)
local coordinate = mainEditor:getNavigation()
local currentGroup = mainEditor:getCurrentGroup()
local viewRangeHorizontal = coordinate:getTimeViewRange()
local viewLeft, viewRight = viewRangeHorizontal[1], viewRangeHorizontal[2]
local noteLeft, noteRight = note:getOnset(), note:getEnd()
local groupLeft = currentGroup:getOnset()
local noteLeft, noteRight = note:getOnset() + groupLeft, note:getEnd() + groupLeft

local toleranceBlicks = (viewRight - viewLeft) * VIEW_TOLERANCE

Expand Down
6 changes: 4 additions & 2 deletions output/input-H.lua
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
local KEY = "h"
local KEY_NAME = "H"
local KEY_LENGHT = {2}
local KANA_RULES = {["hh"]={"","h"},["nh"]={"","h"}}
local KANA_RULES = {["nh"]={"","h"},["hh"]={"","h"}}
local SLIDE_CHARS = {"","","","","","","","","`"}
local LYRIC_END_CHARS = {"+","-","`"}
local NEXT_NOTE_CHAR = "/"
Expand Down Expand Up @@ -77,9 +77,11 @@ end
---@param note Note
local function focusNote(mainEditor, note)
local coordinate = mainEditor:getNavigation()
local currentGroup = mainEditor:getCurrentGroup()
local viewRangeHorizontal = coordinate:getTimeViewRange()
local viewLeft, viewRight = viewRangeHorizontal[1], viewRangeHorizontal[2]
local noteLeft, noteRight = note:getOnset(), note:getEnd()
local groupLeft = currentGroup:getOnset()
local noteLeft, noteRight = note:getOnset() + groupLeft, note:getEnd() + groupLeft

local toleranceBlicks = (viewRight - viewLeft) * VIEW_TOLERANCE

Expand Down
6 changes: 4 additions & 2 deletions output/input-I.lua
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
local KEY = "i"
local KEY_NAME = "I"
local KEY_LENGHT = {3,2,1}
local KANA_RULES = {["i"]={""},["dyi"]={"ぢぃ"},["cyi"]={"ちぃ"},["byi"]={"びぃ"},["hyi"]={"ひぃ"},["gyi"]={"ぎぃ"},["hwi"]={"ふぃ"},["gwi"]={"ぐぃ"},["thi"]={"てぃ"},["fwi"]={"ふぃ"},["shi"]={""},["bi"]={""},["gi"]={""},["fi"]={"ふぃ"},["di"]={""},["ki"]={""},["ji"]={""},["hi"]={""},["zyi"]={"じぃ"},["ni"]={""},["mi"]={""},["li"]={""},["si"]={""},["ri"]={""},["twi"]={"とぃ"},["pi"]={""},["wi"]={"うぃ"},["vi"]={"ゔぃ"},["dwi"]={"どぃ"},["ti"]={""},["chi"]={""},["tyi"]={"ちぃ"},["syi"]={"しぃ"},["xi"]={""},["zi"]={""},["kwi"]={"くぃ"},["ryi"]={"りぃ"},["swi"]={"すぃ"},["myi"]={"みぃ"},["tsi"]={"つぃ"},["kyi"]={"きぃ"},["jyi"]={"じぃ"},["dhi"]={"でぃ"},["pyi"]={"ぴぃ"},["yi"]={"うぃ"},["nyi"]={"にぃ"}}
local KANA_RULES = {["nyi"]={"にぃ"},["myi"]={"みぃ"},["tsi"]={"つぃ"},["kyi"]={"きぃ"},["swi"]={"すぃ"},["hyi"]={"ひぃ"},["twi"]={"とぃ"},["gwi"]={"ぐぃ"},["fwi"]={"ふぃ"},["tyi"]={"ちぃ"},["hwi"]={"ふぃ"},["ryi"]={"りぃ"},["pyi"]={"ぴぃ"},["zyi"]={"じぃ"},["yi"]={"うぃ"},["zi"]={""},["wi"]={"うぃ"},["xi"]={""},["vi"]={"ゔぃ"},["si"]={""},["ti"]={""},["ri"]={""},["bi"]={""},["shi"]={""},["thi"]={"てぃ"},["ni"]={""},["ki"]={""},["li"]={""},["kwi"]={"くぃ"},["ji"]={""},["gi"]={""},["hi"]={""},["mi"]={""},["fi"]={"ふぃ"},["pi"]={""},["di"]={""},["syi"]={"しぃ"},["dwi"]={"どぃ"},["dhi"]={"でぃ"},["chi"]={""},["dyi"]={"ぢぃ"},["cyi"]={"ちぃ"},["byi"]={"びぃ"},["i"]={""},["jyi"]={"じぃ"},["gyi"]={"ぎぃ"}}
local SLIDE_CHARS = {"","","","","","","","","`"}
local LYRIC_END_CHARS = {"+","-","`"}
local NEXT_NOTE_CHAR = "/"
Expand Down Expand Up @@ -77,9 +77,11 @@ end
---@param note Note
local function focusNote(mainEditor, note)
local coordinate = mainEditor:getNavigation()
local currentGroup = mainEditor:getCurrentGroup()
local viewRangeHorizontal = coordinate:getTimeViewRange()
local viewLeft, viewRight = viewRangeHorizontal[1], viewRangeHorizontal[2]
local noteLeft, noteRight = note:getOnset(), note:getEnd()
local groupLeft = currentGroup:getOnset()
local noteLeft, noteRight = note:getOnset() + groupLeft, note:getEnd() + groupLeft

local toleranceBlicks = (viewRight - viewLeft) * VIEW_TOLERANCE

Expand Down
6 changes: 4 additions & 2 deletions output/input-J.lua
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
local KEY = "j"
local KEY_NAME = "J"
local KEY_LENGHT = {2}
local KANA_RULES = {["jj"]={"","j"},["nj"]={"","j"}}
local KANA_RULES = {["nj"]={"","j"},["jj"]={"","j"}}
local SLIDE_CHARS = {"","","","","","","","","`"}
local LYRIC_END_CHARS = {"+","-","`"}
local NEXT_NOTE_CHAR = "/"
Expand Down Expand Up @@ -77,9 +77,11 @@ end
---@param note Note
local function focusNote(mainEditor, note)
local coordinate = mainEditor:getNavigation()
local currentGroup = mainEditor:getCurrentGroup()
local viewRangeHorizontal = coordinate:getTimeViewRange()
local viewLeft, viewRight = viewRangeHorizontal[1], viewRangeHorizontal[2]
local noteLeft, noteRight = note:getOnset(), note:getEnd()
local groupLeft = currentGroup:getOnset()
local noteLeft, noteRight = note:getOnset() + groupLeft, note:getEnd() + groupLeft

local toleranceBlicks = (viewRight - viewLeft) * VIEW_TOLERANCE

Expand Down
6 changes: 4 additions & 2 deletions output/input-K.lua
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
local KEY = "k"
local KEY_NAME = "K"
local KEY_LENGHT = {2}
local KANA_RULES = {["nk"]={"","k"},["kk"]={"","k"}}
local KANA_RULES = {["kk"]={"","k"},["nk"]={"","k"}}
local SLIDE_CHARS = {"","","","","","","","","`"}
local LYRIC_END_CHARS = {"+","-","`"}
local NEXT_NOTE_CHAR = "/"
Expand Down Expand Up @@ -77,9 +77,11 @@ end
---@param note Note
local function focusNote(mainEditor, note)
local coordinate = mainEditor:getNavigation()
local currentGroup = mainEditor:getCurrentGroup()
local viewRangeHorizontal = coordinate:getTimeViewRange()
local viewLeft, viewRight = viewRangeHorizontal[1], viewRangeHorizontal[2]
local noteLeft, noteRight = note:getOnset(), note:getEnd()
local groupLeft = currentGroup:getOnset()
local noteLeft, noteRight = note:getOnset() + groupLeft, note:getEnd() + groupLeft

local toleranceBlicks = (viewRight - viewLeft) * VIEW_TOLERANCE

Expand Down
4 changes: 3 additions & 1 deletion output/input-L.lua
Original file line number Diff line number Diff line change
Expand Up @@ -77,9 +77,11 @@ end
---@param note Note
local function focusNote(mainEditor, note)
local coordinate = mainEditor:getNavigation()
local currentGroup = mainEditor:getCurrentGroup()
local viewRangeHorizontal = coordinate:getTimeViewRange()
local viewLeft, viewRight = viewRangeHorizontal[1], viewRangeHorizontal[2]
local noteLeft, noteRight = note:getOnset(), note:getEnd()
local groupLeft = currentGroup:getOnset()
local noteLeft, noteRight = note:getOnset() + groupLeft, note:getEnd() + groupLeft

local toleranceBlicks = (viewRight - viewLeft) * VIEW_TOLERANCE

Expand Down
4 changes: 3 additions & 1 deletion output/input-M.lua
Original file line number Diff line number Diff line change
Expand Up @@ -77,9 +77,11 @@ end
---@param note Note
local function focusNote(mainEditor, note)
local coordinate = mainEditor:getNavigation()
local currentGroup = mainEditor:getCurrentGroup()
local viewRangeHorizontal = coordinate:getTimeViewRange()
local viewLeft, viewRight = viewRangeHorizontal[1], viewRangeHorizontal[2]
local noteLeft, noteRight = note:getOnset(), note:getEnd()
local groupLeft = currentGroup:getOnset()
local noteLeft, noteRight = note:getOnset() + groupLeft, note:getEnd() + groupLeft

local toleranceBlicks = (viewRight - viewLeft) * VIEW_TOLERANCE

Expand Down
4 changes: 3 additions & 1 deletion output/input-N.lua
Original file line number Diff line number Diff line change
Expand Up @@ -77,9 +77,11 @@ end
---@param note Note
local function focusNote(mainEditor, note)
local coordinate = mainEditor:getNavigation()
local currentGroup = mainEditor:getCurrentGroup()
local viewRangeHorizontal = coordinate:getTimeViewRange()
local viewLeft, viewRight = viewRangeHorizontal[1], viewRangeHorizontal[2]
local noteLeft, noteRight = note:getOnset(), note:getEnd()
local groupLeft = currentGroup:getOnset()
local noteLeft, noteRight = note:getOnset() + groupLeft, note:getEnd() + groupLeft

local toleranceBlicks = (viewRight - viewLeft) * VIEW_TOLERANCE

Expand Down
6 changes: 4 additions & 2 deletions output/input-O.lua
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
local KEY = "o"
local KEY_NAME = "O"
local KEY_LENGHT = {3,2,1}
local KANA_RULES = {["nyo"]={"にょ"},["myo"]={"みょ"},["lyo"]={""},["syo"]={"しょ"},["ryo"]={"りょ"},["tso"]={"つぉ"},["pyo"]={"ぴょ"},["vyo"]={"ゔょ"},["o"]={""},["tyo"]={"ちょ"},["zyo"]={"じょ"},["xyo"]={""},["cyo"]={"ちょ"},["byo"]={"びょ"},["do"]={""},["gyo"]={"ぎょ"},["dwo"]={"どぉ"},["gwo"]={"ぐぉ"},["fwo"]={"ふぉ"},["kyo"]={"きょ"},["hwo"]={"ふぉ"},["kwo"]={"くぉ"},["hyo"]={"ひょ"},["no"]={""},["po"]={""},["so"]={""},["ro"]={""},["dho"]={"でょ"},["to"]={""},["go"]={""},["fo"]={"ふぉ"},["ho"]={""},["ko"]={""},["jo"]={"じょ"},["mo"]={""},["lo"]={""},["sho"]={"しょ"},["bo"]={""},["dyo"]={"ぢょ"},["tho"]={"てょ"},["swo"]={"すぉ"},["wo"]={""},["vo"]={"ゔぉ"},["yo"]={""},["xo"]={""},["cho"]={"ちょ"},["zo"]={""},["jyo"]={"じょ"},["two"]={"とぉ"}}
local KANA_RULES = {["dyo"]={"ぢょ"},["dwo"]={"どぉ"},["gyo"]={"ぎょ"},["hyo"]={"ひょ"},["jyo"]={"じょ"},["kyo"]={"きょ"},["lyo"]={""},["myo"]={"みょ"},["nyo"]={"にょ"},["pyo"]={"ぴょ"},["ryo"]={"りょ"},["syo"]={"しょ"},["swo"]={"すぉ"},["two"]={"とぉ"},["tso"]={"つぉ"},["kwo"]={"くぉ"},["gwo"]={"ぐぉ"},["hwo"]={"ふぉ"},["byo"]={"びょ"},["cyo"]={"ちょ"},["bo"]={""},["o"]={""},["do"]={""},["fo"]={"ふぉ"},["go"]={""},["ho"]={""},["tyo"]={"ちょ"},["jo"]={"じょ"},["ko"]={""},["lo"]={""},["mo"]={""},["no"]={""},["fwo"]={"ふぉ"},["po"]={""},["vyo"]={"ゔょ"},["ro"]={""},["so"]={""},["to"]={""},["sho"]={"しょ"},["vo"]={"ゔぉ"},["wo"]={""},["xo"]={""},["yo"]={""},["zo"]={""},["zyo"]={"じょ"},["xyo"]={""},["tho"]={"てょ"},["dho"]={"でょ"},["cho"]={"ちょ"}}
local SLIDE_CHARS = {"","","","","","","","","`"}
local LYRIC_END_CHARS = {"+","-","`"}
local NEXT_NOTE_CHAR = "/"
Expand Down Expand Up @@ -77,9 +77,11 @@ end
---@param note Note
local function focusNote(mainEditor, note)
local coordinate = mainEditor:getNavigation()
local currentGroup = mainEditor:getCurrentGroup()
local viewRangeHorizontal = coordinate:getTimeViewRange()
local viewLeft, viewRight = viewRangeHorizontal[1], viewRangeHorizontal[2]
local noteLeft, noteRight = note:getOnset(), note:getEnd()
local groupLeft = currentGroup:getOnset()
local noteLeft, noteRight = note:getOnset() + groupLeft, note:getEnd() + groupLeft

local toleranceBlicks = (viewRight - viewLeft) * VIEW_TOLERANCE

Expand Down
4 changes: 3 additions & 1 deletion output/input-P.lua
Original file line number Diff line number Diff line change
Expand Up @@ -77,9 +77,11 @@ end
---@param note Note
local function focusNote(mainEditor, note)
local coordinate = mainEditor:getNavigation()
local currentGroup = mainEditor:getCurrentGroup()
local viewRangeHorizontal = coordinate:getTimeViewRange()
local viewLeft, viewRight = viewRangeHorizontal[1], viewRangeHorizontal[2]
local noteLeft, noteRight = note:getOnset(), note:getEnd()
local groupLeft = currentGroup:getOnset()
local noteLeft, noteRight = note:getOnset() + groupLeft, note:getEnd() + groupLeft

local toleranceBlicks = (viewRight - viewLeft) * VIEW_TOLERANCE

Expand Down
4 changes: 3 additions & 1 deletion output/input-Q.lua
Original file line number Diff line number Diff line change
Expand Up @@ -77,9 +77,11 @@ end
---@param note Note
local function focusNote(mainEditor, note)
local coordinate = mainEditor:getNavigation()
local currentGroup = mainEditor:getCurrentGroup()
local viewRangeHorizontal = coordinate:getTimeViewRange()
local viewLeft, viewRight = viewRangeHorizontal[1], viewRangeHorizontal[2]
local noteLeft, noteRight = note:getOnset(), note:getEnd()
local groupLeft = currentGroup:getOnset()
local noteLeft, noteRight = note:getOnset() + groupLeft, note:getEnd() + groupLeft

local toleranceBlicks = (viewRight - viewLeft) * VIEW_TOLERANCE

Expand Down
4 changes: 3 additions & 1 deletion output/input-R.lua
Original file line number Diff line number Diff line change
Expand Up @@ -77,9 +77,11 @@ end
---@param note Note
local function focusNote(mainEditor, note)
local coordinate = mainEditor:getNavigation()
local currentGroup = mainEditor:getCurrentGroup()
local viewRangeHorizontal = coordinate:getTimeViewRange()
local viewLeft, viewRight = viewRangeHorizontal[1], viewRangeHorizontal[2]
local noteLeft, noteRight = note:getOnset(), note:getEnd()
local groupLeft = currentGroup:getOnset()
local noteLeft, noteRight = note:getOnset() + groupLeft, note:getEnd() + groupLeft

local toleranceBlicks = (viewRight - viewLeft) * VIEW_TOLERANCE

Expand Down
Loading

0 comments on commit c327a8b

Please sign in to comment.