0% found this document useful (0 votes)
15 views

mood player-edited

Uploaded by

yash.tanwar1302
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
15 views

mood player-edited

Uploaded by

yash.tanwar1302
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 35

MOOD PLAYER

A REPORT OF SIX WEEKS INDUSTRIAL TRAINING


at
CHANDIGARH UNIVERSITY
SUBMITTED IN PARTIAL FULFILLMENT OF THE REQUIREMENT FOR THE AWARD
OF THE DEGREE OF

BACHELOR OF ENGINEERING
(Computer Science and Engineering)

MAY-JUNE, 2019

SUBMITTED BY:
AYUSHI GUPTA
17BCS2301

DEPARTMENT OF COMPUTER SCIENCE AND ENGINEERING

CHANDIGARH UNIVERSITY GHARUAN, MOHALI

1
MOOD PLAYER

CONTENTS
Topic Page No.
Certificate by Institute 3
Candidate’s Declaration 4
Abstract 5
Acknowledgement 6
About the Institute 7
List of Figures 8
Definitions, Acronyms and Abbreviations 9

CHAPTER 1 INTRODUCTION
1.1 About 10
1.2 Technology used 10
1.3 SRS 10-16
1.4 UML Diagrams 17-22

CHAPTER 2 TRAINING WORK UNDERTAKEN


2.1 About training modules 23-26
2.2 Libraries’ used 26-28

CHAPTER 3 RESULTS AND DISCUSSION


3.1 Screenshots 29-31
3.3 How to access the system 32

CHAPTER 4 CONCLUSION AND FUTURE SCOPE


4.1 Conclusion 33
4.2 Future Scope 33-34
REFERENCES 35

2
MOOD PLAYER

CERTIFICATE

This is to certify that the project entitled, MOOD PLAYER submitted by AYUSHI GUPTA in partial
fulfillment of the requirements for the award of be SIX WEEKS INHOUSE INSTITUTIONAL
TRAINING in BE CSE at the CHANDIGARH UNIVERSITY is an authentic work carried out by her
under my supervision and guidance.

CERTIFIED BY- SUGANDHI MIDHA

3
MOOD PLAYER

CHANDIGARH UNIVERSITY, GHARUAN, MOHALI

CANDIDATE’S DECLARATION

I “AYUSHI GUPTA” hereby declare that I have undertaken six weeks industrial training at
“CHANDIGARH UNIVERSITY” during a period from ______ to _______ in partial fulfillment of
requirements for the award of degree of B.E (COMPUTER SCIENCE AND ENGINEERING) at
CHANDIGARH UNIVERSITY GHARUAN, MOHALI. The work which is being presented in the
training report submitted to Department of Computer Science and Engineering at CHANDIGARH
UNIVERSITY GHARUAN, MOHALI is an authentic record of training work.

Signature of the Student

The six weeks industrial training Viva–Voce Examination of__________________ has been held on
____________ and accepted.

Signature of Internal Examiner Signature of External Examiner

4
MOOD PLAYER

ABSTRACT

The vast amount of data available on the Internet has led to


the development of mp3 player systems. This project
proposes the use of soft computing techniques to develop
mp3 music player. This report provides a detailed summary
of the project “MOOD PLAYER” as part of fulfillment of
the semester's Writing Project, Computer Science
Department, Chandigarh University. The report includes a
description of the topic, system architecture, and provides a
detailed description of the work done till point. Included in
the report are the detailed descriptions of the work done:
snapshots of the implementations, various approaches, and
tools used so far. The report also includes the project
schedule and deliverables.

5
MOOD PLAYER

ACKNOWLEDGEMENT

First and foremost, praises and thanks to the God, the Almighty, for His showers of blessings
throughout my research work to complete the research successfully.
I would like to express my deep and sincere gratitude to my training supervisor, Sugandhi Midha,
Professor, Computer Science and Engineering, Chandigarh University, Punjab, for giving me the
opportunity to do project and providing invaluable guidance throughout this research. Her dynamism,
vision, sincerity and motivation have deeply inspired me. She has taught me the methodology to carry
out the research and to present the research works as clearly as possible. It was a great privilege and
honor to work and study under his guidance. I am extremely grateful for what she has offered me. I
would also like to thank her for her friendship, empathy, and great sense of humor
I am extremely grateful to my parents for their love, prayers, caring and sacrifices for educating and
preparing me for my future.

