Lume
    Preparing search index...

    Class NoteAnalyzer

    NoteAnalyzer processes notes within a note tracker and prints out the currently active notes, alongside predicting a chord from it.

    Hierarchy (View Summary)

    Index

    Accessors

    • get activeNotesFontSize(): number

      Returns the font size of the text displaying the current active notes.

      Returns number

    • set activeNotesFontSize(value: number): void

      Sets the font size of the active notes text.

      Parameters

      • value: number

      Returns void

      Value must be an integer zero or greater.

    • get gap(): number

      Returns the gap value, which is the space (in pixels) between the chord predicted text and currently active notes text.

      Returns number

    • set gap(value: number): void

      Sets the value of the gap property.

      Parameters

      • value: number

      Returns void

      Value must be a positive integer.

    • get noPredictionText(): string

      NoteAnalyzer cannot predict a chord if there are less than two unique note values currently playing. When one note is playing, this setting determines if the previously predicted chord should be drawn (when this value is falsy e.g., empy string), or to display default text.

      Returns string

    • set noPredictionText(value: string): void

      Parameters

      • value: string

      Returns void

    • get predictedChordFontSize(): number

      Returns the font size of the text displaying the predicted chord.

      Returns number

    • set predictedChordFontSize(value: number): void

      Sets the font size of the predicted chord text.

      Parameters

      • value: number

      Returns void

      Value must be an integer zero or greater.

    Constructors

    Methods

    • Called by the rendering engine on every frame.

      When overriding this method, ensure that the p5 instance is configured properly. For example, rectangles may be drawn incorrectly if a previous CanvasDrawer had modified p5.rectMode(). CanvasDrawer classes are not obligated/expected to use the default p5 attributes.

      See the p5 documentation on attributes for more information: https://p5js.org/reference/#Attributes

      Returns void