"""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 = 'phrase-composer-1' DEFAULT=Policy() def stable_rank(seed, value): return hashlib.sha256((seed + repr(value)).encode()).hexdigest()