If you tap a jack honestly, one press at a time, you tend to MISS. If you scrub it with your palm across the slider, you get no ATTACKs at all. CHUNITHM players call this “trigger protection.”

The rule, as measured by players, is this: when two notes sit one after the other on the same cell, their judgment windows are cut in half at the midpoint between them. Take 16th-note jacks at BPM 200. The notes are 75 ms apart, so each middle note only has 37.5 ms of earliness or lateness available in either direction, far narrower than the usual ±100 ms. If you hit earlier than that, the press is credited to the previous note and thrown away. (The details of the rule and a simulator are in the previous article, “How to Scrub Jacks in CHUNITHM.”)

Knowing the rule is one thing, but it still feels strange. Why cut the windows at all? Why at the midpoint? Why does overlapping on just 1 cell make the whole note count? And FLICKs are stranger still: it is called a “flick,” yet tapping twice works, and a FLICK right at the edge doesn’t even need a slide (the edge FLICK).

This article takes a different angle: if I were the engineer writing the judging code, what design would naturally produce these behaviors? If you only want to know why trigger protection exists, skip straight to “Why split the windows.”

To be clear up front: SEGA has not published the judging code. Everything below is guesswork reverse-engineered from results that players measured. I mark which parts are measurements (sources at the end) and which are my own inference. The code is C# in the Unity style, as an illustration only; it is not the game’s real code. If you can’t read it, skip it, and you won’t miss anything.

The conclusions first (all inference)

  • The cabinet doesn’t know where your hand is or how it moves. It only knows which cell has just been touched. That is why sliding into a note counts as a TAP, why holding doesn’t trigger again, and why scrubbing works.
  • Jacks use “split territories.” Each note owns the half of the time axis nearer to itself, and that half is not handed to the next note even after the note is already hit. A press that is early for the second note lands in the first note’s territory and is discarded.
  • Why split territories? One reason is fairness: the overlapping time is divided evenly. The other is that one finger press can be read as two or three presses by the machine, and without territories the extra ones would eat the next note early. Scrubbing working is a side effect; stricter honest tapping is the price. Together, that is trigger protection.
  • FLICK can’t actually measure “sliding.” It only checks whether two separate points inside the FLICK range were touched one after the other. That is why two taps count, and why a single tap is always ATTACK (LATE).
  • The edge FLICK only works on FLICKs at the edge. The most likely explanation: releasing the outermost cell is treated as the hand sliding off the slider.

The hardware first: the slider only reports “which cells are touched”

The inferred input pipeline: the slider has 16 cells, each split into an upper and a lower half, for 32 sensor zones; once per frame the game reads whether each zone is touched; it finds the zones that were newly touched this frame; the judging code matches them to notes and computes the judgment
The inferred input pipeline. What the judging code receives is not "fingers" but "which sensor zones were just touched."

CHUNITHM’s slider is a single touch panel divided into 16 cells, each split into an upper and a lower half. According to player-compiled data, there are 32 sensor zones in total.

Capacitive sensors do report values (how hard you press, how much area you cover), and ordinary touchpads compute a finger position from the ratio of the readings of neighboring zones. CHUNITHM’s judgment doesn’t appear to use them that way. It only looks at whether each zone crosses a threshold:

  • One palm covering three cells means three cells are touched at once. Two hands pressing one cell each is just two cells touched.
  • The strategy wiki mentions that the slider can fail to respond when your hand rests right on the boundary between two cells. With one finger half on the left cell and half on the right, neither reading crosses the threshold. If the game computed finger position from the readings, this wouldn’t happen.

So how do you define “a press”? The most natural way to write it is to look at the change of state: not touched last frame, touched this frame, and that counts as one input (a rising edge, in electronics terms).

The code below just writes that sentence out (skippable):

