Package net.paulhertz.pixelaudio
Class MultiGen
java.lang.Object
net.paulhertz.pixelaudio.PixelMapGen
net.paulhertz.pixelaudio.MultiGen
-
Field Summary
FieldsFields inherited from class net.paulhertz.pixelaudio.PixelMapGen
coords, h, pixelMap, sampleMap, size, transformType, w
-
Constructor Summary
ConstructorsConstructorDescriptionMultiGen
(int width, int height) MultiGen
(int width, int height, int rows, int columns, ArrayList<PixelMapGen> genList) MultiGen
(int width, int height, ArrayList<int[]> offsetList, ArrayList<PixelMapGen> genList) MultiGen
(int width, int height, AffineTransformType type) -
Method Summary
Methods inherited from class net.paulhertz.pixelaudio.PixelMapGen
findNearestPowerOfTwoLessThan, findPowerOfTwo, getCoordinates, getCoordinatesCopy, getHeight, getInversMapFromPixelArray, getPixelMap, getPixelMapCopy, getPixelMapFromCoordinatess, getSampleMap, getSampleMapCopy, getSize, getTransformType, getWidth, isPowerOfTwo, loadIndexMaps, setMapsFromCoords, setTransformType, transformCoords
-
Field Details
-
rows
public int rows -
columns
public int columns -
genList
-
offsetList
-
description
- See Also:
-
-
Constructor Details
-
MultiGen
-
MultiGen
public MultiGen(int width, int height) -
MultiGen
-
MultiGen
-
-
Method Details
-
describe
- Specified by:
describe
in classPixelMapGen
- Returns:
- A String describing the mapping generated by your class and any initialization requirements.
-
validate
public boolean validate(int width, int height) - Specified by:
validate
in classPixelMapGen
- Returns:
- true if the width and height parameters are valid for creating a mapping with this generator, otherwise, false.
-
generate
public int[] generate()Initialize this.coords, this.pixelMap, this.sampleMap.- Specified by:
generate
in classPixelMapGen
- Returns:
- this.pixelMap, the value for PixelAudioMapper.signalToImageLUT.
-
translateCoords
-