org.jzy3d.demos.chart2d
Class Chart2dDemo
- java.lang.Object
-
- org.jzy3d.demos.chart2d.Chart2dDemo
-
public class Chart2dDemo extends java.lang.ObjectShowing a pair of 2d charts to represent pitch and amplitude variation of an audio signal. Noticed problems on chart resize. Suspect "wrong stuffs" around miglayout or jogl.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class and Description static classChart2dDemo.PitchAmpliControlChartsHold 2 charts, 2 time series, and 2 drawable linesstatic classChart2dDemo.TimeChartWindowA frame to show a list of charts
-
Field Summary
Fields Modifier and Type Field and Description static floatdurationstatic intintervalmilisecond distance between two generated samplesstatic intmaxfreqstatic intnOctave
-
Constructor Summary
Constructors Constructor and Description Chart2dDemo()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method and Description static doubleelapsed()static voidgenerateSamples(Chart2dDemo.PitchAmpliControlCharts log, int n)static voidgenerateSamplesInTime(Chart2dDemo.PitchAmpliControlCharts log)static voidmain(java.lang.String[] args)static voidstart()static doubletime(int n, int i)
-
-
-
Field Detail
-
duration
public static float duration
-
interval
public static int interval
milisecond distance between two generated samples
-
maxfreq
public static int maxfreq
-
nOctave
public static int nOctave
-
-
Method Detail
-
main
public static void main(java.lang.String[] args) throws java.lang.Exception- Throws:
java.lang.Exception
-
generateSamples
public static void generateSamples(Chart2dDemo.PitchAmpliControlCharts log, int n) throws java.lang.InterruptedException
- Throws:
java.lang.InterruptedException
-
time
public static double time(int n, int i)
-
generateSamplesInTime
public static void generateSamplesInTime(Chart2dDemo.PitchAmpliControlCharts log) throws java.lang.InterruptedException
- Throws:
java.lang.InterruptedException
-
start
public static void start()
-
elapsed
public static double elapsed()
-
-
DMelt 3.0 © DataMelt by jWork.ORG