dvx / lofi Goto Github PK
View Code? Open in Web Editor NEW๐ต๐ A mini Spotify player with WebGL visualizations.
Home Page: http://lofi.rocks
License: MIT License
๐ต๐ A mini Spotify player with WebGL visualizations.
Home Page: http://lofi.rocks
License: MIT License
I use two accounts for two different types of listening, one for out and about, and one for home, both of which need to be kept separate. Can I log out of one account and into another?
In Windows 10:
The app starts in the center of the screen. The GUI works as expected until the window is dragged to a new position. The GUI then freezes in the "mouse hover" state (play controls showing as well as the song info tooltip to the right of the main window).
All the controls are working but the GUI is not updated at all.
Not a bug, but request. Add this package to Chocolatey (https://chocolatey.org/docs/CreatePackages) package manager. Thank you!
Use-case:
headphones with touch control lying on a desk. I know I have to leave the desk for a significant amount of time. I use touch control (not working everytime), get visual on-screen confirmation that the music stopped. Happy to leave :)
It would be nice to have lofi docked/added to top menu bar. So it will be faster to find it.
Occasionally, the Lofi player gets "stuck" behind certain windows (when, for example, we switch desktops). Investigate and fix this. Some key questions:
native
solution?While the website for this project already supports HTTPS, it's not redirecting from HTTP automatically.
And as the site already uses HSTS I see no point in not redirecting to HTTPS. ๐
I have a Win10 v1709 PC with Spotify 1.0.80.474 installed (BlockTheSpot installed, too). It's a Dell Inspiron 7577 with an Intel Core i7-7700HQ and a Nvidia GTX-1060 MaxQ. Plenty of RAM, HDD, etc. I installed Lofi and it promptly froze my PC. I hard reset, then upon restart, with nothing running in the background, tried again. It froze again, requiring another hard reset. Only then did I read the readme, and realise it only works with Spotify open.
Uninstalled, as it did not work, and froze my PC :'(
Lofi loses seemingly randomly loses connection and I have to press the "Login" button again to reconnect. Unfortunately can't find a way to reproduce it reliably, it happens at different intervals.
macOS 10.14.3
I'm on v.1.5.0, everything works perfect for me, but the cover art showing for local files.
The process to get the visualisation working on Mac is a bit convoluted and hidden within a FAQ. It might be worth trying to detect the users current environment and either run a configuration wizard or just guide them through the steps in a more intuitive way.
Should be fairly easy to implement, unfortunately I don't feel comfortable enough with front-end to send a pull request for this one.
Yarn doesn't support a few key security features (like yarn audit fix
) so a switch to npm
might be warranted, especially because Github is flagging some packages as potentially insecure.
I would prefer to move the icon from the taskbar to the notification area, to avoid clutter. It would make it more discreet, less in the way.
I have an early 2011 Macbook Pro 17 inch running High Sierra. When I try to open Lofi, it will flash open and then anything that displays will suddenly disappear. This all happens very quickly. The computer will act like I have the app open, but nothing will display.
@dvx First of all i wish to thank for your work. Last update have really great functional.
Im notice that "hide mini player then Spotify closed" not always work.
And in addition to this all functinal wish to dont show mini player in taskbar. Maybe you can implement in the future update please! Im alredy see this request before.
Thank you! Im enjoy LoFi, great work man! Spotify Mini Player of my dream :)
Is there any chance of a Linux version being released?
Just found and really like the mini player. I'm on Windows 10 and whenever an ad plays, the mini player disappears, only returning if I close and re-open.
Not every album/song does this.
I think it would be better to add this functionality. It's very bad to re-position the window everytime. If you guys want that, I might work on this.
I use two monitors with my MacOS. I have the player in a specific place on the second monitor and when I lock my screen and unlock it the player shoots to the main monitor and i have to drag it back into place each time.
After a while when it played music, or when its paused, the controls dont work anymore. You can click whatever you want but not works.
When you go back to the main spotify player and press play again, the widget reacts again for a while.
It would be nice if you could resize the window, as a size of 150pxยฒ might be fine on 1080p (or even 1440p like in my case) but I'm not sure how it would look on a 2160p screen.
would be nice to have a debian package available
The provided link to the audio device to download here is the link downloads and is called eqMac2 in Audio MIDI Setup and does not work with Lofi. Also in the FAQs it says "Check out the know bugs or file a new issue." and I think it should say "Check out the known bugs or file a new issue." (change know to known)
Imo it would look way better if the domain for the website would be just lofi.rocks
instead of www.lofi.rocks
. Looks more snappy ๐
I absolutely love this widget, it harkens back to a time around 2005-2010 when little pixel-perfect minimal music and information widgets were all the shit for Mac OS and some got ported over to Windows. I love having this thing float above my windows while I work!
The issue: on Win10 Home, the visualizations appear to just be floating in their default state with no impact made by the Spotify music - is there anything I can do to troubleshoot why the widget doesn't appear to be getting an audio stream? The controls work perfectly otherwise.
Thanks!
Switched to Spotify a few days ago and got Lofi with it. Lofi seems to work just fine for me aside from this one issue. The Lofi window will stay on screen at all times, even if Spotify is closed. I don't see any other posts about this issue, so I'm not sure if it's an actual bug with Lofi, or if something on my PC is causing the window detection to mess up, but either way I'd like some help fixing it.
Some misc info if it matters:
When I am shuffling through random tracks while working, I love how Lofi's minimal UI helps me from being distracted. However, when it comes to saving a track to my library I have no option but to open up the main application, which causes minor distraction. It would be nice to have a save button in there as well.
Note
This will also require Lofi to update Authorization Scopes to the following
user-library-read%20user-library-modify%20user-read-playback-state%20user-modify-playback-state%20user-read-currently-playing
Mainly these two..
user-library-read
: To check if the current song already exists in user's library.user-library-modify
: To add/remove song from user's library.Hi, I'm on OSX 10.14.2 (Mojave). It doesn't appear that the visualizations do anything in either the separate window or in the main window. They just seem to be static and do not change with the music.
If there's any other detail I can provide, please let me know.
This is a known issue and logins will be affected, my apologies. GoDaddy has locked my account and I'm dealing with their customer service to renew the domain.
When trying to build from source, node-gyp won't target the Python 2.7 installation by default if there's more than one Python installation on the machine.
One can solve this by editing the package.json file and adding --python path/to/python27 to the build argument.
This should either be mentioned in the README, or another option would be to look into calling node-gyp through NPM so that the user can configure it to target python 2.7 automatically.
Hello @dvx ! If you still working on improvement of LoFi, i want to ask for these improvements please:
1 Option of manual set size of widget
2 Option to set widget not "always on top"
3 Option to hide widget then Spotify closed or stopped
Hope you still working on LoFi! Becouse this is only one working mini player for Spotify now!
One feature I really like about this mini player is that while you're hovering over it, you can use the mouse wheel to adjust the volume. However, scrolling raises/lowers the volume by 10 which I feel is a bit too much.
Suggestion: Add a setting that lets users customize how much the volume gets raised/lowered every time you scroll. Example: My volume is currently at 30, and my volume increment setting is 2, so if I scroll up while hovering over the mini player, my volume increases to 32.
I'm not a coder, so I don't know how difficult and/or time-consuming it would be to add this in, but hopefully this would be a simple addition, I would really like to see this added.
Greetings!
The visualizations in every song are practically static, staying the same through the entire song. Is this intended? Do I have to set up anything else besides the player?
I am already running it as administrator.
It would be cool to have a progress bar, maybe 1px high at the bottom, to see where you are in the song. It could appear only when hovering too.
Lofi 1.1, Mac OS 10.14.
Example.
E: Only when focused on lofi (when it's last window I've clicked on).
Title. I can pause, rewind, and forward fine using my hotkeys or through the web app.
is the data from volume
equivalent to the raw audio data from the audio capture device?
if it is, then it might be possible to run a FFT on it and create visualizations based on the frequencies present in the music, not simply on the volume.
This has been asked for a while now, but here's a good rundown of a "random play" feature:
(from https://news.ycombinator.com/item?id=20346406, by @patmcc)
I want it to play in a truly random fashion, with replacement (same song twice in a row is possible).
I want it to play in a truly random fashion, without replacement (each song is removed from the list once played).
I want it to "seem" random (don't play too many songs by the same artist in a row).
I want it to be random, but predictable (same "random" ordering if I start the playlist again).
I want it to play my favourite songs more often than my lower-rated songs.
I want it to play my less-commonly played songs more often than the stuff I listen to all the time.
Consider a drop-down (or pop-up) where you could choose one of the above.
I mostly listen to new/unfamiliar music and may not be able to put my hand on a mouse.
I want to glance over and see the current title and artist.
https://imgur.com/a/4uezJE8
The square around the album art in the centre of all black moves with the widget
Trying to run the application on windows using python3 fails the build.
$ node-gyp rebuild --target=4.0.1 --arch=x64 --dist-url=https://atom.io/download/electron
gyp info it worked if it ends with ok
gyp info using [email protected]
gyp info using [email protected] | win32 | x64
gyp ERR! configure error
gyp ERR! stack Error: Command failed: C:\Users\north\AppData\Local\Programs\Python\Python36\python.EXE -c import sys; print "%s.%s.%s" % sys.version_info[:3];
gyp ERR! stack File "<string>", line 1
gyp ERR! stack import sys; print "%s.%s.%s" % sys.version_info[:3];
gyp ERR! stack ^
gyp ERR! stack SyntaxError: invalid syntax
gyp ERR! stack
gyp ERR! stack at ChildProcess.exithandler (child_process.js:294:12)
gyp ERR! stack at ChildProcess.emit (events.js:182:13)
gyp ERR! stack at maybeClose (internal/child_process.js:962:16)
gyp ERR! stack at Process.ChildProcess._handle.onexit (internal/child_process.js:251:5)
gyp ERR! System Windows_NT 10.0.16299
gyp ERR! command "C:\\Program Files\\nodejs\\node.exe" "C:\\Users\\north\\git\\lofi\\node_modules\\node-gyp\\bin\\node-gyp.js" "rebuild" "--target=4.0.1" "--arch=x64" "--dist-url=https://atom.io/download/electron"
gyp ERR! cwd C:\Users\north\git\lofi
gyp ERR! node -v v10.15.0
gyp ERR! node-gyp -v v3.8.0
gyp ERR! not ok
error Command failed with exit code 1.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
error Command failed with exit code 1.
info Visit https://yarnpkg.com/en/docs/cli/install for documentation about this command
This is because the install doesn't support python3.
I've tried looking around where the issue is so I can fix it, but it looks like it's an issue with node-gyp? Is there a workaround for this?
This widget would be so complete with a volume control. Is that possible?
(Running Windows 10)
When a local file gets played, the window disappears and lofi requires a restart to function again even after switching to a song belonging to Spotify. The icon remains on the taskbar and the process is still "responding" according to Windows.
I would be nice to add some hotkey abilities. I use this while I'm streaming and would love to tie it into the Elgato stream deck via hotkeys.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.