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

public final Class SoftPerformer

extends Object
Class Inheritance
Imports
java.util.ArrayList, .Arrays, .Comparator, .HashMap, .List, .Map

This class decodes information from ModelPerformer for use in SoftVoice. It also adds default connections if they where missing in ModelPerformer.
Author
Karl Helgason

Nested and Inner Type Summary

Modifier and TypeClass and Description
private static class

Field Summary

Modifier and TypeField and Description
public ModelConnectionBlock[]
public int[]
private final List<Integer>
pack-priv static ModelConnectionBlock[]
public int
public boolean
public boolean
public int
private static final SoftPerformer.KeySortComparator
public int
public int[][]
public int[][]
public Map<Integer, int[]>
public Map<Integer, int[]>
public ModelOscillator[]
public ModelPerformer
public boolean
public int
public int

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
private String
private static boolean
private void
private void
private void
private void
private void
private void
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

connectionsback to summary
public ModelConnectionBlock[] connections
ctrl_connectionsback to summary
public int[] ctrl_connections
ctrl_connections_listback to summary
private final List<Integer> ctrl_connections_list
defaultconnectionsback to summary
pack-priv static ModelConnectionBlock[] defaultconnections
exclusiveClassback to summary
public int exclusiveClass
forcedKeynumberback to summary
public boolean forcedKeynumber
forcedVelocityback to summary
public boolean forcedVelocity
keyFromback to summary
public int keyFrom
keySortComparatorback to summary
private static final SoftPerformer.KeySortComparator keySortComparator
keyToback to summary
public int keyTo
midi_connectionsback to summary
public int[][] midi_connections
midi_ctrl_connectionsback to summary
public int[][] midi_ctrl_connections
midi_nrpn_connectionsback to summary
public Map<Integer, int[]> midi_nrpn_connections
midi_rpn_connectionsback to summary
public Map<Integer, int[]> midi_rpn_connections
oscillatorsback to summary
public ModelOscillator[] oscillators
performerback to summary
public ModelPerformer performer
selfNonExclusiveback to summary
public boolean selfNonExclusive
velFromback to summary
public int velFrom
velToback to summary
public int velTo

Constructor Detail

SoftPerformerback to summary
public SoftPerformer(ModelPerformer performer)

Method Detail

extractKeysback to summary
private String extractKeys(ModelConnectionBlock conn)
isUnnecessaryTransformback to summary
private static boolean isUnnecessaryTransform(ModelTransform transform)
processMidiControlSourceback to summary
private void processMidiControlSource(ModelSource src, int ix)
processMidiNrpnSourceback to summary
private void processMidiNrpnSource(ModelSource src, int ix)
processMidiRpnSourceback to summary
private void processMidiRpnSource(ModelSource src, int ix)
processMidiSourceback to summary
private void processMidiSource(ModelSource src, int ix)
processNoteOnSourceback to summary
private void processNoteOnSource(ModelSource src, int ix)
processSourceback to summary
private void processSource(ModelSource src, int ix)
com.sun.media.sound back to summary

private Class SoftPerformer.KeySortComparator

extends Object
implements Comparator<ModelSource>
Class Inheritance
All Implemented Interfaces
java.util.Comparator

Constructor Summary

AccessConstructor and Description
private

Method Summary

Modifier and TypeMethod and Description
public int
compare(ModelSource o1, ModelSource o2)

Implements java.util.Comparator.compare.

Compares its two arguments for order.

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Constructor Detail

KeySortComparatorback to summary
private KeySortComparator()

Method Detail

compareback to summary
public int compare(ModelSource o1, ModelSource o2)

Implements java.util.Comparator.compare.

Doc from java.util.Comparator.compare.

Compares its two arguments for order. Returns a negative integer, zero, or a positive integer as the first argument is less than, equal to, or greater than the second.

The implementor must ensure that signum(compare(x, y)) == -signum(compare(y, x)) for all x and y. (This implies that compare(x, y) must throw an exception if and only if compare(y, x) throws an exception.)

The implementor must also ensure that the relation is transitive: ((compare(x, y)>0) && (compare(y, z)>0)) implies compare(x, z)>0.

Finally, the implementor must ensure that compare(x, y)==0 implies that signum(compare(x, z))==signum(compare(y, z)) for all z.

Annotations
@Override