MCPcopy
hub / github.com/processing/p5.js / main_Main

Function main_Main

lib/addons/p5.sound.js:693–722  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

691
692
693var main_Main = function Main() {
694 _classCallCheck(this, Main);
695
696 this.input = audiocontext["a" ].createGain();
697 this.output = audiocontext["a" ].createGain();
698
699 this.limiter = audiocontext["a" ].createDynamicsCompressor();
700 this.limiter.threshold.value = -3;
701 this.limiter.ratio.value = 20;
702 this.limiter.knee.value = 1;
703 this.audiocontext = audiocontext["a" ];
704 this.output.disconnect();
705
706 this.input.connect(this.limiter);
707
708 this.limiter.connect(this.output);
709
710 this.meter = audiocontext["a" ].createGain();
711 this.fftMeter = audiocontext["a" ].createGain();
712 this.output.connect(this.meter);
713 this.output.connect(this.fftMeter);
714
715 this.output.connect(this.audiocontext.destination);
716
717 this.soundArray = [];
718
719 this.parts = [];
720
721 this.extensions = [];
722};
723
724
725var p5sound = new main_Main();

Callers

nothing calls this directly

Calls 3

_classCallCheckFunction · 0.85
disconnectMethod · 0.80
connectMethod · 0.80

Tested by

no test coverage detected