|
@@ -11,13 +11,13 @@ public class Logic2PWMMassageliege
|
|
static final int REFRATE = 500_000_000;
|
|
static final int REFRATE = 500_000_000;
|
|
static final int SAMPLELENGTH=REFRATE/32_000;//500MS samplerate/32KHz
|
|
static final int SAMPLELENGTH=REFRATE/32_000;//500MS samplerate/32KHz
|
|
static final int SAMPLELENGTH_BUFFERED= (int) (REFRATE/2);//1/2 second of no jiggly edges mark a "file" end
|
|
static final int SAMPLELENGTH_BUFFERED= (int) (REFRATE/2);//1/2 second of no jiggly edges mark a "file" end
|
|
- static final int GLITCH_IN_TICKS=30;
|
|
|
|
|
|
+ static final int GLITCH_IN_TICKS=1;
|
|
public static void main(String[] args) throws Exception
|
|
public static void main(String[] args) throws Exception
|
|
{
|
|
{
|
|
List<Long> edges_ch1 = new ArrayList<>();
|
|
List<Long> edges_ch1 = new ArrayList<>();
|
|
List<Long> edges_ch2 = new ArrayList<>();
|
|
List<Long> edges_ch2 = new ArrayList<>();
|
|
//String basepath = "/home/tgoerner/loa/000034/export/";
|
|
//String basepath = "/home/tgoerner/loa/000034/export/";
|
|
- String basepath = "/mnt/d/LOA/000034/mtexport/";
|
|
|
|
|
|
+ String basepath = "/mnt/d/LOA/000034/swexport/";
|
|
RandomAccessFile ch1 = new RandomAccessFile(basepath+"digital_0.bin","r");
|
|
RandomAccessFile ch1 = new RandomAccessFile(basepath+"digital_0.bin","r");
|
|
RandomAccessFile ch2 = new RandomAccessFile(basepath+"digital_1.bin","r");
|
|
RandomAccessFile ch2 = new RandomAccessFile(basepath+"digital_1.bin","r");
|
|
ch1.readLong(); //magic LMAA
|
|
ch1.readLong(); //magic LMAA
|