0

I'm creating an object using a Web Audio API library:

var player = new Pizzicato.Sound({
                source: 'file',
                options: {
                    path: 'file.mp3',
                    volume: 0.5
                }
            });

if I log the object in the console I get this image:console output

What I'm trying to do is to get the type name highlighted in the image, o.Effects.StereoPanner and store it in a variable but I can't get it. I can reach the effects array with player.effects[0] but that gives me the whole object and not its name. I can't even reach the elements of the array as player.effects[0] givesundefined`. Àny clue about how can I get that element and its type?

Diego Vega
  • 223
  • 6
  • 16

0 Answers0