Skip to content

strums

Your whole strumline at once: the four lanes, their scroll direction, the scroll speed - and whether your keys play at all (handy for cutscenes).

Written in .modchart files

These properties move the lanes and notes, so only a .modchart file may set them (any file may read them; strums.input, the keys on / off, may be set anywhere). A .event that sets one doesn't load. The No Mod modifier leaves .modchart files out. Two kinds of file.

How to use it

Always there. strums.* is the whole strumline, strum[lane] one lane - both add up: a lane's x comes on top of strums.x.

Shortcuts: hideStrums / showStrums, moveStrums, flipScroll, setScroll. Scroll speed changes: scrollTo / scrollBy.

Psych: setPropertyFromGroup('strumLineNotes', ...), downscroll · Kade: strumLine, setHudPosition

Example code

-- Middle of the song: the strumline drifts up, the opponent's lanes fade (practice).
tween(strums.y, -60, beats(4), "sineInOut")
tween(strums.opponentAlpha, 0, beats(2))

Properties

Property Kind Default
strums.scroll choice "auto" Every lane's direction: "auto" (the player's own setting), "up", "down". A lane's …
strums.x number 0 The whole strumline moved to the right, in pixels. The strum background follows.
strums.y number 0 The whole strumline moved down, in pixels.
strums.alpha number 1 The whole strumline's opacity: receptors, notes, holds.
strums.opponentAlpha number 1 The opponent's receptors beside yours (practice; a fight shows only yours).
strums.bump number 1 How much the beat bump zooms the lanes: 1 = like the rest of the HUD, 0 = the lanes stay …
strums.input switch true Whether your lane keys play. false = presses are ignored and held keys let go at once - …
scroll.style choice "classic" How a scroll speed change is drawn: "classic" (the speed is eased live, notes on screen …
scroll.speed number, read 1 The scroll speed multiplier right now.
strums.spacing number, read 67 The distance between two lanes in pixels: strum[0].x = 3 * strums.spacing puts lane 0 …

strums.scroll

choice strums.scroll = "auto"

.modchart only

Every lane's direction: "auto" (the player's own setting), "up", "down". A lane's own strum[lane].scroll wins over it.

One of: "auto", "up", "down" (what they do).

strums.x

number strums.x = 0

.modchart only

The whole strumline moved to the right, in pixels. The strum background follows.

strums.y

number strums.y = 0

.modchart only

The whole strumline moved down, in pixels.

strums.alpha

number strums.alpha = 1

0 – 1share of the screen.modchart only

The whole strumline's opacity: receptors, notes, holds.

strums.opponentAlpha

number strums.opponentAlpha = 1

0 – 1share of the screen.modchart only

The opponent's receptors beside yours (practice; a fight shows only yours).

strums.bump

number strums.bump = 1

0 – 1share of the screen.modchart only

How much the beat bump zooms the lanes: 1 = like the rest of the HUD, 0 = the lanes stay still while the rest bumps (for modcharts that move the lanes themselves).

strums.input

switch strums.input = true

Whether your lane keys play. false = presses are ignored and held keys let go at once - for cutscenes. Notes that come meanwhile are missed as usual, so leave the chart empty there.

Note

Replays play the recorded keys; a recording made with input off has none there anyway.

scroll.style

choice scroll.style = "classic"

kept at the song's end.modchart only

How a scroll speed change is drawn: "classic" (the speed is eased live, notes on screen speed up with it) or "modern" (notes are placed on the planned speed curve - see scrollTo).

One of: "classic", "modern".

scroll.speed

number scroll.speed = 1

read only

The scroll speed multiplier right now.

strums.spacing

number strums.spacing = 67

read only

The distance between two lanes in pixels: strum[0].x = 3 * strums.spacing puts lane 0 where lane 3 is.