Skip to content

Commit 0d80ab6

Browse files
committed
update description
1 parent e5dd8e7 commit 0d80ab6

4 files changed

Lines changed: 9 additions & 33 deletions

File tree

README.md

Lines changed: 5 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
# Visualizer
2-
Java audio spectrum analyzer with support for hue lights.
2+
Visualizer is a real time application that takes the input sound from the pc and processed it through an FFT in order to display a spectrum representation of the sound.
33

44
## Install dependencies
5-
1. Install openjdk 11
6-
2. Install openjfx 11
5+
1. Install openjdk 17
6+
2. Install openjfx 17
77
3. Install apache maven
88

99
## Audio Setup
@@ -22,30 +22,9 @@ If you do not have a "Stereo Mix" device you will have to use "Virtual Cable"
2222
7. Select the audio device that you want as the playback device. (ex: "Realtek High Definition Audio")
2323
8. Apply and close
2424

25-
## Hue plugin requirement
26-
I am not allowed to distribute the hue libraries or materials until hue edk comes out of beta.
27-
Please follow the steps bellow in order to get access to the hue libraries and put them in the correct location:
28-
1. Create an account and agree to the philips EDK terms and conditions here: https://developers.meethue.com/edk-terms-and-conditions/
29-
2. Get access to the following git repository: https://github.com/PhilipsHue/HueSDK4EDK
30-
3. Go to https://github.com/PhilipsHue/HueSDK4EDK/tree/master/HueSDK/Windows and copy the following files:
31-
4. jar file to: ./lib
32-
5. dll file to: ./dll
33-
3425
## Compile
3526
`mvn clean install`
3627

37-
## Hue plugin installation:
38-
Copy hue/target/hue-1.0.0-SNAPSHOT-plugin.jar to spectrum/plugins
39-
4028
## Run
41-
`java -Djava.library.path=./dll --module-path "C:\Program Files\Java\javafx-sdk-11.0.2\lib" --add-modules=javafx.controls,javafx.fxml -cp ./target/spectrum-1.0.0-SNAPSHOT-jar-with-dependencies.jar Main`
42-
43-
## Configure
44-
Create an entertainment group called "bass" from the Official Philips Hue App: https://play.google.com/store/apps/details?id=com.philips.lighting.hue2&hl=en
45-
46-
## Use
47-
1. Click on the screen of the visualiser window in order to open the settings window
48-
2. Click on "Hue Integration" from the left sidebar
49-
3. Click on the "start" button
50-
4. Push the Philips Hue Bridge Push Link Button (only once)
51-
5. Enjoy :)
29+
cd ./spectrum
30+
`java -Djava.library.path=./dll --module-path "/<pathToJavaFxHome>/lib" --add-modules=javafx.controls,javafx.fxml -cp ./lib -jar /spectrum-1.0.0-SNAPSHOT-jar-with-dependencies.jar`

spectrum/src/main/java/com/lazydash/audio/visualizer/spectrum/Main.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@
2525

2626
/*
2727
Intellij settings:
28-
- vm options: -Djava.library.path=./dll --module-path "/Users/vuveges/Programs/java/javafx-sdk-17.0.2/lib" --add-modules=javafx.controls,javafx.fxml
28+
- vm options: -Djava.library.path=./dll --module-path "/pathToJavaFxHome/lib" --add-modules=javafx.controls,javafx.fxml
2929
- working directory: $MODULE_WORKING_DIR$
3030
*/
3131
public class Main extends Application {

spectrum/src/main/java/com/lazydash/audio/visualizer/spectrum/system/config/AppConfig.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ public class AppConfig {
1313

1414
// Spectral View
1515
public static int signalAmplification = 100;
16-
public static int signalThreshold = -28;
16+
public static int signalThreshold = -34;
1717
public static String maxLevel = "RMS";
1818
public static String weight = "dBZ";
1919
public static int frequencyStart = 39;
@@ -36,7 +36,7 @@ public class AppConfig {
3636
// bar acceleration
3737
public static int millisToZero = 400;
3838
public static int accelerationFactor = 4;
39-
public static int timeFilterSize = 3;
39+
public static int timeFilterSize = 2;
4040
public static String smoothnessType = "WMA";
4141

4242
// window
Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,10 @@
11
package com.lazydash.audio.visualizer.spectrum;
22

33

4-
import javafx.scene.text.Font;
5-
64
public class MainTest {
75

86
public static void main(String[] args) {
9-
Font.getFamilies().stream().forEach(System.out::println);
10-
}
117

8+
}
129

1310
}

0 commit comments

Comments
 (0)