nyanpasu64
2f08ca9ad8
Rename Trigger(nsamp=) to tsamp
2018-08-25 18:50:20 -07:00
nyanpasu64
a8e91f0a1b
Replace Trigger(nsamp_frame) parameter with fps
2018-08-25 18:18:47 -07:00
nyanpasu64
878d03517d
Remove debug prints, render buffer (not window).
2018-08-25 17:48:24 -07:00
nyanpasu64
5d0155fab3
Properly subsample 1-frame windows of CorrelationTrigger
2018-08-25 17:38:46 -07:00
nyanpasu64
b2ebc2189d
Fix trigger falloff windowing
2018-08-25 17:06:25 -07:00
nyanpasu64
a2051cc988
[wip] Add trigger_falloff parameter
2018-08-25 16:35:15 -07:00
nyanpasu64
55de73ebd7
Don't shrink data_window due to subsampling (erroneous assumptions)
...
If subsampling doubles, halfN *2 and _subsampling *2. data_window should
/2, but would previously / 2√2.
(Note: data_window(std=) is in units of samples, whose size is
proportional to _subsampling.)
2018-08-25 16:10:31 -07:00
nyanpasu64
9ddef6d20c
Add trigger_diameter parameter (distance to shift data)
2018-08-25 16:10:31 -07:00
nyanpasu64
f2f873707d
Fix lag when using long input windows
...
Prevent CorrelationTrigger from looking backwards >= 1 frame in time.
Left half of data window is min()-tapered by a padded half-Hann window.
Primarily useful for bass.
2018-08-25 16:10:31 -07:00
nyanpasu64
652847028c
Add NullTrigger
2018-08-20 01:02:04 -07:00
nyanpasu64
fc7014750b
Precompute Gaussian windows for CorrelationTrigger objects
2018-07-29 06:36:00 -07:00
nyanpasu64
3c08f12405
Edit CorrelationTrigger to window input, more when subsampling
2018-07-29 06:35:50 -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
960770fec0
Merge branch 'channel' into yaml
2018-07-29 06:35:02 -07:00
nyanpasu64
a87642b38c
Rename register_dataclass to register_config
2018-07-25 05:19:45 -07:00
nyanpasu64
65655b2645
[wip] Make config classes dumpable via YAML, rename base configs
2018-07-25 05:19:45 -07:00
nyanpasu64
bf30acefc0
Trigger references Wave using weakref
2018-07-20 12:53:31 -07:00
nyanpasu64
c50ed2853e
Perform most CorrelationTrigger calculations using FLOAT
2018-07-20 02:04:37 -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
56502d876f
Reorganize and cleanup imports
2018-07-15 05:55:00 -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
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
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
a889903f4f
Rename CorrelationTrigger._prev_buffer to _buffer, mark members private
2018-07-14 03:36:16 -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