mxs-audio 0.6.7__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.
- mxs_audio-0.6.7/.github/workflows/ci.yml +80 -0
- mxs_audio-0.6.7/.gitignore +2 -0
- mxs_audio-0.6.7/CHANGELOG.md +251 -0
- mxs_audio-0.6.7/Cargo.lock +2018 -0
- mxs_audio-0.6.7/Cargo.toml +41 -0
- mxs_audio-0.6.7/LICENSE +21 -0
- mxs_audio-0.6.7/PKG-INFO +6 -0
- mxs_audio-0.6.7/README.md +211 -0
- mxs_audio-0.6.7/docs/effects.md +227 -0
- mxs_audio-0.6.7/docs/guide/architecture.md +94 -0
- mxs_audio-0.6.7/docs/guide/building.md +278 -0
- mxs_audio-0.6.7/docs/guide/events.md +173 -0
- mxs_audio-0.6.7/docs/guide/live.md +229 -0
- mxs_audio-0.6.7/docs/guide/reports.md +95 -0
- mxs_audio-0.6.7/docs/guide/samples.md +113 -0
- mxs_audio-0.6.7/docs/guide/signal_path.md +192 -0
- mxs_audio-0.6.7/docs/guide/tables.md +64 -0
- mxs_audio-0.6.7/docs/guide/time.md +218 -0
- mxs_audio-0.6.7/docs/mermaid.html +23 -0
- mxs_audio-0.6.7/docs/synths.md +1487 -0
- mxs_audio-0.6.7/examples/beats.rs +89 -0
- mxs_audio-0.6.7/examples/callback_panic.rs +48 -0
- mxs_audio-0.6.7/examples/clock_check.rs +134 -0
- mxs_audio-0.6.7/examples/cost.rs +44 -0
- mxs_audio-0.6.7/examples/devices.rs +9 -0
- mxs_audio-0.6.7/examples/drift.rs +33 -0
- mxs_audio-0.6.7/examples/own_synth.rs +115 -0
- mxs_audio-0.6.7/examples/pandeiro.rs +344 -0
- mxs_audio-0.6.7/examples/parts.rs +101 -0
- mxs_audio-0.6.7/examples/phrase.rs +54 -0
- mxs_audio-0.6.7/examples/salsa.rs +201 -0
- mxs_audio-0.6.7/examples/sample.rs +81 -0
- mxs_audio-0.6.7/examples/sequencer_frees.rs +79 -0
- mxs_audio-0.6.7/examples/virtual_keyboard.rs +157 -0
- mxs_audio-0.6.7/mxs/__init__.py +5 -0
- mxs_audio-0.6.7/pyproject.toml +16 -0
- mxs_audio-0.6.7/python/.gitignore +3 -0
- mxs_audio-0.6.7/python/Cargo.lock +1741 -0
- mxs_audio-0.6.7/python/Cargo.toml +16 -0
- mxs_audio-0.6.7/python/README.md +25 -0
- mxs_audio-0.6.7/python/examples/marimba.py +157 -0
- mxs_audio-0.6.7/python/src/lib.rs +249 -0
- mxs_audio-0.6.7/python/tests/test_mxs.py +93 -0
- mxs_audio-0.6.7/src/allocations.rs +46 -0
- mxs_audio-0.6.7/src/bin/keys.rs +89 -0
- mxs_audio-0.6.7/src/bin/play.rs +166 -0
- mxs_audio-0.6.7/src/bin/render.rs +59 -0
- mxs_audio-0.6.7/src/clock.rs +181 -0
- mxs_audio-0.6.7/src/device.rs +327 -0
- mxs_audio-0.6.7/src/effects.rs +2341 -0
- mxs_audio-0.6.7/src/engine/midi.rs +447 -0
- mxs_audio-0.6.7/src/engine.rs +4180 -0
- mxs_audio-0.6.7/src/graph/file.rs +327 -0
- mxs_audio-0.6.7/src/graph.rs +1649 -0
- mxs_audio-0.6.7/src/guide.rs +52 -0
- mxs_audio-0.6.7/src/keys.rs +209 -0
- mxs_audio-0.6.7/src/lib.rs +55 -0
- mxs_audio-0.6.7/src/listen.rs +247 -0
- mxs_audio-0.6.7/src/load.rs +129 -0
- mxs_audio-0.6.7/src/mixer.rs +984 -0
- mxs_audio-0.6.7/src/nodes.rs +896 -0
- mxs_audio-0.6.7/src/options.rs +338 -0
- mxs_audio-0.6.7/src/report.rs +924 -0
- mxs_audio-0.6.7/src/sample.rs +861 -0
- mxs_audio-0.6.7/src/spec.rs +228 -0
- mxs_audio-0.6.7/src/synth.rs +397 -0
- mxs_audio-0.6.7/src/synths/basic.rs +368 -0
- mxs_audio-0.6.7/src/synths/bowed.rs +543 -0
- mxs_audio-0.6.7/src/synths/common.rs +258 -0
- mxs_audio-0.6.7/src/synths/drums/brazilian.rs +689 -0
- mxs_audio-0.6.7/src/synths/drums/cuica.rs +964 -0
- mxs_audio-0.6.7/src/synths/drums/kit.rs +691 -0
- mxs_audio-0.6.7/src/synths/drums/latin.rs +876 -0
- mxs_audio-0.6.7/src/synths/drums/mod.rs +192 -0
- mxs_audio-0.6.7/src/synths/drums/tabla.rs +227 -0
- mxs_audio-0.6.7/src/synths/electric.rs +54 -0
- mxs_audio-0.6.7/src/synths/figures/cello.mxh +0 -0
- mxs_audio-0.6.7/src/synths/figures/deep_bass.mxf +0 -0
- mxs_audio-0.6.7/src/synths/figures/electric_bass.mxf +0 -0
- mxs_audio-0.6.7/src/synths/figures/electric_guitar.mxf +0 -0
- mxs_audio-0.6.7/src/synths/figures/electric_piano.mxf +0 -0
- mxs_audio-0.6.7/src/synths/figures/flute.mxh +0 -0
- mxs_audio-0.6.7/src/synths/figures/glockenspiel.mxf +0 -0
- mxs_audio-0.6.7/src/synths/figures/guitar.mxf +0 -0
- mxs_audio-0.6.7/src/synths/figures/harp.mxf +0 -0
- mxs_audio-0.6.7/src/synths/figures/marimba.mxf +0 -0
- mxs_audio-0.6.7/src/synths/figures/piano.mxf +0 -0
- mxs_audio-0.6.7/src/synths/figures/piano_pedal.mxf +0 -0
- mxs_audio-0.6.7/src/synths/figures/timpani.mxf +0 -0
- mxs_audio-0.6.7/src/synths/figures/vibraphone.mxf +0 -0
- mxs_audio-0.6.7/src/synths/figures/xylophone.mxf +0 -0
- mxs_audio-0.6.7/src/synths/figures.rs +2340 -0
- mxs_audio-0.6.7/src/synths/mod.rs +486 -0
- mxs_audio-0.6.7/src/synths/organs.rs +171 -0
- mxs_audio-0.6.7/src/synths/strings.rs +669 -0
- mxs_audio-0.6.7/src/synths/tables.rs +131 -0
- mxs_audio-0.6.7/src/synths/tuned.rs +102 -0
- mxs_audio-0.6.7/src/synths/winds.rs +1477 -0
- mxs_audio-0.6.7/src/time.rs +291 -0
- mxs_audio-0.6.7/src/workers.rs +314 -0
- mxs_audio-0.6.7/tests/analysis.rs +245 -0
- mxs_audio-0.6.7/tests/beats.rs +488 -0
- mxs_audio-0.6.7/tests/buffers.rs +254 -0
- mxs_audio-0.6.7/tests/catalog.rs +244 -0
- mxs_audio-0.6.7/tests/defaults.rs +51 -0
- mxs_audio-0.6.7/tests/defaults.txt +93 -0
- mxs_audio-0.6.7/tests/effects.rs +1630 -0
- mxs_audio-0.6.7/tests/engine.rs +789 -0
- mxs_audio-0.6.7/tests/expressions.rs +724 -0
- mxs_audio-0.6.7/tests/families.rs +114 -0
- mxs_audio-0.6.7/tests/files.rs +420 -0
- mxs_audio-0.6.7/tests/grains.rs +180 -0
- mxs_audio-0.6.7/tests/graph.rs +1534 -0
- mxs_audio-0.6.7/tests/keys.rs +261 -0
- mxs_audio-0.6.7/tests/live.rs +777 -0
- mxs_audio-0.6.7/tests/marimba.json +1 -0
- mxs_audio-0.6.7/tests/midi.rs +478 -0
- mxs_audio-0.6.7/tests/nodes.rs +49 -0
- mxs_audio-0.6.7/tests/output.rs +270 -0
- mxs_audio-0.6.7/tests/package.rs +23 -0
- mxs_audio-0.6.7/tests/parts.rs +293 -0
- mxs_audio-0.6.7/tests/piano.rs +531 -0
- mxs_audio-0.6.7/tests/ready.rs +228 -0
- mxs_audio-0.6.7/tests/reports.rs +240 -0
- mxs_audio-0.6.7/tests/samples.rs +265 -0
- mxs_audio-0.6.7/tests/sends.rs +372 -0
- mxs_audio-0.6.7/tests/shaping.rs +260 -0
- mxs_audio-0.6.7/tests/stretch.rs +237 -0
- mxs_audio-0.6.7/tests/synths.rs +643 -0
- mxs_audio-0.6.7/tests/tables.rs +98 -0
- mxs_audio-0.6.7/tests/webassembly.rs +137 -0
- mxs_audio-0.6.7/tests/workers.rs +121 -0
|
@@ -0,0 +1,80 @@
|
|
|
1
|
+
name: CI
|
|
2
|
+
|
|
3
|
+
on:
|
|
4
|
+
push:
|
|
5
|
+
branches: [main]
|
|
6
|
+
pull_request:
|
|
7
|
+
|
|
8
|
+
env:
|
|
9
|
+
CARGO_TERM_COLOR: always
|
|
10
|
+
|
|
11
|
+
jobs:
|
|
12
|
+
check:
|
|
13
|
+
runs-on: ubuntu-latest
|
|
14
|
+
steps:
|
|
15
|
+
- uses: actions/checkout@v4
|
|
16
|
+
- run: sudo apt-get update && sudo apt-get install -y libasound2-dev
|
|
17
|
+
- uses: dtolnay/rust-toolchain@stable
|
|
18
|
+
with:
|
|
19
|
+
components: rustfmt, clippy
|
|
20
|
+
- uses: Swatinem/rust-cache@v2
|
|
21
|
+
- run: cargo fmt --check
|
|
22
|
+
- run: cargo clippy --all-targets --all-features -- -D warnings
|
|
23
|
+
- run: cargo test --release --all-features
|
|
24
|
+
- run: cargo clippy --lib --no-default-features -- -D warnings
|
|
25
|
+
- run: cargo test --release --no-default-features --test tables
|
|
26
|
+
|
|
27
|
+
webassembly:
|
|
28
|
+
runs-on: ubuntu-latest
|
|
29
|
+
steps:
|
|
30
|
+
- uses: actions/checkout@v4
|
|
31
|
+
- run: sudo apt-get update && sudo apt-get install -y libasound2-dev
|
|
32
|
+
- uses: dtolnay/rust-toolchain@stable
|
|
33
|
+
with:
|
|
34
|
+
targets: wasm32-unknown-unknown
|
|
35
|
+
- uses: actions/setup-node@v4
|
|
36
|
+
with:
|
|
37
|
+
node-version: 22
|
|
38
|
+
- uses: Swatinem/rust-cache@v2
|
|
39
|
+
- run: cargo test --release --test webassembly -- --ignored
|
|
40
|
+
|
|
41
|
+
javascript:
|
|
42
|
+
# Playwright 1.49.1 installs its browsers' libraries by Ubuntu 24.04's package names.
|
|
43
|
+
runs-on: ubuntu-24.04
|
|
44
|
+
steps:
|
|
45
|
+
- uses: actions/checkout@v4
|
|
46
|
+
- run: sudo apt-get update && sudo apt-get install -y libasound2-dev
|
|
47
|
+
- uses: dtolnay/rust-toolchain@stable
|
|
48
|
+
with:
|
|
49
|
+
targets: wasm32-unknown-unknown
|
|
50
|
+
- uses: actions/setup-node@v4
|
|
51
|
+
with:
|
|
52
|
+
node-version: 22
|
|
53
|
+
- uses: Swatinem/rust-cache@v2
|
|
54
|
+
with:
|
|
55
|
+
workspaces: |
|
|
56
|
+
js
|
|
57
|
+
tests/webassembly
|
|
58
|
+
- run: js/build.sh
|
|
59
|
+
- run: npm install -g playwright@1.49.1 && playwright install --with-deps chromium webkit
|
|
60
|
+
- run: PLAYWRIGHT="$(npm root -g)/playwright/index.mjs" node js/test/run.mjs
|
|
61
|
+
|
|
62
|
+
python:
|
|
63
|
+
runs-on: ubuntu-latest
|
|
64
|
+
steps:
|
|
65
|
+
- uses: actions/checkout@v4
|
|
66
|
+
- run: sudo apt-get update && sudo apt-get install -y libasound2-dev
|
|
67
|
+
- uses: dtolnay/rust-toolchain@stable
|
|
68
|
+
- uses: actions/setup-python@v5
|
|
69
|
+
with:
|
|
70
|
+
python-version: "3.13"
|
|
71
|
+
- uses: Swatinem/rust-cache@v2
|
|
72
|
+
with:
|
|
73
|
+
workspaces: python
|
|
74
|
+
- working-directory: python
|
|
75
|
+
run: |
|
|
76
|
+
python -m venv .venv
|
|
77
|
+
. .venv/bin/activate
|
|
78
|
+
pip install maturin
|
|
79
|
+
maturin develop
|
|
80
|
+
python -m unittest discover tests
|
|
@@ -0,0 +1,251 @@
|
|
|
1
|
+
# Changelog for mxs v0.6
|
|
2
|
+
|
|
3
|
+
## v0.6.7 (2026-11-23)
|
|
4
|
+
|
|
5
|
+
### 1. Enhancements
|
|
6
|
+
|
|
7
|
+
* [synths] `pandeiro`'s fingertip stroke, `pandeiro_jingles`, is the heel's stroke played lighter, with a little of the hand and the head in it: its jingles answer 13 ms after the fingers land and are 7 dB down after 40 ms and 22 dB down after 80 ms, as the light strokes of jacksonjust's "Loop Pandeiro_127" on Freesound are, and the stroke is 6 dB quieter
|
|
8
|
+
* [synths] `pandeiro`'s heel stroke, `pandeiro_heel`, is 6 dB quieter, so the heel and the fingertips sit a like distance under the thumb
|
|
9
|
+
* [packages] mxs is on npm as `@mx-music/mxs`: it plays mxs's synths and effects on a web page in an audio worklet, or renders them offline, and fetches only the tables of the synths a page plays
|
|
10
|
+
* [packages] mxs is on PyPI as `mxs-audio`, imported as `mxs`: an engine live on a sound card or offline, with mxs's synths and effects and those read from files
|
|
11
|
+
|
|
12
|
+
## v0.6.6 (2026-11-23)
|
|
13
|
+
|
|
14
|
+
### 1. Enhancements
|
|
15
|
+
|
|
16
|
+
* [synths] `pandeiro`'s `muted` on the thumb, the heel and the fingertips follows the recordings' strokes on a pressed head: the head keeps its pitches, its lowest tone thumps and dies within 50 ms, and it sounds at its second tone, 1.7 times the note, where before every tone rose a whole tone and rang a fifth as long; the thumb's jingles are half as loud under it
|
|
17
|
+
* [synths] No two strokes of `pandeiro` sound alike: each draws its own noise, how loud its jingles are, how soon they answer and how loud each of the head's tones is, and every stroke is 0.6 dB quieter to leave the loudest of them room
|
|
18
|
+
|
|
19
|
+
## v0.6.5 (2026-11-23)
|
|
20
|
+
|
|
21
|
+
### 1. Enhancements
|
|
22
|
+
|
|
23
|
+
* [synths] `ganza`'s up stroke is 10 dB quieter between 4 and 6.3 kHz, as the small shaker of the recordings is; its down stroke and `shaker` have the samples they had
|
|
24
|
+
* [synths] `clave` is 5 dB louder at its overtone 2.72 times its note, between 4 and 6.3 kHz, as the recorded claves are
|
|
25
|
+
* [synths] `tabla_tas`, and `tabla` playing tas, has its burst of noise at the note 7 dB quieter, so its lowest band starts and fades as the recorded bol does
|
|
26
|
+
* [synths] `guiro` is 12 dB louder at its overtone three times its note, between 4 and 6.3 kHz, as the recorded güiros are
|
|
27
|
+
* [synths] `berimbau` has its wire 7 to 10 dB louder above 6.3 kHz as the stick strikes, fading there as before, and 3 dB louder near 2 kHz, as the recorded strokes are
|
|
28
|
+
* [synths] `cuica` settles at its note: a stroke played alone settled 38 cents over it at the note it comes with and 182 cents over at 79, and the strokes still differ from one to the next as the recorded ones do
|
|
29
|
+
* [synths] `triangle` is 4 dB louder between 1.6 and 4 kHz, and a hard stroke a further 4 to 6 dB louder between 1 and 4 kHz, as the recorded triangles are
|
|
30
|
+
* [synths] The pandeiro's thumb, heel and slap are refitted to strokes of MeanRaccoon's "pandeiro A collection" sorted by ear: the jingles answer the hand a moment after it lands, 33 ms after a thumb and 13 ms after a heel or a slap, the slap rings the head's own modes under the hand, and its noise sits near 460 Hz
|
|
31
|
+
* [synths] The pandeiro's head is struck by a plain impulse, so its tones keep the same balance at every note, where a burst of noise in the strike gave each note its own
|
|
32
|
+
|
|
33
|
+
## v0.6.4 (2026-11-23)
|
|
34
|
+
|
|
35
|
+
### 1. Bug fixes
|
|
36
|
+
|
|
37
|
+
* [effects] A sweep stays on the beat for as long as it runs: `slicer`, `tremolo`, `wobble`, `flanger` and `phaser`, and a graph's `sweep`, fell 4 ms behind for every minute they ran at a cycle of half a second, and a slicer's pulse now starts within a frame of its beat after a minute; a render with a sweep has other samples than before
|
|
38
|
+
|
|
39
|
+
## v0.6.3 (2026-11-23)
|
|
40
|
+
|
|
41
|
+
### 1. Enhancements
|
|
42
|
+
|
|
43
|
+
* [effects] Add `width`: `side`, from 0, mono, through 1, the sound as it came, to 2, twice the difference between its sides, and `mono_below`, a MIDI note below which everything is put in the centre, off at 0
|
|
44
|
+
* [effects] Add `wah`, a resonant low-pass whose cutoff follows the level of the louder side coming in: at the note `cutoff_min` with silence, at `cutoff_max` with a sound at full scale, and between them by the level in dB over the 40 dB under full scale, raised or lowered by `sensitivity`; it opens over `clamp_ms` and closes over `relax_ms`, and rings at its cutoff by `res`
|
|
45
|
+
* [effects] `tremolo` and `slicer` take `spread`, from 0 to 1, the share of half a cycle the right side's cycle runs after the left's, so at 1 the sound moves from side to side; at 0 the samples are as they were
|
|
46
|
+
|
|
47
|
+
## v0.6.2 (2026-11-23)
|
|
48
|
+
|
|
49
|
+
### 1. Enhancements
|
|
50
|
+
|
|
51
|
+
* [effects] `distortion` works its curve out at four times the engine's rate and filters what it adds above half the engine's rate, so a high, bright sound driven hard keeps its energy on its harmonics, 50 dB under the sound on a saw at C7 where it was 20 dB under; a low sound has the harmonics it had, and no sample is the same
|
|
52
|
+
* [effects] `distortion` takes `curve`, `soft`, as it was, or `hard`, which cuts the sound off flat, and `tone`, a MIDI note for a low-pass after it, off at 0
|
|
53
|
+
* [effects] Add `EffectDecl::late`, the frames after its input an effect's sound comes out, by which the engine holds back the dry sound it mixes it with; `distortion` is 62 frames late
|
|
54
|
+
* [graph] Add `reed`, a reed or the lips blown on a bore and sounding through its bell, with the options mxs's reed and brass winds give theirs, `sway`, the slow random drift of a wind player's pitch and level, and `fingers`, a note as a wind player's fingers hold it through a fast glide; `wind_bands` takes 33 gains, eleven at each of pp, mf and ff, for all of mx's bands
|
|
55
|
+
* [graph] Add `figures`, a note played from one of mxs's tables as its voice plays it: struck, as `kept`, `fitted`, `evened` or `following`, held, as `held` or `blown`, or as the `piano`; a synth naming a table mxs has not is refused when it registers, and a synth's tables are the ones its graph names
|
|
56
|
+
* [synths] `load_table` keeps a table mxs does not carry, such as one fitted with mx, under its file's name, for a graph's `figures` to play; loaded again, it is replaced
|
|
57
|
+
|
|
58
|
+
## v0.6.1 (2026-11-23)
|
|
59
|
+
|
|
60
|
+
### 1. Enhancements
|
|
61
|
+
|
|
62
|
+
* [effects] `echo` and `ping_pong` take `high_cut` and `low_cut`, MIDI notes above and below which each echo is cut once more than the one before, and `drive`, from 0 to 1, which rounds each echo off once more than the one before, as a tape echo's repeats grow duller; with none given the samples are as they were
|
|
63
|
+
* [effects] `phaser` given no `mix` is half dry, where its notches are deepest; it passed only the turned sound, with no notch
|
|
64
|
+
* [engine] An effect that lists `mix`, `pre_amp` or `amp` among its own options gives it its own default, in place of the one every effect has
|
|
65
|
+
|
|
66
|
+
## v0.6.0 (2026-11-22)
|
|
67
|
+
|
|
68
|
+
### 1. Breaking changes
|
|
69
|
+
|
|
70
|
+
* [effects] `reverb` is a new reverb: a room of `size` metres whose sound fades 60 dB in `decay_seconds`, starts after `predelay_ms`, is cut below the note `low_cut` and dulled by `damp`; a sound's room is louder on the sound's own side, and `decay_seconds`, `low_cut` and `damp` change while it plays. The reverb it replaces and its `room` option are gone
|
|
71
|
+
* [effects] `compressor` is set as a compressor usually is: `threshold` in dB, -18 unless given, `ratio`, 4 unless given, and `makeup` in dB after it, in place of a threshold as a plain level, `slope_above` and `slope_below`; it follows the louder side and turns both down alike, and `relax_ms` is 150 unless given, so it no longer bends each cycle of a bass note
|
|
72
|
+
|
|
73
|
+
### 2. Enhancements
|
|
74
|
+
|
|
75
|
+
* [effects] Add `phaser`, which sweeps notches through the sound between the notes `low` and `high` once every `phase`: `stages` all-passes, 2, 4, 6 or 8, cut one notch for every two when mixed half and half with the dry sound, so it is used with `mix: 0.5`; `feedback` raises the sound between the notches, and `stereo_invert_wave: 1` sweeps the left side the other way
|
|
76
|
+
* [engine] Add `Engine::send`, which sends a share of a chain's sound into another chain at a level that `Target::Send` changes while it plays, `Engine::route`, which sends all of it there in place of the main output, and `Engine::key`, which has a chain's compressor follow another chain's level; the sound arrives at the same sample, a chain that would feed itself is refused, and a chain that others feed plays until they have ended
|
|
77
|
+
* [effects] An effect reads the chain that keys its own with `Options::key`
|
|
78
|
+
* [engine] Add `Engine::start_main_effects`, the effects everything the engine plays goes through after each part's own effects, gain, mute and solo; a change reaches them by the chain it returns
|
|
79
|
+
* [effects] Add `limiter`, which turns both sides down alike just before a peak on either would pass `ceiling`, in dB below full scale, and lets them back up over `relax_ms`; no sample passes the ceiling, and its sound comes out 5 ms late
|
|
80
|
+
* [graph] `lowpass` and `highpass` given `poles: 1` are filters of one pole, falling 6 dB an octave, as mxs's snare, toms, congas and cuíca use; one given `q` beside it is refused when registered
|
|
81
|
+
* [graph] Add `mod`, the remainder of its first argument after its second, from 0 up to the second for any first, so an envelope can start over at a period
|
|
82
|
+
* [graph] `time` takes `every`, the seconds after which it starts over, worked out as a Rust voice does, so it starts over on the same sample, where `mod` of `time` can start over one sample early
|
|
83
|
+
* [graph] Add `clicks`, clicks at random times at a `rate` a second, and `struck`, which rises over `attack` and falls over `fall` at each click of its sound, as mxs's shakers, cabasa and guiro use
|
|
84
|
+
* [graph] `mode` given a sound in `hz`, or in its list, rings at the frequency the sound gives at each sample, gliding as mxs's sitar does
|
|
85
|
+
* [graph] `impulse` takes `at`, `period` and `until`: one at `at` seconds and again every `period` before `until`, as the tanpura plucks its strings
|
|
86
|
+
* [graph] Add `draw`, the note's numbers from 0 up to 1 from a seed that mixes in how many notes of the synth came before, and `noise` takes `drawn`, seeded from the same, as mxs's caxixi and cuíca draw theirs; a synth whose draws take different mixes is refused when registered
|
|
87
|
+
* [graph] Add `fed_back`, a delay fed back into itself through a one-pole low-pass and high-pass inside its loop, letting its input in for the first `let_in` seconds only, as mxs's pluck plays its string and an echo its repeats
|
|
88
|
+
|
|
89
|
+
## v0.5.0 (2026-11-22)
|
|
90
|
+
|
|
91
|
+
### 1. Enhancements
|
|
92
|
+
|
|
93
|
+
* [effects] Add `eq`, an equaliser of three bands: a low shelf, a peak and a high shelf, each at a MIDI note, `low_at`, `mid_at` and `high_at`, and raised or lowered by `low_gain`, `mid_gain` and `high_gain` in dB, with `mid_q` for how narrow the peak is
|
|
94
|
+
* [graph] `mode` given lists for `hz`, `level` and `fade` sets a resonator ringing for each, all struck by the one sound, as mxs's drums strike their modes, and lists of different lengths are refused when registered; `noise` takes a `seed`, which fixes its numbers instead of drawing a seed from the note
|
|
95
|
+
* [graph] Add `share`, which builds a sound once for a graph that uses it several times as its `input`, so a noise in it plays the same numbers at each use, as a clone of it does in Rust
|
|
96
|
+
|
|
97
|
+
### 2. Bug fixes
|
|
98
|
+
|
|
99
|
+
* [graph] An effect whose graph takes its input in a sound that is multiplied by 0, or in the side a `select` leaves out when its condition is known as the effect starts, is built and plays the rest, where it panicked
|
|
100
|
+
* [effects] A change reaches the options that were read once as an effect started: `phase_offset` of `slicer`, `tremolo`, `flanger` and `wobble`, `smooth_ms` of `slicer`, `invert_flange` and `stereo_invert_wave` of `flanger`, `filter` of `wobble`, and `pan_start` of `ping_pong`; a switch goes over in 10 ms, so it does not click
|
|
101
|
+
* [engine] An effect that cannot be built when its chain starts is the error `CannotBuild`, naming the effect and why, where `start_effects` and `start_part` panicked
|
|
102
|
+
* [synths] `berimbau`'s coin rattle, with `buzz` above 0, starts its pulse at phase 0, where it started at a phase of its own, so it plays the same as the berimbau written in the graph
|
|
103
|
+
|
|
104
|
+
## v0.4.1 (2026-11-22)
|
|
105
|
+
|
|
106
|
+
### 1. Enhancements
|
|
107
|
+
|
|
108
|
+
* [graph] An effect's graph that is `sides(left, right)` is built over both sides, each from `left()` and `right()`, so one side can reach the other, and one wrapped in `tail` says how long it sounds on, in seconds or as long as an option says
|
|
109
|
+
* [graph] Add `sweep`, a level from 0 to 1 with the five waves of the effects' own sweeps, `follower`, the level of a sound, `allpass` and `lag`; each is refused when registered if given an argument by name it does not take
|
|
110
|
+
|
|
111
|
+
### 2. Bug fixes
|
|
112
|
+
|
|
113
|
+
* [graph] The `saw`, `square`, `triangle` and `pulse` nodes start at phase 0, as they were meant to, where each started at a phase of its own, so a synth written in the graph plays a saw or a pulse the same as mxs's own `saw` and `pulse` do
|
|
114
|
+
* [synths] `square`, `tri` and `fm` start their waves, and `brass` its vibrato, at phase 0, as `saw` and `pulse` do, where each started at a phase of its own, so each plays the same as the same synth written in the graph
|
|
115
|
+
|
|
116
|
+
## v0.4.0 (2026-11-21)
|
|
117
|
+
|
|
118
|
+
### 1. Breaking changes
|
|
119
|
+
|
|
120
|
+
* [effects] An effect's time that is not in beats names its unit: slicer's `smooth` is `smooth_ms`, flanger's `delay`, `depth` and `max_delay` are `delay_ms`, `depth_ms` and `max_delay_ms`, and compressor's `clamp_time` and `relax_time` are `clamp_ms` and `relax_ms`, all in milliseconds
|
|
121
|
+
* [engine] `Kind` has an `Ms` variant, a time in milliseconds, made with `Spec::ms`, so code that matches every variant adds it
|
|
122
|
+
* [synths] `violin` is a bowed string again, modelled after the University of Iowa's arco violin from G3 to C6 with its bow noise, the scratch of each bow stroke and a slow drift of pitch and tone; its measured table `violin.mxh` is gone, so fourteen synths have tables, and the engine refuses to keep violin voices ready
|
|
123
|
+
* [synths] `violin` takes the bowed strings' options, `bow_speed`, `bow_force`, `body_hz`, `rosin`, `hiss`, `bow_position` and the bands' gains, and reads `pressure` as a note starts rather than while it sounds
|
|
124
|
+
|
|
125
|
+
## v0.3.1 (2026-11-21)
|
|
126
|
+
|
|
127
|
+
### 1. Bug fixes
|
|
128
|
+
|
|
129
|
+
* [engine] A part muted, or left out of a solo, before it has made a sound is silent from its first frame, where its first 10 ms were heard while the mute glided in
|
|
130
|
+
|
|
131
|
+
## v0.3.0 (2026-11-20)
|
|
132
|
+
|
|
133
|
+
### 1. Breaking changes
|
|
134
|
+
|
|
135
|
+
* [engine] `Error` has a `TablesNotLoaded` variant, so code that matches every variant adds it
|
|
136
|
+
* [synths] `synths::families` gives each family as a `Family`, and sorts the synths into the seven families mx Studio's Sounds panel shows: keys, plucked strings, bowed strings, winds, mallets, synths and drums
|
|
137
|
+
|
|
138
|
+
### 2. Enhancements
|
|
139
|
+
|
|
140
|
+
* [synths] The `tables` feature, on by default, compiles in the measured tables of the fifteen synths fitted to recordings; built without it, a program loads a table with `synths::load_table` from its bytes, `Synth::tables` names those a synth plays, and a note of a synth whose tables are not loaded is refused with `Error::TablesNotLoaded`
|
|
141
|
+
* [synths] `Synth::family` says which family a synth belongs to, and `Synth::range` the lowest and highest notes it is meant to play, none for a synth with no range of its own; the synths' catalog says both
|
|
142
|
+
* [graph] `Synth::from_json` and `Effect::from_json` read a synth or an effect from a JSON file, and `from_json_file` from its path, refusing a mistake with the path to it in the file
|
|
143
|
+
|
|
144
|
+
## v0.2.1 (2026-11-19)
|
|
145
|
+
|
|
146
|
+
### 1. Enhancements
|
|
147
|
+
|
|
148
|
+
* [synths] Add `DEFAULT_VEL`, the vel a note plays at when it gives none and the vel each synth's levels and brightness are fitted at
|
|
149
|
+
|
|
150
|
+
### 2. Bug fixes
|
|
151
|
+
|
|
152
|
+
* [engine] On macOS, an engine counts the performance cores by asking the kernel, not a `sysctl` process, whose wait could hang the first engine made inside the BEAM
|
|
153
|
+
|
|
154
|
+
## v0.2.0 (2026-11-19)
|
|
155
|
+
|
|
156
|
+
### 1. Breaking changes
|
|
157
|
+
|
|
158
|
+
* [engine] `Event::Note` has a `held` field; `Event::note` builds it as before, and code that writes the struct out gives `held: false`
|
|
159
|
+
* [synths] The winds' bore option `cutoff` is now `least_corner`, so that `cutoff` always names a low-pass's corner
|
|
160
|
+
* [synths] The flute's and tenor sax's `vibrato` is in semitones: the tenor sax's old 1 is 0.145, and the flute's old depth is the new one times 3.78, so its old default of 0.17 is 0.045
|
|
161
|
+
|
|
162
|
+
### 2. Enhancements
|
|
163
|
+
|
|
164
|
+
* [engine] `Event::held` starts a note that sounds until an `Event::Release` lets it go, from a voice kept ready when there is one; a note that rings by itself rings on when it is let go
|
|
165
|
+
* [synths] Every synth takes `bend`, `brightness` and `pressure` while a note sounds: nearly all follow bend, those under a low-pass or with a spectral tilt follow brightness, and pressure plays the winds, violin and cello harder, from `vel` towards 1
|
|
166
|
+
* [synths] Every note takes `vibrato` and `pedal`, the flute's and tenor sax's vibrato in semitones
|
|
167
|
+
* [synths] The fifteen synths without `vel` take one, which scales their level
|
|
168
|
+
* [engine] `Engine::play_midi` plays a MIDI input on a part, each key held until it comes up and started from a voice kept ready, with the sustain pedal and the pitch bend wheel; `change_midi`, `stop_midi` and `midi_inputs` go with it, and `Topic::Keys` reports each key and an input that goes away
|
|
169
|
+
* [engine] `Engine::input_specs` says which options the sound card's input takes
|
|
170
|
+
* [engine] `Engine::effect_tails` says how many seconds each effect sounds on after its input stops
|
|
171
|
+
* [graph] Add `saturate`, `clip`, `fold` and `ladder`, and let a filter's q move; an option that takes names can be compared with a name, and is refused anywhere else
|
|
172
|
+
* [engine] `Engine::analyse` reports the loudness, pitch and onsets of an input, a sample, a chain or the output under `Topic::Analysis`, until `stop_analysis`
|
|
173
|
+
* [engine] `Engine::create_buffer` and `record_buffer` record into a buffer while playing, `save_sample` writes a sample or buffer to a WAV file, and `free_sample` lets one go
|
|
174
|
+
* [engine] `Event::Grains` plays a sample or a buffer as overlapping grains, with the options `grains_specs` lists
|
|
175
|
+
* [engine] A sample takes `stretch` and `pitch`, which change its length and its pitch apart, and the `pitch_shift` effect shifts a chain's pitch
|
|
176
|
+
* [engine] Voices are filled on worker threads, one per performance core, once eight or more sound at once, with the same output sample for sample; `Engine::set_workers` changes their number
|
|
177
|
+
* [engine] An offline engine renders in WebAssembly, which has no clock, with the same samples as natively
|
|
178
|
+
|
|
179
|
+
### 3. Bug fixes
|
|
180
|
+
|
|
181
|
+
* [synths] A fitted note leaves out the noise band that crosses the knock's 600 Hz when its centre is under it
|
|
182
|
+
|
|
183
|
+
# Changelog for mxs v0.1
|
|
184
|
+
|
|
185
|
+
## v0.1.6 (2026-11-19)
|
|
186
|
+
|
|
187
|
+
### 1. Enhancements
|
|
188
|
+
|
|
189
|
+
* [engine] `Engine::keep_ready` keeps voices of an instrument fitted to recordings built ahead, so a note that gives only `note` and `vel` starts in the next buffer, allocating nothing on the audio thread, with the same samples as a voice built for it; each voice taken is replaced on the builder thread, and `Engine::kept_ready` says how many are kept
|
|
190
|
+
* [engine] `Error::CannotKeepReady` refuses to keep voices of a synth that builds each note for its note and vel alone
|
|
191
|
+
* [engine] A live engine started on the default output follows the system's default when it changes: it sends a `Topic::Output` report naming the new device, lines its clock up with the system's again within half a second, and warns when the new device runs at another rate
|
|
192
|
+
|
|
193
|
+
## v0.1.5 (2026-11-18)
|
|
194
|
+
|
|
195
|
+
### 1. Enhancements
|
|
196
|
+
|
|
197
|
+
* [synths] A fitted synth plays each noise band as loud at any sample rate as at 48 kHz, the rate its figures' noise gains are written for; figures fitted to recordings at another rate were up to 4.6 dB too quiet in a band, and NSynth's, at 16 kHz, gain from a refit
|
|
198
|
+
* [synths] Refit `electric_bass` with its noise gains written for 48 kHz, so its strike plays the noise of its recordings
|
|
199
|
+
* [synths] A fitted synth works out each noise band's gain and warmed filters once for each band and rate, shared by every instrument, so a note builds in about 0.1 ms instead of 3 to 5 ms, with the same samples
|
|
200
|
+
|
|
201
|
+
## v0.1.4 (2026-11-18)
|
|
202
|
+
|
|
203
|
+
### 1. Enhancements
|
|
204
|
+
|
|
205
|
+
* [docs] Add guides, in `docs/guide` and in the crate's documentation as the `guide` module, each with diagrams and programs that run as tests: how the engine is built, events and the life of a note, effects and parts, time, reports, playing live, a synth or an effect of your own, and samples, input and recording
|
|
206
|
+
* [docs] `Engine` lists its calls by what they are for, the `graph` module lists the calls a graph is made of, and the items the documentation names are links
|
|
207
|
+
* [examples] Add `phrase`, `parts`, `own_synth`, `sample` and `beats`, each of which plays live or renders into a WAV file
|
|
208
|
+
* [synths] Add `flute_figured`, a flute played from figures fitted partial by partial to the University of Iowa's flute, with slurs, tongued notes and breaths; it is temporary, to compare with `flute`
|
|
209
|
+
|
|
210
|
+
## v0.1.3 (2026-11-18)
|
|
211
|
+
|
|
212
|
+
### 1. Enhancements
|
|
213
|
+
|
|
214
|
+
* [engine] Add musical time: the engine keeps a tempo map, placed by `Engine::place_beats` and changed by `set_tempo`, and `Engine::pass` hands a part events at their beats, with their options in beats; a tempo change moves every event more than 150 ms from sounding, `cut` drops a part's events from a beat on, `start_part_in_beats` starts a part whose effect options follow the tempo, and `Topic::Beats` and `Topic::Passes` report the beat, a pass that starts and a pass about to end
|
|
215
|
+
* [engine] Add `Engine::fill` and `play_at_frames`, which fill one block after another from events given at frames
|
|
216
|
+
* [engine] Voices are added up in the order they were handed over, so a render holds the same samples whatever the length of each stretch it is asked for; a render differs from an earlier version's by up to 6e-8 of full scale
|
|
217
|
+
* [engine] Add parts: `Engine::start_part` names a group of sounds with its effects, and `set_gain`, `mute` and `solo` turn it down, silence it or leave it alone heard from a time on, after its effects; a levels report gives each part's level by its name
|
|
218
|
+
* [engine] Add `Engine::subscribe`, which sends reports without being asked: the clock against the system's, the levels, wave and spectrum of the output twenty times a second, how many notes sound, the output device, and the warnings; a live engine works them out on a thread of its own, and an offline one as it renders
|
|
219
|
+
* [engine] A live engine builds voices on a thread of its own, so `play` returns once its events are checked; a synth whose sound has neither 1 nor 2 channels is then left out and named in `warnings`, where an offline engine still refuses the batch
|
|
220
|
+
* [engine] Add `Engine::load`, the time filling audio took as a share of the time it lasts and how many buffers reached the sound card late, and `Engine::behind`, how far the engine's clock has fallen behind the system's; `warnings` also says how many buffers were late
|
|
221
|
+
* [synths] Refit `electric_piano` partial by partial to each of keyboard_electronic_098's 99 recordings, with the tine's bell, the strike's noise and every partial up to 8 kHz; a note or velocity not recorded takes the recordings nearest it, across velocity first; it is no longer an alpha version
|
|
222
|
+
* [synths] Refit `electric_guitar` the same way to guitar_electronic_028's 97 recordings, as loud at A2 as before; it is no longer an alpha version
|
|
223
|
+
* [synths] Refit `marimba` partial by partial to the University of Iowa's 183 yarn recordings at pp, mf and ff, its loudness by velocity following theirs, as loud at C4 at vel 1 as before
|
|
224
|
+
* [synths] Refit `electric_bass` and `deep_bass` partial by partial to their NSynth recordings from E1 to D#4, as loud at A1 as before and growing as much louder with vel
|
|
225
|
+
* [synths] Refit `harp` partial by partial to the folk harp's 57 recordings, each string as loud as the next at vel 1 since the recordings' strings stand up to 24 dB apart, and its velocities as far apart as the recordings', as loud at C4 at vel 1 as before
|
|
226
|
+
* [synths] Refit `guitar` partial by partial to the University of Iowa's guitar at pp, mf and ff, each pitch from the string a player uses in first position, its loudness following the recordings, as loud at E3 at vel 1 as before
|
|
227
|
+
* [synths] Refit `piano` partial by partial to the Steinway B's 126 recordings without the pedal and 126 with it, `pedal` blending the two; at their defaults `aftersound`, `knock` and `uneven` play the recordings as they are, `aftersound` bends each partial's fade toward one rate or deeper, `knock` scales the strike's noise under 600 Hz, and `uneven` varies only the 46 keys not recorded; C4 is as loud as before at each vel, with the pedal and without; every key at a vel carries the same energy, since the recordings are brought to the same peak, the keys above C4 stand under it at vel 0.6 as before, within 4 dB, and the recordings of E6 and of a few others from D6 to D7, whose tone the fit took for noise, are left out
|
|
228
|
+
* [synths] Refit `vibraphone`, `xylophone`, `glockenspiel` and `timpani` partial by partial to the recordings they were fitted to, their loudness following the recordings; `motor` pulses the fitted note
|
|
229
|
+
* [synths] Refit `cello`'s bowed notes partial by partial to the University of Iowa's 120 arco recordings at pp, mf and ff, from held figures that follow each partial until the bow lets go and hold its last level for a longer note; a note follows `note` as it slides, `legato` speaks at once from where the recordings settle, `pizz` plucks as before, and since the recordings have no vibrato, `vibrato` is still 0.25 semitone by default; as loud at C3 at vel 1 as before, and vel 0.3 stands 16 dB under vel 1, as the recordings' pp under their ff; `bow_speed`, `bow_force`, `bow_position`, `body_hz`, `rosin`, `hiss` and the `eq` bands are gone from it
|
|
230
|
+
* [synths] Refit `violin`'s bowed notes the same way to the University of Iowa's 128 arco recordings from G3 to B7, each pitch from the highest string it can be played on; as loud at vel 1 as before on average from G3 to C7, its high notes up to 9 dB quieter and G3 2.9 dB louder, as the recordings stand; the same options are gone from it
|
|
231
|
+
|
|
232
|
+
## v0.1.2 (2026-11-17)
|
|
233
|
+
|
|
234
|
+
### 1. Enhancements
|
|
235
|
+
|
|
236
|
+
* [synths] Add `deep_bass`, a dark bass played with the fingers, fitted to NSynth's bass_electronic_025 and bass_electronic_027
|
|
237
|
+
* [synths] Add `electric_piano`, an alpha version of an electric piano whose hammers strike tines, fitted to NSynth's keyboard_electronic_098; its hard high notes are duller than the recordings, and it will be refitted
|
|
238
|
+
* [synths] Add `electric_guitar`, an alpha version of a solid-body electric guitar picked clean, fitted to NSynth's guitar_electronic_028; it will be refitted
|
|
239
|
+
|
|
240
|
+
## v0.1.1 (2026-11-16)
|
|
241
|
+
|
|
242
|
+
### 1. Enhancements
|
|
243
|
+
|
|
244
|
+
* [synths] Add `electric_bass`, an electric bass played with the fingers, fitted to NSynth's bass_electronic_018
|
|
245
|
+
* [synths] Add `families`, which groups the synths of `all` by family
|
|
246
|
+
* [synths] Add `piano_parts`, which gives the harmonics, resonators, thump and knock of a piano note without playing it
|
|
247
|
+
* [Synth] Add `doc`, which says what a synth is and the recordings it is fitted to
|
|
248
|
+
|
|
249
|
+
## v0.1.0 (2026-11-14)
|
|
250
|
+
|
|
251
|
+
Initial release.
|