Skip to content

Commit

Permalink
note reverted to master
Browse files Browse the repository at this point in the history
  • Loading branch information
rvilarl committed Apr 29, 2021
1 parent 5bbe70d commit 3f7cf5d
Showing 1 changed file with 0 additions and 27 deletions.
27 changes: 0 additions & 27 deletions src/note.ts
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,6 @@ import { GlyphProps } from './glyph';
import { GLYPH_PROPS_VALID_TYPES } from './common';
import { Fraction } from './fraction';
import { Beam } from './beam';
import { Stem } from './stem';

export interface Metrics {
totalLeftPx?: number;
Expand Down Expand Up @@ -601,32 +600,6 @@ export abstract class Note extends Tickable {
this.preFormatted = value;
}

// Get the number of beams for this duration
getBeamCount(): number {
const glyph = this.getGlyph();

if (glyph) {
return glyph.beam_count;
} else {
return 0;
}
}

// Get and set the note's `Stem`
getStem(): Stem | undefined {
return undefined;
}

// Get StemX
getStemX(): number {
throw new Vex.RERR('NoStem', 'No stem attached to this note.');
}

// Set the direction of the stem
setStemDirection(direction: number): this {
throw new Vex.RERR('NoStem', `Calling getStemDirection(${direction}) in Note.`);
}

// Get the direction of the stem
getStemDirection(): number {
throw new Vex.RERR('NoStem', 'No stem attached to this note.');
Expand Down

0 comments on commit 3f7cf5d

Please sign in to comment.