nyanpasu64
c50ed2853e
Perform most CorrelationTrigger calculations using FLOAT
2018-07-20 02:04:37 -07:00
nyanpasu64
34c660b55a
Switch internal calculations to single-precision FLOAT
2018-07-20 01:29:49 -07:00
nyanpasu64
4f8496682b
Merge branch 'refactor-wave'
2018-07-20 01:29:07 -07:00
nyanpasu64
949baead3e
Clarify Wave class "center"
2018-07-20 01:23:41 -07:00
nyanpasu64
332413e8ef
Refactor Wave class and add support for float waves
2018-07-20 01:23:41 -07:00
nyanpasu64
7a818c0cd3
Add unit tests for Wave
2018-07-20 01:23:41 -07:00
nyanpasu64
26e3f36375
Optimize imports
2018-07-20 01:11:56 -07:00
nyanpasu64
fd4f8a8645
Clarify CorrelationTrigger get_trigger(index)
2018-07-19 22:37:40 -07:00
nyanpasu64
194ce67e0f
Remove trailing whitespace
2018-07-19 22:31:15 -07:00
nyanpasu64
fb7932b952
Read WAV files using mmap=True
2018-07-16 18:23:53 -07:00
nyanpasu64
af41500266
Add scan_ratio parameter (scan time = time_visible_ms * scan_ratio)
...
Remove hardcoded scanning distance
2018-07-16 18:23:31 -07:00
nyanpasu64
2ad624be03
RendererConfig calculates orientation based on nrows or ncols.
...
- Ensure either nrows or ncols is set.
- If neither, set ncols=1 (single column).
- Remove rows_first flag.
Add test_renderer.py
2018-07-15 23:42:17 -07:00
nyanpasu64
8b71df0bbb
Replace samples_visible with time_visible_ms
...
Factor out wave-reading code from MatplotlibRenderer backend.
MatplotlibRenderer backend hopefully plots arbitrary data, and can be
swapped with other backends.
2018-07-15 23:42:17 -07:00
nyanpasu64
cb3e7265ca
Fix misspelled setup.py dependency (dataclasses)
2018-07-15 19:59:50 -07:00
nyanpasu64
0bb26a1c20
Fix unit tests, add CorrelationTrigger.Config.use_edge_trigger
2018-07-15 06:04:50 -07:00
nyanpasu64
56502d876f
Reorganize and cleanup imports
2018-07-15 05:55:00 -07:00
nyanpasu64
7a5e0b11f1
Mark Wave(wcfg: WaveConfig) as Optional
2018-07-15 05:54:45 -07:00
nyanpasu64
20cbdab20f
Add use_edge_trigger flag to CorrelationTrigger, tweak config parameters
2018-07-15 04:26:54 -07:00
nyanpasu64
e23145e193
Fix ZeroCrossingTrigger slowdown by removing `idx in range(...)`
2018-07-15 04:05:41 -07:00
nyanpasu64
709661dd93
Add Renderer.nwaves, refactor CorrelationTrigger and Wave
2018-07-15 04:04:53 -07:00
nyanpasu64
7a615c6d2a
Removed unused utils/fourier.py
2018-07-15 04:01:13 -07:00
nyanpasu64
d7f15b233b
Add ZeroCrossingTrigger and call it from CorrelationTrigger
2018-07-15 03:11:58 -07:00
nyanpasu64
9b9288f7ad
Rename Trigger.get_trigger(offset) to index
2018-07-15 03:11:17 -07:00
nyanpasu64
90b2dc5afd
Add type hints to Wave.__getitem__
2018-07-15 03:09:48 -07:00
nyanpasu64
b01251fd21
Fix CorrelationTrigger and remove debugging code
2018-07-14 16:07:06 -07:00
nyanpasu64
1b50590ecc
Remove debugging code (SHOW_TRIGGER)
2018-07-14 15:45:07 -07:00
nyanpasu64
0e575d9792
Fix CorrelationTrigger
2018-07-14 15:42:10 -07:00
nyanpasu64
cd33fcee6e
Add unit tests (interactive for now)
2018-07-14 03:36:49 -07:00
nyanpasu64
a889903f4f
Rename CorrelationTrigger._prev_buffer to _buffer, mark members private
2018-07-14 03:36:16 -07:00
nyanpasu64
4a9ba2f265
Exclude folders from Pycharm
2018-07-14 03:35:41 -07:00
nyanpasu64
6ccf84ff2d
Replace TriggerConfig with CorrelationTrigger.Config. Add responsiveness.
2018-07-14 02:06:07 -07:00
nyanpasu64
c7ca023163
[wip] Half-working trigger
2018-07-13 23:54:14 -07:00
nyanpasu64
a35c3fc9bc
Move renderer, triggers, wave to separate file
2018-07-13 20:58:00 -07:00
nyanpasu64
18c5720c54
Extract Wave.get(begin, end) from Wave.get_around
2018-07-13 20:57:19 -07:00
nyanpasu64
0e7f15ffbc
[wip] Add buffer to CorrelationTrigger
2018-07-13 20:57:12 -07:00
nyanpasu64
df53a09328
Load waveform data from .wav. Rescale and zero-pad data.
2018-07-13 06:57:00 -07:00
nyanpasu64
48c4b14f5d
Rename RendererCfg, TriggerCfg to RendererConfig, TriggerConfig
2018-07-13 06:55:17 -07:00
nyanpasu64
1116a9d686
Disable erroneous inspection warning, from spaces around [1:2] slices
2018-07-13 06:38:35 -07:00
nyanpasu64
1a3aa5b3cb
Rename Trigger to CorrelationTrigger with base class Trigger
2018-07-13 05:43:33 -07:00
nyanpasu64
f32d4326cf
Disable spurious `type: np.ndarray[]`` warnings
2018-07-13 05:43:11 -07:00
nyanpasu64
013488a168
Use TriggerCfg as factory
2018-07-13 05:37:22 -07:00
nyanpasu64
b69c232e63
Add TriggerCfg which acts as factory
2018-07-13 05:08:19 -07:00
nyanpasu64
a19c02974f
Reorganize and cleanup code, remove unused class Coords
2018-07-13 04:49:59 -07:00
nyanpasu64
beae6e8b2b
Switch to integrated Brownian noise
2018-07-13 04:09:11 -07:00
nyanpasu64
a2fd00ef4e
Add FPS profiling
2018-07-13 04:05:31 -07:00
nyanpasu64
faef07ba5c
Set vertical scale properly
2018-07-13 03:55:56 -07:00
nyanpasu64
bee76bdd0b
Set horizontal scale properly
2018-07-13 03:48:36 -07:00
nyanpasu64
3ee8f544c0
the plot almost works
2018-07-13 02:33:44 -07:00
nyanpasu64
131281268d
Use pyplot to generate Figure and Axes[]. Remove figure gaps.
2018-07-13 02:29:51 -07:00
nyanpasu64
a14472b7ae
[wip] Create Axes using subplot(), flatten to 1D array in custom order
2018-07-13 02:20:21 -07:00