nyanpasu64
48410d5ecb
Add hack to make pycharm recognize fixture
2019-06-16 22:57:40 -07:00
nyanpasu64
4668eeafca
[test_trigger.py] Improve name of trigger-cfg template
2019-06-16 22:57:40 -07:00
nyanpasu64
8f2c334c16
Rename default_config to template_config, to avoid confusion
2019-06-16 22:57:40 -07:00
nyanpasu64
e99c1d3c99
Improve period calculation, add maximum frequency cap ( #294 )
2019-06-16 22:15:46 -07:00
nyanpasu64
86e55b006c
Disable unreliable parabolic interpolation when pitch tracking ( #286 )
2019-05-09 03:21:42 -07:00
nyanpasu64
356aebedfb
Properly remove mean from data, when sign triggering disabled ( #276 )
...
Fixes regression from #239 .
2019-04-15 17:52:42 -07:00
nyanpasu64
ee4ad5e3ae
Rewrite pitch tracking based on buffer, not history
2019-04-13 12:01:52 -07:00
nyanpasu64
283952d588
Add sign triggering
2019-04-12 14:15:36 -07:00
nyanpasu64
59965cc789
Eliminate print() from test_trigger.py
2019-04-10 03:39:38 -07:00
nyanpasu64
ca01b8c422
Always draw vertical midline between <0 and >0 samples ( #243 )
...
- Add comments on Wave.get_around() even/odd conventions
2019-03-26 16:17:08 -07:00
nyanpasu64
407454a126
Add slope-detection triggering ( #228 )
2019-03-14 05:26:41 -07:00
nyanpasu64
e2144f3689
Fix trigger bugs, fix post trigger width, add tests ( #231 )
...
- Fix CorrelationTrigger off-by-one on odd buffer widths
- Fix bug where `post_radius` was *2 to become diameter, then treated as radius
- Fix errors in ZeroCrossingTrigger
- Cleanup test_trigger.py
2019-03-13 02:07:45 -07:00
nyanpasu64
adaa629828
Rename MainTriggerConfig.post to post_trigger ( #223 )
2019-03-08 23:58:59 -08:00
nyanpasu64
37a289f38d
Improve post triggers so they're useful, add separate edge_direction ( #214 )
2019-03-06 21:39:17 -08:00
nyanpasu64
7e73737ee0
Rename "pitch invariance" to "pitch tracking"
2019-03-02 23:57:44 -08:00
nyanpasu64
3260104df2
Add pitch invariant trigger, set trigger_diameter=None (improves bass)
2019-03-02 23:57:44 -08:00
nyanpasu64
269f9b2acc
Remove class _WaveConfig, replace with kwargs
2019-01-23 23:46:10 -08:00
nyanpasu64
70d6cfc1a2
Run black on code
2019-01-03 13:00:18 -08:00
nyanpasu64
5c47c293cb
Rename ovgenpy to corrscope
2018-12-22 18:39:03 -08:00
nyanpasu64
2aa919b7b7
Fix test_trigger by adding CorrelationTriggerConfig template
...
This template is *very different* from the previous
CorrelationTriggerConfig optional-defaults.
The tests pass anyway.
2018-12-06 12:36:13 -08:00
nyanpasu64
fade930f64
Rename trigger subsampling to stride
2018-11-17 16:10:00 -08:00
nyanpasu64
3beaee923c
[wip] Add PostTrigger and LocalPostTrigger
...
A post-processing trigger should have subsampling=1,
and no more post triggers.
LocalPostTrigger uses a parabolic cost function for shifting to find
edges. It doesn't work well and needs tweaking.
2018-10-30 18:01:38 -07:00
nyanpasu64
cc7b9b35ac
Add ITriggerConfig.post and Trigger.post for trigger chaining
...
One would think `use_edge_trigger` should be an InitVar.
But it breaks test_trigger_subsampling() which is parameterized on
`cfg.use_edge_trigger` (and I want to keep it that way, not peek at
`cfg.post`).
I also copied test_trigger_subsampling to test_post_trigger_subsampling,
to test `cfg.post`.
2018-10-30 18:01:38 -07:00
nyanpasu64
6c4e128031
Add PerFrameCache class to cache period over multiple triggers
2018-10-30 18:01:38 -07:00
nyanpasu64
29798e7343
Increase trigger performance, cache and reuse data window
...
Reuses data window if period is within 1 semitone of saved window.
2018-08-26 19:33:34 -07:00
nyanpasu64
494ce2bf69
Add ability to load legacy YAML files
...
Add Ignored and Alias fields to Config and CorrelationTriggerConfig.
2018-08-25 22:44:42 -07:00
nyanpasu64
acffc1a55e
Fix unit tests
2018-08-25 18:51:01 -07:00
nyanpasu64
ae9aa862e2
Fix unit tests
2018-08-25 16:35:09 -07:00
nyanpasu64
8cce1d1414
Add support for subsampling in CorrelationTrigger and Wave
2018-07-29 06:35:47 -07:00
nyanpasu64
be57d5765f
Add unified ITrigger constructor, [wip] trigger subsampling
2018-07-29 06:35:39 -07:00
nyanpasu64
65655b2645
[wip] Make config classes dumpable via YAML, rename base configs
2018-07-25 05:19:45 -07:00
nyanpasu64
26e3f36375
Optimize imports
2018-07-20 01:11:56 -07:00
nyanpasu64
0bb26a1c20
Fix unit tests, add CorrelationTrigger.Config.use_edge_trigger
2018-07-15 06:04:50 -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