Skip to content

Instantly share code, notes, and snippets.

View dinosoeren's full-sized avatar

soeren dinosoeren

View GitHub Profile
@dinosoeren
dinosoeren / mirror.ts
Last active November 12, 2021 15:43
mirrorEventsX - mirror ats choreo events and switch handedness (AudioTrip)
import * as ATS from '@hn3000/ats-types'
/**
* Mirrors ats choreo events X-pos across Y-axis and switches handedness.
* Works for all gems including ribbons! also rotates drums and dirgems.
*/
export const mirrorEventsX = (events: ATS.IChoreoEvent[]): ATS.IChoreoEvent[] => {
const newEvents: ATS.IChoreoEvent[] = [];
for (let i = 0; i < events.length; i++) {
const t = events[i].type;