Skip to content

music 2.1.0

Latest

Choose a tag to compare

@ttm ttm released this 20 Nov 18:31
· 1 commit to master since this release
pip install -U music

Tutorial · API reference · Changelog


Note for anyone upgrading

  • Some calls that wrote a wrong file, or returned a wrong sound, now
    raise instead.
    write_wav_mono refuses a stereo sound, and
    write_wav_stereo, write_audio, normalize_stereo and adsr_stereo
    refuse more than two channels; convert_to_stereo folds more into two
    when that is what is wanted. mix_with_offset refuses an offset that
    reaches back past the start of the first sound, Sequencer.add_note a
    duration that is negative or not finite, and sing a duration written
    as a string ABC cannot read. Each says what it was given. adsr_stereo
    and write_wav_stereo give a mono sound to both channels, where one
    returned two bare envelopes and the other wrote one channel when it did
    not normalize.
  • Some calls that failed in Python's words, or numpy's, now fail in the
    package's, as ValueError.
    A duration that is NaN or infinite is
    refused by every routine that counts one, where infinity was an
    OverflowError; iir refuses an empty a, or a number where a or
    b belongs, which were an IndexError and a TypeError; and
    mix_stereo, mix_many, louds and tremolos refuse what each
    cannot take, where they failed on a broadcast, a subscript or an
    index. louds also takes one trans_devs, alpha or method for
    every transition, and mix_many an array of offsets.
  • setup_hrtf refuses a directory that holds anything but the
    measurements,
    where it deleted it to put them there: give it a new
    or an empty directory, or one it filled before. On a Python whose
    tarfile cannot filter what it unpacks, before 3.10.12 and 3.11.4, it
    says so before downloading, where it failed with a TypeError after.
  • A count of samples that is not a whole number is refused, where
    each routine read one its own way. A whole count is taken in any type,
    5.0 and NumPy's integers included; number_of_samples=5.5, NaN,
    infinity or a boolean is refused by name, as is an offset of 1.5
    samples to mix_with_offset. An oscillator refuses a frequency, a
    depth or a position that is NaN or infinite, where it returned a
    constant read from its table, or a sound of NaN.
  • The four default waveform tables are read-only, WAVEFORM_SINE,
    WAVEFORM_SAWTOOTH, WAVEFORM_SQUARE and WAVEFORM_TRIANGULAR:
    scaling one in place raises, where it changed every routine's default.
    A table to change is a copy, WAVEFORM_SINE * 0.5, or a new one from
    waveform_table.
  • The stimulation routines refuse a carrier the sample rate cannot
    hold,
    at or above the Nyquist frequency, and the beats a tone below
    zero, as SSTIM's descriptions were refused them already. A
    StimulusPhase refuses a duration, a ramp or a gain that is NaN or
    infinite, and a StimulationSession such an end ramp.

Changed

  • Descriptions are checked against SSTIM 0.20.0, the
    published-protocols release, which removes and deprecates nothing.
    Every description the package writes -- each of the seven stimuli, a
    program of phases and a planned session -- conforms to its Full
    profile, and so do the descriptions other tools wrote that the tests
    read, checked against the release itself. validate_sstim validates
    against it unless given another version.
  • The terms 0.20.0 added that would change a stimulus are refused when
    read, not ignored:
    a channel's initial phase, randomly timed onsets,
    a level at a stage of delivery and an adaptive control law, as every
    term the package does not render already was. The ordered segments it
    added belong to a published protocol's schedule, which must cite the
    framework or the paper it comes from, so a session is still written as
    a program in the package's terms.

