APIdia Launch Partner
Top Description Fields Constructors Methods
com.sun.media.sound

public final Class EmergencySoundbank

extends Object
Class Inheritance
Imports
java.util.Random, javax.sound.midi.Patch, javax.sound.sampled.AudioFormat

Emergency Soundbank generator. Used when no other default soundbank can be found.
Author
Karl Helgason

Field Summary

Modifier and TypeField and Description
private static final String[]

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public static void
complexGaussianDist(double[] cdata, double m, double s, double v)

public static SF2Soundbank
public static void
fadeUp(double[] data, int samples)

public static void
fadeUp(float[] data, int samples)

public static void
fft(double[] data)

public static void
ifft(double[] data)

public static double[]
imgPart(double[] in)

public static double[]
loopExtend(double[] data, int newsize)

public static float[]
loopExtend(float[] data, int newsize)

public static SF2Layer
public static SF2Layer
public static SF2Layer
public static SF2Layer
public static SF2Layer
public static SF2Layer
public static SF2Layer
public static SF2Layer
public static SF2Layer
public static SF2Layer
public static SF2Layer
public static SF2Layer
public static SF2Layer
public static SF2Layer
public static SF2Layer
public static SF2Layer
public static SF2Layer
public static SF2Layer
public static SF2Layer
public static SF2Layer
public static SF2Layer
public static SF2Layer
public static SF2Layer
public static SF2Layer
public static SF2Layer
public static SF2Layer
public static SF2Layer
public static SF2Layer
public static SF2Layer
public static SF2Layer
public static SF2Layer
public static SF2Layer
public static SF2Layer
public static SF2Layer
public static SF2Layer
public static SF2Layer
public static SF2Layer
public static SF2Layer
public static SF2Instrument
newInstrument(SF2Soundbank sf2, String name, Patch patch, SF2Layer... layers)

public static SF2Layer
public static SF2Sample
newSimpleDrumSample(SF2Soundbank sf2, String name, double[] data)

public static SF2Sample
newSimpleFFTSample(SF2Soundbank sf2, String name, double[] data, double base)

public static SF2Sample
newSimpleFFTSample(SF2Soundbank sf2, String name, double[] data, double base, int fadeuptime)

public static SF2Sample
newSimpleFFTSample_dist(SF2Soundbank sf2, String name, double[] data, double base, double preamp)

public static void
normalize(double[] data, double target)

public static void
normalize(float[] data, double target)

public static void
randomPhase(double[] data)

public static void
randomPhase(double[] data, Random random)

public static double[]
realPart(double[] in)

public static byte[]
toBytes(float[] in, AudioFormat format)

public static float[]
toFloat(double[] in)

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

general_midi_instrumentsback to summary
private static final String[] general_midi_instruments

Constructor Detail

EmergencySoundbankback to summary
public EmergencySoundbank()

Method Detail

