FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

repaired Filter + took out res + introduced Bandwidth for BPass. fixe… · wwdxfa/processing@44248a8 · GitHub

Repository navigation

Commit 44248a8

Browse files
committed
repaired Filter + took out res + introduced Bandwidth for BPass. fixed some public/private bugs
1 parent e5910f4 commit 44248a8

20 files changed

Lines changed: 180 additions & 96 deletions

‎java/libraries/sound/examples/Effects/Filter/BPF/BPF.pde‎

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ In this example it is started and stopped by clicking into the renderer window.
66
import processing.sound.*;
77

88
WhiteNoise noise;
9-
BandPass bPass;
9+
BandPass bandPass;
1010

1111
float amp=0.0;
1212

@@ -16,14 +16,15 @@ void setup() {
1616

1717
// Create the noise generator + Filter
1818
noise = new WhiteNoise(this);
19-
bPass = new BandPass(this);
19+
bandPass = new BandPass(this);
20+
2021
noise.play(0.5);
21-
bPass.process(noise, 100);
22+
bandPass.process(noise, 100);
2223
}
2324

2425
void draw() {
2526

26-
bPass.freq(map(mouseX, 0, 350, 20, 10000));
27+
bandPass.freq(map(mouseX, 0, width, 20, 10000));
2728

28-
bPass.res(map(mouseY, 0, 350, 0.05, 1.0));
29+
bandPass.bw(map(mouseY, 0, height, 100, 1000));
2930
}

‎java/libraries/sound/examples/Effects/Filter/HPF/HPF.pde‎

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,10 +17,11 @@ void setup() {
1717
// Create the noise generator + filter
1818
noise = new WhiteNoise(this);
1919
highPass = new HighPass(this);
20+
2021
noise.play(0.5);
2122
highPass.process(noise, 100);
2223
}
2324

2425
void draw() {
25-
highPass.freq(map(mouseX, 0, 350, 20, 10000));
26+
highPass.freq(map(mouseX, 0, width, 80, 10000));
2627
}

‎java/libraries/sound/examples/Effects/Filter/LPF/LPF.pde‎

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ In this example it is started and stopped by clicking into the renderer window.
66
import processing.sound.*;
77

88
WhiteNoise noise;
9-
LowPass lPass;
9+
LowPass lowPass;
1010

1111
float amp=0.0;
1212

@@ -16,11 +16,11 @@ void setup() {
1616

1717
// Create the noise generator + filter
1818
noise = new WhiteNoise(this);
19-
lPass = new LowPass(this);
19+
lowPass = new LowPass(this);
2020
noise.play(0.2);
21-
lPass.process(noise, 800);
21+
lowPass.process(noise, 800);
2222
}
2323

2424
void draw() {
25-
lPass.freq(map(mouseX, 0, 350, 800, 10000));
25+
lowPass.freq(map(mouseX, 0, width, 80, 10000));
2626
}
348 Bytes
Binary file not shown.
1.53 KB
Binary file not shown.
1.02 KB
Binary file not shown.

‎java/libraries/sound/src/cpp/Makefile‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,3 +8,4 @@ clean:
88

99
install:
1010
cp libMethClaInterface.jnilib ../../library/macosx
11+
cp libMethClaInterface.jnilib /Users/wirsing/Documents/Processing/libraries/sound/library/macosx/
Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
/*
2+
Copyright 2012-2013 Samplecount S.L.
3+
4+
Licensed under the Apache License, Version 2.0 (the "License");
5+
you may not use this file except in compliance with the License.
6+
You may obtain a copy of the License at
7+
8+
http://www.apache.org/licenses/LICENSE-2.0
9+
10+
Unless required by applicable law or agreed to in writing, software
11+
distributed under the License is distributed on an "AS IS" BASIS,
12+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13+
See the License for the specific language governing permissions and
14+
limitations under the License.
15+
*/
16+
17+
#ifndef METHCLA_PLUGINS_BPF_H_INCLUDED
18+
#define METHCLA_PLUGINS_BPF_H_INCLUDED
19+
20+
#include <methcla/plugin.h>
21+
22+
METHCLA_EXPORT const Methcla_Library* methcla_plugins_bpf(const Methcla_Host*, const char*);
23+
#define METHCLA_PLUGINS_BPF_URI METHCLA_PLUGINS_URI "/bpf"
24+
25+
#endif /* METHCLA_PLUGINS_BPF_H_INCLUDED */

‎java/libraries/sound/src/cpp/include/processing_sound_MethClaInterface.h‎

Lines changed: 13 additions & 5 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
348 Bytes
Binary file not shown.

0 commit comments

Comments
 (0)

Back | FazBrowse Home | New Git URL