Skip to content

Commit

Permalink
continue work on new family
Browse files Browse the repository at this point in the history
  • Loading branch information
Bubobubobubobubo committed Oct 24, 2023
1 parent e424fb5 commit 4f88d0a
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion src/API.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1280,8 +1280,15 @@ export class UserAPI {
// Time Filters
// =============================================================

public fullseq = (sequence: string, duration: number) => {
if (sequence.split('').every(c => c === 'x' || c === 'o')) {
return [...sequence].map(c => c === 'x').beat(duration);
} else {
return false
}
}

public seq = (expr: string, duration: number): boolean => {
public seq = (expr: string, duration: number = 0.5): boolean => {
let len = expr.length * duration
let output: number[] = [];

Expand Down

0 comments on commit 4f88d0a

Please sign in to comment.