Files
auroramusic/packages/inference/__pycache__/mock_provider.cpython-312.pyc
T

50 lines
6.3 KiB
Plaintext
Raw Normal View History

2026-08-29 21:21:51 -05:00
Ë
N2wjÅãóz—ddlZddlZddlZddlmZddlZddlmZm Z m
Z
dZ gd¢gd¢gd¢gd ¢gZ Gd
„d e
«Z
y) éN)ÚPathé)ÚGenerationRequestÚGenerationResultÚMusicGenerationProvideri})ç®GázZp@ç®Gázšt@g€x@r)ç€k@rr r
)ç€h@g®GázÞn@gÃõ(\�Zr@r )çìQ¸…Óe@r
rr có$—eZdZdZdededefd„Zy)ÚMockMusicGenerationProviderusFast, dependency-light stand-in for a real model.
Synthesizes a short procedurally-generated audio clip (chord pad +
simple melody, with a gentle "vocal-ish" hum layer when mode is
"vocals") so the rest of the product — jobs, storage, playback,
library, feed — can be built and verified before wiring a real,
much slower/heavier local model.
ÚrequestÚ
output_dirÚreturnc óV —ttj|jj ««j «d«dz}t jj|«}t|tt«z}tdt|jd««}t
jd|tt|z«d¬«}t
j |«}|t|«z } t#|«D�]\}
} t|
| ztz«} t|
dz| ztz«}
|| |
|| z
}d t
j$d
t j&z| z|z«zd t
j$d
t j&z| zd z|z«zzd
t
j$d
t j&z| zd
z|z«zz}t
j(t
j*|| |z
«dzdd«}|| |
xxx||zz
ccc�Œdd|dzzz }t||z «}t-|«D]Î}
t|
|ztz«} tt|
dz|ztz«t|««}
|
| krŒI||
t|«z|j/gd¢«z} || |
|| z
}dt
j$d
t j&z| z|z«zt
j0d|z«z}|| |
xxx|z