Skip to content
lizapropanolPublic

About

Custom Yandex Music/SoundCloud/YouTube Music player

Resources

Stars

5 stars

Watchers

0 watching

Forks

Repository files navigation

morph

C++ Qt QML License Linux Donate

morph is a sleek, modern desktop music player built with C++ and Qt/QML. It integrates seamlessly with Yandex Music, SoundCloud and YouTube Music, providing a unified and aesthetically pleasing interface for your music library, charts, and personalized radio streams.


Key Features

  • Triple Service Integration: Search and play tracks from Yandex Music, SoundCloud and YouTube Music in a single interface.
  • My Vibe (Personalized Wave): Direct integration with Yandex Music's algorithmic radio, complete with listening telemetry so your recommendations keep improving.
  • Top Charts: Browse and play the top tracks from Yandex Music with a clean, dual-column ranked layout.
  • Daily Mixes: Access personalized daily playlists from SoundCloud directly on the home screen.
  • Artist Profiles: Browse detailed artist profiles displaying a biography, high-resolution avatar, list of albums, and tracks directly from the player.
  • Advanced Playlist Management:
    • Create, rename, and delete custom playlists.
    • Set custom cover images using external URLs (Imgur, Pinterest, etc.).
    • Easily add tracks from search, charts, or history directly into your playlists.
  • Search History: Automatically keeps track of your 20 most recently played tracks from searches for quick access.
  • Persistent Caching & Offline Support: Automatically saves played tracks and viewed covers to local storage, enabling full playback without an internet connection.
  • Advanced Cache Management: Dedicated storage view with real-time size calculation and granular clearing options for tracks and covers.
  • Real-time Bitrate Display: Shows current track quality and bitrate information directly in the interface for all supported services.
  • Security & Privacy:
    • Hardware-Linked Encryption: Authentication tokens are protected with dual-layer AES-256-GCM encryption. Keys are derived via PBKDF2-HMAC-SHA-512 (600,000 iterations) from a combination of system-unique identifiers, ensuring your credentials remain secure and unusable if copied to another machine.
  • System Integration:
    • Discord Rich Presence: Show your current track, artist, and playback status directly on your Discord profile.
    • MPRIS Support: Full integration with Linux media controllers (playerctl, system tray, etc.) for remote playback control and metadata display.
  • Extensible Styling Engine:
    • Config Library: A built-in library to manage, import, and export custom QML themes and configurations effortlessly.
    • Live "Run Preview": Instantly launch a separate window to test and visualize your style changes in real-time as you edit.
    • Integrated IDE: Includes a custom QML syntax highlighter and live preview system for theme development.
  • Modern UI/UX:
    • Dark, minimalist aesthetic utilizing smooth gradients and QML animations.
    • Circular reveal splash screen synchronized with logo expansion.
    • Time-aware greetings with active service status indicators.
    • Real-time visual indicators (green dots) for cached offline tracks.
    • Master-Detail navigation flow for intuitive library browsing.
    • Interactive elements with consistent hover states and hand-cursor feedback.
  • Reactive Settings: Automatic persistence of authentication tokens and audio preferences upon input.
  • Lightweight & Fast: Powered by C++ backend logic for minimal resource usage while delivering a premium Qt Quick interface.

Installation & Setup

Arch User Repository (AUR)

If you are on Arch Linux, you can easily install morph using an AUR helper like yay:

yay -S morph

Prerequisites

  • CMake (3.16 or higher)
  • Qt 6 (Core, Quick, Qml, Network, Multimedia, DBus, Svg, 5Compat)
  • C++23 compatible compiler (GCC 12+ / Clang 15+)

Runtime Dependencies (Arch Linux)

For full functionality (audio codecs and icons), make sure to install:

sudo pacman -S qt6-base qt6-declarative qt6-multimedia qt6-svg qt6-5compat gst-plugins-good gst-plugins-bad gst-plugins-ugly gst-libav hicolor-icon-theme yt-dlp ffmpeg openssl

Building from Source

Linux

# Clone the repository
git clone https://github.com/lizapropanol/morph.git
cd morph

# Create a build directory
mkdir build && cd build

# Configure and build
cmake ..
make

# Run the application
./morph

Windows

# Prerequisites: Qt 6.8+ (MSVC 2022 x64), OpenSSL 3.x, Inno Setup 6 (optional, for installer)
# Inno Setup can be installed via: winget install JRSoftware.InnoSetup

# Quick build with PowerShell script (compiles morph and creates setup installer):
.\scripts\build_installer.ps1

# Or manual CMake build:
cmake -B build -S . -DCMAKE_PREFIX_PATH="C:/Qt/6.8.0/msvc2022_64;C:/Qt/Tools/OpenSSLv3/Win_x64"
cmake --build build --config Release
# Installer will be generated at build/morph-v<version>-setup.exe

Configuration

To unlock full functionality, you need to provide your authentication tokens in the Settings tab. Changes are saved automatically.

Yandex Music Token

  1. Use a browser extension like yandex-music-token (available for Chrome/Firefox).
  2. Log in to your Yandex account.
  3. Copy the generated token and paste it into the "Yandex Music Token" field in morph's settings.

SoundCloud OAuth Token

  1. Log in to your account at soundcloud.com.
  2. Open Developer Tools (F12) and go to the Application tab (Chrome/Edge) or Storage tab (Firefox).
  3. In the sidebar, expand Cookies and select https://soundcloud.com.
  4. Find the cookie named oauth_token and copy its value (it starts with 2-).
  5. Paste this token into the "SoundCloud Client ID" field in morph's settings.

Note: Using a personal OAuth token is required for personalized features like Daily Mixes.


Project Structure

  • src/core/: Application initialization and service management.
  • src/services/: Specific API implementations (YandexService, SoundCloudService, YouTubeService) and base interfaces.
  • src/utils/: Cache management, path resolution, and file system utilities.
  • src/network/: HTTP wrappers for API communication.
  • src/settings/: JSON-based local storage management for playlists, likes, tokens, and history.
  • src/audio/: Low-level audio engine integration.
  • ui/: The frontend layer, containing style.qml and associated assets.

License

This project is open-source. Please see the LICENSE file in the root directory for more details.


Star History

Star History Chart

Developed with ❤️ by lizapropanol

About

Custom Yandex Music/SoundCloud/YouTube Music player

Resources

Stars

5 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages