Want to BETA TEST new instruments?
#1

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.

Kim Wrote:https://js-game.glitch.me + Doesnt take peopel serious if their has badly speling gramer puntuatin
Reply
#2

WOAH nice!
Reply
#3

how do you lock instruments?
Reply
#4

and edit volume?
Reply
#5

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.

Kim Wrote:https://js-game.glitch.me + Doesnt take peopel serious if their has badly speling gramer puntuatin
Reply
#6

(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);
  }
}

Kim Wrote:https://js-game.glitch.me + Doesnt take peopel serious if their has badly speling gramer puntuatin
Reply
#7

Uncaught TypeError: Cannot set property 'className' of null
at lockInstrument (d6983c7665af02298eff6e905f46355b.js:335)
at <anonymous>:1:1
Reply
#8

(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?

Kim Wrote:https://js-game.glitch.me + Doesnt take peopel serious if their has badly speling gramer puntuatin
Reply
#9

lock instrument doesn't work
Reply
#10

(06-14-2018, 09:25 AM)Guest Wrote:  lock instrument doesn't work

What code did you run to try to lock the instrument?

Kim Wrote:https://js-game.glitch.me + Doesnt take peopel serious if their has badly speling gramer puntuatin
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)
Expand chat