Ayushi Gupta (17BCS2301)

6
MOOD PLAYER

ABOUT CHANDIGARH UNIVERSITY

Chandigarh University (CU) is a leading Indian Institution offering its students a unique amalgamation of
professional and academic excellence. Ranked among Asia’s best and fastest growing universities, CU has
coupled the experience of top industry leaders and renowned academicians and fosters a worldly approach.

Wide spectrum of programs paired with flexibility, experiential learning and interdisciplinary orientation
emancipate our students to explore their interests and pursue fulfilling careers. At CU we are grooming
students to be socially sensitive through intellectually challenging and contemporary diverse culture.

Vision

“To be globally recognized as a Centre of Excellence for Research, Innovation, Entrepreneurship and
disseminating knowledge by providing inspirational learning to produce professional leaders for serving
the society”

Mission

• Providing world class infrastructure, renowned academicians and an ideal environment for Research,
Innovation, Consultancy and Entrepreneurship.
• Creating Curriculum to match international standards along with comprehensive training and inculcation
of Human and Ethical values to meet the needs of industry and civil society.
• Creating a scientific, Transparent and Impartial Examination/Evaluation system to ensure an ideal
certification.
• Establishing strategic relationship with leading National & International corporate and universities for
academic as well as research collaborations.
• Undertaking ISR activities for women empowerment, upliftment of rural/deprived sections of the society
and socially relevant research.

Quality Policy

• All round quality is assured through professional management of the University.


• Academic quality is assured through regular upgradation of curriculum, teaching learning model and
experiential learning with Industry participation, based on continuous critical self-appraisal.
• Traits of Critical Analysis, Creative Thinking & Communication Skills are inculcated among students for producing well-
groomed professional leaders, possessing multifaceted personality, respect for professional & social ethics, national
values, and the spirit of human emancipation.

7
MOOD PLAYER

LIST OF FIGURES

S.no Figure Name Page No

1. Use Case Diagram 17


2. Sequence Diagram 18
3. Entity Relationship Diagram 19
4. Zero Level DFD 20
5. One level DFD 21
Two level DFD 22

8
MOOD PLAYER

DEFINITIONS, ACRONYMS AND ABBREVIATIONS

• DFD(DATA FLOW DIAGRAM)

A data-flow diagram (DFD) is a way of representing a flow of a data of a process or a system


(usually an information system). The DFD also provides information about the outputs and inputs
of each entity and the process itself.

• ER DIAGRAM(ENTITY RELATIONSHIP DIAGRAM)

Entity Relationship Diagram, also known as ERD, ER Diagram or ER model, is a type of


structural diagram for use in database design. An ERD contains different symbols and connectors
that visualize two important information: The major entities within the system scope, and
the inter-relationships among these entities.

• UML DIAGRAMS(UNIFIED MODELLING LANGUAGE)

A UML diagram is a diagram based on the UML(Unified Modeling Language) with the purpose
of visually representing a system along with its main actors, roles, actions, artifacts or classes, in
order to better understand, alter, maintain, or document information about the system.

• OS(OPERATING SYSTEM)

An operating system (OS) is system software that manages computer hardware and software
resources and provides common services for computer programs.

• GUI(GRAPHICAL USER INTERFACE)

The graphical user interface is a form of user interface that allows users to interact with electronic
devices through graphical icons and visual indicators such as secondary notation, instead of text-
based user interfaces, typed command labels or text navigation.

9
MOOD PLAYER

CHAPTER 1 INTRODUCTION
1.1ABOUT SYSTEM

Hardware or software that plays audio files encoded in MP3 and other audio formats. On the software
side, applications that reside in the user's computer, such as iTunes, Windows Media Player and
RealPlayer, are used to organize a music collection, play audio files and rip music from a CD. Software
players may also provide access to Internet radio stations and other streaming audio sites.

1.2 TECHNOLOGY USED