// Runs once per frame, like Unity's Update()
// 60 fps = once every 16.7 ms (simplified)
void Update()
{
    foreach (var sensor in sensors)
    {
        // The reading is only used to check the threshold
        bool touched = sensor.Read() > Threshold;
        // Only the moment of newly touching counts as an input
        if (touched && !sensor.WasTouched)
            OnTouchStart(sensor.Column, now);
        sensor.WasTouched = touched;
    }
}

Written this way, many of the measured behaviors make sense:

The inputs three gestures produce on the sensor zones: holding still produces a single input at the start; sliding sideways produces one input per cell passed; scrubbing in one place keeps producing new inputs on the cells it crosses
The horizontal axis is time (frames) and the vertical axis is cells. Colored blocks mean "touched," and dots mean "just touched," which is the input the judging code receives.
  • Holding doesn’t trigger another TAP (measured): the state stays “touched,” nothing changes, so there is no new input. The strategy wiki says that to hit a TAP on the same cell during a HOLD, touching the other half of that cell with the holding hand also works (though using the other hand is recommended). That fits neatly with the upper and lower halves of each cell being separate sensor zones.
  • Sliding your hand into a note’s position also counts as a TAP (measured): every cell the hand passes goes from “untouched” to “touched,” and the judging code can’t tell sliding in from pressing down.
  • Scrubbing is mass-producing inputs: rub your palm back and forth and the cells it crosses keep getting new “just touched” events. That is what makes scrubbing possible.
  • The judgment windows are whole numbers of frames (measured): at 60 fps, J-CRITICAL is ±2 frames, JUSTICE ±4 frames, and ATTACK ±6 frames. Judgment is processed once per frame, so defining the windows in frames is reasonable. On 120 fps cabinets the frame counts double (±4 / ±8 / ±12 frames), with the same millisecond values.

With two notes on one cell, who gets the input?

The answer first: CHUNITHM jacks use “split territories.” Below I compare three common ways to write this, to show why I guess that.

Once you have inputs, the next step is matching: which note does this input belong to? Normally there is only one candidate, so there is nothing to think about. The trouble is fast jacks: on the same cell, the previous note’s window hasn’t ended when the next note’s window has already begun, so an input in that stretch falls inside both windows. There are three common ways to write this (B comes last because it is the answer):

  • A, “queue”: the earliest unjudged note takes priority. Notes are handled in order, one by one. In the rhythm game osu!, “note lock” (you can’t click the next note while the previous one is still hittable) is a side effect of this kind of design. Miss one note and everything after it can end up misaligned.
  • C, “nearest free slot”: the nearest unjudged note in time takes priority. Many games do it this way: an early or late input goes to whichever note is closer.
  • B, “split territories”: the nearest note in time takes priority, even if it is already judged. If the nearest note has already been hit, the input is thrown away, not given to another note.
Two notes on the same cell, 125 ms apart (8th notes at BPM 240), with an input on every frame (scrubbing): approaches A and C only hand inputs to unjudged notes, so the 2nd note is eaten the moment its window opens, 91.7 ms early, an ATTACK; approach B cuts the window at the midpoint, so the 2nd note can only be hit after the midpoint, 58.3 ms early, a JUSTICE. The 1st note has no note before it, so both cases are 100 ms early, an ATTACK
Same scrub, different result for the 2nd note; the measured result matches approach B. The short bars on the top row are the inputs on each frame, the white line on each bar is the note's correct time, and the yellow dot is the moment it gets eaten. The 1st note has no note before it, so it is equally early in every case.

Scrubbing a jack tells these three apart:

  • A “queue” and C “nearest free slot”: as soon as the 1st note is eaten, the 2nd is the only unjudged candidate. Its window opens (almost 100 ms early) and the next input eats it. Scrubbing gives all ATTACKs.
  • B “split territories”: inputs before the midpoint are closer to the 1st note, but the 1st note is already judged, so they are discarded. The 2nd note can only be hit after the midpoint.

The measured result is B: after the previous note is judged, inputs before the midpoint don’t count. So the key isn’t “nearest,” it’s that a judged note still holds on to its half of the time.

