Skip to main content

polymuse-future

Making the music real In development phase, once completed repo will change name to polymuse

Features

Need to discuss .......

Table of Contents

  • Overview
  • Components
  • Links
  • Installing ..
  • Training(Note model)
  • Loading
  • Player

Overview

This is BE project aiming to generate the musical patterns from the midi file that are the audibes to ears

Components

Will be added soon

This to ...

Installing ...

This is pre complete installation, package may not run as expected

$ pip install polymuse

OR

$ pip install polymuse-future

install the polymuse-future recommended

Train

Only NOTE training available

Note Training

from polymuse import train

F = dataset_path # It should be absolute PATH(recomended) where midi file are

train.train_gpu(F, maxx = 5) #Only if GPU is available, It uses CuDNNLstm version which performs operation on GPU
train.train(F, maxx = 5) #if GPU version do not works 

@dataset_path : It should be absolute PATH(recomended) where midi file are @maxx : It is parameters that specifies maximum no of files used to training in case there are large no of files in dataset_path given

This snapshot will train the model on dataset given, 3 files will generated and stored in following dir strucure : .h5_models :...chorus
:....... stateless
:...........wlvv.h5
:...drum
:......stateless
:...........vyvh.h5
:...lead
:......stateless
:.......... vyvh.h5

Load Pretrain Models

Below code snapshot downloads the default model, and make above directory structure in current working directory

from polymuse import loader
loader.load(mname = 'default')

Load sample midis

Below code snapshot downloads the default midi and download in current directory

from polymuse import loader
loader.load_midi()

Note Player

Before using the player please train the models on dataset or load pre trained models

from polymuse import player
# Before this please make sure the h5_models are loaded locally

midi_file = "F:\\rushikesh\\project\\dataset\\lakh_dataset\\Kenny G" # directory where midi file will
midi_file = dutils.get_all_files(F)[0] # Midi file must be of atleast 3 tracks

player.play_3_track_no_time(midi_file, midi_fname = 'midi00')

The above will store midi file in current directory with file name midi00XXX

Metadata

Release files for polymuse-future 0.0.81

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for polymuse-future 0.0.81
File Size Uploaded
polymuse-future-0.0.81.tar.gz 35.5 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for polymuse-future 0.0.81
File Interpreter ABI Platform
polymuse_future-0.0.81-py3-none-any.whl Python 3 none any Details

Total release size: 82.0 kB

Release files / polymuse-future-0.0.81.tar.gz

Download URL polymuse-future-0.0.81.tar.gz
Size 35.5 kB
Tags Source
SHA-256 checksum
How to use checksums
cdc86248888a4407df8df9ba4b1051b77899e84be5c501cc02eeaaefb8ea8895
BLAKE2b-256 checksum
How to use checksums
c31a63f14d98952f1c7ed32fdc9195be2023f0d920bf8a6e38dcb83c3d7dc8dc
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/1.13.0 pkginfo/1.5.0.1 requests/2.21.0 setuptools/41.0.1 requests-toolbelt/0.9.1 tqdm/4.31.1 CPython/3.7.3

Release files / polymuse_future-0.0.81-py3-none-any.whl

Download URL polymuse_future-0.0.81-py3-none-any.whl
Size 46.5 kB
Tags Python 3
SHA-256 checksum
How to use checksums
0956bf2efc39acdfc5a9e4e86152262ea6ab2d4ea8bf1b5d0a637061ba22f1eb
BLAKE2b-256 checksum
How to use checksums
edd0d2738d838d7e17506dd31d112efa7a3b7f16bb3a7446534dd69bee114ad5
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/1.13.0 pkginfo/1.5.0.1 requests/2.21.0 setuptools/41.0.1 requests-toolbelt/0.9.1 tqdm/4.31.1 CPython/3.7.3

Release history Release notifications | RSS feed

This release

0.0.81 This release

2 release files

0.0.80

2 release files

0.0.79

2 release files

0.0.78

2 release files

0.0.76

2 release files

0.0.71

2 release files

0.0.70

2 release files

0.0.69

2 release files

0.0.67

2 release files

0.0.61

2 release files

0.0.55

2 release files

0.0.40

2 release files

0.0.3

2 release files

0.0.2

2 release files

0.0.1

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page