PYTHON
In this project main technology that we are going to use is Python. Python is an interpreted, high-level, general-
purpose programming language. Created by Guido van Rossum and first released in 1991, Python has a design
philosophy that emphasizes code readability, notably using significant whitespace. It provides constructs that
enable clear programming on both small and large scales. Van Rossum led the language community until
stepping down as leader in July 2018.
Python features a dynamic type system and automatic memory management. It supports multiple programming
paradigms, including object-oriented, imperative, functional and procedural, and has a large and comprehensive
standard library.
Python interpreters are available for many operating systems. CPython, the reference implementation of
Python, is open source software and has a community-based development model, as do nearly all of Python's
other implementations. Python and CPython are managed by the non-profit Python Software Foundation.

1.3 SRS

1. INTRODUCTION
1.1 PURPOSE
This specification design document will detail the design of an Mp3 Mood player system for the selecting
most preferred programming language.

• An advanced music player for playing ordinary audio formats and chiptunes.
• Mood player is a free, open source program. Free software is software which may be used,
studied, amended and returned without restriction.

1.2 DOCUMENT CONVENTION

10
MOOD PLAYER

• When writing this design document it was inherited that all requirements have the same
priority.
• First an overall view of the system is presented and then all features and functions are
analyzed in detail.

1.3 INTENDED AUDIENCE AND READING SUGGESTIONS


Development: in order to be sure that our team is developing the right project that fulfil requirements
provided in this document. In order to have an exact list of the features and functions that are required to
respond according to requirements and provided diagrams .Our team will get familiar with the idea of the
project and suggest other features that would make it even more functional.
Users: in order to know exactly what they have to expect from the system right inputs and outputs and
response in error situations.
⚫ Testers understand how MusicBox.Net is supposed to work properly and identify bugs and
errors easier
⚫ This document could be studied by the program developers, so they have the chance to
identify and alter possible points which need improvement. Also, they can fully understand
the nature of the program and implement new features. It is recommended to comprehensive
study of the document for the full understanding of the program and to avoid errors.

1.4 PROJECT SCOPE


Mood player is a windows form music player application. It is build based on the audio library BASS
developed by un4seen developments, it supports not just modern day audio formats such as MP3 or WAV
but also OGG, WMA, MPC, FLAC and can be expanded by addons. It also supports chiptunes and plays
them like a normal audio file. Next Chapters include extensive reference to these capabilities of the
program.

1.5 REFRENCES
https://docs.anaconda.com/
https://stackoverflow.com/

https://www.python.org/

11
MOOD PLAYER

2. OVERALL DESCRIPTION
It is a python based GUI system so fundamental features related with python libraries such as client-server
and database properties determine the software requirements of that project.

2.1 PRODUCT PERSPECTIVE


The MP3 Mood player belongs to music player category. These are the minimum requirements that are
needed to run and built Mood player:
⚫ OS: Windows XP with Service Pack 3 installed.
⚫ RAM: 512MB.
⚫ Pycharm IDLE
⚫ Disk Space: 10MB free space.

2.2 PRODUCT FEATURES


It provides several options for User.

• Simple GUI
• Full Support For All Audio Formats.
• Plays Next / Previous Track On Playlist.
• Two Progressbar shows the high and low point of the playing audio file
• Repeat / Repeat playlist.
• Add from URL / Folder / Folder
• Hide to tray function to replace the "minimize" button.
• Unlimited songs on playlist
• Simple interface.
• Console (CMD) interface.
• Online Help Doc.
• Open files although the application is already running.
• Manage volume by scroll bar
12
MOOD PLAYER

• Stop,Pause,backward and forward song option


• Add and Remove songs from your system

2.3 USER CLASSES AND CHARACTERISTICS


Simple users that intend to hear a song. These users could be of any age, with no special knowledge.
Knowing how to use a computer is an essential.

• The user add songs from system.


• Then they can play ,repeat and stop..
• This is done by importing pygame library in program.
• User can maintain volume and go backward and forward in songs list.

• .Programmers- Software Developers –Open Source project participants of any age that could
understand the program’s source code and expand or improve it. Must have knowledge of the
programming language that the software is written in, in order to be able to understand exactly
what it does and how it does it. Also some experience on programming will most certainly help on
extending or improving the project.

2.4 DESIGN AND IMPLEMENTATION CONSTRAINT