Overlap on just 1 cell, and the whole note is cut

Measured: as long as two consecutive notes share even 1 cell, the whole note is cut. So in a jack where the notes are shifted sideways and overlap on only one cell, scrubbing any cell is protected equally (the strategy wiki and the Keion blog both say the judgment is cut across the note’s entire range). This also hints at how the code is probably written, for the curious.

“Split territories” could be done at runtime, by finding the nearest note for the cell that was just touched. Or it could be done by cutting the ranges when the chart is loaded. When two notes overlap completely, the two feel the same to play. But if the lookup were done per cell at runtime, only the shared cell would be contested; if the 2nd note is wider, scrubbing the cells it doesn’t share would still give an early ATTACK. Measurements show that doesn’t happen, so it is more likely that the cut is made per whole note at load time: if two notes share any cell, the entire judgment range of both is cut at the midpoint. That is also less work than searching for the nearest note at runtime.

Written as code, it would look roughly like this (skippable):

// At chart load: for consecutive notes that share any cell,
// cut the whole judgment range at the midpoint
foreach (var (a, b) in ConsecutivePairsSharingAColumn(notes))
{
    float mid = (a.Time + b.Time) / 2f;
    a.WindowEnd = Mathf.Min(a.WindowEnd, mid);
    b.WindowStart = Mathf.Max(b.WindowStart, mid);
}

// At runtime: an unjudged note on that cell whose window contains the input
void OnTouchStart(int column, float t)
{
    foreach (var note in NotesCovering(column))
    {
        if (!note.Judged && note.WindowStart <= t && t <= note.WindowEnd)
        {
            note.Judge(t - note.Time);
            return;
        }
    }
}

This also explains why the first note of a jack gets its full early window: it has no neighbor in front of it to be cut against.

Why split the windows: what trigger protection is protecting

The previous article used “trigger protection” as the name of a phenomenon: the side where honest tapping gets stricter. Here the question is the reverse: what was the cut meant to solve in the first place? I can think of two reasons, and the first is the simplest.

1. Fairness: the overlapping time has to go to someone

When two notes’ windows overlap, whichever note gets the overlap, the other becomes harder to hit. Players see it the same way: without a cut, one of the notes would end up with a very strict judgment. Cutting at the midpoint and giving each half is the fairest split and the easiest to explain.

2. Blocking duplicate triggers

One press: the lower half of the cell is touched first, the upper half crosses the threshold a frame later, and as the finger nears the cell boundary the lower reading dips and comes back, producing three just-touched events. With the window cut at the midpoint, the 1st goes to note 1 and the other two fall before the midpoint with note 1 already judged, so they are discarded; without the cut, the 2nd would eat note 2 86.7 ms early, an ATTACK
When one finger presses down, the upper and lower halves of the same cell don't necessarily cross the threshold on the same frame, so you get several "just touched" events. The red × marks are discarded inputs: extra inputs before the midpoint don't eat the next note early.

One press doesn’t always produce just one “just touched”:

  • The two halves of one cell: when one finger presses down, the two halves often cross the threshold a frame or two apart. The code sees two “just touched” events on the same cell, one after the other.
  • Readings jittering near the threshold: when a finger has just touched, is about to leave, or is pressing near a cell boundary, the reading can bounce back and forth across the threshold.

Jitter shorter than one frame is invisible to the machine anyway, but a duplicate one or two frames later gets treated as a real second press. In engineering this is called “bounce,” and it is usually filtered with extra code, such as ignoring input for a short time after a trigger.

Without the cut (approaches A and C), the extra input after note 1 is judged would immediately eat note 2 on the same cell early. The player pressed only once and gets an inexplicable early ATTACK. With the cut, those extra inputs all fall in note 1’s territory, note 1 is already judged, and they are simply discarded. The cut also happens to block the extra inputs from a shaky finger.

Side effect: scrubbing becomes the optimal solution

