File size: 1,473 Bytes
d8a9127
 
a7f1eb3
d8a9127
 
 
736f3ee
d8a9127
 
 
736f3ee
d8a9127
 
a7f1eb3
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
736f3ee
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
---
title: NotaGen Inference
emoji: 🎵
colorFrom: blue
colorTo: purple
sdk: gradio
sdk_version: 5.48.0
app_file: app.py
pinned: false
license: mit
short_description: Generate symbolic music in ABC notation using NotaGen.
---

# NotaGen - Symbolic Music Generation

Generate symbolic music in ABC notation using NotaGen.

This space provides an API endpoint (`/infer`) for remote inference without local computation.

## Usage

### Web Interface
Simply enter the musical period, composer style, and instrumentation, then click "Generate ABC Notation".

### API Access

```python
from gradio_client import Client

client = Client("https://huggingface.co/spaces/<your-username>/<space-name>")

result = client.predict(
    period="Classical",
    composer="Mozart",
    instrumentation="Piano",
    api_name="/infer"
)

print(result)  # ABC notation string
```

## Parameters

- **period**: Musical period (e.g., Classical, Romantic, Baroque)
- **composer**: Composer style (e.g., Mozart, Chopin, Bach)
- **instrumentation**: Instruments (e.g., Piano, Violin, Orchestra)

## Output

Returns ABC notation as a plain text string. This can be converted to PDF, XML, MIDI, etc. using WeaveMuse or other ABC processing tools.

## Integration

This space is designed to work with [WeaveMuse](https://github.com/manoskary/weavemuse) for remote music generation without local GPU computation.

## Model

Uses the NotaGen model for symbolic music generation.

## License

MIT License