The Music player is designed in python language and using its Tkinter , Pygame and Mutagen Module
which makes this player simple and user friendly .Due to its simplicity of program there is no database to
store the user info and playlist created by him.Every time user has to add song and then play this can be
improve with python data base connectivity and its libraries.

3. SYSTEM FEATURES
3.1 FUNCTIONAL REQUIREMENTS
Graphic Modification Feature The media library must be capable of loading an image from a file by
decoding the data and converting it into some kind of an accessible structure. The access structure that will
be used to contain the image information is a collection of pixel objects each with its own properties. These
pixels will each have levels that can be accessed and modified by the user. In color images there will be
three such sets of pixel maps, one for each color.

• For this, the user will open file and then add music from system.

13
MOOD PLAYER

• Then user will play music and can perform stop,mute,repeat and control option on song.
• User can then remove the song and can take help how to use Player .

Read Audio Files - This feature shall be able to load audio files from the file system. Only WAV files will
be supported in Media.py. The system will be able to load any size file, limited only to the size the
operating system will allow. However, there is a practical limit on file size, and we will not optimize the
system to load files more than 256 megabytes in size.
Play Audio - This feature shall be able to play audio files after they are loaded and after they have been
modified.
Edit Audio: This feature shall be able to parse an audio file into simple, modifiable samples for the user.
Simple means that all wav files will be converted to 22000 Hz, 16 bit, mono sounds. Users will be able to
delete, copy, reverse, increase intensity and decrease intensity with any WAV file. These samples shall be
accessed as a Python object through any python program that imports media.py
Save Audio: This feature shall allow the user to save any edited audio files to a disk in WAV format.

4. EXTERNAL INTERFACE REQUIREMENTS


4.1 USER INTERFACE
The system must provide a user interface for all types of users that is available through all Web browsers.
Title Bar – shows song length and position.
1. Menu Bar - contains "File", "View", "Tools" and "Help".
2. Right Progress Bar - shows the volume on the right speaker.
3. Previous Button - switch to the previous song in the playlist
4. Play Button - plays and resume the paused audio.
5. Stops Button - stops the current playing audio and reset its position.
6. Next Button - switch to the next song in the playlist.
7. File - contains important functions such as "Add", "Add From URL", etc.
8. View - contains optional functions such as "Visualizations", "Repeat", etc.
9. Tools - contains editing tools such as "Tags Editor", "Playlist Tool", "Console", Etc.
10. Help - contains support and information about the program.
11. Tool Bar - contains playing functions such as "Play", "Pause", "Stop", etc.
12. Pause Button - temporary stops the current playing audio.

4.2 HARDWARE INTERFACE

14
MOOD PLAYER

There are no hardware interfaces to this software system. The only interfaces are through a computer
system.Mood player does not require additional material to run. The only peripheral equipment is the
keyboard and the mouse.
1. PROCESSOR: 800 MHz Intel Pentium III or equivalent.

4.3 SOFTWARE INTERFACE


• O.S: windows and android operating system.
• WEB BROWSER: such as chrome, Firefox, Internet explorer.
• Anaconda : is a free, easy-to-install package manager, environment manager and Python
distribution with a collection of 1,000+ open source packages with free community support.
Anaconda is platform-agnostic, so you can use it whether you are on Windows, macOS or Linux.

• Python: Python is an interpreted, object-oriented, high-level programming language with dynamic


semantics. Its high-level built in data structures, combined with dynamic typing and dynamic
binding, make it very attractive for Rapid Application Development, as well as for use as a scripting
or glue language to connect existing components together. Python's simple, easy to learn syntax
emphasizes readability and therefore reduces the cost of program maintenance.

5. NON-FUNCTIONAL REQUIREMENTS
5.1 PERFORMANCE REQUIREMENTS
Mood player requires a small amount of disk space for installation-10MB.It is characterized by fast loading
and executing times. It‘s not a heavy program and it can works while other programs are running.

5.2 SAFETY REQUIREMENTS


There are no specific safety requirements as Mood player cannot make user’s computer malfunction in
any way.

5.3 SEQURITY REQUIREMENTS


