nyanpasu64
b2ebc2189d
Fix trigger falloff windowing
2018-08-25 17:06:25 -07:00
nyanpasu64
cf0f716593
Add data padding/truncation functions (and unit tests)
2018-08-25 17:06:13 -07:00
nyanpasu64
a2051cc988
[wip] Add trigger_falloff parameter
2018-08-25 16:35:15 -07:00
nyanpasu64
ae9aa862e2
Fix unit tests
2018-08-25 16:35:09 -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
2f2f33440e
Merge branch 'visualize-buffer'
2018-08-25 16:09:48 -07:00
nyanpasu64
f62b3ce471
Add debugging option to show buffers (Config.show_buffer)
2018-08-25 15:59:24 -07:00
nyanpasu64
aa3e4fb8e1
Rename RENDER_PROFILING to PRINT_TIMESTAMP
2018-08-25 15:46:39 -07:00
nyanpasu64
dbebff7439
Remove unused local variable
2018-08-25 03:16:40 -07:00
nyanpasu64
d355fa728e
Restrict test_channel_subsampling inputs to <= 100
...
Considerably speeds up Hypothesis test-case minimization when failures
occur.
2018-08-24 21:39:59 -07:00
nyanpasu64
763e1d3533
Merge pull request #43 from nyanpasu64/fix-subsampling
...
Fix subsampling
2018-08-24 18:21:45 -07:00
nyanpasu64
effc60d064
Delete benchmark_trigger.py (outdated)
...
It's nice to have, but it calls CorrelationTriggerConfig incorrectly and
doesn't work.
2018-08-24 01:47:23 -07:00
nyanpasu64
75e68e6e0f
Add tests_require to setup.py
...
Document test dependencies. pytest-pycharm is optional, but I like it.
2018-08-24 01:47:23 -07:00
nyanpasu64
162cb453fd
Fix nsamp used for rendering, when render_subsampling > 1
2018-08-24 01:47:23 -07:00
nyanpasu64
a172fc33a9
Add test for nsamp and render_subsampling used for rendering
2018-08-24 01:47:23 -07:00
nyanpasu64
a2237e09d6
Cleanup unit-test files
2018-08-24 01:46:33 -07:00
nyanpasu64
ce3849cd54
Rename Wave.get_around(region_len) to region_nsamp
2018-08-24 01:05:46 -07:00
nyanpasu64
8a781c9d3a
Disable Ovgenpy print(time) when RENDER_PROFILING=False
2018-08-24 01:04:42 -07:00
nyanpasu64
3c97c0dbcf
Raise error when constructing Ovgen with 0 channels
2018-08-24 01:03:17 -07:00
nyanpasu64
5c38445d56
Move Ovgen renderer construction to private method
2018-08-24 01:02:13 -07:00
nyanpasu64
1dc071a7de
Raise error when calling Ovgen.play() more than once
2018-08-24 00:27:06 -07:00
nyanpasu64
6d028c1dc5
Fix FPS calculation when begin_time is not 0
2018-08-24 00:25:58 -07:00
nyanpasu64
2a23dedc55
Fix subsampling
2018-08-24 00:05:57 -07:00
nyanpasu64
8466b9ab93
Add tests for subsampling
2018-08-24 00:05:57 -07:00
nyanpasu64
b5c49e5649
Merge pull request #42 from nyanpasu64/improve-cli
...
Improve command line
2018-08-24 00:04:36 -07:00
nyanpasu64
e9c0a21469
Remove unused Config.wav_prefix and update tests
...
It was intended that Channel.wav_path was stored and loaded relative to
Config.wav_prefix, but this was never implemented (neither saving nor
loading.)
This change simplifies code, and eliminates some inconsistency (Config.
master_audio was never planned to be relative to Config.wav_prefix).
2018-08-20 01:13:47 -07:00
nyanpasu64
245704256a
Alter unit tests for CLI working directory YAML
2018-08-20 01:02:55 -07:00
nyanpasu64
652847028c
Add NullTrigger
2018-08-20 01:02:04 -07:00
nyanpasu64
55573852e6
Add unit tests for loading folders via CLI
2018-08-20 00:38:20 -07:00
nyanpasu64
2a19afce5f
[wip] Add unit tests for CLI parser
2018-08-20 00:38:13 -07:00
nyanpasu64
47a8450669
Improve error message for nonexistent files
2018-08-20 00:38:13 -07:00
nyanpasu64
7eb9cea766
CLI: Remove --write path argument, automatically generate path
...
If audio is present, use `audio without .wav`.yaml. If not present,
default to ovgenpy.yaml.
2018-08-19 19:08:49 -07:00
nyanpasu64
590185ae5c
Rename --write-cfg to --write
2018-08-19 18:53:52 -07:00
nyanpasu64
75d2e066c0
Create Click parameter type OutFile
2018-08-19 18:53:13 -07:00
nyanpasu64
cb19417787
Reformat command-line parser to reduce visual clutter
2018-08-19 18:51:13 -07:00
nyanpasu64
7117a74fd0
Merge pull request #36 from nyanpasu64/validate-yaml
...
Validate parameters when loading YAML config
2018-08-19 16:19:38 -07:00
nyanpasu64
d9555c101e
Add unit test for YAML config loading validation
2018-08-19 16:15:51 -07:00
nyanpasu64
910dd507d9
Validate parameters when loading YAML config
...
Call the dataclass constructor, which raise TypeError on extra or
missing arguments.
2018-08-19 15:59:39 -07:00
nyanpasu64
b4104185f4
Make begin_time optional, defaulting to 0
2018-08-19 15:33:47 -07:00
nyanpasu64
93e265774f
Merge pull request #34 from nyanpasu64/begin-time
...
Add `begin_time` parameter, to skip ahead in rendering.
2018-08-18 16:09:40 -07:00
nyanpasu64
716f799c42
Add `begin_time` parameter, to skip ahead in rendering.
...
CorrelationTrigger starts with zeroed-out buffer, so triggering will
differ from not seeking.
2018-08-18 15:58:36 -07:00
nyanpasu64
b8cccc3411
Merge pull request #33 from nyanpasu64/terminate-ffmpeg
...
Terminate output pipeline (ffmpeg and ffplay) on exception
2018-08-18 14:10:09 -07:00
nyanpasu64
3cec61a2ac
Ensure that Ovgen.outputs are closed upon exceptions
...
channels and outputs are loaded upon Ovgen.play(), not __init__ creation
2018-08-18 02:57:03 -07:00
nyanpasu64
6f09710999
Add tests to ensure Outputs are closed upon exceptions
2018-08-18 02:57:03 -07:00
nyanpasu64
8f228d2da7
[PipeOutput] Combine all return codes from pipeline.
...
This allows the caller to detect whether intermediate commands (eg.
ffmpeg | ffplay) failed.
2018-08-18 02:57:03 -07:00
nyanpasu64
2c48de88af
Terminate ffmpeg and ffplay on exception
2018-08-18 02:57:03 -07:00
nyanpasu64
1e09f2af40
[wip] Kill ffplay on exception, refactor Popen handling
2018-08-18 02:57:03 -07:00
nyanpasu64
30425e5375
Merge pull request #28 from nyanpasu64/layout-config
...
Always write layout orientation to YAML
2018-08-17 16:55:59 -07:00