| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -6,7 +6,7 @@ In this example it is started and stopped by clicking into the renderer window. | |||
| 6 | 6 | import processing.sound.*; | |
| 7 | 7 | ||
| 8 | 8 | WhiteNoise noise; | |
| 9 | - BandPass bPass; | ||
| 9 | + BandPass bandPass; | ||
| 10 | 10 | ||
| 11 | 11 | float amp=0.0; | |
| 12 | 12 | ||
@@ -16,14 +16,15 @@ void setup() { | |||
| 16 | 16 | ||
| 17 | 17 | // Create the noise generator + Filter | |
| 18 | 18 | noise = new WhiteNoise(this); | |
| 19 | - bPass = new BandPass(this); | ||
| 19 | + bandPass = new BandPass(this); | ||
| 20 | + | ||
| 20 | 21 | noise.play(0.5); | |
| 21 | - bPass.process(noise, 100); | ||
| 22 | + bandPass.process(noise, 100); | ||
| 22 | 23 | } | |
| 23 | 24 | ||
| 24 | 25 | void draw() { | |
| 25 | 26 | ||
| 26 | - bPass.freq(map(mouseX, 0, 350, 20, 10000)); | ||
| 27 | + bandPass.freq(map(mouseX, 0, width, 20, 10000)); | ||
| 27 | 28 | ||
| 28 | - bPass.res(map(mouseY, 0, 350, 0.05, 1.0)); | ||
| 29 | + bandPass.bw(map(mouseY, 0, height, 100, 1000)); | ||
| 29 | 30 | } | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -17,10 +17,11 @@ void setup() { | |||
| 17 | 17 | // Create the noise generator + filter | |
| 18 | 18 | noise = new WhiteNoise(this); | |
| 19 | 19 | highPass = new HighPass(this); | |
| 20 | + | ||
| 20 | 21 | noise.play(0.5); | |
| 21 | 22 | highPass.process(noise, 100); | |
| 22 | 23 | } | |
| 23 | 24 | ||
| 24 | 25 | void draw() { | |
| 25 | - highPass.freq(map(mouseX, 0, 350, 20, 10000)); | ||
| 26 | + highPass.freq(map(mouseX, 0, width, 80, 10000)); | ||
| 26 | 27 | } | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -6,7 +6,7 @@ In this example it is started and stopped by clicking into the renderer window. | |||
| 6 | 6 | import processing.sound.*; | |
| 7 | 7 | ||
| 8 | 8 | WhiteNoise noise; | |
| 9 | - LowPass lPass; | ||
| 9 | + LowPass lowPass; | ||
| 10 | 10 | ||
| 11 | 11 | float amp=0.0; | |
| 12 | 12 | ||
@@ -16,11 +16,11 @@ void setup() { | |||
| 16 | 16 | ||
| 17 | 17 | // Create the noise generator + filter | |
| 18 | 18 | noise = new WhiteNoise(this); | |
| 19 | - lPass = new LowPass(this); | ||
| 19 | + lowPass = new LowPass(this); | ||
| 20 | 20 | noise.play(0.2); | |
| 21 | - lPass.process(noise, 800); | ||
| 21 | + lowPass.process(noise, 800); | ||
| 22 | 22 | } | |
| 23 | 23 | ||
| 24 | 24 | void draw() { | |
| 25 | - lPass.freq(map(mouseX, 0, 350, 800, 10000)); | ||
| 25 | + lowPass.freq(map(mouseX, 0, width, 80, 10000)); | ||
| 26 | 26 | } | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -8,3 +8,4 @@ clean: | |||
| 8 | 8 | ||
| 9 | 9 | install: | |
| 10 | 10 | cp libMethClaInterface.jnilib ../../library/macosx | |
| 11 | + cp libMethClaInterface.jnilib /Users/wirsing/Documents/Processing/libraries/sound/library/macosx/ | ||
| Original file line number | Diff line number | Diff 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 */ | ||
| Back | FazBrowse Home | New Git URL |
0 commit comments