Although the system is not critical, and will not be used for network connections, it is still important to
protect the user from local attacks. All input will be checked to make sure it will not cause buffer overflows,
or add to system instability.
15
MOOD PLAYER

5.4 PORTABILITY
1. The system must be able to run on Windows systems.
2. The system must be able to run on Macintosh systems.
3. The system must be able to run on Unix systems.
4. The code should be readable, well commented, and maintainable.
5. The system must be written in Python.
6. The GUI must be implemented in an existing library, specifically wxPython.

5.5 MAINTAINABILTY
Maintainability is very important for this system because another group will be maintaining it. Therefore,
it is very important that all programmers comment their code anytime something is unclear. Python makes
indentation important, therefore the code is guaranteed to be more readable. At the beginning of each
function there shall be PyDoc comments explaining what the function does and what input and output is
expected.

16
MOOD PLAYER

1.4UML DIAGRAMS
1.4.1 USE CASE DIAGRAM

MOOD PLAYER
ACCESS THE
SYSTEM

ADD SONGS

DELETE SONGS

PLAY SONGS

PAUSE, STOP AND


RESUME SONGS

ABOUT SYSTEM

ABOUT
STUDENT

USER CHANGE
VOLUME

17
MOOD PLAYER

1.4.2 SEQUENCE DIAGRAM

ADD AND STOP, ABOUT ABOUT


USER SYSTEM MEMORY DELETE RESUME STUDENT SYSTEM
SONGS AND PAUSE
SONG

Access the
system

System
access the
memory Add and
Delete
songs

Pause,
stop and
Resume

Know
about
student

Know
about
system

User exits
the system

18
MOOD PLAYER

1.4.3 ENTITY RELATIONSHIP DIAGRAM

ACCESS MOOD PLAYER


USER
THE
SYSTEM

DELETE
SONGS
FROM
SYSTEM

ADD
SONGS
KNOW FROM
MEMORY
ABOUT
STUDENT

KNOW
ABOUT
SYSTEM MOOD PLAYER

SONG
STOP RECENTLY
SONG PLAYED

PAUSE
SONG

RESUME
SONG
SONG
19
MOOD PLAYER

1.4.4 DATA FLOW DIAGRAM

1.4.4.1 ZERO LEVEL DIAGRAM

User Input

USER MOOD PLAYER

Show Result

20
MOOD PLAYER

1.4.4.2 ONE LEVEL DIAGRAM

Taking
Instructions
from user

User Input for entering in OS or Memory


MEMORY/
OPERATING
SYSTEM

USER
MENU

Further taking
user
instructions

MOOD PLAYER
Show Result

21
MOOD PLAYER

1.4.4.3 TWO LEVEL DIAGRAM

ACCESS THE
USER SYSTEM

MANAGE
MODULES

CHANGE VOLUME

ABOUT STUDENT
STOP SONGS

RESUME SONGS ABOUT SYSTEM

PAUSE SONGS
EXIT SYSTEM

ADD SONGS DELETE SONGS PLAY SONGS

22
MOOD PLAYER

CHAPTER 2 TRAINING WORK UNDERTAKEN


2.1 ABOUT TRAINING MODULES
2.1.1 WEEK 01
INTRODUCTION TO PROGRAMMING USING PYTHON
• Algorithm, flowchart and pseudo code.
• Evolution of programming, programming paradigms and important characteristics of
programming.
• Evolution of python language and its properties.
• Python 2 vs python 3.
• Installation of Anaconda and working with python.
• Popular python IDE’s.
• General introduction to python and the classes.

BASICS OF PYTHON – STRUCTURE, TYPE CASTING, MEMORY


MANAGEMENT AND STRINGS
• Understanding python variables.
• Declaring and using numeric datatypes – int, float and complex.
• Python basic operators.
• Understanding python basic blocks.
• Python strings, string methods and formatting.
• Using string datatype and string operations.
• Mutability of datatypes.

PYTHON DATATYPES SUCH AS LIST, TUPLES, DICTIONARY AND SETS


• Python collection – tuples, dictionaries, sets and lists.
• List manipulation using built in methods.
• Set manipulation using built in methods.
• Dictionary manipulation using built in methods.
• Tuple manipulation using built in methods.
• Defining list and list slicing.

