B4J Library jEqualizer Library

This one is a wrapper for the Javafx AudioEqualizer class documentation is here.

The equalizer works with Media Player.

This works slightly differently from the Android equalizer in that you need to pass a MediaPlayer object to the Equalizer initialization.

Equalizer
Author:
Steve Laming
Version: 1.0

AudioEqualizer Class
  • Methods
    • Initialize(MP As MediaPlayer)
      Initialize the object.
      Requires a MediaPlayer Object)


      Bands As List
      Returns an ObservableList containing EqualizerBand elements.

      Enabled(enabled As boolean) As boolean
      Get / Set enabled state of the AudioEqualizer.

      NumberOfBands As int
      Returns the number of bands currently attached to the Equalizer
EqualizerBands Class
  • Methods
    • Bandwidth(value As double) As double
      Get / Set the bandwidth of the band.

      CenterFrequency(value As double) As double
      Get / Set the center frequency of the band.

      Gain(value As double) As double
      Get / Set the gain to be applied to the band.

      Band As EqualizerBand
      Get the underlying EqualizerBand Object


      Initialize As void
      Initialize the Equalizer Band using default values


      Initialize2(centerFrequency As double, bandwidth As double, gain As double) As void
      Initialize the object with Custom EqualizerBand values.

      Initialize3(eb As EqualizerBand) As void
      Initialize the object with an existing EqualizerBand

The Test project has an example of creating a gui for the equalizer from data in the equalizer object. It also shows how to create a custom equalizer. (EqualizerTest.zip) You need to provide your own audio file to initialize the Media Player with.

Download the EQLib.zip and copy the jar and xml files to you additional libraries folder.
 

Attachments

  • EqualizerTest.zip
    1.3 KB · Views: 617
  • jEQLIb.zip
    4 KB · Views: 601
Last edited:
Top