music-dsl 2.1.0__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.
- music_dsl-2.1.0/CHANGELOG.md +43 -0
- music_dsl-2.1.0/LICENSE +21 -0
- music_dsl-2.1.0/MANIFEST.in +18 -0
- music_dsl-2.1.0/PKG-INFO +865 -0
- music_dsl-2.1.0/README.md +829 -0
- music_dsl-2.1.0/install.sh +69 -0
- music_dsl-2.1.0/music/__init__.py +6 -0
- music_dsl-2.1.0/music/__main__.py +2 -0
- music_dsl-2.1.0/music/_chords.py +62 -0
- music_dsl-2.1.0/music/_constants.py +22 -0
- music_dsl-2.1.0/music/_durations.py +19 -0
- music_dsl-2.1.0/music/_engine.py +154 -0
- music_dsl-2.1.0/music/_instruments.py +653 -0
- music_dsl-2.1.0/music/_keys.py +50 -0
- music_dsl-2.1.0/music/_midi.py +638 -0
- music_dsl-2.1.0/music/_params.py +24 -0
- music_dsl-2.1.0/music/_pitch.py +25 -0
- music_dsl-2.1.0/music/_waveform.py +193 -0
- music_dsl-2.1.0/music/cli.py +101 -0
- music_dsl-2.1.0/music/models.py +1161 -0
- music_dsl-2.1.0/music/parser.py +531 -0
- music_dsl-2.1.0/music/samples/chaos.music +119 -0
- music_dsl-2.1.0/music/samples/chiptune_quest.music +260 -0
- music_dsl-2.1.0/music/samples/cyberpunk_chase.music +238 -0
- music_dsl-2.1.0/music/samples/empire_fire.music +112 -0
- music_dsl-2.1.0/music/samples/funk_groove.music +321 -0
- music_dsl-2.1.0/music/samples/fur_elise.mid +0 -0
- music_dsl-2.1.0/music/samples/iron_clash.music +167 -0
- music_dsl-2.1.0/music/samples/jazz_lounge.music +268 -0
- music_dsl-2.1.0/music/samples/kavinsky-nightcall.mid +0 -0
- music_dsl-2.1.0/music/samples/lantern_walk.music +255 -0
- music_dsl-2.1.0/music/samples/last_stand.music +126 -0
- music_dsl-2.1.0/music/samples/machine.music +164 -0
- music_dsl-2.1.0/music/samples/medieval_tavern.music +217 -0
- music_dsl-2.1.0/music/samples/midnight_horror.music +324 -0
- music_dsl-2.1.0/music/samples/neon1.music +356 -0
- music_dsl-2.1.0/music/samples/night_drive.music +149 -0
- music_dsl-2.1.0/music/samples/ocean_ambient.music +280 -0
- music_dsl-2.1.0/music/samples/skybound.music +156 -0
- music_dsl-2.1.0/music/samples/tragedy.music +164 -0
- music_dsl-2.1.0/music_dsl.egg-info/SOURCES.txt +52 -0
- music_dsl-2.1.0/pyproject.toml +57 -0
- music_dsl-2.1.0/setup.cfg +4 -0
- music_dsl-2.1.0/tests/__init__.py +0 -0
- music_dsl-2.1.0/tests/conftest.py +4 -0
- music_dsl-2.1.0/tests/test_chords.py +172 -0
- music_dsl-2.1.0/tests/test_durations.py +87 -0
- music_dsl-2.1.0/tests/test_engine.py +77 -0
- music_dsl-2.1.0/tests/test_instruments.py +168 -0
- music_dsl-2.1.0/tests/test_keys.py +134 -0
- music_dsl-2.1.0/tests/test_midi.py +373 -0
- music_dsl-2.1.0/tests/test_models.py +549 -0
- music_dsl-2.1.0/tests/test_parser.py +203 -0
- music_dsl-2.1.0/tests/test_pitch.py +107 -0
- music_dsl-2.1.0/tests/test_regressions.py +724 -0
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
# Changelog
|
|
2
|
+
|
|
3
|
+
## 2.1.0
|
|
4
|
+
|
|
5
|
+
First release on PyPI.
|
|
6
|
+
|
|
7
|
+
### Fixed
|
|
8
|
+
|
|
9
|
+
These were all in the language reference, but did nothing. They work now.
|
|
10
|
+
|
|
11
|
+
- `humanize` no longer crashes the player
|
|
12
|
+
- track `reverb:` and `delay:` are now actually heard
|
|
13
|
+
- `vibrato` keeps the instrument sound instead of replacing it with a sine
|
|
14
|
+
- `legato` (`C4~`), `@ arp up`, and `voice:` now do something
|
|
15
|
+
- dynamics (`mf`, `f`, …) now change volume
|
|
16
|
+
- `vibrato:`, `tremolo:`, `portamento:`, `voice:` and `?0.5` now keep going
|
|
17
|
+
on to the next line
|
|
18
|
+
- accents, staccato, legato and grace notes survive repeats, patterns and
|
|
19
|
+
`$dc` / `$ds`
|
|
20
|
+
- more than one `$dc` or `$ds` per track now works
|
|
21
|
+
- `( ... )` chords follow the key signature
|
|
22
|
+
- `@pattern name = notes` works
|
|
23
|
+
- `lfo:filter` works in a track body
|
|
24
|
+
- `key: F#`, `key: C#` and `key: Cb` no longer crash
|
|
25
|
+
- `downsample:` works on stereo; `portamento:` no longer crashes on saw,
|
|
26
|
+
square, guitar, kick and others
|
|
27
|
+
- editing a track re-renders the song
|
|
28
|
+
- several directives on one line work: `tempo: 120 name: X key: C`
|
|
29
|
+
- `to_text()` keeps accents, staccato, legato and grace notes
|
|
30
|
+
- `music --help` and `music --version` exist
|
|
31
|
+
|
|
32
|
+
### Added
|
|
33
|
+
|
|
34
|
+
- `@ arp` arpeggios
|
|
35
|
+
- `music/samples/lantern_walk.music`, a song that uses all of the above
|
|
36
|
+
- `pip install ".[playback]"` for speaker output
|
|
37
|
+
- tests: 301 → 619
|
|
38
|
+
|
|
39
|
+
### Known gaps
|
|
40
|
+
|
|
41
|
+
- `fp` uses only its starting volume, with no fade.
|
|
42
|
+
- `to_text()` drops `vibrato`, `tremolo`, `humanize` and `voice:`.
|
|
43
|
+
- Importing a MIDI file can give a very long song.
|
music_dsl-2.1.0/LICENSE
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2026 Neil
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
# The sdist must not carry setuptools' own output: build/ and
|
|
2
|
+
# music_dsl.egg-info/ are regenerable, and the copy of the library under
|
|
3
|
+
# build/lib/ goes stale the moment a source file changes.
|
|
4
|
+
prune build
|
|
5
|
+
prune dist
|
|
6
|
+
prune .pytest_cache
|
|
7
|
+
prune music_dsl.egg-info
|
|
8
|
+
global-exclude *.py[cod]
|
|
9
|
+
global-exclude __pycache__
|
|
10
|
+
|
|
11
|
+
include LICENSE
|
|
12
|
+
include README.md
|
|
13
|
+
include CHANGELOG.md
|
|
14
|
+
include install.sh
|
|
15
|
+
include pyproject.toml
|
|
16
|
+
|
|
17
|
+
recursive-include music/samples *.music *.mid
|
|
18
|
+
recursive-include tests *.py
|