public class ProTracker
extends java.lang.Object
Constructor and Description |
---|
ProTracker() |
Modifier and Type | Method and Description |
---|---|
private static java.lang.String |
ascii_text(byte[] buffer,
int offset,
int length) |
private static int |
calculate_num_channels(byte[] module_header) |
private static int |
calculate_num_patterns(byte[] module_header) |
static boolean |
is_mod(byte[] header_1084_bytes) |
static Module |
load_mod(byte[] header_1084_bytes,
java.io.DataInput data_input) |
private static Instrument |
read_mod_instrument(byte[] mod_header,
int idx,
java.io.DataInput data_input) |
private static Pattern |
read_mod_pattern(java.io.DataInput data_input,
int num_channels) |
private static byte |
to_key(int period) |
private static int |
unsigned_short_be(byte[] buf,
int offset) |
public static boolean is_mod(byte[] header_1084_bytes)
public static Module load_mod(byte[] header_1084_bytes, java.io.DataInput data_input) throws java.io.IOException
java.io.IOException
private static int calculate_num_patterns(byte[] module_header)
private static int calculate_num_channels(byte[] module_header)
private static Pattern read_mod_pattern(java.io.DataInput data_input, int num_channels) throws java.io.IOException
java.io.IOException
private static Instrument read_mod_instrument(byte[] mod_header, int idx, java.io.DataInput data_input) throws java.io.IOException
java.io.IOException
private static byte to_key(int period)
private static int unsigned_short_be(byte[] buf, int offset)
private static java.lang.String ascii_text(byte[] buffer, int offset, int length)