Online Sequencer Forums

Full Version: beta instruments (just posting this so that I can remember it later)
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
insts=[]; for(i=0;i<instrumentSelect.length;i++) { insts.push(parseInt(instrumentSelect[i].value)) } for(i=0;i<settings.instrumentColors.length;i++) { if(!insts.includes(i)) { var opt = document.createElement("option"); opt.value = i; opt.text = settings.instruments[i]; instrumentSelect.add(opt); } }