Fixed

  • adsr_stereo returned two bare envelopes for a mono sound. It read
    the sound's first two samples as its channels, took each for "no sound
    given", and built two envelopes of the default two seconds: the sound
    was nowhere in what came back. A mono sound, or one written as a single
    row, is now shaped in both channels, as normalize_stereo already took
    one, and a third channel is refused rather than dropped.
  • The writers wrote files their names say they do not.
    write_wav_mono wrote a stereo sound as a file two frames long, in as
    many channels as the sound had samples, because soundfile reads an
    array's second axis as its channels, and failed on one longer than the
    1,024 channels libsndfile allows with "Format not recognised"; it
    refuses one now, saying what it was given, and takes a single row as
    the one channel it is. write_wav_stereo wrote a mono sound in two
    channels when it normalized it and in one when it did not, and now
    always writes two; a single row stopped it, and normalize_stereo,
    with an IndexError, and is mono now. Three channels were written as
    a stereo file of three, the first two normalized and the third as it
    was, and are refused, by the writers and by normalize_stereo.
    write_audio chooses its writer by the channel count, so a single row
    is written as one channel.
  • sing with eCantorix blamed a wrong melody on a missing engine. It
    wrote the score only once it had found the engine, so with none
    installed, a duration too few or a note out of range was reported as
    the engine missing, though the docstring says these are checked first.
    Both backends now check the score before anything else. A duration
    written as a string went into eCantorix's score unread, "x", "0"
    and "3/0" as they were, and the psola backend failed dividing by zero
    on the last. Each is refused now, as a length ABC cannot read or one of
    no time.
  • mix_with_offset failed in numpy's words for an offset past the
    start.
    A negative offset reaching back further than the first sound
    is long was read from the end of the mix, as a negative index is, and
    stopped at a broadcast. It is refused, saying how far back an offset
    can reach, and an offset back to the first sound's start starts the two
    together, as it did.
  • Sequencer.add_note accepted a negative or an infinite duration. A
    negative one rendered no note, without a word, and NaN and infinity
    failed when the sequence was rendered, far from the call that gave
    them. They are refused where they are given, as a start already was.
  • bandlimited_note accepted any waveform for a render of no
    samples,
    since the name was read only where the table is built. It is
    checked with the other arguments.
  • Two messages named what is not there. noise refused a colour it
    does not know by telling the caller to "Set ntype", the parameter's
    name before it was noise_type; it names noise_type now, and what it
    was given. PlainChanges warned that "peals are the same if there are
    1 hunts less", and now says how many hunts ring the same peal as how
    many.
  • The package configured the program's logging. mix_with_offset
    and read_audio said what they were doing through logging.debug,
    which speaks for the root logger and gives it a handler when it has
    none. So the first mix, or the first file read, configured logging for
    the whole program, and a script that called logging.basicConfig
    afterwards found it did nothing: the level and the format it asked for
    were dropped, and its own INFO lines with them. Neither logs now, and
    a test refuses a module that speaks for the root logger.
  • The band-limited oscillators and render_oversampled refused NumPy's
    integers.
    They asked isinstance(value, int), so a rate read out of
    an array, or a count or a factor that came out of one, was refused in
    words that were true of it: 48,000 "must be 8000 to 192000 Hz". A whole
    number of NumPy's is taken as Python's is, as set_sample_rate already
    took one, and the generator render_oversampled calls is handed
    Python's; a boolean is refused still. Nor do the two oscillators that
    take a phase refuse one in NumPy's single precision, or one of its
    integers, any more.
  • louds read a method given as one string a letter at a time.
    method="linear" was refused as 'l', alpha=2 was "not
    subscriptable", and a fourth duration ran off the end of whichever
    three-entry default was left alone, as "tuple index out of range". One
    value now serves every transition, as adsr takes one alpha for its
    stages and pan_transitions one method for its moves, and an argument
    with too few entries is named. tremolos, whose defaults are laid out
    for two lines of three and four segments, names the argument without a
    segment, where it failed on the first default a layout outgrew.
  • mix_stereo refused a third channel in numpy's words, a broadcast
    between a pair and a triple, even when given no second sound. It
    follows the rule the other routines that keep two channels follow: a
    mono sound, or a single row, in both, and more refused, with a pointer
    to convert_to_stereo.
  • mix_many failed on an array of offsets. It asked if offset:,
    and numpy will not give an array one truth value. It takes any
    sequence now, and refuses by name a number, more offsets than sounds
    and a negative offset, which failed as "'int' object is not iterable",
    "list index out of range" and "negative dimensions are not allowed". A
    sound past the end of the list has no offset, as the docstring now
    says, and an offset is the silence put before a sound, which end
    then aligns as it aligns the rest.
  • iir failed on an empty feedforward array as numpy's IndexError.
    The path short filters take, which 2.0.0 added, reads a[0] first;
    the loop it stands in for gave silence. An empty a, or a number or a
    matrix where a or b belongs, is refused by name.
  • A duration of NaN or infinity reached math.floor, which said
    "cannot convert float NaN to integer", naming neither the duration nor
    the rate, and raised OverflowError for infinity, which a caller
    catching ValueError missed. sample_count, which counts every
    duration, refuses both in its own words.
  • SSTIM refused a rate, or a limit on samples, in NumPy's integers,
    as "must be an integer", which it was: to_sstim_graph, the readers
    and render_sstim asked isinstance(value, int), the question the
    fix above took out of the band-limited routines. They read whole
    numbers by _rate.whole now, and a description written at
    np.int64(48000) is the one written at 48,000.
  • CanonicalSynth rendered 0.35 s a sample short. It counted a
    note's samples as the floor of the binary product, which 2.0.0
    replaced everywhere else with sample_count: 15,434 samples where
    note() renders 15,435, for ten durations of whole milliseconds under
    two seconds. Its notes and its tremolo count as every routine does.
  • setup_hrtf deleted the directory it was given. The measurements
    were unpacked beside it and moved into place over whatever stood there,
    so a folder of one's own given as directory, or as $MUSIC_HRTF_DIR,
    was deleted with everything in it, force or not. It refuses one that
    holds anything but the measurements, or the part of them a fetch that
    did not finish left, before anything is downloaded, as setup_engine
    refuses a directory that holds no engine. A Python whose tarfile
    cannot filter what it unpacks is told so before the download, where
    the call failed with a TypeError after it.
  • Sequencer.render cost the square of the piece's length. It grew
    the mix by a copy for every note, each the length of everything before
    it: 2,000 notes in a row, 200 s of audio, took half a minute, a tenth
    of a second of it synthesis. The mix is made once, at its final length,
    and each note added where it starts: the same piece, bit for bit, in a
    seventh of a second.
  • mix_many held a copy of the whole mix for every sound. Each sound
    was padded to the mix's length and the copies summed, so 600 notes of a
    tenth of a second, at their offsets across a minute, held some 12 GB and
    took 25 seconds. The mix is made once and each sound added where it
    lies: the same mix, bit for bit, in a hundredth of a second.
  • A count of samples was five different things. note and the
    envelopes handed number_of_samples to np.arange, which rounds a
    fraction up, so 5.5 rendered six samples; silence, gaussian_noise,
    bandlimited_note and the stimulation routines cut it down to five;
    adsr, noise and the sequence routines refused even 5.0, in numpy's
    words; and render_oversampled refused 5.0 in its own. A note and the
    envelope made for it, asked for one count, could differ by a sample.
    Every routine reads a count by one rule now: a whole number of any
    type, and no fraction.
  • The sequence routines read a negative count as a slice's end.
    note_with_vibrato_seq_localization and note_with_vibratos_glissandos
    fit their render to number_of_samples by slicing it, and a negative
    end counts back: -5 gave all but the last five samples of the render,
    635,035 of them for the defaults, where every other routine gives none.
    They give none, and read the count before they render, where a count
    that was no count was refused by the slice, after the render.
  • adsr failed on a negative duration in numpy's words, "negative
    dimensions are not allowed", where every other envelope answers one
    with no samples. It does too.
  • An oscillator at a frequency of NaN returned a constant. Each reads
    its table at the whole part of a phase, and NaN and infinity cast to
    the most negative integer, one entry at every sample: note(nan) was a
    flat line read from the table, finite and plausible, with numpy's
    "invalid value encountered in cast" for the only notice. The
    glissandos refused such frequencies already; every reading of a table
    does now, for a frequency, a depth or a position that leaves its phase
    no number.
  • Sequencer.add_note took a frequency of NaN, and the sequence
    failed only when it rendered, by the oscillator's refusal, which cannot
    say which note it was rendering. It refuses a freq, a vibrato_freq
    or a max_pitch_dev that is NaN or infinite where the note is added,
    as it refuses such a duration.
  • An oscillator returned its table's type. A table of float32 gave a
    note of float32, and a table of integers a note of integers, where each
    is annotated to return float64; one of them read its tables as float64
    already. Each reads the table its note is made of as float64 now.
  • louds and tremolos refused one number where a sequence belongs in
    Python's words,
    that an int "has no len()" or "is not iterable".
    They name the argument and the layout they take.
  • A sound with its frames in rows was told to fold its channels.
    soundfile reads a file a frame to a row, so a second of stereo read
    with it, (44100, 2), is 44,100 channels of two samples here, and the
    routines that keep two channels refused it with the advice to fold
    them with convert_to_stereo, which made it two samples. They say its
    transpose may be the sound, and convert_to_stereo says so as it
    folds one.
  • Scaling a default table in place changed every routine.
    quiet = music.WAVEFORM_SINE; quiet *= 0.5 halved the default depth of
    every vibrato and tremolo after it, since every routine given no table
    reads one of the four, and nothing said so. They are read-only now.
  • The stimulation routines rendered a carrier above the Nyquist
    frequency folded back.
    A carrier of 5,000 Hz at 8,000 Hz sounded at
    3,000, and a beat whose lower tone fell below zero beat at another
    rate: a carrier of 3 Hz and a beat of 10 gave tones of -2 and 8 Hz,
    which beat at 6. SSTIM's descriptions were held to these bounds, and
    the routines that render them are now.
  • A session took NaN and failed only when it rendered. A duration,
    a ramp or an end ramp that was NaN or infinite passed the check for a
    negative value, as NaN compares false to everything, and the session
    failed in Python's words, "cannot convert float NaN to integer", when
    it rendered; a gain of NaN rendered a session of NaN. Each is refused
    where it is given.
  • An infinite sample written as it was given was told to scale
    itself.
    With normalize=False it was refused as a level past full
    scale, "scale it into [-1, 1] first"; it is refused as NaN is, as no
    sample at all.