PYTHON PROGRAM FLOW CPNTROL


• Conditional blocks using if, else and elif.
• Simple for loops in python.
• For loop using ranges, string, list and dictionaries.
23
MOOD PLAYER

• Use of while loops in python.


• Loop manipulation using pass, continue, break and else
• Programming using python conditional and loops blocks.

2.1.2 WEEK 02
FUNCTIONS IN PYTHON
• Programming using functions, modules and external packages.
• Definition and use, arguments, scope, recursion.
• Input and eval functions.
• Different techniques of function calling in python.
• Organizing python codes using functions.
• Powerful lambda function in python.
• Understanding packages.
• Modules and import packages.
• Importing own module as well as external modules.
• Organizing python projects into modules.

OOPS USING PYTHON


• Concept of classes, Objects and instances.
• Constructor, Class attributes and destructors.
• Inheritance, overloading and overriding functions.

2.1.3 WEEK 03
FILE HANDLING IN PYTHON
• File handling in python.
• Understanding read(), readline() and readlines() functions.
• Understanding write() and writelines() functions.
• Manipulating file pointer using seek.
• Reading and manipulating CSV and JSON files.

DATABASE CONNECTIVITY IN PYTHON


• Database connectivity in python.
• MongoDB database connections in python.
• Creating tables and searching for values.

2.1.4 WEEK 04
24
MOOD PLAYER

INTRODUCTION TO GUI DEVELOPMENT USING PYTHON


• GUI development with Tkinter.
• Introduction to Django and Flask frameworks in python.

BASICS OF MACHINE LEARNING USING PYTHON


• Different techniques of Regression, Classification and Clustering.
• Machine learning related libraries’ in python – PANDAS, NUMPY.
• Machine learning relate libraries’ in python – SCIKIT-LEARN, MATPLOTLIB.

2.1.5 WEEK 05
PYTHON MULTITHREADING
• Understanding threads.
• Forking threads, synchronizing the threads.
• Programming using multithreading’s.

CONTACTING USER THROUGH EMAILS USING PYTHON


• Installing SMTP python module.
• Sending email.
• Reading from file and sending emails to all users addressing them directly for marketing.

2.1.6 WEEK 06
INTRODUCTION TO RASPBERRY PI
• Different models of raspberry pi.
• Why raspberry pi.
• Applications of raspberry pi.

PREPARING YOUR RASPBERRY PI FOR FIRST USE


• Different operating system for raspberry pi.
• Getting started with NOOBS.
• Booting for the first time.

INTRODUCTION TO MICROCONTROLLER
• Difference between microcontroller and microprocessor.
• Architecture and hardware applications.
• Introduction to ARM, SOC and GPIOs.
25
MOOD PLAYER

WORKING WITH SENSORS


• LED
• Infrared sensors.
• Ultrasonic sensors.
• LCD 16x2
• DHT 11
• Storing and fetching data from sensor using tkinter GUI firebase.

2.2 LIBRARIES USED

Libraries that are used in the project mood player using python as main technology are as follows

• OS

The OS module in python provides functions for interacting with the operating system. OS, comes
under Python’s standard utility modules. This module provides a portable way of using operating
system dependent functionality. The *os* and *os.path* modules include many functions to
interact with the file system. The main purpose of the OS module is to interact with your operating
system. The primary use I find for it is to create folders, remove folders, move folders, and
sometimes change the working directory. You can also access the names of files within a file path
by doing listdir().The os module is a part of the standard library, or stdlib, within Python 3. This
means that it comes with your Python installation, but you still must import it.

• THREADING

Probably one of the largest drawbacks to the Python programming languages is that it is single-
threaded. This means that Python will only run on a single thread naturally. If you have a large
computational task, you might have already found that it takes Python a very long time to reach a
solution, and yet, your processor might sit at 5% usage or even less. There are quite a few solutions
to this problem, like threading, multiprocessing, and GPU programming. All of these are possible
with Python, and today we will be covering threading. So, what is threading within the frame of
Python? Threading is making use of idle processes, to give the appearance of parallel programming.
With threading alone in Python, this is not really the case, but we can indeed use threading to make
use of idle times and still gain some significant performance increases. The Python standard library
provides threading, which contains most of the primitives you’ll see in this article. Thread, in this
module, nicely encapsulates threads, providing a clean interface to work with them.

