Online Sequencer Forums

Full Version: Want to BETA TEST new instruments?
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Pages: 1 2 3
Code:
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 = String(i);
   instrumentSelect.add(opt);
 }
}
Insert this code into the console and you can beta test the new instruments!

CONSOLE TUTORIAL
Chrome: f12 and select console tab, paste code, then select the instruments tab and scroll down.
Else: Something similar, I use Chrome, sorry.
WOAH nice!
how do you lock instruments?
and edit volume?
Code:
audioSystem.setInstrumentVolume(<inst#>, <value>)
selectDelay(<inst#>)
selectReverb(<inst#>)
lockInstrument(<inst#>)
This should do the trick. <inst#> is the id of the instrument. <value> is the volume.
(06-01-2018, 01:49 PM)Frank Wrote: [ -> ]
Code:
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 = String(i);
   instrumentSelect.add(opt);
 }
}
Insert this code into the console and you can beta test the new instruments!

CONSOLE TUTORIAL
Chrome: f12 and select console tab, paste code, then select the instruments tab and scroll down.
Else: Something similar, I use Chrome, sorry.

NEW CODE
Code:
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);
  }
}
Uncaught TypeError: Cannot set property 'className' of null
at lockInstrument (d6983c7665af02298eff6e905f46355b.js:335)
at <anonymous>:1:1
(06-11-2018, 06:48 PM)Guest Wrote: [ -> ]Uncaught TypeError: Cannot set property 'className' of null
   at lockInstrument (d6983c7665af02298eff6e905f46355b.js:335)
   at <anonymous>:1:1

OOF what browser?
lock instrument doesn't work
(06-14-2018, 09:25 AM)Guest Wrote: [ -> ]lock instrument doesn't work

What code did you run to try to lock the instrument?
Pages: 1 2 3