mirror of
https://github.com/Tonejs/Tone.js
synced 2024-11-16 16:48:00 +00:00
MultiSampler accepts the sample names as numbers
This commit is contained in:
parent
527ce958cf
commit
bb17651349
1 changed files with 2 additions and 4 deletions
|
@ -53,11 +53,9 @@ function(Tone){
|
|||
loaded : 0
|
||||
};
|
||||
//get the count
|
||||
for (var s in samples){
|
||||
if (typeof samples[s] === "string"){
|
||||
for (var s in samples){ //jshint ignore:line
|
||||
loadCounter.total++;
|
||||
}
|
||||
}
|
||||
//the function to invoke when a sample is loaded
|
||||
var onSampleLoad = function(){
|
||||
loadCounter.loaded++;
|
||||
|
|
Loading…
Reference in a new issue