audial-sdk 2.0.0__tar.gz → 2.0.1__tar.gz
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.
- {audial_sdk-2.0.0 → audial_sdk-2.0.1}/API_DOCUMENTATION.md +10 -1
- {audial_sdk-2.0.0 → audial_sdk-2.0.1}/CHANGELOG.md +13 -0
- {audial_sdk-2.0.0 → audial_sdk-2.0.1}/PKG-INFO +7 -2
- {audial_sdk-2.0.0 → audial_sdk-2.0.1}/README.md +6 -1
- {audial_sdk-2.0.0 → audial_sdk-2.0.1}/audial/__init__.py +1 -1
- {audial_sdk-2.0.0 → audial_sdk-2.0.1}/audial/cli/commands.py +9 -4
- {audial_sdk-2.0.0 → audial_sdk-2.0.1}/audial/functions/samples.py +3 -2
- {audial_sdk-2.0.0 → audial_sdk-2.0.1}/audial/functions/segment.py +19 -5
- {audial_sdk-2.0.0 → audial_sdk-2.0.1}/audial_sdk.egg-info/PKG-INFO +7 -2
- {audial_sdk-2.0.0 → audial_sdk-2.0.1}/setup.py +1 -1
- {audial_sdk-2.0.0 → audial_sdk-2.0.1}/tests/test_addons.py +34 -1
- {audial_sdk-2.0.0 → audial_sdk-2.0.1}/LICENSE +0 -0
- {audial_sdk-2.0.0 → audial_sdk-2.0.1}/MANIFEST.in +0 -0
- {audial_sdk-2.0.0 → audial_sdk-2.0.1}/audial/__main__.py +0 -0
- {audial_sdk-2.0.0 → audial_sdk-2.0.1}/audial/api/__init__.py +0 -0
- {audial_sdk-2.0.0 → audial_sdk-2.0.1}/audial/api/auth.py +0 -0
- {audial_sdk-2.0.0 → audial_sdk-2.0.1}/audial/api/constants.py +0 -0
- {audial_sdk-2.0.0 → audial_sdk-2.0.1}/audial/api/device_login.py +0 -0
- {audial_sdk-2.0.0 → audial_sdk-2.0.1}/audial/api/exceptions.py +0 -0
- {audial_sdk-2.0.0 → audial_sdk-2.0.1}/audial/api/proxy.py +0 -0
- {audial_sdk-2.0.0 → audial_sdk-2.0.1}/audial/cli/__init__.py +0 -0
- {audial_sdk-2.0.0 → audial_sdk-2.0.1}/audial/functions/__init__.py +0 -0
- {audial_sdk-2.0.0 → audial_sdk-2.0.1}/audial/functions/_addon.py +0 -0
- {audial_sdk-2.0.0 → audial_sdk-2.0.1}/audial/functions/analyze.py +0 -0
- {audial_sdk-2.0.0 → audial_sdk-2.0.1}/audial/functions/audio_features.py +0 -0
- {audial_sdk-2.0.0 → audial_sdk-2.0.1}/audial/functions/generate_music.py +0 -0
- {audial_sdk-2.0.0 → audial_sdk-2.0.1}/audial/functions/lyrics.py +0 -0
- {audial_sdk-2.0.0 → audial_sdk-2.0.1}/audial/functions/master.py +0 -0
- {audial_sdk-2.0.0 → audial_sdk-2.0.1}/audial/functions/midi.py +0 -0
- {audial_sdk-2.0.0 → audial_sdk-2.0.1}/audial/functions/sound2serum.py +0 -0
- {audial_sdk-2.0.0 → audial_sdk-2.0.1}/audial/functions/sound2vital.py +0 -0
- {audial_sdk-2.0.0 → audial_sdk-2.0.1}/audial/functions/stem_split.py +0 -0
- {audial_sdk-2.0.0 → audial_sdk-2.0.1}/audial/functions/tags.py +0 -0
- {audial_sdk-2.0.0 → audial_sdk-2.0.1}/audial/functions/text2vox.py +0 -0
- {audial_sdk-2.0.0 → audial_sdk-2.0.1}/audial/grid.py +0 -0
- {audial_sdk-2.0.0 → audial_sdk-2.0.1}/audial/lyrics.py +0 -0
- {audial_sdk-2.0.0 → audial_sdk-2.0.1}/audial/pipelines.py +0 -0
- {audial_sdk-2.0.0 → audial_sdk-2.0.1}/audial/status.py +0 -0
- {audial_sdk-2.0.0 → audial_sdk-2.0.1}/audial/usage.py +0 -0
- {audial_sdk-2.0.0 → audial_sdk-2.0.1}/audial/utils/__init__.py +0 -0
- {audial_sdk-2.0.0 → audial_sdk-2.0.1}/audial/utils/config.py +0 -0
- {audial_sdk-2.0.0 → audial_sdk-2.0.1}/audial/utils/file_utils.py +0 -0
- {audial_sdk-2.0.0 → audial_sdk-2.0.1}/audial/utils/results_manager.py +0 -0
- {audial_sdk-2.0.0 → audial_sdk-2.0.1}/audial/warmup.py +0 -0
- {audial_sdk-2.0.0 → audial_sdk-2.0.1}/audial_sdk.egg-info/SOURCES.txt +0 -0
- {audial_sdk-2.0.0 → audial_sdk-2.0.1}/audial_sdk.egg-info/dependency_links.txt +0 -0
- {audial_sdk-2.0.0 → audial_sdk-2.0.1}/audial_sdk.egg-info/entry_points.txt +0 -0
- {audial_sdk-2.0.0 → audial_sdk-2.0.1}/audial_sdk.egg-info/requires.txt +0 -0
- {audial_sdk-2.0.0 → audial_sdk-2.0.1}/audial_sdk.egg-info/top_level.txt +0 -0
- {audial_sdk-2.0.0 → audial_sdk-2.0.1}/requirements.txt +0 -0
- {audial_sdk-2.0.0 → audial_sdk-2.0.1}/setup.cfg +0 -0
- {audial_sdk-2.0.0 → audial_sdk-2.0.1}/tests/test_api_limit.py +0 -0
- {audial_sdk-2.0.0 → audial_sdk-2.0.1}/tests/test_device_login.py +0 -0
- {audial_sdk-2.0.0 → audial_sdk-2.0.1}/tests/test_examples.py +0 -0
- {audial_sdk-2.0.0 → audial_sdk-2.0.1}/tests/test_generate_music_metadata.py +0 -0
- {audial_sdk-2.0.0 → audial_sdk-2.0.1}/tests/test_generate_music_wait.py +0 -0
- {audial_sdk-2.0.0 → audial_sdk-2.0.1}/tests/test_grid.py +0 -0
- {audial_sdk-2.0.0 → audial_sdk-2.0.1}/tests/test_lyrics.py +0 -0
- {audial_sdk-2.0.0 → audial_sdk-2.0.1}/tests/test_pipelines.py +0 -0
- {audial_sdk-2.0.0 → audial_sdk-2.0.1}/tests/test_sound2serum.py +0 -0
- {audial_sdk-2.0.0 → audial_sdk-2.0.1}/tests/test_sound2vital.py +0 -0
- {audial_sdk-2.0.0 → audial_sdk-2.0.1}/tests/test_text2vox.py +0 -0
- {audial_sdk-2.0.0 → audial_sdk-2.0.1}/tests/test_warmup.py +0 -0
|
@@ -323,6 +323,14 @@ print(f"Key: {key}")
|
|
|
323
323
|
Analysis finds your track's sections, tempo, bars and key in about half a minute. Add audio
|
|
324
324
|
features, tags, lyrics or a sample pack afterwards, one call each.
|
|
325
325
|
|
|
326
|
+
**Short loops.** A clip of 30 s or less is analysed as a loop, by its length alone: `structure` is
|
|
327
|
+
`"loop"`, `tempo_mode` is `"constant"` and there is one section labelled `LOOP` (`start_bar` 1, no
|
|
328
|
+
fills). Its tempo is assumed from the length as a whole number of bars (1, 2, 4, 8 or 16); an
|
|
329
|
+
excerpt not cut on the bar keeps its measured tempo. The grid includes the downbeat at the clip
|
|
330
|
+
end, so `grid.bar_count` is the loop's bars + 1 (`sections[0]["bars"]` is its length). A sample
|
|
331
|
+
pack from a loop adds drum loops under `drum_loops/`. A clip under 1.5 s is refused with 400
|
|
332
|
+
`AUDIO_INVALID`; one with no steady beat fails with a plain message.
|
|
333
|
+
|
|
326
334
|
Send the mix: you get the sections, a tempo map and the key. No stems are needed, and nothing
|
|
327
335
|
has to be prepared. Without `features`, `segment()` is one call
|
|
328
336
|
(`POST /functions/run/segmentation`). It returns the analysis, in analysis format 5, and its
|
|
@@ -408,7 +416,8 @@ is in seconds on the track's timeline. Analyses made before format 5 are served
|
|
|
408
416
|
"time_signature": "4/4",
|
|
409
417
|
"key": "Bmin", # Cmaj, C#min, Bbmaj, ...; None when no key was found
|
|
410
418
|
"camelot": "10A", # 1A-12B; None when key is None
|
|
411
|
-
"structure": "dance", # "dance" (INTRO/UP/CHORUS/DOWN/OUTRO)
|
|
419
|
+
"structure": "dance", # "dance" (INTRO/UP/CHORUS/DOWN/OUTRO), "song" (INTRO/VERSE/UP/CHORUS/OUTRO)
|
|
420
|
+
# or "loop" (a clip of 30 s or less: one LOOP section, see below)
|
|
412
421
|
"bar1": 5.768, # the first downbeat
|
|
413
422
|
"grid": {"beat_count": 841, "bar_count": 208, "max_error_ms": 24.0, "pieces": [...]},
|
|
414
423
|
"lead_in": {"start": 0.0, "end": 5.768}, # None when bar 1 is at the start of the file
|
|
@@ -1,5 +1,18 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## 2.0.1
|
|
4
|
+
|
|
5
|
+
Short loops (documentation and the CLI; the API change is server-side, so 2.0.0 already gets it).
|
|
6
|
+
|
|
7
|
+
- A clip of 30 s or less is analysed as a loop: `structure` is `"loop"`, there is one section
|
|
8
|
+
labelled `LOOP` with its `bars`, and the tempo is fitted so the clip is a whole number of bars.
|
|
9
|
+
A loop's `grid` also holds the downbeat at the clip end, so `grid.bar_count` is its bars + 1.
|
|
10
|
+
`audial segment` prints a loop's own beats and bars.
|
|
11
|
+
- `generate_samples()` on a loop adds drum loops under `drum_loops/` (16, 8, 4 and 1 beats, as
|
|
12
|
+
many as fit).
|
|
13
|
+
- A clip under 1.5 s is refused before anything runs: `AudialAPIError` with `code ==
|
|
14
|
+
"AUDIO_INVALID"`. A clip with no steady beat fails with a plain message.
|
|
15
|
+
|
|
3
16
|
## 2.0.0
|
|
4
17
|
|
|
5
18
|
Analysis results are in analysis format 5, the same object the API serves and the website's JSON
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: audial-sdk
|
|
3
|
-
Version: 2.0.
|
|
3
|
+
Version: 2.0.1
|
|
4
4
|
Summary: Python SDK for Audial: AI stem splitting, mastering, MIDI generation, sample packs, song analysis (sections, tempo map, audio features, tags, timed lyrics), music generation, Vital and Serum 2 preset resynthesis, and vocal synthesis
|
|
5
5
|
Home-page: https://audialmusic.ai
|
|
6
6
|
Author: Audial Team
|
|
@@ -66,7 +66,7 @@ The Audial SDK provides a user-friendly interface to Audial's powerful audio pro
|
|
|
66
66
|
- **Audio Analysis**: Extract BPM, key signatures, and other audio metadata
|
|
67
67
|
- **Song Analysis**: Find a track's sections, tempo and bars in about half a minute, then add audio features, tags, timed lyrics or a sample pack, one call each
|
|
68
68
|
- **Audio Mastering**: Apply professional mastering to your tracks
|
|
69
|
-
- **Sample Pack Generation**: Create reusable samples from
|
|
69
|
+
- **Sample Pack Generation**: Create reusable samples from finished tracks or short loops
|
|
70
70
|
- **MIDI Generation**: Convert audio to MIDI data
|
|
71
71
|
- **Sound-to-Vital Resynthesis**: Turn one isolated sound (not a loop) into a Vital synth preset
|
|
72
72
|
- **Sound-to-Serum 2 Resynthesis**: Turn one isolated sound (not a loop) into a Serum 2 preset
|
|
@@ -351,6 +351,11 @@ Analysis finds your track's sections, tempo, bars and key in about half a minute
|
|
|
351
351
|
no stems are needed. Add audio features, tags, lyrics or a sample pack afterwards, one call each,
|
|
352
352
|
whenever you like.
|
|
353
353
|
|
|
354
|
+
A clip of 30 s or less is analysed as a loop: `structure` is `"loop"` and there is one `LOOP`
|
|
355
|
+
section, with the tempo fitted so the clip is a whole number of bars (`sections[0]["bars"]`). Its
|
|
356
|
+
sample pack adds drum loops under `drum_loops/`. Clips under 1.5 s are refused with
|
|
357
|
+
`AUDIO_INVALID`.
|
|
358
|
+
|
|
354
359
|
```python
|
|
355
360
|
song = audial.segment("path/to/audio.mp3", genre="Tech House")
|
|
356
361
|
|
|
@@ -14,7 +14,7 @@ The Audial SDK provides a user-friendly interface to Audial's powerful audio pro
|
|
|
14
14
|
- **Audio Analysis**: Extract BPM, key signatures, and other audio metadata
|
|
15
15
|
- **Song Analysis**: Find a track's sections, tempo and bars in about half a minute, then add audio features, tags, timed lyrics or a sample pack, one call each
|
|
16
16
|
- **Audio Mastering**: Apply professional mastering to your tracks
|
|
17
|
-
- **Sample Pack Generation**: Create reusable samples from
|
|
17
|
+
- **Sample Pack Generation**: Create reusable samples from finished tracks or short loops
|
|
18
18
|
- **MIDI Generation**: Convert audio to MIDI data
|
|
19
19
|
- **Sound-to-Vital Resynthesis**: Turn one isolated sound (not a loop) into a Vital synth preset
|
|
20
20
|
- **Sound-to-Serum 2 Resynthesis**: Turn one isolated sound (not a loop) into a Serum 2 preset
|
|
@@ -299,6 +299,11 @@ Analysis finds your track's sections, tempo, bars and key in about half a minute
|
|
|
299
299
|
no stems are needed. Add audio features, tags, lyrics or a sample pack afterwards, one call each,
|
|
300
300
|
whenever you like.
|
|
301
301
|
|
|
302
|
+
A clip of 30 s or less is analysed as a loop: `structure` is `"loop"` and there is one `LOOP`
|
|
303
|
+
section, with the tempo fitted so the clip is a whole number of bars (`sections[0]["bars"]`). Its
|
|
304
|
+
sample pack adds drum loops under `drum_loops/`. Clips under 1.5 s are refused with
|
|
305
|
+
`AUDIO_INVALID`.
|
|
306
|
+
|
|
302
307
|
```python
|
|
303
308
|
song = audial.segment("path/to/audio.mp3", genre="Tech House")
|
|
304
309
|
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
Audial SDK: A Python package for interacting with the Audial audio processing API.
|
|
3
3
|
"""
|
|
4
4
|
|
|
5
|
-
__version__ = "2.0.
|
|
5
|
+
__version__ = "2.0.1"
|
|
6
6
|
|
|
7
7
|
# Pipelines: multi-step jobs (audial.pipelines.run/get/cancel/list).
|
|
8
8
|
# Imported before the functions below, which build on it.
|
|
@@ -91,7 +91,7 @@ def setup_generate_samples_parser(subparsers):
|
|
|
91
91
|
"""Setup the parser for the generate-samples command."""
|
|
92
92
|
parser = subparsers.add_parser(
|
|
93
93
|
'generate-samples',
|
|
94
|
-
help='Generate a sample pack from
|
|
94
|
+
help='Generate a sample pack from a finished track or a short loop, or from an analysis with --analysis-id'
|
|
95
95
|
)
|
|
96
96
|
parser.add_argument('file_path', nargs='?', default=None,
|
|
97
97
|
help='Path to the audio file (leave out with --analysis-id)')
|
|
@@ -110,7 +110,7 @@ def setup_generate_samples_parser(subparsers):
|
|
|
110
110
|
|
|
111
111
|
|
|
112
112
|
SEGMENT_HELP = (
|
|
113
|
-
"Find a
|
|
113
|
+
"Find a song's or loop's sections, tempo and bars in about half a minute (a clip of 30 s or less is one LOOP section). "
|
|
114
114
|
"Add audio features, tags or lyrics afterwards with `audial features`, `audial tags` "
|
|
115
115
|
"and `audial lyrics` on the analysis id it prints"
|
|
116
116
|
)
|
|
@@ -119,7 +119,7 @@ SEGMENT_HELP = (
|
|
|
119
119
|
def setup_segment_parser(subparsers):
|
|
120
120
|
"""Setup the parser for the segment command."""
|
|
121
121
|
parser = subparsers.add_parser('segment', help=SEGMENT_HELP, description=SEGMENT_HELP)
|
|
122
|
-
parser.add_argument('file_path', help='Path to the audio file (the mix; no stems needed)')
|
|
122
|
+
parser.add_argument('file_path', help='Path to the audio file (the mix, or a loop of 30 s or less; no stems needed)')
|
|
123
123
|
parser.add_argument('--genre', default=None, choices=GENRE_CHOICES,
|
|
124
124
|
help='Genre of the track; it picks dance or song section names')
|
|
125
125
|
edm = parser.add_mutually_exclusive_group()
|
|
@@ -621,9 +621,14 @@ def _print_analysis(result: Dict[str, Any]) -> None:
|
|
|
621
621
|
grid = data.get("grid") if isinstance(data.get("grid"), dict) else {}
|
|
622
622
|
beats = grid.get("beat_count")
|
|
623
623
|
bars = grid.get("bar_count")
|
|
624
|
+
sections = data.get("sections") if isinstance(data.get("sections"), list) else []
|
|
625
|
+
# A loop's grid also holds the downbeat at the clip end, so a loop prints its own bars.
|
|
626
|
+
first = sections[0] if sections and isinstance(sections[0], dict) else {}
|
|
627
|
+
loop_bars = first.get("bars") if data.get("structure") == "loop" else None
|
|
628
|
+
if isinstance(loop_bars, int) and loop_bars > 0:
|
|
629
|
+
beats, bars = loop_bars * 4, loop_bars
|
|
624
630
|
if beats:
|
|
625
631
|
print(f"Beats: {beats}, bars: {bars}")
|
|
626
|
-
sections = data.get("sections") if isinstance(data.get("sections"), list) else []
|
|
627
632
|
if sections:
|
|
628
633
|
print("Sections:")
|
|
629
634
|
for section in sections:
|
|
@@ -96,7 +96,8 @@ def generate_samples(
|
|
|
96
96
|
max_wait: float = ADDON_DEFAULT_MAX_WAIT,
|
|
97
97
|
) -> Dict[str, Any]:
|
|
98
98
|
"""
|
|
99
|
-
Generate a sample pack: drums by type,
|
|
99
|
+
Generate a sample pack from a finished track or a short loop: drums by type,
|
|
100
|
+
bass and melody loops, and, from a loop, drum loops under ``drum_loops/``.
|
|
100
101
|
|
|
101
102
|
Give either a file or an analysis:
|
|
102
103
|
|
|
@@ -112,7 +113,7 @@ def generate_samples(
|
|
|
112
113
|
``wait_s`` seconds.
|
|
113
114
|
|
|
114
115
|
Args:
|
|
115
|
-
file_path (str, optional): Path to the audio file.
|
|
116
|
+
file_path (str, optional): Path to the audio file (a finished track, or a loop of 1.5 to 30 s).
|
|
116
117
|
job_type (str, optional): Type of sample pack job to run (default: "sample_pack").
|
|
117
118
|
components (List[str], optional): Components to include in the sample pack (default: ["drums", "bass", "melody"]).
|
|
118
119
|
genre (str, optional): Genre of the track (default: "Default"). Not
|
|
@@ -71,7 +71,7 @@ def segment(
|
|
|
71
71
|
max_wait: float = ANALYSIS_DEFAULT_MAX_WAIT,
|
|
72
72
|
) -> Dict[str, Any]:
|
|
73
73
|
"""
|
|
74
|
-
Analyse a
|
|
74
|
+
Analyse a song, or a loop of 30 s or less: its sections, tempo map, bars and key.
|
|
75
75
|
|
|
76
76
|
Analysis finds your track's sections, tempo and bars in about half a
|
|
77
77
|
minute. Send the mix: no stems are needed. Add audio features, tags,
|
|
@@ -91,15 +91,28 @@ def segment(
|
|
|
91
91
|
time is ``start + k * 60 / bpm``). ``audial.grid.beats_of(result)`` lists
|
|
92
92
|
them; ``expand_beats=True`` adds the lists to the result. See ``audial.grid``.
|
|
93
93
|
|
|
94
|
+
A clip of 30 s or less is a loop, decided by its length alone: ``structure``
|
|
95
|
+
is ``"loop"``, ``tempo_mode`` is ``"constant"`` and there is one section
|
|
96
|
+
labelled ``LOOP`` (with its ``bars``). Its tempo is assumed from the clip's
|
|
97
|
+
length as a whole number of bars (1, 2, 4, 8 or 16); if no whole-bar tempo
|
|
98
|
+
lines up, for example an excerpt not cut on the bar, the measured tempo is
|
|
99
|
+
used. A loop's ``grid`` includes the downbeat at the clip end, so its
|
|
100
|
+
``bar_count`` is the loop's bars + 1: the loop's length in bars is
|
|
101
|
+
``sections[0]["bars"]``. A clip with no steady beat is refused with a plain
|
|
102
|
+
message, and a clip under 1.5 s with ``AudialAPIError`` (``code ==
|
|
103
|
+
"AUDIO_INVALID"``). A sample pack made from a loop adds drum loops under
|
|
104
|
+
``drum_loops/``.
|
|
105
|
+
|
|
94
106
|
Cost: an analysis counts as one run. Everything added to it (features,
|
|
95
107
|
tags, lyrics, a sample pack) is included.
|
|
96
108
|
|
|
97
109
|
Args:
|
|
98
|
-
file_path (str): Path to the audio file (the full mix).
|
|
110
|
+
file_path (str): Path to the audio file (the full mix, or a loop of 30 s or less).
|
|
99
111
|
genre (str, optional): Genre of the track, from the list in
|
|
100
112
|
``VALID_GENRES``. It decides between dance section names (INTRO,
|
|
101
113
|
UP, CHORUS, DOWN, OUTRO) and song section names (INTRO, VERSE, UP,
|
|
102
|
-
CHORUS, OUTRO) when ``edm`` is not given.
|
|
114
|
+
CHORUS, OUTRO) when ``edm`` is not given. Not used for a loop (its
|
|
115
|
+
one section is LOOP).
|
|
103
116
|
edm (bool, optional): True for dance section names, False for song
|
|
104
117
|
section names. Default: from the genre, else from the audio.
|
|
105
118
|
features (List[str], optional): Add-ons to run with the analysis, as
|
|
@@ -137,8 +150,9 @@ def segment(
|
|
|
137
150
|
"time_signature": "4/4",
|
|
138
151
|
"key": "Bmin", # None when no key was found
|
|
139
152
|
"camelot": "10A", # None when key is None
|
|
140
|
-
"structure": "dance", # "dance" (INTRO/UP/CHORUS/DOWN/OUTRO)
|
|
141
|
-
#
|
|
153
|
+
"structure": "dance", # "dance" (INTRO/UP/CHORUS/DOWN/OUTRO),
|
|
154
|
+
# "song" (INTRO/VERSE/UP/CHORUS/OUTRO)
|
|
155
|
+
# or "loop" (a clip of 30 s or less: one LOOP)
|
|
142
156
|
"bar1": 5.768, # the first downbeat
|
|
143
157
|
"grid": {"beat_count": 841, "bar_count": 208, "max_error_ms": 24.0,
|
|
144
158
|
"pieces": [{"start": 0.171, "bpm": 128.99, "bar": -2,
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: audial-sdk
|
|
3
|
-
Version: 2.0.
|
|
3
|
+
Version: 2.0.1
|
|
4
4
|
Summary: Python SDK for Audial: AI stem splitting, mastering, MIDI generation, sample packs, song analysis (sections, tempo map, audio features, tags, timed lyrics), music generation, Vital and Serum 2 preset resynthesis, and vocal synthesis
|
|
5
5
|
Home-page: https://audialmusic.ai
|
|
6
6
|
Author: Audial Team
|
|
@@ -66,7 +66,7 @@ The Audial SDK provides a user-friendly interface to Audial's powerful audio pro
|
|
|
66
66
|
- **Audio Analysis**: Extract BPM, key signatures, and other audio metadata
|
|
67
67
|
- **Song Analysis**: Find a track's sections, tempo and bars in about half a minute, then add audio features, tags, timed lyrics or a sample pack, one call each
|
|
68
68
|
- **Audio Mastering**: Apply professional mastering to your tracks
|
|
69
|
-
- **Sample Pack Generation**: Create reusable samples from
|
|
69
|
+
- **Sample Pack Generation**: Create reusable samples from finished tracks or short loops
|
|
70
70
|
- **MIDI Generation**: Convert audio to MIDI data
|
|
71
71
|
- **Sound-to-Vital Resynthesis**: Turn one isolated sound (not a loop) into a Vital synth preset
|
|
72
72
|
- **Sound-to-Serum 2 Resynthesis**: Turn one isolated sound (not a loop) into a Serum 2 preset
|
|
@@ -351,6 +351,11 @@ Analysis finds your track's sections, tempo, bars and key in about half a minute
|
|
|
351
351
|
no stems are needed. Add audio features, tags, lyrics or a sample pack afterwards, one call each,
|
|
352
352
|
whenever you like.
|
|
353
353
|
|
|
354
|
+
A clip of 30 s or less is analysed as a loop: `structure` is `"loop"` and there is one `LOOP`
|
|
355
|
+
section, with the tempo fitted so the clip is a whole number of bars (`sections[0]["bars"]`). Its
|
|
356
|
+
sample pack adds drum loops under `drum_loops/`. Clips under 1.5 s are refused with
|
|
357
|
+
`AUDIO_INVALID`.
|
|
358
|
+
|
|
354
359
|
```python
|
|
355
360
|
song = audial.segment("path/to/audio.mp3", genre="Tech House")
|
|
356
361
|
|
|
@@ -24,7 +24,7 @@ DEV_REQUIRES = [
|
|
|
24
24
|
|
|
25
25
|
setup(
|
|
26
26
|
name="audial-sdk",
|
|
27
|
-
version="2.0.
|
|
27
|
+
version="2.0.1",
|
|
28
28
|
author="Audial Team",
|
|
29
29
|
author_email="support@audial.io",
|
|
30
30
|
description="Python SDK for Audial: AI stem splitting, mastering, MIDI generation, sample packs, song analysis (sections, tempo map, audio features, tags, timed lyrics), music generation, Vital and Serum 2 preset resynthesis, and vocal synthesis",
|
|
@@ -854,7 +854,7 @@ def test_status_names_cover_the_add_ons():
|
|
|
854
854
|
|
|
855
855
|
|
|
856
856
|
def test_version():
|
|
857
|
-
assert audial.__version__ == "2.0.
|
|
857
|
+
assert audial.__version__ == "2.0.1"
|
|
858
858
|
|
|
859
859
|
|
|
860
860
|
def test_segment_keeps_the_15_positional_order():
|
|
@@ -940,3 +940,36 @@ def test_view_object_takes_off_only_the_old_wrapper():
|
|
|
940
940
|
assert _addon.view_object({"audio_segmentation": {"format_version": 4}}) == {"format_version": 4}
|
|
941
941
|
assert _addon.view_object(FULL_VIEW) is FULL_VIEW
|
|
942
942
|
assert _addon.view_object(None) == {}
|
|
943
|
+
|
|
944
|
+
|
|
945
|
+
# A loop's analysis (format 5): 2 bars at 90 BPM. The grid also holds the downbeat at the clip end, so it counts
|
|
946
|
+
# 9 beats and 3 bars; the loop itself is sections[0]["bars"] long.
|
|
947
|
+
LOOP_RESULT = {
|
|
948
|
+
"analysis_id": "exe-loop",
|
|
949
|
+
"analysis": {
|
|
950
|
+
"format_version": 5, "duration": 5.333, "bpm": 90.0, "tempo_mode": "constant", "time_signature": "4/4",
|
|
951
|
+
"key": "Amin", "camelot": "8A", "structure": "loop", "bar1": 0.0,
|
|
952
|
+
"grid": {"beat_count": 9, "bar_count": 3, "max_error_ms": 0.0,
|
|
953
|
+
"pieces": [{"start": 0.0, "bpm": 90.0023, "bar": 1, "beat": 1, "count": 9}]},
|
|
954
|
+
"lead_in": None,
|
|
955
|
+
"sections": [{"label": "LOOP", "start": 0.0, "end": 5.333, "start_bar": 1, "bars": 2, "fills": []}],
|
|
956
|
+
},
|
|
957
|
+
}
|
|
958
|
+
|
|
959
|
+
|
|
960
|
+
def test_cli_segment_prints_a_loops_own_bars(audio_file, capsys):
|
|
961
|
+
with mock.patch("audial.cli.commands.segment", return_value=LOOP_RESULT), \
|
|
962
|
+
mock.patch("audial.cli.commands.warmup_reporter", return_value=None):
|
|
963
|
+
_cli(["segment", audio_file])
|
|
964
|
+
out = capsys.readouterr().out
|
|
965
|
+
assert "Beats: 8, bars: 2" in out
|
|
966
|
+
assert "LOOP" in out
|
|
967
|
+
|
|
968
|
+
|
|
969
|
+
def test_cli_segment_prints_a_songs_grid_totals(audio_file, capsys):
|
|
970
|
+
song = {"analysis_id": "exe-song", "analysis": dict(
|
|
971
|
+
LOOP_RESULT["analysis"], structure="dance", grid=dict(GRID), sections=[{"label": "INTRO", "start": 0.0}])}
|
|
972
|
+
with mock.patch("audial.cli.commands.segment", return_value=song), \
|
|
973
|
+
mock.patch("audial.cli.commands.warmup_reporter", return_value=None):
|
|
974
|
+
_cli(["segment", audio_file])
|
|
975
|
+
assert f"Beats: {GRID['beat_count']}, bars: {GRID['bar_count']}" in capsys.readouterr().out
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|