Tests

  • A docstring's prose may name as a keyword only an argument its
    routine takes.
    tremolo told a reader to set fa=0 or dB=0,
    noise documented ntype=3.5 and fade ignored alpha if
    transitions="linear": names they had once, or never. The Parameters
    sections were checked against the signatures, and the prose around them
    was not; tests/test_docstring_signature.py checks both now, leaving
    out the examples and the mathematics, where name= belongs to another
    routine or a sum.
  • The ten areas of the mutation audit whose code this changed were
    measured again,
    over that code. A first run found casts to float64
    that the new channel helper made twice, which went, and that
    mix_with_offset's debug logging, whose mutants the utils audit had
    accepted, configured the caller's logging: see Fixed. Of the 8,591
    mutants the second run made, the 328 that survive are the kinds
    MUTATION_AUDIT.md accepts. Twice a mutant it accepts as equivalent
    was counted as detected in a run of eight workers and survived every
    run of its own; the file says so, and counts both as surviving.
  • Nothing in the package speaks for the root logger, which a test
    checks of every module, and a program that mixes a sound and then
    configures its logging gets the configuration it asked for.
  • A NumPy integer is a whole number to every routine that takes one,
    and _rate.whole is the one rule: a boolean, a float and a string are
    refused by it.
  • The six areas of the mutation audit whose code the second reading
    changed were measured again,
    foundations, utils, envelopes,
    filters, legacy and sstim, over that code. A first run found six
    mutants that made tremolos' refusal name another argument, which no
    test refused through, and one survivor the file had accepted that is
    not equivalent: mix_stereo padding no second sound to one sample, so
    that an empty sound mixed alone came back one sample long. Tests detect
    them now. Of the 7,378 mutants of the latest runs, the 729 that survive
    are the kinds MUTATION_AUDIT.md accepts.
  • A test's comment misread the offsets it pins. It explained
    mix_many_with_offsets' 22,055 samples by the second vector's delay,
    rounded "twice over"; the offset delays the vector before it, as the
    docstring says, five samples from 22,050, and the test now says where
    each vector lands.
  • The three areas of the mutation audit whose code the third reading
    changed were measured again,
    sequencer, utils and hrtf. A first
    run found one mutant every test let through: mix_many skipping its
    conversion to stereo, which its new mix survives whenever a stereo
    sound comes first, as one did in every test. A test with a mono sound
    first detects it. Of the 1,498 mutants of the latest runs, the 78 that
    survive are the kinds MUTATION_AUDIT.md accepts.
  • Every routine that takes a count is held to one rule, by tests
    that find the routines with a number_of_samples themselves, so a new
    one is held to it too; and every oscillator is held to refusing a
    phase that is no number.
  • The nine areas of the mutation audit whose code the fourth reading
    changed were measured again,
    foundations, oscillators,
    envelopes, filters, noises, stimuli, bandlimited, utils and
    sequencer. A first run found two gaps, both in the new code: reading
    a vibrato's or a modulation's table as float64 changed no sample a test
    made, nor any of a two-second vibrato, and is left to the table a note
    is made of; and the edge of the hint for a sound with its frames in
    rows, which a test now asks about. The new tests detect eight mutants
    earlier runs accepted, and each was detected again alone. Of the 6,336
    mutants of the latest runs, the 221 that survive are the kinds
    MUTATION_AUDIT.md accepts.
  • The test of a new thread's rate holds on every interpreter. It
    said a new thread starts at 44,100 Hz, which a Python 3.14 run with
    -X thread_inherit_context=1 does not do, nor the free-threaded
    build, which runs so by default. It expects what the interpreter does,
    a test runs both ways on 3.14, and another holds what keeps two threads
    apart either way: a setting never reaches a thread already running.
  • The three areas of the mutation audit whose code the fifth reading
    changed were measured again,
    stimuli, export and utils. The
    first run found no gap. The new tests detect nine mutants earlier runs
    accepted -- the message of the writers' refusal of NaN, which a test
    now pins, and the cast of a phase's increments to float64, which a
    float32 vibrato table now needs -- and each was detected again alone.
    Of the 2,531 mutants of the latest runs, the 134 that survive are the
    kinds MUTATION_AUDIT.md accepts.

