We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ca49a6e commit 1ddcd83Copy full SHA for 1ddcd83
src/voice.ts
@@ -195,12 +195,16 @@ export class Voice extends Element {
195
*/
196
setSoftmaxFactor(factor: number): this {
197
this.options.softmaxFactor = factor;
198
+ this.expTicksUsed = 0; // reset
199
return this;
200
}
201
202
/**
203
* Calculate the sum of the exponents of all the ticks in this voice to use
- * as the denominator of softmax.
204
+ * as the denominator of softmax. (It is not the sum of the softmax(t) over all tickables)
205
+ *
206
+ * Note that the "exp" of "expTicksUsed" stands for "expontential" ticks used,
207
+ * not "expected" ticks used.
208
209
protected reCalculateExpTicksUsed(): number {
210
const totalTicks = this.ticksUsed.value();
0 commit comments