26
MOOD PLAYER

• TIME

Python has defined a module, “time” which allows us to handle various operations regarding time,
its conversions and representations, which find its use in various applications in life. The beginning
of time is started measuring from 1 January, 12:00 am, 1970 and this very time is termed as “epoch”
in Python. Python has a module named time to handle time-related tasks. To use functions defined
in the module, we need to import the module first. This module provides a number of functions to
deal with dates and the time within a day. It’s a thin layer on top of the C runtime library.

• TKINTER

Python offers multiple options for developing GUI (Graphical User Interface). Out of all the GUI methods,
tkinter is most commonly used method. It is a standard Python interface to the Tk GUI toolkit shipped
with Python. Python with tkinter outputs the fastest and easiest way to create the GUI applications.
Creating a GUI using tkinter is an easy task.
To create a tkinter:
1. Importing the module – tkinter
2. Create the main window (container)
3. Add any number of widgets to the main window
4. Apply the event Trigger on the widgets.
Importing tkinter is same as importing any other module in the python code. Note that the name of the
module in Python 2.x is ‘Tkinter’ and in Python 3.x is ‘tkinter’.
• Tkinter.messagebox

• The tkMessageBox module is used to display message boxes in your applications. This module
provides a number of functions that you can use to display an appropriate message.

• Some of these functions are showinfo, showwarning, showerror, askquestion, askokcancel,


askyesno, and askretryignore.

• FILEDIALOG

tkFileDialog is a module with open and save dialog functions.


Instead of implementing those in Tkinter GUI on your own.
The askopenfilename function to creates an file dialog object. The extensions are shown in the
bottom of the form (Files of type).

27
MOOD PLAYER

• MUTAGEN

Mutagen is a Python module to handle audio metadata. It supports FLAC, M4A, MP3, Ogg FLAC,
Ogg Speex, Ogg Theora, Ogg Vorbis, True Audio, and WavPack audio files. All versions of ID3v2
are supported, and all standard ID3v2.4 frames are parsed. It can read Xing headers to accurately
calculate the bitrate and length of MP3s. ID3 and APEv2 tags can be edited regardless of audio
format. It can also manipulate Ogg streams on an individual packet/page level.

• PYGAME

• The pygame library is an open-source module for the Python programming language specifically
intended to help you make games and other multimedia applications. Built on top of the highly
portable SDL (Simple DirectMedia Layer) development library, pygame can run across many
platforms and operating systems.

• By using the pygame module, you can control the logic and graphics of your games without
worrying about the backend complexities required for working with video and audio.

• This tutorial will first go through installing pygame into your Python programming environment,
and then walk you through creating a template to develop games with pygame and Python 3.

28
MOOD PLAYER

CHAPTER 3 RESULTS AND DISCUSSION 3.1 SCREENSHOTS

29
MOOD PLAYER

30
MOOD PLAYER

31
MOOD PLAYER

3.2 HOW TO ACCESS THE SYSTEM

1. Run the project code on Anaconda IDLE.

2. After that you will get the user interface of the system having various functions like add song,
delete song, resume song, stop song, pause song, about system, about student and change volume.

3. Add song in the mood player by clicking on add button.

4. Then play song which you want.

5. If want to remove the song then use delete button.

6. You can add song using file button present in the menu bar.

7. Exit using exit button or quit symbol of window.

32
MOOD PLAYER

CHAPTER 4 CONCLUSION AND FUTURE SCOPE

4.1 CONCLUSION
The project titled Mood Player App is an python based application that enables people
to listen and enjoy the music beats . The aim of the project was to make listening to
music in your life easy and easier with simple designed screens.The project has been
completed successfully with the maximum satisfaction. The constraints are met and
overcome successfully. The system is designed as like it was decided in the
design phase. The project gives good idea on developing a user-
friendly application satisfying the user.The system is very flexible and versatile. This
application has a user-friendly screen that enables the user to use without any
inconvenience. Validation checks induced have greatly reduced errors. Provisions
have been made to upgrade the software. The application has been tested with live
data and has provided a successful result. Hence the software has proved to work
efficiently.The system created met its objectives, by being simple to use, easy to
download from app store.This software is developed with scalability in mind.
Additional modules can be easily added when necessary. The software is developed
with modular approach. All modules in the system have been tested with valid data
and invalid data and everything work successfully.However there is still a lot of scope
for future improvement and add on in functionality. Some of the major ones being
developing for other mobile operating system like windows, etc.

