Files
product-vamp/generator/solo/policy.py
T
khodowany ef62af892b Cleanup
2026-10-04 22:29:06 -05:00

11 lines
358 B
Python

"""Physical/harmonic constants and semantic generation version."""
import dataclasses, hashlib
@dataclasses.dataclass(frozen=True)
class Policy:
long_note: float = 2.
stopping_note: float = 1.
composition_version: str = 'joint-actions-1'
DEFAULT=Policy()
def stable_rank(seed, value):
return hashlib.sha256((seed + repr(value)).encode()).hexdigest()