Maintenance

  • notes.md is gone. Its list was done -- the comparison with
    MASS, the split into subpackages, the examples -- but for an article
    describing the package, which the README lists under Plans.
  • Leftovers are gone from the code: commented-out lines in
    note_with_doppler, note_with_vibrato_seq_localization and Peals,
    a stray def sing(...) comment in perform.py, and the
    brainstorm at the end of pan_transitions' notes. noises imports
    normalize_mono from beside it rather than through import music, a
    package half imported when the module is, and note_with_doppler's
    mono branch keeps its distances in distance, not in duration, the
    name of a parameter. perform.py, run as a script, prints how many
    samples it sang, where it logged "finished" at a level nothing showed.
  • More leftovers are gone: commented-out code in localize2,
    rhythm_to_durations, Being.stay,
    InterestingPermutations.get_alternating and Notes.make_dict, among
    it a question to nobody, "should match self.seqsize ?". One note in
    localize2, on why it doubles no coefficient, stays as a sentence.

Documentation

  • The pages tell search engines and link previews what the package
    is.
    Every page's title named only the version, music 2.0.0; it now
    says "music: extreme-fidelity sound synthesis in Python", and the
    sidebar names the version instead. The front page has a description,
    every page has Open Graph tags and a preview image, and the site
    publishes a sitemap of the pages a reader might be looking for. The
    docs extra installs sphinx-sitemap and sphinxext-opengraph for them.
  • The preview image is the package's own output.
    tools/social_preview.py renders a phrase with the mipmapped
    band-limited oscillator, gliding from note to note with a vibrato, and
    draws its spectrogram beside the package's name and tagline.
  • A Listen page plays what the package sounds like. Thirteen sounds,
    each under the code that computes it: a scale, a vibrato and a glide,
    a sawtooth that folds and one that does not, noise by colour, a low
    pass opening, a mode and a cadence, a vibrato bound to its pitch, plain
    changes, a temperature record, a source passing, a binaural beat, a
    session and a sung line. The build runs the code, through a sound
    directive, and writes each clip as FLAC at one loudness. The
    documentation's workflow fails if one cannot be rendered, and
    tests/test_listen.py runs every block.
  • The same sounds play in a notebook that runs in Colab.
    examples/listen.ipynb plays each with IPython's Audio, and opens in
    Google Colab with nothing installed. tools/listen.py writes it from
    the page's blocks, and a test holds it to them. The tutorial says how
    to listen in a notebook.
  • An example sonifies data, one of the three uses the README names
    for the package, and the only one that had no example.
    examples/sonification.py plays the global mean temperature of each
    year since 1880, NASA's GISTEMP record, as pitch: the mean of
    1951-1980 is 440 Hz and a degree Celsius is an octave, so equal
    differences in temperature are equal intervals wherever they fall. It
    writes the record three ways: a note a year; the same notes moved to
    the nearest degree of a scale; and one line through the years, over a
    drone an octave under the reference and a tick each decade, which are
    to the line what axes are to a chart. It prints what the scale costs
    the data: a year moves by 0.04 of a degree on average, and 70 of the
    141 changes from one year to the next are played as one note repeated.
    tests/test_sonification.py measures each year's pitch in the files,
    and the Listen page plays the first.
  • localize_hrtf says where its responses come from. Its docstring
    said ASSESSMENT.md lists the lack of an HRTF as the package's
    largest gap, which it no longer does now that music.hrtf fetches
    the KEMAR measurements, and named neither setup_hrtf nor hrir. It
    now points to those two, says any other pair measured at the rate in
    use will do, and shows a note placed above and behind.
  • spatial_motion said the package had no head-related transfer
    function anywhere.
    localize_hrtf has applied a measured one since
    1.6.0, and the review for 2.0.0 took the other notes that said so out.
    It now points to it, and to hrir.
  • Docstrings say what their routines do. midi_to_hz_interval gives
    the ratio of two frequencies, not "the frequency interval in Hertz" it
    said; tremolos' example multiplied a note by louds(), and its notes
    said the lines were padded with ones, where each holds its last value;
    note_with_fm pointed to a synth_note and write_wav_mono to an
    __n, neither of which exists; profile's return value rendered as a
    nameless : dict; rhythm_to_durations said its examples agree two by
    two and showed nothing, and now shows it; localize and localize2
    placed two of their example sources at angles written as metres, and
    all four to the right, where they now run from left to right; and am,
    fade, trill, gaussian_noise and silence had words missing, or
    wrong types.
  • The change-ringing examples shape their notes, in the README, the
    tutorial and PlainChanges' docstring, as the Listen page's always
    did: a bare note ends wherever its phase lands, and joining them
    clicks, which the tutorial says a few sections before its peal.
  • The structures cite the book they ring. plain_changes cited
    Stedman's Campanalogia at the address of Tintinnalogia, and
    Peals carried a developer's notes ("Wikipedia seemed ok last time")
    where its references belong. Both cite Tintinnalogia, as the named
    peals do.
  • help(music) says what the package is, rather than "Top-level
    package for basic audio synthesis utilities", and the structures
    packages have docstrings of their own. The front page says the API
    reference, rather than the whole API, is importable from music.
  • The API reference lists every renamed parameter that still takes
    its old name,
    not only those renamed for their unit, and the README's
    cpan command installs all four Perl modules it names.
  • isynth.py played one table, not four. It set tab_sequence,
    and CanonicalSynth reads table, so every note was the default
    triangle; it sets table_sequence, and the notes cycle through the
    sine, triangle, square and sawtooth it lists.
  • The other examples. campanology.py's description came after its
    import, so it was no docstring; it promised three methods and listed
    two, the second through M.core.V_, which does not exist. It now
    describes the two it renders. Two examples spelled "synth" with a
    Cyrillic ѕ.
  • low_pass and high_pass said the cutoff is where they are 3 dB
    down,
    which holds while it is small. The docstrings now say where
    the 3 dB point drifts to -- 0.1035 for a low pass at 0.1, 0.094 for a
    high pass -- that a low pass has none from a cutoff of 0.2805, where
    even the Nyquist frequency is less than 3 dB down, and that a high
    pass's never reaches 0.2363. DISCREPANCIES.md derives both, and the
    tests pin them.
  • Three statements of fact were wrong. hz_to_midi takes a
    frequency of zero as machine epsilon, 2.2e-16 Hz, a pitch near -660,
    and said the smallest positive float, near -680; fir called its
    kernel symmetric when given an impulse response, which it uses as it
    is; and a test said the two-pole designs put their poles at
    1 - bandwidth, where the article's radius is 1 - 3 bandwidth.
  • The README and CONTRIBUTING.md said CI runs on every push. It
    runs on every push to master and on every pull request; a branch
    pushed on its own runs nothing until a pull request is opened from it.
  • Fourteen references in the API reference led nowhere, rendered as
    plain text where a link was meant. sing linked to unit_seconds and
    accents, which the reference has never listed, and to setup_engine
    by a path it is not documented at, as setup_hrtf did; setup_hrtf,
    setup_engine, localize_linear, StimulationSession and
    PrimaryTables linked to helpers, constants and an attribute the
    reference does not document; and Bonds to the names it binds. Each
    says what it meant, or links where the reference documents it. The
    members Peals and IteratorSynth inherit were listed on their pages
    with nothing to link to, and are documented there. The docs build is
    nitpicky now: a reference that leads nowhere fails it.
  • The tables the package exports had no pages, so scale's "one of
    SCALES" led nowhere and nothing listed the scales, the chords, the
    elevations measured or the four default wavetables. Each has its page
    in the API reference, with the comment that documents it where it is
    defined. autodoc did not find that comment for a name re-exported from
    music, and gave its type's docstring instead: ELEVATIONS was
    "Built-in immutable sequence".
  • The tutorial and the API reference say what a count of samples is,
    a whole number, and what a negative one is.
  • The rate module said a new thread starts at 44,100 Hz. On Python
    3.14's free-threaded build, or any 3.14 run with
    -X thread_inherit_context=1, a new thread starts with a copy of its
    starter's context, and at its rate. It says so, and what holds either
    way.
  • Smaller statements. waveform_table said its size "Defaults to
    LAMBDA_TILDE", a constant the reference does not show, which is
    16,384; note_with_doppler and note_with_vibrato_seq_localization
    gave what they return without its shape, which their stereo sets;
    and noise and modulated_noise said what a seed is for in the words
    of the code's history rather than what it does.

Maintained in the open since 2016. If music is useful to you or your institution, consider sponsoring its development; commissioned features and sponsored development are available too.