Skip to content

Commit

Permalink
Fix small issues.
Browse files Browse the repository at this point in the history
  • Loading branch information
ronyeh committed Jul 30, 2021
1 parent ba1b77a commit 1ef90df
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
6 changes: 3 additions & 3 deletions src/registry.ts
Original file line number Diff line number Diff line change
Expand Up @@ -89,10 +89,10 @@ export class Registry {
}

/**
* Register element `elem` with this registry.
* Register element `elem` with this registry.
* This adds the element to its index and watches it for attribute changes.
* @param elem
* @param id
* @param elem
* @param id
* @returns this
*/
register(elem: Element, id?: string): this {
Expand Down
4 changes: 2 additions & 2 deletions tests/formatter/tests.js
Original file line number Diff line number Diff line change
Expand Up @@ -182,15 +182,15 @@ function multistave(el, iterations, params) {
f.Beam({ notes: notes31.slice(0, 3) });
f.Beam({ notes: notes31.slice(3, 6) });

const formatter = f.Formatter().joinVoices([voice11]).joinVoices([voice21]).joinVoices([voice31]);
let formatter = f.Formatter().joinVoices([voice11]).joinVoices([voice21]).joinVoices([voice31]);

if (options.justify) {
formatter.formatToStave([voice11, voice21, voice31], stave11);
} else {
formatter.format([voice11, voice21, voice31], 0);
}

for (const i = 0; i < iterations; i++) {
for (let i = 0; i < iterations; i++) {
formatter.tune({ alphs: options.alpha });
}

Expand Down

0 comments on commit 1ef90df

Please sign in to comment.