generated from processing/processing-library-template-ant
-
-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
9d9d9ab
commit 435350e
Showing
15 changed files
with
67 additions
and
16 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
1 change: 1 addition & 0 deletions
1
examples/FrequencyAnalyzer/stereo_output/AudioFileInputSource.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
../../../src/bpm/library/frequencyanalyzer/AudioFileInputSource.java |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
../../../src/bpm/library/frequencyanalyzer/AudioInputMode.java |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
../../../src/bpm/library/frequencyanalyzer/AudioInputSource.java |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
../../../src/bpm/library/frequencyanalyzer/AudioOutputMode.java |
1 change: 1 addition & 0 deletions
1
examples/FrequencyAnalyzer/stereo_output/FrequencyAnalyzer.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
../../../src/bpm/library/frequencyanalyzer/FrequencyAnalyzer.java |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
../../../src/bpm/library/InfoPanel.java |
1 change: 1 addition & 0 deletions
1
examples/FrequencyAnalyzer/stereo_output/LineInInputSource.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
../../../src/bpm/library/frequencyanalyzer/LineInInputSource.java |
1 change: 1 addition & 0 deletions
1
examples/FrequencyAnalyzer/stereo_output/MicrophoneInputSource.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
../../../src/bpm/library/frequencyanalyzer/MicrophoneInputSource.java |
Binary file not shown.
29 changes: 29 additions & 0 deletions
29
examples/FrequencyAnalyzer/stereo_output/stereo_output.pde
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
// Import the library to your sketch | ||
import bpm.library.frequencyanalyzer.*; | ||
|
||
// Import the minim library | ||
import ddf.minim.*; | ||
import ddf.minim.analysis.*; | ||
|
||
Minim minim; | ||
FrequencyAnalyzer fa; | ||
|
||
void setup() { | ||
size(500, 500); | ||
minim = new Minim(this); | ||
|
||
fa = new FrequencyAnalyzer(this) | ||
.addMinim(minim) | ||
.setFile("example-stereo.mp3") | ||
.setAudioInputMode(AudioInputMode.AUDIO_FILE) | ||
.setAudioOutputMode(AudioOutputMode.STEREO) | ||
; | ||
} | ||
|
||
|
||
void draw() { | ||
background(50); | ||
|
||
circle(width/3, height/2, fa.getAvgRawLeft(0)*30); | ||
circle(width/3*2, height/2, fa.getAvgRawRight(0)*30); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters