accompy 0.0.4__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- accompy/__init__.py +70 -0
- accompy/accompy.py +969 -0
- accompy/patterns.py +490 -0
- accompy/setup_utils.py +401 -0
- accompy-0.0.4.dist-info/METADATA +531 -0
- accompy-0.0.4.dist-info/RECORD +8 -0
- accompy-0.0.4.dist-info/WHEEL +4 -0
- accompy-0.0.4.dist-info/licenses/LICENSE +21 -0
accompy/__init__.py
ADDED
|
@@ -0,0 +1,70 @@
|
|
|
1
|
+
"""
|
|
2
|
+
accompy - Generate accompaniment audio from chord charts.
|
|
3
|
+
|
|
4
|
+
Generate backing tracks with bass, drums, piano from chord progressions,
|
|
5
|
+
similar to iReal Pro.
|
|
6
|
+
|
|
7
|
+
Example:
|
|
8
|
+
>>> from accompy import generate_accompaniment, Score
|
|
9
|
+
>>>
|
|
10
|
+
>>> # Simple usage
|
|
11
|
+
>>> path = generate_accompaniment("| C | Am | F | G |", style="bossa", tempo=120)
|
|
12
|
+
>>>
|
|
13
|
+
>>> # With Score object for more control
|
|
14
|
+
>>> score = Score.from_string("| Dm7 | G7 | C^7 | A7b9 |", title="ii-V-I")
|
|
15
|
+
>>> path = generate_accompaniment(score, style="swing", tempo=160, repeats=4)
|
|
16
|
+
|
|
17
|
+
Available styles: swing, bossa, rock, ballad, funk, latin, waltz, blues
|
|
18
|
+
"""
|
|
19
|
+
|
|
20
|
+
__version__ = "0.1.0"
|
|
21
|
+
|
|
22
|
+
from .accompy import (
|
|
23
|
+
# Main API
|
|
24
|
+
generate_accompaniment,
|
|
25
|
+
check_dependencies,
|
|
26
|
+
print_setup_instructions,
|
|
27
|
+
|
|
28
|
+
# Data classes
|
|
29
|
+
Score,
|
|
30
|
+
ChordEvent,
|
|
31
|
+
AccompanimentConfig,
|
|
32
|
+
)
|
|
33
|
+
|
|
34
|
+
from .patterns import (
|
|
35
|
+
DrumPattern,
|
|
36
|
+
BassPattern,
|
|
37
|
+
CompingPattern,
|
|
38
|
+
get_patterns,
|
|
39
|
+
)
|
|
40
|
+
|
|
41
|
+
from .setup_utils import (
|
|
42
|
+
verify_and_setup,
|
|
43
|
+
setup_soundfont,
|
|
44
|
+
diagnose_issues,
|
|
45
|
+
print_diagnostic_report,
|
|
46
|
+
)
|
|
47
|
+
|
|
48
|
+
__all__ = [
|
|
49
|
+
# Core function
|
|
50
|
+
"generate_accompaniment",
|
|
51
|
+
|
|
52
|
+
# Data structures
|
|
53
|
+
"Score",
|
|
54
|
+
"ChordEvent",
|
|
55
|
+
"AccompanimentConfig",
|
|
56
|
+
|
|
57
|
+
# Pattern types
|
|
58
|
+
"DrumPattern",
|
|
59
|
+
"BassPattern",
|
|
60
|
+
"CompingPattern",
|
|
61
|
+
"get_patterns",
|
|
62
|
+
|
|
63
|
+
# Setup utilities
|
|
64
|
+
"check_dependencies",
|
|
65
|
+
"print_setup_instructions",
|
|
66
|
+
"verify_and_setup",
|
|
67
|
+
"setup_soundfont",
|
|
68
|
+
"diagnose_issues",
|
|
69
|
+
"print_diagnostic_report",
|
|
70
|
+
]
|