Tabnine Logo
Equalizer.getBandFactors
Code IndexAdd Tabnine to your IDE (free)

How to use
getBandFactors
method
in
javazoom.jl.decoder.Equalizer

Best Java code snippets using javazoom.jl.decoder.Equalizer.getBandFactors (Showing top 8 results out of 315)

origin: com.googlecode.soundlibs/jlayer

public void setEqualizer(Equalizer eq)
{
  if (eq==null)
    eq = Equalizer.PASS_THRU_EQ;
  
  equalizer.setFrom(eq);
  
  float[] factors = equalizer.getBandFactors();
  if (filter1!=null)
    filter1.setEQ(factors);
  
  if (filter2!=null)
    filter2.setEQ(factors);            
}
 
origin: tulskiy/musique

public void setEqualizer(Equalizer eq) {
  if (eq == null)
    eq = Equalizer.PASS_THRU_EQ;
  equalizer.setFrom(eq);
  float[] factors = equalizer.getBandFactors();
  if (filter1 != null)
    filter1.setEQ(factors);
  if (filter2 != null)
    filter2.setEQ(factors);
}
origin: pdudits/soundlibs

public void setEqualizer(Equalizer eq)
{
  if (eq==null)
    eq = Equalizer.PASS_THRU_EQ;
  
  equalizer.setFrom(eq);
  
  float[] factors = equalizer.getBandFactors();
  if (filter1!=null)
    filter1.setEQ(factors);
  
  if (filter2!=null)
    filter2.setEQ(factors);            
}
 
origin: javazoom/jlayer

public void setEqualizer(Equalizer eq)
{
  if (eq==null)
    eq = Equalizer.PASS_THRU_EQ;
  
  equalizer.setFrom(eq);
  
  float[] factors = equalizer.getBandFactors();
  if (filter1!=null)
    filter1.setEQ(factors);
  
  if (filter2!=null)
    filter2.setEQ(factors);            
}
 
origin: pdudits/soundlibs

private void initialize(Header header)
  throws DecoderException
{
  
  // REVIEW: allow customizable scale factor
  float scalefactor = 32700.0f;
  
  int mode = header.mode();
  int layer = header.layer();
  int channels = mode==Header.SINGLE_CHANNEL ? 1 : 2;
        
  // set up output buffer if not set up by client.
  if (output==null)
    output = new SampleBuffer(header.frequency(), channels);
  
  float[] factors = equalizer.getBandFactors();
  filter1 = new SynthesisFilter(0, scalefactor, factors);
      // REVIEW: allow mono output for stereo
  if (channels==2) 
    filter2 = new SynthesisFilter(1, scalefactor, factors);
  outputChannels = channels;
  outputFrequency = header.frequency();
  
  initialized = true;
}
 
origin: tulskiy/musique

private void initialize(Header header)
    throws DecoderException {
  // REVIEW: allow customizable scale factor
  float scalefactor = 32700.0f;
  int mode = header.mode();
  int layer = header.layer();
  int channels = mode == Header.SINGLE_CHANNEL ? 1 : 2;
  // set up output buffer if not set up by client.
  if (output == null)
    output = new SampleBuffer(header.frequency(), channels);
  float[] factors = equalizer.getBandFactors();
  filter1 = new SynthesisFilter(0, scalefactor, factors);
  // REVIEW: allow mono output for stereo
  if (channels == 2)
    filter2 = new SynthesisFilter(1, scalefactor, factors);
  outputChannels = channels;
  outputFrequency = header.frequency();
  initialized = true;
}
origin: javazoom/jlayer

private void initialize(Header header)
  throws DecoderException
{
  
  // REVIEW: allow customizable scale factor
  float scalefactor = 32700.0f;
  
  int mode = header.mode();
  int layer = header.layer();
  int channels = mode==Header.SINGLE_CHANNEL ? 1 : 2;
        
  // set up output buffer if not set up by client.
  if (output==null)
    output = new SampleBuffer(header.frequency(), channels);
  
  float[] factors = equalizer.getBandFactors();
  filter1 = new SynthesisFilter(0, scalefactor, factors);
      // REVIEW: allow mono output for stereo
  if (channels==2) 
    filter2 = new SynthesisFilter(1, scalefactor, factors);
  outputChannels = channels;
  outputFrequency = header.frequency();
  
  initialized = true;
}
 
origin: com.googlecode.soundlibs/jlayer

private void initialize(Header header)
  throws DecoderException
{
  
  // REVIEW: allow customizable scale factor
  float scalefactor = 32700.0f;
  
  int mode = header.mode();
  int layer = header.layer();
  int channels = mode==Header.SINGLE_CHANNEL ? 1 : 2;
        
  // set up output buffer if not set up by client.
  if (output==null)
    output = new SampleBuffer(header.frequency(), channels);
  
  float[] factors = equalizer.getBandFactors();
  filter1 = new SynthesisFilter(0, scalefactor, factors);
      // REVIEW: allow mono output for stereo
  if (channels==2) 
    filter2 = new SynthesisFilter(1, scalefactor, factors);
  outputChannels = channels;
  outputFrequency = header.frequency();
  
  initialized = true;
}
 
javazoom.jl.decoderEqualizergetBandFactors

Javadoc

Retrieves an array of floats whose values represent a scaling factor that can be applied to linear samples in each band to provide the equalization represented by this instance.

Popular methods of Equalizer

  • getBandFactor
    Converts an equalizer band setting to a sample factor. The factor is determined by the function f =
  • limit
  • reset
    Sets all bands to 0.0
  • setFrom
  • <init>

Popular in Java

  • Parsing JSON documents to java classes using gson
  • getOriginalFilename (MultipartFile)
    Return the original filename in the client's filesystem.This may contain path information depending
  • scheduleAtFixedRate (Timer)
  • notifyDataSetChanged (ArrayAdapter)
  • Selector (java.nio.channels)
    A controller for the selection of SelectableChannel objects. Selectable channels can be registered w
  • MessageFormat (java.text)
    Produces concatenated messages in language-neutral way. New code should probably use java.util.Forma
  • TimerTask (java.util)
    The TimerTask class represents a task to run at a specified time. The task may be run once or repeat
  • Vector (java.util)
    Vector is an implementation of List, backed by an array and synchronized. All optional operations in
  • AtomicInteger (java.util.concurrent.atomic)
    An int value that may be updated atomically. See the java.util.concurrent.atomic package specificati
  • JarFile (java.util.jar)
    JarFile is used to read jar entries and their associated data from jar files.
  • Top plugins for WebStorm
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now