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:
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] gives
undefined`. Àny clue about how can I get that element and its type?