spessasynth_core 1.0.9 → 1.0.11

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -2,8 +2,9 @@
2
2
  A SoundFont2 synthesizer library, made for use with node.js.
3
3
  A fork of [SpessaSynth](https://github.com/spessasus/SpessaSynth).
4
4
 
5
- `npm install --save spessasynth_core`
5
+ [Jump to documentation](#api-reference)
6
6
 
7
+ `npm install --save spessasynth_core`
7
8
 
8
9
  > Looking for a browser version? Try [SpessaSynth](https://github.com/spessasus/SpessaSynth).
9
10
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "spessasynth_core",
3
- "version": "1.0.9",
3
+ "version": "1.0.11",
4
4
  "description": "SoundFont2 synthesizer library for node.js",
5
5
  "main": "index.js",
6
6
  "type": "module",
@@ -56,6 +56,12 @@ class Sequencer
56
56
  */
57
57
  this.playingNotes = [];
58
58
 
59
+ /**
60
+ * The current song's lenght, in seconds
61
+ * @type {number}
62
+ */
63
+ this.duration = 0;
64
+
59
65
  // controls if the sequencer loops (defaults to true)
60
66
  this.loop = true;
61
67
 
@@ -90,6 +96,10 @@ class Sequencer
90
96
  this.currentTime = time;
91
97
  }
92
98
 
99
+ /**
100
+ * The current playback time, in seconds
101
+ * @return {number}
102
+ */
93
103
  get currentTime()
94
104
  {
95
105
  // return the paused time if it's set to something other than undefined