Show HN: Lofi Cities – Pixel-art city nights with browser-generated lofi
Show HN: Lofi Cities – Pixel-art city nights with browser-generated lofi
Lofi Cities is a free web app that pairs animated pixel-art city nights with endless lofi music generated live in your browser. Lofi Cities 是一款免费的网页应用,它将像素艺术风格的城市夜景动画与浏览器实时生成的无限 Lofi 音乐完美融合。
Pick a city and let it run: every scene is a 480×270 pixel animation that loops seamlessly every four minutes, with its own weather, landmarks and city sounds, while new lofi tracks are composed on the fly. 选择一座城市,让它自动运行:每个场景都是 480×270 像素的动画,每四分钟无缝循环一次。每个城市都有独特的天气、地标和环境音,同时系统会实时创作出全新的 Lofi 音乐。
There is nothing to install, no account and no pop-ups. It works on computers, phones and tablets, and makes a calm background for studying, working or winding down. 无需安装、无需注册、没有弹窗。它适用于电脑、手机和平板设备,是学习、工作或放松时绝佳的背景伴侣。
Every city has a billboard for rent, with a made-up local ad on it until a business takes it. 每座城市都有一个可供出租的广告牌,在被企业认领之前,上面会显示虚构的本地广告。
What’s new (最新更新)
28 Sep: Chat with the people on your city: the Chat button in the player (or Enter) opens short messages from the last hour, under a random two-word name such as “sleepy fox”. No links, and you can hide anyone. 9月28日:与城市里的其他人聊天:点击播放器中的“聊天”按钮(或按回车键)即可查看过去一小时内的简短留言,用户会以“sleepy fox”(困倦的狐狸)这类随机双词名称显示。不支持链接,且你可以屏蔽任何用户。
28 Sep: The city picker (/) features the city with the most people right now, in a wide card above the others, and lists the cities with the most people first. 9月28日:城市选择器(按 / 键)现在会在顶部以宽卡片形式展示当前人数最多的城市,并按人气高低排列其他城市。
28 Sep: The city chip at the bottom now and then rolls through a few other city names, to show that it is where you change cities, until you open the picker for the first time. 9月28日:底部的城市标签现在会不时滚动显示其他城市名称,以提示用户此处可切换城市,直到你首次打开城市选择器为止。
How the music works (音乐运作原理)
Every track is composed on the spot with the Web Audio API: a chord progression, a drum groove, a bass line and often a melody, finished with tape wobble and vinyl crackle. Everything is synthesized in real time, with no samples or recordings, so the stream never runs out. 每一首曲目都是通过 Web Audio API 现场创作的:包含和弦进行、鼓点律动、贝斯线条以及旋律,最后加入磁带抖动和黑胶唱片的杂音效果。所有内容均为实时合成,不使用任何采样或录音,因此音乐流永远不会中断。
The Vibe panel picks the style: jazzhop (the default), piano, ambient, bossa, synth, house, guitar, sad or medieval. A new style starts with the next track. It also sets the mood, chill or upbeat, and plays the full band, no drums, or the chords only. “氛围”(Vibe)面板可以选择音乐风格:Jazzhop(默认)、钢琴、氛围音乐、Bossa Nova、合成器流行、House、吉他、忧郁或中世纪风格。每首新曲目都会切换风格。你还可以设置情绪(Chill 或 Upbeat),并选择全乐队演奏、无鼓点模式或仅和弦模式。
Track titles are inspired by the city on screen, and a separate ambience layer mixes that city’s sounds under the music. The Up next list shows the coming tracks so you can pick one to play right away, and music and city sounds each have their own volume slider. 曲目标题灵感来源于屏幕上的城市,独立的氛围层会将该城市的环境音与音乐混合。列表中的“下一首”功能让你能预知即将播放的曲目并随时切换,音乐和城市环境音也分别配有独立的音量滑块。