Lines Matching refs:zone
512 return output};sf2.Parser.prototype.getInstruments=function(){var instrument=this.instrument,zone=this.instrumentZone,output=[],bagIndex,bagIndexEnd,zoneInfo,instrumentGenerator,instrumentModulator,i,il,j,jl;for(i=0,il=instrument.length;i<il;++i){bagIndex=instrument[i].instrumentBagIndex;bagIndexEnd=instrument[i+1]?instrument[i+1].instrumentBagIndex:zone.length;zoneInfo=[];for(j=bagIndex,jl=bagIndexEnd;j<jl;++j){instrumentGenerator=this.createInstrumentGenerator_(zone,j);instrumentModulator=this.createInstrumentModulator_(zone,j);zoneInfo.push({generator:instrumentGenerator.generator,modulator:instrumentModulator.modulator,})}
514 return output};sf2.Parser.prototype.createInstrumentGenerator_=function(zone,index){var modgen=this.createBagModGen_(zone,zone[index].instrumentGeneratorIndex,zone[index+1]?zone[index+1].instrumentGeneratorIndex:this.instrumentZoneGenerator.length,this.instrumentZoneGenerator);return{generator:modgen.modgen,}};sf2.Parser.prototype.createInstrumentModulator_=function(zone,index){var modgen=this.createBagModGen_(zone,zone[index].presetModulatorIndex,zone[index+1]?zone[index+1].instrumentModulatorIndex:this.instrumentZoneModulator.length,this.instrumentZoneModulator);return{modulator:modgen.modgen}};sf2.Parser.prototype.createBagModGen_=function(zone,indexStart,indexEnd,zoneModGen){var modgen={unknown:[],'keyRange':{hi:127,lo:0}};var info,i,il;for(i=indexStart,il=indexEnd;i<il;++i){info=zoneModGen[i];if(info.type==='unknown')