Git Product home page Git Product logo

pymusicz's Introduction

pymusicz

this page is a mirror of original project at gitlab(https://gitlab.com/univrz/pymusicz)

basic music player made with python's pysimpleGUI,mixer module of pygame and tinytag.it is a college student project.

Before getting started we need certain python modules:

GRAPHICAL USER INTERFACE (GUI): PySimpleGUI

MUSIC: mixer module of pygame

METADATA OF SONGS: tinytag

module installing :

pip install PySimpleGUI
                            
pip install pygame
                                
pip install tinytag

the mixer module of pygame can play the song ,the song is loaded and we can change the volume and play it :

mixer.music.load(values['song']) mixer.music.set_volume(1) mixer.music.play()

now started to play the song ,now we have to pause, resume and stop the song which is playing..

mixer.music.pause() mixer.music.unpause() mixer.music.stop()

so now we can do all the basic things with it .next we want metadata of the song that is the details embedded in the songs.see here how we can get audiofunction.py,exaplained in comments.in that the statements are inside the function so while returning values i need all of them ,so i used a list to return all the values .

now we got song playing ,getting metadata.next the ui ...here pysimplegui .created a layout and buttons with keys ,the keys helps to identify which button is pressed .based on the buttons pressed giving commands to mixer module.in the layout used file browser to fetch songs.and used sqlite to create playlist.and can add or remove songs to the existing playlists.for more look into the comments of the code files ...inter.py(the main file),tcreate.py(for creating playlists),dbfunc.py(used to add ,remove songs to playlists and to get list of playlists)

pymusicz's People

Contributors

sujithananth avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.