Online Sequencer Make music online
  • Sequences
  • Members
  • Chat
  • Forum
  • Wiki

Existing user? Sign In Create account
Login at Online Sequencer Forums

Online Sequencer Forums › Online Sequencer › Suggestions
« Previous 1 … 38 39 40 41 42 … 51 Next »

unhide all instruments

Thread tools
unhide all instruments
dfhwze Offline
Member
41 Posts:
 
#7
07-18-2019, 08:59 AM
The code is available:

function loadInstruments() {
var insts=[];
for(var i=0;i<instrumentSelect.length;i++)
{
insts.push(parseInt(instrumentSelect[i].value))
}
var grp = document.createElement("optgroup");
grp.label = "Unfinished";
instrumentSelect.add(grp);
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];
grp.appendChild(opt);
var instSettings = document.createElement("div");
instSettings.innerHTML = "<div class=\"instrument_option\"><div><div id=\"instrument_lock_" + i + "\" class=\"instrument_lock btn tooltipstered\" onclick=\"lockInstrument(" + i + ")\"></div><span id=\"instrument_name_" + i + "\" onclick=\"selectInstrument(" + i + ")\">" + settings.instruments[i] + "</span><div class=\"chip instrument" + i + "\"></div></div><div class=\"row\"><input id=\"instrument_volume_" + i + "\" class=\"slider\" type=\"range\" min=\"0\" max=\"2\" step=\"0.01\" oninput=\"audioSystem.setInstrumentVolume(" + i + ", this.value)\"><div id=\"instrument_delay_" + i + "\" class=\"button tooltipstered\" onclick=\"selectDelay(" + i + ")\">D</div><div id=\"instrument_reverb_" + i + "\" class=\"button tooltipstered\" onclick=\"selectReverb(" + i + ")\">R</div></div></div>;"
document.getElementById("instrument_options").appendChild(instSettings.firstChild);
}
}
console.log("instruments loaded");
}


Reply

Messages In This Thread
unhide all instruments - by LucentTear - 04-17-2019, 10:02 AM
RE: unhide all instruments - by Frank - 04-17-2019, 07:39 PM
RE: unhide all instruments - by Jacob_ - 04-17-2019, 07:48 PM
RE: unhide all instruments - by LucentTear - 04-18-2019, 04:25 AM
RE: unhide all instruments - by LucentTear - 05-16-2019, 05:29 PM
RE: unhide all instruments - by Firebolt391d - 05-16-2019, 06:53 PM
RE: unhide all instruments - by dfhwze - 07-18-2019, 08:59 AM
RE: unhide all instruments - by Lopyt - 08-01-2019, 10:49 PM
RE: unhide all instruments - by fox - 11-05-2019, 12:19 PM



Users browsing this thread:   1 Guest(s)


  •  Return to Top
  •  Contact Us
  •   Home
  •  Lite mode
© Rush Crafted with ❤ by iAndrew
Powered By MyBB, © 2002-2026 MyBB Group.
Linear Mode
Threaded Mode
View a Printable Version
Subscribe to this thread
Add Poll to this thread
Send thread to a friend