FazBrowse GitHub Viewer
|
Trending
|
URL:
|
Home
Tools:
[Download Repo ZIP]
[View Raw Code]
[Original HTTPS Page]
Java-Audio-Wave-Spectrum-API/src/application/Main.java at master · goxr3plus/Java-Audio-Wave-Spectrum-API · GitHub
goxr3plus
/
Java-Audio-Wave-Spectrum-API
Public
Notifications
You must be signed in to change notification settings
Fork
17
Star
64
Code
Issues
2
Pull requests
0
Actions
Projects
Security and quality
0
Insights
Additional navigation options
Code
Issues
Pull requests
Actions
Projects
Security and quality
Insights
Expand file tree
Breadcrumbs
Java-Audio-Wave-Spectrum-API
/
src
/
application
/
Main.java
Copy path
More file actions
More file actions
Latest commit
History
History
History
46 lines (36 loc) · 1.09 KB
Breadcrumbs
Java-Audio-Wave-Spectrum-API
/
src
/
application
/
Main.java
Copy path
File metadata and controls
46 lines (36 loc) · 1.09 KB
Raw
Copy raw file
Download raw file
Open symbols panel
Edit and raw actions
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
package
application
;
import
application
.
WaveFormService
.
WaveFormJob
;
import
javafx
.
application
.
Application
;
import
javafx
.
scene
.
Scene
;
import
javafx
.
scene
.
layout
.
BorderPane
;
import
javafx
.
stage
.
Stage
;
public
class
Main
extends
Application
{
WaveVisualization
waveVisualization
=
new
WaveVisualization
(
520
,
32
);
@
Override
public
void
start
(
Stage
primaryStage
) {
try
{
//Root
BorderPane
root
=
new
BorderPane
();
root
.
setCenter
(
waveVisualization
);
root
.
boundsInLocalProperty
().
addListener
(
l
-> {
waveVisualization
.
setWidth
(
root
.
getWidth
());
waveVisualization
.
setHeight
(
root
.
getHeight
());
});
//PrimaryStage
primaryStage
.
setTitle
(
"Dark Side"
);
primaryStage
.
setOnCloseRequest
(
c
->
System
.
exit
(
0
));
//Scene
Scene
scene
=
new
Scene
(
root
,
600
,
40
);
primaryStage
.
setScene
(
scene
);
//Show
primaryStage
.
show
();
//
waveVisualization
.
getWaveService
().
startService
(
"audio/audio.mp3"
,
WaveFormJob
.
AMPLITUDES_AND_WAVEFORM
);
}
catch
(
Exception
e
) {
e
.
printStackTrace
();
}
}
public
static
void
main
(
String
[]
args
) {
launch
(
args
);
}
}
Back
|
FazBrowse Home
|
New Git URL