All files / player-engine/src lanes.ts

0% Statements 0/0
0% Branches 0/0
0% Functions 0/0
0% Lines 0/0

Press n or j to go to the next uncovered block, b, p or k for the previous block.

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114                                                                                                                                                                                                                                   
/**
 * `@be-music/player-engine/lanes`: the lanes of a play mode — which channels a chart plays on and how they lay out (slots,
 * the LR2 lane order, scratch and wheel lanes), the keyboard bindings with FREE ZONE input, the scratch spin a press
 * gives (the odd-even rule over a scratch lane's keys), and the lanes the lane options permute. `ChartPlayVariant` comes from `@be-music/chart-model`.
 */
export {
  appendFreeZoneInputChannels,
  createInputTokenToChannelsMap,
  createLaneBindings,
  isPlayableInputChannel,
  LANE_KEY_CONFIG,
  laneKeyLabel,
  isScratch,
  resolveKeyChannel,
  resolveLaneChannels,
  resolveLaneDisplayMode,
  resolveLaneOptionChannels,
  resolveLR2LaneIndex,
  resolvePlayVariantLaneChannels,
  resolveSideKeySlot,
  resolveSideRelativeLaneIndex,
  resolveWheelLaneDirection,
  type ChannelLike,
  type KeyboardCodeLike,
  type LaneBinding,
  type LaneKeyConfigLane,
  type LaneKeyGroup,
  type LaneKeyOverrides,
  type LaneModeOptions,
} from './core/lane-layout.ts';
 
export {
  createInputSourceTable,
  endsBackSpinScratch,
  hasScratchCounterpart,
  inputSourceKey,
  isSameInputSource,
  keyboardInputSource,
  releasesScratchHold,
  type IdentifiedInputSource,
  type InputSource,
  type InputSourceDevice,
  type InputSourceKind,
  type InputSourceTable,
  type InputSourceTableOptions,
  type TurntableDirection,
} from './core/input-source.ts';
 
export {
  createScratchSpinByToken,
  isScratchSpin,
  resolveScratchSpin,
  type ScratchSpin,
  type ScratchSpinBinding,
} from './core/scratch-spin.ts';
 
export {
  randomizeHRandomNotes,
  randomizeAllScratchNotes,
  randomizePMSConvergeNotes,
  randomizePMSPlayableNotes,
  clampHRandomThresholdBPM,
  randomizeSpiralNotes,
  randomizeSRandomNotes,
  type SRandomNote,
  type SRandomOptions,
} from './lane-random.ts';
 
export { resolveAutoScratchSides, resolveAutoScratchChannels, type AutoScratchOptions } from './core/auto-scratch.ts';
 
export { randomizeLR2ConvergeNotes } from './lane-converge.ts';
 
export { randomizePMSPlayableLanes } from './lane-pms-random.ts';
 
export {
  createBeatorajaLaneRandom,
  parseLaneRandomSeed,
  drawLaneRandomIndex,
  type LaneRandomSource,
} from './lane-random-source.ts';
 
export { prepareMineModifier, type MineModifier, type MinePlacement } from './core/mine-modifier.ts';
 
export {
  addLongNotes,
  clampLongNoteRate,
  type LongNoteModifier,
  type LongNotePlacement,
} from './core/long-note-modifier.ts';
 
export { randomizeLR2ScatterNotes } from './lane-scatter.ts';
 
export { clampScrollSection, clampScrollRate, type ScrollModifier } from './core/scroll-modifier.ts';
export type { LR2ManiaChartRates } from './core/lr2-mania-chart.ts';
 
export { clampExtraNoteDepth } from './core/extra-note-modifier.ts';
 
export type { LR2ExtraLevel } from './core/lr2-extra-lanes.ts';
 
export {
  isOnePlayerBattleMode,
  isSPToDPBattleMode,
  resolveEffectiveBattleMode,
  type BattleMode,
  type EffectiveBattleMode,
} from './core/battle-mode.ts';
 
export {
  applySevenToNine,
  type SevenToNineOptions,
  type SevenToNinePattern,
  type SevenToNineType,
} from './core/seven-to-nine.ts';