File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -193,8 +193,8 @@ define(function (require) {
193
193
}
194
194
195
195
196
- if ( this . _voicesInUse . value < this . polyValue ) {
197
- currentVoice = this . _voicesInUse . value ;
196
+ if ( this . _voicesInUse . getValueAtTime ( t ) < this . polyValue ) {
197
+ currentVoice = this . _voicesInUse . getValueAtTime ( t ) ;
198
198
} else {
199
199
currentVoice = this . _oldest ;
200
200
@@ -205,7 +205,7 @@ define(function (require) {
205
205
206
206
this . notes [ note ] = currentVoice ;
207
207
208
- this . _voicesInUse . setValueAtTime ( this . _voicesInUse . value + 1 , t ) ;
208
+ this . _voicesInUse . setValueAtTime ( this . _voicesInUse . getValueAtTime ( t ) + 1 , t ) ;
209
209
210
210
this . _newest = currentVoice ;
211
211
@@ -236,7 +236,7 @@ define(function (require) {
236
236
var tFromNow = secondsFromNow || 0 ;
237
237
var t = now + tFromNow ;
238
238
239
- this . _voicesInUse . setValueAtTime ( this . _voicesInUse . value - 1 , t ) ;
239
+ this . _voicesInUse . setValueAtTime ( this . _voicesInUse . getValueAtTime ( t ) - 1 , t ) ;
240
240
this . audiovoices [ this . notes [ note ] ] . triggerRelease ( secondsFromNow ) ;
241
241
this . notes [ note ] = undefined ;
242
242
You can’t perform that action at this time.
0 commit comments