Compare commits
No commits in common. "3664b7a29e9984be2b2dd098ce0b8b3623ae2ef6" and "c34d37d9c6ea2d66557c18615195201cd2e18648" have entirely different histories.
3664b7a29e
...
c34d37d9c6
3 changed files with 4 additions and 6 deletions
2
VERSION
2
VERSION
|
|
@ -1 +1 @@
|
|||
0.0.59
|
||||
0.0.58
|
||||
|
|
|
|||
Binary file not shown.
|
|
@ -464,14 +464,12 @@ class App:
|
|||
L = self.lanes[li]; y = top + li * rowh; cy = y + rowh // 2
|
||||
tg, w, h = make_text((L.get('sound', '') or '?')[:7], FONT_S, C_MUTE, C_BG)
|
||||
tg.x = 8; tg.y = cy - h // 2; self.g_grid.append(tg)
|
||||
steps = L['steps']; sub = L['sub']; px0 = 60
|
||||
usable = WIDTH - 8 - px0 - 12; stepw = max(1, usable // steps)
|
||||
r_big = max(2, min(6, stepw // 2, (rowh - 8) // 2)); r_sml = max(2, r_big - 2)
|
||||
steps = L['steps']; sub = L['sub']; px0 = 60; pw = (WIDTH - 8 - px0) // steps
|
||||
r_big = max(3, min((rowh - 4) // 2, (pw - 2) // 2)); r_sml = max(2, r_big * 6 // 10)
|
||||
pads = []
|
||||
for s in range(steps):
|
||||
rad = r_big if (s % sub == 0) else r_sml # big = beat (division), small = subdivision
|
||||
cxp = px0 + 6 + (s * usable) // steps # proportional → beats line up across lanes
|
||||
c = vectorio.Circle(pixel_shader=self.pad_pal, radius=rad, x=cxp, y=cy)
|
||||
c = vectorio.Circle(pixel_shader=self.pad_pal, radius=rad, x=px0 + s*pw + pw//2, y=cy)
|
||||
c.color_index = self._padbase(L, s); self.g_grid.append(c); pads.append(c)
|
||||
self.lane_pads.append(pads); self.lane_lit.append(-1)
|
||||
self.dirty = True
|
||||
|
|
|
|||
Loading…
Reference in a new issue