spessasynth_core 1.0.10 → 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/package.json
CHANGED
|
@@ -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
|
|
|
@@ -152,15 +158,6 @@ class Sequencer
|
|
|
152
158
|
this.synth.stopAllChannels();
|
|
153
159
|
}
|
|
154
160
|
|
|
155
|
-
/**
|
|
156
|
-
* Total track length, in seconds.
|
|
157
|
-
* @return {number}
|
|
158
|
-
*/
|
|
159
|
-
get duration()
|
|
160
|
-
{
|
|
161
|
-
return this.midiData.duration;
|
|
162
|
-
}
|
|
163
|
-
|
|
164
161
|
_resetTimers()
|
|
165
162
|
{
|
|
166
163
|
this.playedTime = 0
|