Show HN: LatentScore – Type a mood, get procedural/ambient music (open source)
20 points| prabal97 | 11 days ago |latentscore.com
I've used Generative.fm for years and love it, but I always wanted to just describe what I was in the mood for instead of scrolling through presets. So I built this.
You type a text description of anything - from "mountain sunrise" to "neon city" - and it generates a procedural/ambient stream matching that mood. It runs locally, no account, no tracking, no ads.
Under the hood it's a custom synthesizer driven by sentence embeddings, not a generative AI model (although you can choose to use one!) — so there's no GPU, no API calls, and it starts playing almost instantly. The whole thing is open source: https://github.com/prabal-rje/latentscore
If you're a developer and want to use it programmatically it's also a Python library - pip install latentscore — one line to render audio. But honestly I just use the web player myself when I'm working.
Fair warning: it's still alpha and the synth has limits, so please don't expect full songs or vocals. It's ambient/procedural only. But for focus music or background atmosphere, I think it's pretty good.
Would love to know what vibes you try and whether they land!
- Prabal
regenschutz|11 days ago
The generated palette seem to be a great indicator of whether the model understood the prompt or not.
I Haven't checked out the Python SDK yet, but it seems very interesting!
I'm curious to know if there is any reason for why you picked Gemma 1B for the Expressive model. Did it generate more cohesive parameters than other 1B models? Or was it just the first one you picked?
prabal97|11 days ago
In fact, the 'fast' model (literally embedding lookup over a pre-generated library of music ... generated using Best-of-N on Gemini Flash) beats nearly everything - including Gemini Flash, Claude Opus, Gemma models.
blasphemous_dev|11 days ago
prabal97|11 days ago
Brajeshwar|11 days ago
I ended up with kinda shrill. I was hoping for something that would sound like I’m listening to something while the coffee gets cold in a cabin.
prabal97|11 days ago
If you're really curious, you could try the 'Custom LLM' feature - specifically 'Gemini Flash'. Here's the track it created when I gave it the same input.
It titled it, "In the mood for country cowboy-ish music played for someone like John Wick bleeding out on a cold, snow-covered park bench." and here's the justification it came up with, "A weary, grit-laden Dorian lament for a fallen gunslinger, blending the cold isolation of vast reverb with the sharp, intimate pluck of a final, fading heartbeat."
Music link: https://vocaroo.com/1nepiOQ3mrCr
Incipient|10 days ago
But looks great! I'm keen to actually give it a go.
I'm incredibly against AI music for various reasons, but some ongoing ambient stuff...I'll at least try it out!
prabal97|9 days ago
Hope you got a chance to try this out!
hackingonempty|11 days ago
But otherwise very cool!
prabal97|11 days ago
flax|11 days ago
I would really like to be able to run this on my phone. Use my Brilliant smart glasses to periodically take a picture, ask a model to describe the mood/setting, and get an ambient stream to match the mood.
prabal97|11 days ago
Here's the song it created when I asked Gemini Flash to do it!
It called it, "Cobalt Kinetic" and explained that, "A high-velocity Mixolydian engine fueled by syncopated electronic pulses and glitchy accents, evoking the iridescent blur of hidden magic weaving through a midnight skyscraper canyon."
Here's the audio: https://vocaroo.com/1hjtPAxLWqyA
saranshmahajan|11 days ago
Would love to know if the same prompt always yields the same sound (reproducibility could be powerful), and whether you’ve considered semantic morphing between two moods over time.
prabal97|11 days ago
The same prompt yields largely the same song because the 'Fast' (default) mode retrieves the synth parameters from a pre-existing library.
But if you use the 'Custom LLM' model, it can generate new and creative music every time you play something - even for the same input!
cprecioso|11 days ago
prabal97|11 days ago
namnnumbr|11 days ago
'"epic vampiric doom" suggests a bright and uplifting soundscape'? I'm not so sure about that
... I was hoping for something more like nightwish.
prabal97|11 days ago
If you're really curious, you could try the 'Custom LLM' feature - specifically 'Gemini Flash'. Here's the track it created when I gave it the same input.
It titled it, "Throne of the Eternal Night" and here's the justification it came up with, "A glacial, minor-key procession of heavy brass hits and deep sub-pulses, evoking the suffocating grandeur of an ancient, blood-soaked dynasty ending in shadow."
Music link: https://vocaroo.com/14bW1RJyubcC