Aug 17, 2022 Replies: 2 This is the result of an interesting distraction. I came across this example which uses a Javafx AreaChart and the MediaPlayer AudioSpectrumListener to display an audio spectrum. I thought I would try porting it to B4j. It seems to work fairly well although I am not sure I really have a use for it, but someone might, You can set the line, fill and background colours and colours for a gradient fill if required (as above) There are no external dependencies. It is a custom view in a b4xlib, feel free to unzip it if you want to see or play with the code, and a test project. Attachments AudioSpectrumVisualizer-b4xlib.b4xlib AudioSpectrumVisualizer-b4xlib.b4xlib 3.4 KB · Views: 608 AudioSpectrumVisualizer-Test.zip AudioSpectrumVisualizer-Test.zip 3 KB · Views: 586 Last edited: Aug 17, 2022 Click to expand...
This is the result of an interesting distraction. I came across this example which uses a Javafx AreaChart and the MediaPlayer AudioSpectrumListener to display an audio spectrum. I thought I would try porting it to B4j. It seems to work fairly well although I am not sure I really have a use for it, but someone might, You can set the line, fill and background colours and colours for a gradient fill if required (as above) There are no external dependencies. It is a custom view in a b4xlib, feel free to unzip it if you want to see or play with the code, and a test project.
stevel05 Expert Licensed User Longtime User Sep 9, 2022 #3 Almora said: can it be adapted to b4a? Click to expand... This one can't as it relies on the javafx media player. The Android Visualizer returns fft data which should be able to be used to achieve a similar effect. That library is 8 years old and I haven't used it since then. If you have any problems with it, let me know.
Almora said: can it be adapted to b4a? Click to expand... This one can't as it relies on the javafx media player. The Android Visualizer returns fft data which should be able to be used to achieve a similar effect. That library is 8 years old and I haven't used it since then. If you have any problems with it, let me know.