Commit Graph

73 Commits

Author SHA1 Message Date
0970bfe0b5 revert move data slices
strip_leves, bus_levels properties added to VbanRtPacket
2023-06-25 16:15:32 +01:00
05cbc432b2 Strip.{comp,gate} setters added. 2023-06-25 13:59:08 +01:00
174d95d08d _conn_from_toml filepaths added. 2023-06-25 13:58:19 +01:00
fc324fecc4 run through black 2023-06-25 13:57:24 +01:00
449cb9b3c1 pdirty false by default 2023-06-25 13:53:23 +01:00
cdccc603d1 _cmd() helper method added
apply() extended to handle nested dicts

module level logger added
2023-06-25 13:52:39 +01:00
a8bb9711af added module level logger 2023-06-25 13:51:47 +01:00
5bb0c2731e run through black 2023-06-25 13:51:30 +01:00
372dba0b6b raise VBANCMDError on invalid kind 2023-06-25 13:50:21 +01:00
226fc5ead7 timeout kwarg added.
lets a user decide how long to wait for subscription response

pdirty now defaults to False
2023-06-25 12:21:02 +01:00
9196a4e267 subject class extended to support callbacks 2023-06-25 03:41:10 +01:00
8485992495 use name property, clears deprecation warning 2023-06-25 03:40:36 +01:00
91e49cbb55 tomllib/tomli now lazy loaded.
`Path.home() / "vban.toml" added to filepaths

`Path.home() / ".config" / "vban-cmd" / "vban.toml"` added to filepaths

VBANCMDError raised if ip not given and toml not located
2023-06-25 03:40:14 +01:00
3c85903554 renaem action_prop to action_fn 2023-06-25 02:38:59 +01:00
a730edc2c2 connection errors now raise VBANCMDConnectionError
Producer thread added, sends job queue to Updater

data slices moved back into dataclass
2023-06-25 02:37:45 +01:00
90acafe95b VBANCMDConnectionError added 2023-06-25 02:06:02 +01:00
5f4fdcb0eb StripComp, StripGate, StripDenoiser, StripDevice
added to PhysicalStrip
2023-06-25 01:48:07 +01:00
d5219d66f7 BusEQ added to Bus class 2023-06-25 01:47:05 +01:00
c74d827154 update strip.{comp,gate,eq} and bus.eq
add gain=0.0 to bus params.

`Path.home() / ".config" / "vban-cmd" / kind.name` added to loader
2023-06-25 01:43:26 +01:00
onyx-and-iris
01c99d5b31 init ldirty
patch bump
2022-10-19 14:32:54 +01:00
onyx-and-iris
ee3a871d23 add a delimiter end of request string in _set_rt
fixes bug if more than a single command in request packet.

removed [{self.index}] from apply string. (duplicates)
2022-10-19 14:20:23 +01:00
onyx-and-iris
d57269f147 add ability to read conn info from toml 2022-10-07 20:00:56 +01:00
onyx-and-iris
4ee37f54c5 fadto() fadeby() methods added to strip/bus classes
appgain(), appmute() methods added to virtualstrip class
2022-10-06 20:28:26 +01:00
onyx-and-iris
550df917fb add, remove now accept iterables
update README

patch bump
2022-10-06 18:07:41 +01:00
onyx-and-iris
2f82e0b1fc fix str format 2022-10-06 16:50:03 +01:00
onyx-and-iris
0c60fe3d5e add property setters in event class
use event property setters in examples

update README

patch bump
2022-10-06 16:45:15 +01:00
onyx-and-iris
49354d6d55 lower threshold a level is considered dirty 2022-10-05 22:54:26 +01:00
onyx-and-iris
4659cf7cdb util:
in comp, consider level value clean if below -60.0

vbancmd:
pass tuple expansion into string format in version method.
ldirty and _get_levels logic now moved into rt packet class
2022-10-04 15:42:36 +01:00
onyx-and-iris
8663aab2ce add fget() to level getters in strip, bus 2022-10-04 15:40:32 +01:00
onyx-and-iris
a029011012 vbanrtpacket refactored
_generate_levels method added
ldirty method added.

moved initialize strip_level, bus_level cache into updater init()
initialize comps in updater init()
2022-10-04 15:39:56 +01:00
onyx-and-iris
bfa1a718f9 user logger in apply_config
patch bump
2022-09-29 12:34:02 +01:00
onyx-and-iris
2048a807d1 move event info logging from Updater into VbanCmd
odd logout logging

patch bump
2022-09-29 11:48:30 +01:00
onyx-and-iris
23bc15e437 logging module now used to log interface events.
register, deregister method aliases added to Subject class.
2022-09-28 18:13:07 +01:00
onyx-and-iris
db96872965 changes to level/gain properties in VbanRtPacket
level getters in strip, bus fetch from public packet if not in cache
2022-09-28 18:07:10 +01:00
onyx-and-iris
1169435104 base renamed to vbancmd
misc renamed to event

info message fixed if no events subbed to

now using logging module in Event class
2022-09-28 18:03:22 +01:00
onyx-and-iris
733fab45b4 raise VBANCMD error on connection failure.
leave teardown procedures to consumer library. (or context manager)
2022-09-24 07:45:28 +01:00
onyx-and-iris
444f95a9d6 add timeout to response socket in updater
patch bump
2022-09-23 20:03:16 +01:00
onyx-and-iris
af5e81c339 remove debug print 2022-09-03 20:41:26 +01:00
onyx-and-iris
aadfbd3925 fix regression causing pdirty update to fail.
patch bump
2022-09-03 20:35:37 +01:00
onyx-and-iris
4ef3d1f225 tomli/tomllib compatibility layer added.
Type annotation Self removed.

python version requirement changed.

tomli added as runtime dependency if py ver < 3.11

minor version bump.
2022-09-03 16:47:38 +01:00
onyx-and-iris
aea2be624e clean up class names in packet module.
add __init__ to vbanrtpacket class.

patch bump
2022-08-10 17:49:21 +01:00
onyx-and-iris
cb9afc62d1 worker thread logic moved into worker module.
Socket intenum moved into util
2022-08-08 13:43:19 +01:00
onyx-and-iris
c00f2f1b40 mdirty, midi removed from events.
patch bump
2022-08-02 09:56:59 +01:00
onyx-and-iris
d12f988c7d isdirty now aliases is_updated in strip/bus level classes 2022-08-02 09:31:08 +01:00
onyx-and-iris
6971feb398 defaultkwarg subs added.
misc module added with Event class.

base class observable thread now checks for currently registered events.
2022-08-02 09:28:32 +01:00
onyx-and-iris
1f522b997e reset() added to command.
minor delay added to login (give time for first incoming packet).
2022-07-16 21:52:41 +01:00
onyx-and-iris
a86a25ca8f BusModes IntEnum added to bus
get() added to bus mode mixin, returns the current bus mode.

added support for setting bus mode by dict
fixed bug in apply where bool parameters weren't being applied.

bus modes added to all 3 example configs.

test_config added to unit tests.
2022-07-16 21:50:50 +01:00
onyx-and-iris
a1d6cf1042 levels reworked
comp generator function added to util.

patch  bump
2022-07-09 12:26:53 +01:00
onyx-and-iris
079bf177a1 move check ldirty before updating public packet.
patch bump
2022-07-07 01:45:06 +01:00
onyx-and-iris
444d26a869 fix bug causing delay in updates
patch bump
2022-07-07 00:48:15 +01:00