The price of this rule was covered in the previous article: each note only keeps half of the interval to be early or late in, so honest tapping gets stricter, and when you scrub, each note can be hit at most half an interval early, so past a certain speed scrubbing no longer produces ATTACKs.

The designers surely know this. The practice-song page of the strategy wiki mentions that patterns you can’t scrub through have been increasing lately: instead of changing the rule, they limit it through chart design.

FLICK judgment: how do you detect “sliding” with a row of switches?

A FLICK is a note where you move your hand sideways. But as above, the judging code doesn’t appear to know “the hand is moving.” The strategy wiki itself describes a FLICK as, to the game, “a TAP input with slightly shifted timing.” The rules players have measured are these:

  • Touching two points in the FLICK range, slightly apart in time, is a success. The two points must be 2 or more cells apart (cell numbers differing by 2 or more; the wiki isn’t very clear about the exact distance). You don’t actually have to slide.
  • Pressing two adjacent cells at the same time may be treated as a single press (marked as unverified on the strategy wiki).
  • Holding one point and then tapping another also counts: the held point can already be touched before the FLICK starts, even one cell outside the FLICK. But you must release after tapping; if you don’t, it becomes an ATTACK.
  • Pressing only once is always ATTACK (LATE).
  • If you slide across correctly, even an early entry is J-CRITICAL (the strategy wiki says early entry; there is no data for late entry).
  • Edge FLICK: for a FLICK against the edge of the slider, pressing the outermost cell and any cell inside the FLICK together, then releasing, counts without sliding.
Four kinds of input in a FLICK range: sliding your hand across, with the cells passed touched one after another, succeeds; two fingers tapping in turn 3 cells apart also succeeds; two adjacent cells touched at once are read as one finger and fail, becoming ATTACK LATE (unverified); for a FLICK at the edge, pressing the outermost cell and any cell in the FLICK together and then releasing succeeds (edge FLICK)
Four kinds of input in the FLICK range (the brighter part). In this figure the horizontal axis is the slider's 16 cells and time runs downward (the opposite of the earlier figures). ● is a touch and ○ is a release.

Starting from the premise that only “which cells were just touched” is visible, these rules all make sense:

  • Two taps count: the code only sees “two positions touched in succession.” It can’t tell one finger sliding across from two fingers tapping once each. A real slide produces the same signal, just with more cells.
  • Adjacent cells don’t count (if that’s true): a finger pressed on the boundary of two cells lights up both almost simultaneously. If two adjacent cells counted as a slide, every press on a cell boundary would be misjudged as a FLICK. Requiring 2 or more cells apart says “this is at least two fingers, or the hand has really moved,” similar to the threshold on phone touchscreens where it only counts as a swipe once you’ve moved beyond a certain distance.
  • A single press is always ATTACK (LATE): even if your press timing was early, it always shows LATE. That strongly suggests the judgment isn’t decided when you press, but rather settled only after the window ends and it’s clear the second point isn’t coming, as “touched but didn’t slide.” The settlement time is at the very end, so it is labeled LATE. It could also just be that this outcome is always labeled LATE.
  • Scrubbing in early is still J-CRITICAL: a FLICK only checks “did the slide succeed,” not how early or late it was.

The most simplified version as code (skippable):

// FLICK: remember the first "just touched" cell in the range,
// then if another one arrives 2+ cells away later, count it as a slide
struct Touch { public int Column; public float T; }

void OnTouchStartInFlick(Flick flick, int column, float t)
{
    if (flick.First == null) // flick.First is a Touch?
        flick.First = new Touch { Column = column, T = t };
    else if (t > flick.First.Value.T
             && Mathf.Abs(column - flick.First.Value.Column) >= 2)
        flick.Complete(t); // success: J-CRITICAL
}

// If it hasn't succeeded when the window ends: touched but no slide
void OnFlickWindowEnd(Flick flick)
{
    if (!flick.Completed)
        flick.Settle(flick.First == null ? Judgement.Miss : Judgement.AttackLate);
}

