0.1.8 • Published 3 years ago

@vapurrmaid/bpm v0.1.8

Weekly downloads
1
License
MIT
Repository
github
Last release
3 years ago

@vapurrmaid/bpm

A simple zero-dependency package for working with BPM calculations.

BPM class

Constructor

new BPM(bpm);
  • bpm: number - A number greater than 0

Public Properties

  • value: number - Number of beats per minute (BPM)

Public Methods

durationFor

Calculates the duration (in seconds) for a particular note at the BPM.

  durationFor(aNote, beatNote = "quarter"): number
  • aNote: NoteDuration - the note to calculate the duration for
  • beatNote: NoteDuration - the note that's considered 1 beat

numberOfBeatsFor

Calculates the number of beats for the given note duration at this BPM.

numberOfBeatsFor(aNote, beatNote = "quarter"): number
  • aNote: NoteDuration - the note to calculate the duration for
  • beatNote: NoteDuration - the note that's considered 1 beat
0.1.8

3 years ago

0.1.7

4 years ago

0.1.6

4 years ago

0.1.4

4 years ago

0.1.5

4 years ago

0.1.3

4 years ago

0.1.2

4 years ago

0.1.0

4 years ago