Skip to content

Commit

Permalink
replacement es5 functions to es6 classes feat p5.Oscillator (#533)
Browse files Browse the repository at this point in the history
* replacement es5 functions to es6 classes feat p5.Oscillator

* corrected SigChain  def from class to function and removed unwanted consoles
  • Loading branch information
endurance21 authored Aug 30, 2020
1 parent a683eb1 commit 7b24c41
Show file tree
Hide file tree
Showing 2 changed files with 462 additions and 456 deletions.
11 changes: 8 additions & 3 deletions src/app.js
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,14 @@ import FFT from './fft';
p5.FFT = FFT;

import './signal';
import './oscillator';

import Oscillator, { SinOsc, TriOsc, SawOsc, SqrOsc } from './oscillator';
p5.Oscillator = Oscillator;
p5.SinOsc = SinOsc;
p5.TriOsc = TriOsc;
p5.SawOsc = SawOsc;
p5.SqrOsc = SqrOsc;

import './envelope';


Expand Down Expand Up @@ -95,8 +102,6 @@ import peakDetect from './peakDetect';
p5.peakDetect = peakDetect;




import SoundRecorder from './soundRecorder';
p5.SoundRecorder = SoundRecorder;

Expand Down
Loading

0 comments on commit 7b24c41

Please sign in to comment.