4.2 FUTURESCOPE
The Future Prospects are as follows:
1. Windows application development for other mac and Linux, so that the Mood
Music Player application is easily accessible by many user listen easy mode anywhere
and enjoy the music beats.The core benefit of Mood application development lies in
33
MOOD PLAYER

improved quality of interface through timely response. Moreover, windows


applications support vital like Bluetooth connectivity, Aux Connectivity reliably and
correctly.

2. The system could also be enhanced by adding the voice response system through
the voice control system, which would help the user and their loved ones to enjoy the
music beats more precisely and accurately.

3. We can add Calculate movement speed from GPS and it is volume automatic UP
in the system as an up-gradation to the system which not only bring this application in
decreasing distraction while working on other projects or work.

4. We can add mixable audio- effects : band graphic EQUALIZER with


default/customizable presents, Stereo widening effect, reverb effects (large hall,

medium hall, plate, small room, medium room, and large room), bass boast effect,
volume control.Due to time constraints these ideas where not brought to light in the
project.

34
MOOD PLAYER

REFERENCES
Billsus, D., & Pazzani, M. (1998). Learning collaborative information
filters. Paper presented at the Proceedings of the Fifteenth
International Conference on Machine Learning, Madison, Wisconson,
USA. 46-54. Retrieved from
http://portal.acm.org/citation.cfm?coll=GUIDE&dl=GUIDE&id=657311
Burback, R. (1998). A cyclical methodology, introduction. Retrieved
March 10, 2008, from Ronald LeRoi Burback
Christakou, C., & Stafylopatis, A. (2005). A hybrid movie recommender
system based on neural networks. Paper presented at the 5th
International Conference on Intelligent Systems Design and
Applications, 500-505. doi:10.1109/ISDA.2005.9
Droux, S. (2008). Vogoo - recommendation engine and collaborative
filtering. Retrieved March 30, 2008, from http://www.vogooapi.
com/
E. Peis, J. M. Morales-del-Castillo (2008) Semantic Recommender
Systems. Analysis of the state of the topic. Web:
www.hipertext.net, ISSN 1695-5498.
Gediminas Adomavicius, Alexander Tuzhilin (2005). Toward the Next
Generation of Recommender Systems: A Survey of the State-of-the-
Art and Possible Extensions. IEEE, Transactions on Knowledge and
Data Engineering, 734-749.
GroupLens research. (2008). Retrieved March 29, 2008, from
http://www.grouplens.org/
Klir, G., & Folger, T. (1988). Equivalence and similarity relations.
Fuzzy sets, uncertainty, and information (1st ed., pp. 82-85).
Upper Saddle River, NJ, USA: Prentice-Hall, Inc. Kumar P, Gopalan S, Sridhar V (2005). Context enabled
multi-CBR based
recommendation engine for e-commerce. IEEE International
Conference on e-Business Engineering, 237-255.
Machine learning. (2008). Retrieved March 27, 2008, from
http://en.wikipedia.org/wiki/Machine_learning
Olfa Nasraoui, Mrudula Pavuluri (2004). Accurate web recommendations
based on profile-specific url-predictor neural networks.. ACM,
Proceedings of the 13th international World Wide Web conference on
Alternate track papers and posters, 300-301.
Pereira, R., Ricarte, I., & Gomide, F. (2006). Fuzzy relational
ontological model in information search systems. In E. Sanchez, &
F. Harmelen (Eds.), Fuzzy logic and the semantic web (1st ed., ).
New York, NY, USA: Elsevier Science Inc. Retrieved from
http://books.google.com/books?hl=en&lr=&id=Cidej8b4ESIC&oi=fnd&pg=
PA395&dq=%22Pereira%22+%22Fuzzy+Relational+Ontological+Model+in+In

35

You might also like