A programmer will notice that this still can’t do two things from the measurements: a held point that was already touched before the FLICK starts can serve as the first point, and you have to “release” after tapping. So the real code may look at “currently touched” rather than “just touched” for the first point, and releases may be part of the judgment too. That part is still unclear.

Edge FLICK: why is the outermost cell special?

The edge FLICK is only used for FLICKs at the edge, so the outermost cell is already inside the FLICK’s range. The two truly strange things are these:

  1. The two cells are pressed at the same time. By the rule above, the two points have to be touched “one after the other,” and two adjacent cells pressed together are even treated as a single press.
  2. You have to release.

I can think of two explanations:

  • Hypothesis 1: the outermost cell is a special starting point. A hand sliding in from outside the slider always touches the outermost cell first, so the code may let it count as the first point whenever it’s touched, even simultaneously. But this doesn’t explain why you have to release.
  • Hypothesis 2: releasing the outermost cell is treated as the hand sliding off the slider. For an outward FLICK at the edge, the hand leaves the slider almost immediately, and the cells it crosses may not add up to two. If “releasing the outermost cell” is treated as “the hand slid out,” that fills the gap. This explains three things at once: it only works on FLICKs at the edge, you must release, and what you release is the outermost cell. The strategy wiki also guesses that this rule exists to help outer FLICKs.

Hypothesis 2 as code (skippable):

// Hypothesis 2: for a FLICK at the edge, releasing the outermost cell
// is treated as the hand sliding off the slider
const int EdgeLeft = 0;
const int EdgeRight = 15;

void OnTouchEnd(int column, float t)
{
    if (column != EdgeLeft && column != EdgeRight) return;
    foreach (var flick in ActiveFlicks())
    {
        if (flick.TouchesEdge(column) && flick.First != null)
            flick.Complete(t);
    }
}

I lean toward hypothesis 2. The strategy wiki says what you release is the outermost cell, though it also marks that as unverified.

How these guesses could be tested

If you want to test them on a cabinet, this table may help; if you don’t, nothing above depends on it. Everything above was inferred from results, but the results of the tests below can tell the competing guesses apart:

Guess to test How to try it If the guess is right
A judged note still holds its own territory (B, not C) A 16th-note jack around BPM 150 (100 ms apart): hit note 1 on time, then immediately press once more with your other hand (50-100 ms earlier than note 2) B: note 2 doesn’t react, and if you only make that one press, note 2 is a MISS. C: note 2 is an early ATTACK
The whole note is cut, not cell by cell Find two consecutive notes of different widths that overlap on only 1 cell, and scrub the cells of note 2 that don’t overlap Whole-note cut: no ATTACK from scrubbing. Per-cell cut: an early ATTACK
The edge FLICK is the “release” of the outermost cell (hypothesis 2) For an edge FLICK, press the outermost cell and an inner cell together, then release only the inner one while holding the outermost cell Hypothesis 2: it doesn’t succeed. Hypothesis 1: it succeeds as usual
A single press is only settled after the window ends Tap a single FLICK, record at 240 fps, and compare when the judgment text appears It appears almost 100 ms later than the judgment text of other notes

Summary

Taking CHUNITHM’s strange judgment apart, most of the underlying principle traces back to two things:

  1. Judgment only sees “which cells were just touched.” Scrubbing, sliding in counting as a TAP, and FLICK counting two taps all happen because the code can’t tell “sliding” from “pressing.”
  2. Notes whose positions overlap get “split territories,” and the split is made at load time. In exchange you get fairness and resistance to duplicate triggers; the side effect is that scrubbing works, and the price is that honest tapping gets stricter.

The edge FLICK looks more like a special case added for one situation (FLICKs at the edge) that players then found a shortcut in.

To calculate directly whether a given jack can be scrubbed, use the jack scrub judgment simulator from the previous article.

References