Metadata-Version: 2.1
Name: giantmusictransformer
Version: 24.12.12
Summary: Fast multi-instrumental music transformer with true full MIDI instruments range, efficient encoding, octo-velocity and outro tokens
Home-page: https://github.com/asigalov61/giantmusictransformer
Author: Alex Lev
Author-email: Alex Lev <alexlev61@proton.me>
Maintainer-email: Alex Lev <alexlev61@proton.me>
License: Apache Software License 2.0
Project-URL: Homepage, https://github.com/asigalov61/giantmusictransformer
Project-URL: Examples, https://github.com/asigalov61/tegridymidi/giantmusictransformer/examples
Project-URL: Documentation, https://github.com/asigalov61/giantmusictransformer/docs
Project-URL: Repository, https://github.com/asigalov61/Giant-Music-Transformer
Project-URL: Issues, https://github.com/asigalov61/giantmusictransformer/issues
Project-URL: Discussions, https://github.com/asigalov61/giantmusictransformer/discussions
Project-URL: Models, https://huggingface.co/asigalov61/Giant-Music-Transformer
Project-URL: Demo, https://huggingface.co/spaces/asigalov61/Giant-Music-Transformer
Keywords: MIDI,music,music ai,music transformer,artificial instelligence
Classifier: Development Status :: 5 - Production/Stable
Classifier: Intended Audience :: Science/Research
Classifier: Topic :: Multimedia :: Sound/Audio :: MIDI
Classifier: License :: OSI Approved :: Apache Software License
Classifier: Operating System :: OS Independent
Classifier: Programming Language :: Python :: 3.6
Classifier: Programming Language :: Python :: 3.7
Classifier: Programming Language :: Python :: 3.8
Classifier: Programming Language :: Python :: 3.9
Classifier: Programming Language :: Python :: 3.10
Classifier: Programming Language :: Python :: 3.11
Classifier: Programming Language :: Python :: 3.12
Requires-Python: >=3.6
Description-Content-Type: text/markdown
License-File: LICENSE
Requires-Dist: tqdm
Requires-Dist: matplotlib
Requires-Dist: torch
Requires-Dist: einops
Requires-Dist: torch-summary
Requires-Dist: hf-transfer
Requires-Dist: huggingface_hub
Requires-Dist: ipywidgets

# Giant Music Transformer
## [Giant Music Transformer](https://github.com/asigalov61/Giant-Music-Transformer) as a PyPi package

![Giant-Music-Transformer-Artwork (10)](https://github.com/user-attachments/assets/e532fed2-4aee-44ba-bd72-e3ad3a2a4e1b)

***

## Install

```sh
pip install giantmusictransformer
```

#### (Optional) [FluidSynth](https://github.com/FluidSynth/fluidsynth/wiki/Download) for MIDI to Audio functinality

##### Ubuntu or Debian

```sh
sudo apt-get install fluidsynth
```

##### Windows (with [Chocolatey](https://github.com/chocolatey/choco))

```sh
choco install fluidsynth
```

***

## Quick-start use example

```python
import giantmusictransformer as gmt

# Load desired Giant Music Transformer model
# There are several to choose from...
model = gmt.load_model('medium')

# Get sample seed MIDI path
sample_midi_path = gmt.get_sample_midi_files()[6][1]

# Load seed MIDI
input_tokens = gmt.midi_to_tokens(sample_midi_path)

# Generate seed MIDI continuation
output_tokens = gmt.generate(model, input_tokens, 600, return_prime=True)

# Save output to MIDI
gmt.tokens_to_midi(output_tokens[0])
```

***

### Project Los Angeles
### Tegridy Code 2024