complexGaussianDistback to summary
public static void complexGaussianDist(double[] cdata, double m, double s, double v)
createSoundbankback to summary
public static SF2Soundbank createSoundbank() throws Exception
fadeUpback to summary
public static void fadeUp(double[] data, int samples)
fadeUpback to summary
public static void fadeUp(float[] data, int samples)
fftback to summary
public static void fft(double[] data)
ifftback to summary
public static void ifft(double[] data)
imgPartback to summary
public static double[] imgPart(double[] in)
loopExtendback to summary
public static double[] loopExtend(double[] data, int newsize)
loopExtendback to summary
public static float[] loopExtend(float[] data, int newsize)
new_bass1back to summary
public static SF2Layer new_bass1(SF2Soundbank sf2)
new_bass2back to summary
public static SF2Layer new_bass2(SF2Soundbank sf2)
new_bass_drumback to summary
public static SF2Layer new_bass_drum(SF2Soundbank sf2)
new_bassoonback to summary
public static SF2Layer new_bassoon(SF2Soundbank sf2)
new_bellback to summary
public static SF2Layer new_bell(SF2Soundbank sf2)
new_brass_sectionback to summary
public static SF2Layer new_brass_section(SF2Soundbank sf2)
new_ch_organback to summary
public static SF2Layer new_ch_organ(SF2Soundbank sf2)
new_choirback to summary
public static SF2Layer new_choir(SF2Soundbank sf2)
new_clarinetback to summary
public static SF2Layer new_clarinet(SF2Soundbank sf2)
new_closed_hihatback to summary
public static SF2Layer new_closed_hihat(SF2Soundbank sf2)
new_crash_cymbalback to summary
public static SF2Layer new_crash_cymbal(SF2Soundbank sf2)
new_epiano1back to summary
public static SF2Layer new_epiano1(SF2Soundbank sf2)
new_epiano2back to summary
public static SF2Layer new_epiano2(SF2Soundbank sf2)
new_fluteback to summary
public static SF2Layer new_flute(SF2Soundbank sf2)
new_gpianoback to summary
public static SF2Layer new_gpiano(SF2Soundbank sf2)
new_gpiano2back to summary
public static SF2Layer new_gpiano2(SF2Soundbank sf2)
new_guitar1back to summary
public static SF2Layer new_guitar1(SF2Soundbank sf2)
new_guitar_distback to summary
public static SF2Layer new_guitar_dist(SF2Soundbank sf2)
new_guitar_pickback to summary
public static SF2Layer new_guitar_pick(SF2Soundbank sf2)
new_hornback to summary
public static SF2Layer new_horn(SF2Soundbank sf2)
new_melodic_tomsback to summary
public static SF2Layer new_melodic_toms(SF2Soundbank sf2)
new_oboeback to summary
public static SF2Layer new_oboe(SF2Soundbank sf2)
new_open_hihatback to summary
public static SF2Layer new_open_hihat(SF2Soundbank sf2)
new_orchhitback to summary
public static SF2Layer new_orchhit(SF2Soundbank sf2)
new_organback to summary
public static SF2Layer new_organ(SF2Soundbank sf2)
new_piano1back to summary
public static SF2Layer new_piano1(SF2Soundbank sf2)
new_piano_hammerback to summary
public static SF2Layer new_piano_hammer(SF2Soundbank sf2)
new_reverse_cymbalback to summary
public static SF2Layer new_reverse_cymbal(SF2Soundbank sf2)
new_saxback to summary
public static SF2Layer new_sax(SF2Soundbank sf2)
new_side_stickback to summary
public static SF2Layer new_side_stick(SF2Soundbank sf2)
new_snare_drumback to summary
public static SF2Layer new_snare_drum(SF2Soundbank sf2)
new_solostringback to summary
public static SF2Layer new_solostring(SF2Soundbank sf2)
new_string2back to summary
public static SF2Layer new_string2(SF2Soundbank sf2)
new_synthbassback to summary
public static SF2Layer new_synthbass(SF2Soundbank sf2)
new_timpaniback to summary
public static SF2Layer new_timpani(SF2Soundbank sf2)
new_tomback to summary
public static SF2Layer new_tom(SF2Soundbank sf2)
new_tromboneback to summary
public static SF2Layer new_trombone(SF2Soundbank sf2)
new_trumpetback to summary
public static SF2Layer new_trumpet(SF2Soundbank sf2)
newInstrumentback to summary
public static SF2Instrument newInstrument(SF2Soundbank sf2, String name, Patch patch, SF2Layer... layers)
newLayerback to summary
public static SF2Layer newLayer(SF2Soundbank sf2, String name, SF2Sample sample)
newSimpleDrumSampleback to summary
public static SF2Sample newSimpleDrumSample(SF2Soundbank sf2, String name, double[] data)
newSimpleFFTSampleback to summary
public static SF2Sample newSimpleFFTSample(SF2Soundbank sf2, String name, double[] data, double base)
newSimpleFFTSampleback to summary
public static SF2Sample newSimpleFFTSample(SF2Soundbank sf2, String name, double[] data, double base, int fadeuptime)
newSimpleFFTSample_distback to summary
public static SF2Sample newSimpleFFTSample_dist(SF2Soundbank sf2, String name, double[] data, double base, double preamp)
normalizeback to summary
public static void normalize(double[] data, double target)
normalizeback to summary
public static void normalize(float[] data, double target)
randomPhaseback to summary
public static void randomPhase(double[] data)
randomPhaseback to summary
public static void randomPhase(double[] data, Random random)
realPartback to summary
public static double[] realPart(double[] in)
toBytesback to summary
public static byte[] toBytes(float[] in, AudioFormat format)
toFloatback to summary
public static float[] toFloat(double[] in)