Changelog¶
All notable changes to this project will be documented in this file.
The format is based on Keep a Changelog, and this project adheres to Semantic Versioning.
Unreleased¶
Added¶
Changed¶
Removed¶
[0.2.0] 2026-11-27¶
Added¶
- Added the proxy reference to the virtual coefficient lab:
ScatteringSample.as_drawn(mesh, reference=proxy)takes the simplified mesh the room model will carry the lab's s on, so that s measures the share of the detailed object's reflection that the proxy does not reproduce;sample.reference_kindis"flat"or"proxy", and a proxy result is flagged non-ISO. - Added the diffusion coefficient to the lab:
diffusion_coefficient(ISO 17497-2 eq. 6) andnormalised_diffusion, andScatteringResult.d_angle,d_bandsandd_octaves(d_n per source, one-third-octave band and octave, with the same random-incidence weights as s), returned by every method. - Added
method="geometric"tomeasure_scattering: a fast heuristic preview (seconds, against minutes for Kirchhoff).n_raysspecular rays per source direction reflect off the rigid sample and reference, mounted in a rigid baffle at z = 0, and are binned on the receiver hemisphere; s is the geometrics_maxtimes the depth curve1 - exp(-(2 pi f h / c)^2), with no phase and no diffraction. Its accuracy against Kirchhoff is recorded in the module docstring ofcompas_acoustics.lab.geometric. It needstrimesh(andembreexfor speed) on Python >= 3.11, which thelabextra now installs. - Added
compas_acoustics.lab.raycast.RayCaster, the first-hit ray caster (trimesh with the Embree backend) behind the geometric method. - The geometric method warns when an object stands a mean height above the mounting plane of more than twice the spread of its relief, which is what a closed mesh on a backing thicker than
baseplatelooks like: the backing then sets the depthh.GeometricResponsegainedheight_meanandheight_spread. If the backing sits flush on the wall, pass its thickness asbaseplatetoas_drawn. - Added the Grasshopper virtual coefficient lab, three components in a new "Lab" subcategory: Scattering Sample (a mesh, Brep, surface or SubD as a relief to measure,
as_drawnor a repeateddisc), Scattering Lab (the scattering and diffusion coefficients of a sample by thegeometric,kirchhofforbemmethod) and Polar Preview (the reflected level of one preview source and octave as a coloured balloon atcentre). Scattering Lab'sscatteringoutput, the 7 octaves of a material, wires into Construct Material. The geometric method runs when its inputs change; Kirchhoff and BEM take minutes to hours and run only on the Run button. The lab measures an object that lies on the World XY plane facing +Z; Scattering Sample has an optionalplaneinput (theframeargument ofmake_scattering_sample) for an object that lies elsewhere, and an object whose footprint on XY has no area is a readable error. Scattering Lab keeps its run (or its result) when Scattering Sample is solved again with the same geometry, and says when its outputs are the last run's because the inputs changed. - Added the compas_pb messages
ArrayData,ScatteringSampleDataandScatteringResultData, and the worker functionsmake_scattering_sample(mesh, mode, diameter, reference, baseplate, symmetry, period, name, frame),run_scattering_lab(sample, method, preset, band_range, settings), andpolar_balloon(result, preview, octave, body, radius, floor_db). run_scattering_labreturns the heuristic note of the geometric method (that s is modelled from the geometry, not computed) asnotesand no longer inwarnings, and the Scattering Lab component shows it as a Remark instead of a warning;measure_scatteringstill warns, and a kirchhoff or bem run has no notes.- The Polar Preview balloon (
polar_balloon) keeps a 3 % minimum radius, so that a sparse geometric result, most of whose cells are empty, still gives a valid mesh instead of one collapsed to the centre. - Added the Save RIR button to Auralise and the worker function
save_impulse_responses: the impulse responses of the chosen pairs as WAV files, named as Save auralisation names its signals (<name>_mic_<r>_<s>.wav), at the level the body chooses, each with its JSON metadata.ImpulseResponse.to_wavtakes againon the raw response and records its inverse as the factorfrom_wavreads back. Auralise's Save button is now Save auralisation. - Added a flamenco guitar excerpt (
guitar.wav, TH Koeln Audio Group, CC BY-SA 3.0) and a castanets rhythm (castanets.wav, Matthias Frank, IEM Graz, CC0) toanechoic_soundfiles_library, with their sources and licences in its README. - Added the worker function
room_measures(scene): the volume of a closed room (else None) and the area exposed to the air, as the simulation methods take them, for the Acoustic Scene message.
Changed¶
- The Grasshopper plugin is released with the library: its version is the library's, and it requires that release of compas_acoustics (
>=X.Y.Zup to the next breaking release). bump-my-version updates both versions in the .csproj, andrelease.ymlpublishes the plugin to Yak after the library is on PyPI.publish_yakcan still be run by hand. - Changed Plot 2D to show a one-sentence description of the chosen parameter right of the Select parameter dropdown (dimmed while the dropdown rests): what the parameter is and its standard, from one table beside
PlotSelection.Names. - Changed Visualise Energy Map to compute the map when its Run button is pressed (or its new
runinput is true), not on every change of its inputs: the map takes seconds, and on the one worker it slowed the components that run on every change of the scene, Simulate Mono among them. Until a press the last map stays drawn; changing the band or the range redraws it without a run. - Changed Simulate Mono to simulate when its Run button is pressed (or its new
runinput, its last, is true), as Simulate Binaural and Simulate Ambisonics do, not on every change of its inputs. Until the first press it outputs nothing and says "press Run" (a hybrid with Tail Reference waits for its reference meanwhile). After a run it passes its responses on until the next run, a change of a source's sound included, and says when the settings differ from the run's; Cancel stops a run. - Removed the
energy_thresinput of Simulate Mono: it runs with the method's 1e-7, pyroomacoustics' own (Mono(energy_thres=)stays in Python). A definition saved with another value reads with its inputs in place and remarks that the responses now use 1e-7 until it is saved again. - Changed the Grasshopper components to take the descriptions of the installed plugin when a definition is opened: Grasshopper restored those the file was saved with, so a definition from an earlier release showed its tooltips.
- Changed Simulate Mono, Simulate Binaural and Simulate Ambisonics to take the methods' own seed, 42, when the seed input is left as it is, in place of a new random seed on every run: the components give what
Mono(),Binaural()andAmbisonics()give in Python. The seed port shows 42, and the message names the seed the run used. - Changed Simulate Mono, Simulate Binaural and Simulate Ambisonics to keep their responses when the model changes, until Run is pressed again, where they output nothing: the message says "model changed, rerun the simulation" and a warning colours the body; a change of the settings says "settings changed, rerun the simulation", for Simulate Binaural and Simulate Ambisonics now every setting and a reference simulated again (they compared only the tail, the orders and diffraction). A recompute that only draws new guids (receivers, objects, materials, sources) leaves the model as it was: the responses hold, carrying the current guids. While their responses hold the message says how many they simulated (
simulated 4 responses), no longer the sampling rate (48 kHz, 4 responses). While they run it sayssimulatingand, per response,simulating 2/4: the worker's progress stage ofMono(wasimage sourcesorray tracing, thenresponses) and of the hybrids' rendering (wasrendering). Simulate Binaural and Simulate Ambisonics refuse a reference that Simulate Mono kept from an earlier model, with a warning, and an error on Run: "The reference is from an earlier model: rerun Simulate Mono first." - Changed Simulate Mono's body to that of Simulate Binaural and Simulate Ambisonics: the ISM order slider. Ray tracing is an input (default on), no longer a toggle; the Air toggle and its
absorb_airinput are gone, and Simulate Mono always includes air absorption, as the hybrid components do (Mono(air_absorption=)stays in Python). A definition saved with the former body reads with its inputs in place, shows Ray tracing as an input with its saved value, and, if saved with Air off, remarks that the responses now include air absorption until it is saved again. - Changed the ISM order of Simulate Mono, Simulate Binaural and Simulate Ambisonics to a slider of stops, one per order from 0 to 10, labelled under the track, as Polar Preview's octave slider; it shows 3, the methods' default, until moved.
- Changed the order of Visualise Rays to a slider of stops, one per order from 1 to the traced
max_orderand All (the default, the empty input: every traced order); beyond 12 orders only every k-th stop is labelled. The stops followmax_order. - Changed Visualise Rays to play at a chosen speed and time: a time slider (ms; it scrubs and follows the playback) and a Speed dropdown (0.25x to 4x, a factor of the whole field in 10 s) beside Play and Rewind, with the inputs
timeandspeed. The rays are drawn from Play or a time on. Itsmax_orderandseedinputs hide with the control inputs on a new component ("Show control inputs" shows them). A definition saved before keepsmax_orderandseedwhere they were and readstimeandspeedhidden when it saved its control inputs hidden. - Changed Visualise Billiard to trace its own rays from a scene and play them as balls, as Visualise Rays plays its rays: the inputs of Visualise Rays (
scene,source_idx,n_ballsin place ofn_rays,max_order,direction,angle,order,time,speed) without scattering, and the same body (source, order, time, Speed, Play and Rewind). A definition saved with the former Visualise Billiard reads with the inputs of a new one: connect a scene. - Changed the step sliders (the ISM order, the Ambisonic order, Polar Preview's octave, Visualise Rays' order) to span the width of the body: the track's ends stand half the end label, the knob's radius and a small margin from its edges.
- Changed Simulate Ambisonics' SH order dropdown to the Ambisonic order, a slider of stops from 1 to 7 as the ISM order's, still a choice of the component without an input; a definition keeps the order it was saved with.
- Changed Source's Sound file... button to the Anechoic sound dropdown of Auralise, on a
soundinput afterspl(wassound_file, beforespl): a bundled recording (Female speech, Male speech, Viola, Guitar or Castanets) or a file chosen with Load..., none on a new Source. Auralise auralises the pairs of a Source with its sound in place of its own. A definition saved withsound_file, or before Source had a sound, reads without it,soundempty and hidden. - Changed Polar Preview to centre the balloon, when
centreis not given, on the result's sample as Scattering Sample draws it: the centroid of its footprint in x and y and its top in z, where it was the origin.run_scattering_labrecords the centre in the result'sgeneration(sample_centre), andpolar_balloonreturns it ascentre(None for a result without it). A wiredcentrestill wins. - Changed the geometric method of the lab to report progress and to stop at the next source when cancelled.
- Changed the worker to install
compas_acoustics[lab](trimesh, embreex, mesh2scattering): reinstall the worker to use the lab. NumCalc, whichbemneeds, is a separate setup step. The Grasshopper Install Worker component installs the extra too (it installedcompas_acousticswithout it, so the geometric method and bem failed in a worker it had set up). - Changed the messages of the lab (
ScatteringSample,measure_scattering, the Kirchhoff and BEM solvers, the ray caster, and the Scattering Sample and Scattering Lab components) to one short sentence each, about 90 characters, that names what is wrong and the input that fixes it. The octaves filled from a simulated one are one warning, not one each; a run ofmeasure_scatteringwithbemwarns once about unconverged steps (the result's warning, with its octaves, in place of the solver's) and once about a large mesh. - Changed Scattering Sample and Scattering Lab to leave out an input the chosen mode or method does not use (
referencein disc mode;n_raysandmax_bounceswith kirchhoff or bem;cache_dirwith geometric or kirchhoff) and to name it in a Remark, where they warned and did not run. Such an input no longer makes another run. - Changed which messages of the lab components are warnings. A warning now means the outputs may be wrong or are not those of the inputs; a fact about the run is a Remark: the octaves not simulated, bands beyond ISO 17497, the geometric heuristic, Kirchhoff falling back to one process, and on Scattering Sample the ISO 17497-1 depth limit and a proxy reference.
run_scattering_labreturns these asnotes, leaves out the sample's own warnings (Scattering Sample shows them, so Scattering Lab no longer repeats them) and leaves out how long a run takes and the large-mesh and many-receiver notices, which reach the component only after the run. - Changed Scattering Lab's Run button to say what pressing it does while kirchhoff or bem waits for it: "Press Run to start", or "Press Run to update" when the outputs are the last run's. It replaces the Remark "Press Run…" and the "press Run" text under the component.
- Changed the dropdowns and switches of the Grasshopper components to show an option without its underscores ("as drawn", "ray tracing"); the value the worker gets and a definition saves is unchanged.
- Removed the
finesource preset (864 directions, Heimes and Vorländer's grid) ofSourceGrid.presetandmeasure_scattering, and from Scattering Lab:survey(13) andstandard(97) remain. - Changed a
ScatteringResultto hold the polar levels of every source direction (polar_source_indiceslists them all), not only the 13 nearest ISO 17497-2 Table 1, so that Polar Preview offers each direction measured.compas_acoustics.lab.scattering.preview_sourcesis removed. Astandardresult of a 1.4 m sample holds about 20 MB of levels (about 60 MB to 8000 Hz). - Changed Polar Preview's incidence selection from a dropdown to two dials side by side: a section through the sample for the colatitude θ and a plan for the azimuth φ, with a tick for each direction the result has and an arrow from the chosen one to the sample. Picking a colatitude keeps the azimuth (or the nearest one the ring has); at the normal the azimuth dial is grey. The dials set the same
previewinput, so saved definitions keep their direction, and a wiredpreviewgreys them. The component is at least 176 px wide to fit them. Its octave is a horizontal slider with a stop per octave, 125 Hz to 8 kHz: an octave the result did not simulate (8000 Hz for the ISO range) is grey and the knob does not stop there, and a definition saved at such an octave shows and draws the nearest simulated one. The strip under the component is empty: the dials and the slider show the choice. - Changed the strips under Scattering Sample and Scattering Lab to leave out what their dropdowns show: the sample's reads its diameter (
d 1.41 m), the result's its range of scattering coefficients (s 0.06–0.94). - Changed Polar Preview to name its result by its guid: the worker holds the results it made or was sent (
polar_balloontakes a result or the guid of a held one, up to 1 GB of levels, the least recently used let go first), so a change of the direction, octave or body no longer sends the result again. A worker that does not hold it (after a restart) answers withNOT_HELD, and the result is sent once. - Changed the preset of Scattering Lab to default to
survey(13 source directions), and removed its "Default" option, which took the method's own (standard).measure_scatteringkeepsstandard. A definition saved with "Default" now runssurvey, as its dropdown shows. - Fixed the Preview switch of Polar Preview, which did not hide the balloon: it shared its name with the
previewinput (the source index), so a click set that input instead. - Removed the
nameinput of Scattering Sample: the name labelled the sample and its result in a panel and nothing else.make_scattering_sampleandScatteringSamplekeep theirname. - Added
max_bouncesto Scattering Lab: the reflections a ray of the geometric method may make before it counts as lost (default 20), the remedy its lost-rays warning names. - Changed the default
methodofmeasure_scatteringto"geometric"(it was"kirchhoff"); passmethod="kirchhoff"for the previous behaviour, which needs neithertrimeshnor Python >= 3.11. Every method now defaults to the"standard"source preset. - Changed the default ray count of
Monofrom 20000 toroom.raytracing.default_rays: the rays at which a direction's energy over one slot of the hybrid's late envelope has a standard deviation of 1 dB on its 96-line grid (Vorlaender 2020, Eq. 11.20), from the room's volume, at least 20000 (MIN_RAYS, formerly the 50000 floor on pyroomacoustics' heuristic, whichn_rays=Noneno longer gives).BinauralandAmbisonicstrace their own reference and directional histograms with the same rule, now also at least 20000, so aMonoreference traces what they trace themselves; their responses move in rooms below about 1050 m3. They taken_raysto set those rays, refused when they trace none. In Grasshopper, Simulate Binaural and Simulate Ambisonics have an n_rays input, and Simulate Mono's n_rays port is empty by default (a definition saved with its former 20000 reads empty). - Changed the default
durationofMonowith ray tracing, and of the referenceBinauralandAmbisonicstrace themselves, to trace again at 1.5 times the longest T30 read while the responses end before 2/3 of it, up to 12 s, in place of warning: the Eyring-based length cuts the decay of a room whose absorption sits on a few surfaces. A givenMonoduration is kept and still warns. - Changed
late_envelopeofBinauralandAmbisonicsfrom on/off to"omni","directional"orFalse, and the default with a reference or a ray-tracing tail to"omni": the late field takes the reference's level per band, and its delay lines keep the network's spread over directions, weighted bydirectional_absorption."directional"is the formerTrue, with every line given its direction's share of the ray-traced energy per band; it traces the directional histograms, which"omni"does not (generation["histogram_rays"]is thenNone). A reference the method traces itself takes the ray count of the directions' rule (hybrid.envelope.histogram_rays, a direction's energy to 1 dB) in both modes, so both shape the late field to the same reference.late_envelope=Trueraises, naming the three values. The Grasshopper components' Late envelope toggle is a dropdown (omni, the default, directional, off), and a definition saved with the toggle keeps its choice (on as directional, off as off); with an Eyring or Sabine tail, which the methods refuse a mode with, the dropdown rests and the late envelope is sent off. - Changed
BinauralandAmbisonicswith a givenMonoreference at theirimage_source_orderto take the early field's images from the reference's own image source search (room.reflections.damping_as_searched), as a ray-tracing tail does, in place of a second search of the room; the responses are bit-identical. - Changed
BinauralandAmbisonicsto render the source-receiver pairs on threads, as many as fit in about 4 GB at a pair's peak memory; the responses are bit-identical and in the same order. - Changed the hybrid's feedback delay network to filter its lines with the kernel of
scipy.signal.sosfiltcalled directly, without that function's checks of its arguments in every block; the responses are bit-identical, the network about twice as fast. - Changed
Analyser.plotto label its axes as the Grasshopper plots do, from one table that the worker also serves ("Value (%)"for D50,"Modulation transfer index (0-1)"for the bands of STI). - Changed the error for a wrong number of band values of
Source.spland theAcousticMaterialcoefficients to one wording. - Changed the worker to check the token of a call before registering it, so an unauthorised call leaves a running call with the same id alone; a POST to an unknown route without the token answers 401.
- Changed
room.diffuse.predicted_rtto use pyrato's Sabine and Eyring (pyrato.parametric) where they exist (pyrato >= 1.0, Python >= 3.11), and its own lines in pyrato's order of operations where they do not; on Python < 3.11 a mean absorption at or below 1e-10 now gives a large finite Sabine time, as pyrato does, instead of inf. - Changed
hybrid.synthesis.prepareto takediffractionasNone,"udfa"or"btms"and to requireduration_s;BinauralandAmbisonicsstill takediffraction=Trueand default to 1.5 times each pair's longest target reverberation time. - Changed the allpass cascade of the hybrid's surface scattering (
scattering=True) to run block by block, about 28 times faster; the responses agree with the former filter to about 1e-14 of their peak. - Changed BTMS diffraction to compute the edge coordinates of the second order once per segment, not once per segment pair, and the diffracting edges once per room geometry: about 1.4 times faster, the responses bit-identical. The edge warnings come once per simulation, not once per source-receiver pair.
- Changed
RoomGeometryto compute its face areas, normals, exposed faces and volume once; the responses are bit-identical. - Changed names in the hybrid engine:
hybrid.late.renderishybrid.late.run_network;hybrid.diffraction.toolbox_frameandtoolbox_cylareedge_frameandedge_cyl; thePairargument of the engine's functions andHybridCore.specarepair;hybrid.diffraction.pair_validtakes the two angles; the first argument ofroom.pra.directivity_to_praisdirectivity. - Changed the worker's error for an unknown
time_scaleto name its options once. - Changed the Grasshopper Simulate Mono, Simulate Binaural and Simulate Ambisonics messages to one format (
48 kHz, ...,SH order Nfor the hybrid's spherical harmonic order); a message longer than the strip is cut there, the full text in the tooltip. Corrected component texts: Play reads Pause while playing, Install Worker installs a version range, the hybrid seed also seeds the rays the method traces. Material Library bars use the picker's colours. - Changed the hybrid's feedback delay network to fall back to pyFDN's
SOSBankwhen scipy's privatesosfiltkernel cannot be imported; the output is the same. - Changed
Analyserto start every parameter's windows, LF and LFC included, at one onset:pyfar.dsp.find_impulse_response_starton channel 0 (the 20 dB criterion of ISO 3382-1). It replaces the package's own start search and, for LF and LFC, the geometric direct-sound sample; where the direct sound is weak or blocked the parameters move (on the test rooms C50 up to 0.7 dB, D50 up to 2.3 %, DRR up to 11 dB at 125 Hz, Ts up to 3 ms, LF up to 0.06). - Changed
Analyser.clarity_definitionto give C50, C80 and D50 as NaN when the early or late part has no energy, as DRR does, without the1e-12offset;print_tableandexport_csvshow the stored values, not values rounded to 2 decimals. - Changed the BTMS first-order integrand and its quadrature to be written from the published line integral (Calamia and Svensson 2007, Eqs. (2)-(4)) and the standard adaptive Simpson rule with Richardson extrapolation; the responses are bit-identical.
- Changed Simulate Mono, Simulate Binaural and Simulate Ambisonics to output
irs, the impulse responses in scene order (receiver by receiver, the sources within each), in place ofmono_ir_graph,binaural_ir_graphandambisonic_ir_graph. Connectirsto Analyse Impulse Response, Auralise or the Audio Player directly; thereferenceof Simulate Binaural and Simulate Ambisonics takes theirsof Simulate Mono, and a reference that lacks a source-receiver pair of the scene is an error that names the pair. A definition saved with the former outputs opens with them namedirs. Python'sScene.ir_graphis unchanged. - Removed the Normalize toggle of Simulate Mono, Simulate Binaural and Simulate Ambisonics: Grasshopper reads the raw level of the responses (the Audio Player's Normalize and Auralise's
levelchoose the level of what is played or saved). A definition saved with the toggle reads without it. - Changed Analyse Impulse Response to take
irs(the responses of Simulate, one or many) with a Source and a Receiver dropdown (source_idxandreceiver_idx: All, or one by number and name; a wired list of integers chooses several). The n-th distinct source (receiver) among the connected responses, in the order they come, is source (receiver) n.parameters,timeandfrequencyhold one branch per pair, path{receiver;source}, and the chart titles name the pair. - Changed Plot 2D to take a
selectdropdown, Select parameter, beside itsdatainput (T30 until chosen, All, or one parameter by name, each with its title in the opened menu, as T30 (Reverberation Time); its width does not follow the charts'), as Deconstruct Parameter did, and to read its data as a tree: one chart per parameter over every branch. The time and frequency responses are charted whichever parameter is chosen; with only them connected the dropdown rests, dimmed, and keeps its choice. - Changed Auralise to take
irs, the Source and Receiver dropdowns of Analyse Impulse Response and onesound: choose it on the Anechoic sound dropdown, a bundled recording (Female speech, Male speech, Viola, Guitar or Castanets; none is chosen on a new Auralise, which warns until one is) or a file chosen with its last entry, Load..., which the dropdown then lists by its name, or wire a File Path (a wired path wins). A definition saved with the former Anechoic sound button reads its file back as the loaded entry, chosen.signalsholds one branch per chosen pair, path{receiver;source}. A pair whose Source has its own sound (the same Anechoic sound dropdown on Source) is auralised with it, the others with Auralise'ssound; Auralise warns only when a chosen pair has neither. The levelrelativetakes its gain from every connected pair convolved with its sound, not only the chosen ones, so a chosen pair keeps its level difference to the loudest connected one. The level is a dropdown (none, the default, relative or individual) in place of the three-button switch, whose default was relative: a definition saved with a level chosen keeps it, but one saved without choosing a level used to auralise at relative and now opens with none, the raw level, which may clip (the clip warning says so); choose relative to restore the former behaviour. Save auralisation and Save RIR write the chosen pairs as<name>_mic_<r>_<s>.wav, with r and s the receiver and source numbers. - Changed the Audio Player to take no Source: the responses it plays come from Simulate directly.
- Changed Analyse Impulse Response to note a binaural or ambisonic response analysed on its first channel as a Remark, not a Warning: the worker's
analysisreturns that message innotes(analyser.CHANNEL_NOTE). - Changed the Audio Player to say why it cannot play a signal (more than two channels, or a playback error) only in its warning: the body keeps its header line.
- Changed Analyse Impulse Response and Plot 2D in Grasshopper to no longer show LFC (the worker's
analysisdoes not return it);Analyserstill computes it. - Changed the Plot 2D Select parameter dropdown to list All and the parameters connected, in place of every parameter (no LF for a response that is not ambisonic); with nothing connected it lists every parameter. A parameter chosen or saved that is not in the connected data stays shown and gives a warning, which for LF says it needs an ambisonic response (Simulate Ambisonics).
- Changed the worker functions of the plugin's interface:
analysis(irs, ...),auralise(irs, sound, chosen, labels, ...)andsave_impulse_responses(irs, chosen, labels, ...)take the responses and the chosen pairs;auralisetakes a bundled recording by its name (female_speech,male_speech,viola,guitar,castanets) or a file's path, or None, and auralises each response with thesound_fileof its source where that has one;make_sourcetakessound_filethe same way, a bundled recording by its name or a file's path. A plugin and a worker of different builds do not work together: use Install Worker again after updating. - Changed Grasshopper's Simulate Binaural and Simulate Ambisonics to default Tail to Ray tracing and to drop the Auto option: they always send an explicit
tailto the worker, and a connectedreferenceneeds Tail Reference (any other tail is an error before the worker is called). A definition saved with Auto reads as Reference when a reference is connected and as Ray tracing otherwise. The Python API is unchanged. - Changed the test suite to drop the tests whose assertions other tests already make (160 Python tests and 60 C# test cases), to merge tests that make the same call into one, and to drop the tests left from development: tests that only check that a removed component, input or argument is gone, tests that copy a constant or a formula of the code, and tests of code nothing calls any more; and to drop the tests of the BEM solver and NumCalc (
tests/lab/test_bem.py, the BEM convergence and cache-directory cases of the scattering lab and its component, and the validation against the Zenodo 15673498 results). CI runs the tests markedslowonce, in aslowjob on Python 3.12, in place of every 3.11 and 3.12 job of the matrix; thehybrid-simulation-testjob, which repeated tests the matrix runs, is removed; a new push to a pull request cancels its running checks.
Fixed¶
- Fixed Rhino closing on macOS when the worker reset a progress request of a running simulation: .NET there throws the connection's
SocketExceptionunwrapped, which the plugin's once-a-second progress timer did not catch. - Fixed
BinauralandAmbisonicsto render a path a source radiates into the negative lobe of its pattern (behind a'supercardioid','hypercardioid'or'bidirectional'source) in antiphase, asMonodoes; such paths were silent, in the direct sound, the reflections and the late field's drive, which left the late level of a'bidirectional'source about 3 dB low. Responses of'omnidirectional'and'cardioid'sources are bit-identical. - Fixed
ImpulseResponse.from_wavto read the source's direction from the JSON metadata; the source faced+xwhatever was written. - Fixed
RayField.from_sceneto raise for a source whose directivity is not one of the five patterns, as a simulation does; it traced the source as omnidirectional. - Fixed the hybrid's late envelope at sample rates between 22.6 and 31.7 kHz, where pyfar's filter bank has no 16 kHz band and the omnidirectional shaping summed a band that was never written; the band count follows the bank. 44.1 and 48 kHz are unchanged.
- Fixed
EnergyMapto bin on the ray tracer's grid (4 ms in whole samples, 3.991 ms at 44.1 kHz);bin_sizesaid 4 ms, the image sources were binned on another grid than the rays, and the last ray bins were dropped. 48 kHz is unchanged. - Fixed
BinauralandAmbisonicsto check a reference's length against the longest predicted Eyring reverberation time, no longer held within 0.5 to 12 s, and only when there is a reference: an Eyring or Sabine tail no longer warns that ray tracing will be slow. - Fixed Grasshopper Simulate Binaural to use the HRTF set chosen with its HRTF... button while the input is hidden (the default layout); the set was ignored and the default rendered.
- Fixed the Grasshopper source preview to draw the supercardioid the simulation uses (0.37), and the Acoustic Scene message to show the volume and area of the room geometry the simulation uses, from the worker and only when the scene changes (the preview's area alone for an open room or an older worker).
Removed¶
- Removed the
ray_fieldandplayinputs of Visualise Billiard, which traces its rays itself: a definition saved with them reads without them, and their wires and those of its formertimeandspeedinputs are disconnected. The reflections of Visualise Reflections no longer play in Visualise Billiard. - Removed
Source.omniand the voice presetsSource.voice_normal,voice_raised,voice_loudandvoice_shouting; setSource.splinstead. - Removed
AcousticMaterial.scattering_coefficients_from_depthandAcousticMaterial.add_to_library. - Removed the
impulse_responseargument of theAnalysermethods and ofAnalyser.analyse: oneAnalyserper response. Removed theAnalyser.frequency_bandssetter, with which other bands could not be analysed, and the result propertiesAnalyser.T30,T20,C50,C80,D50,DRR,STI,Ts,G,EDTand their_overallforms: readanalysis_data. - Removed
ImpulseResponse.resampledand thespeed_of_soundargument ofImpulseResponse.direct_sound_index. - Removed
idfromScene,Source,ReceiverandAcousticObject(useguid);Scene.number_of_acoustic_objects,number_of_sources,number_of_receivers,acoustic_materials(usescene_materials),print_scene_materials,display_materials_in_viewer,clear_ir_edgesandsimulation_methods();AcousticObject.visualisation_geometryandAcousticObject.add_source. - Removed the
nameanddescriptionarguments ofAuraliser, nowAuraliser(impulse_responses, anechoic_sounds=None, ...), andAuraliser.get_impulse_response_count,get_anechoic_sounds_count,check_number_of_impulse_responses_vs_anechoic_soundsandlongest_impulse_response_length;Auraliser.import_anechoic_soundreads at the auraliser'ssampling_rate. - Removed
python -m compas_acoustics, which did nothing. - Removed
RoomGeometry.without_obstacles, theRoomGeometry.mergeable_facesfield,RoomGeometry.to_pra(enclosure_only=), theweld_toleranceargument ofRoomGeometry.from_sceneandfrom_mesh(welding stays at 1 mm) andSurfaceMaterial.impedance. - Removed
room.air.speed_of_sound(useair_or_default(air).speed_of_sound), thespeed_of_soundargument ofroom.raytracing.default_duration(it comes fromair), theweightingargument ofroom.diffuse.mean_absorptionandpredicted_rt(always area-weighted),room.pra.scene_to_pra_room(useRoomGeometry.from_scene(scene).to_pra(...)),room.pra.receivers_to_pra_mic_array(usepra.MicrophoneArray) and thetolargument ofroom.pra.vector_to_pra.room.pra.source_to_prano longer reads the source's sound file. - Removed
generation["valid_range_hz"], which was alwaysNone. - Removed from the hybrid engine's functions the arguments no method passed:
design_fdn(matrix, dc_factor, nyquist_factor),directional_delays(spread),ambisonic_output_matrix(normalization, max_leakage),default_num_delays(minimum),encode(normalization),prepare(drive_gain),RoomTarget.from_room(weighting, air_absorption),RoomTarget.geq_bands(dc_factor, nyquist_factor), then_scanargument andhybrid.directional.scan_directions,hybrid.bands.BAND_EDGESandBANDWIDTHS, the default ofPair.speed_of_sound, and 1-D signals inshape_late.RoomTarget.levelisNonefor one slope. - Removed
Edge.contains,along_planeandOccluders.on_enclosurefromhybrid.diffraction;hybrid.btms.wedge1st_irreturns the response and its singular flag only. - Removed
RayField.particles,RayField.duration_msandRay.is_in_cone, and the reading of ray-field data withsound_speed, specular paths withwall_namesand specular reflections under"paths";SpecularReflectionstakesrays, asRayFielddoes. - Removed the Grasshopper plugin's reading of documents saved by development builds before 0.1.0 (the old preview default, inputs matched by name, a material saved by name only); documents of 0.1.0 and later open as before, and a Late envelope toggle saved by 0.1.x keeps its choice.
- Removed from the worker what no caller read:
make_receiver(frame=),info()'s"python"and"compas_pb", auralise's per-signal"suffix", the results ofplay,stop,pauseandresume,playback_status's"paused"and"duration",energy_map's"bands"and"inside",specular_reflections'"orders",worker.api.METHODS, the service's--no-autoreloadandstart_service(host=), andinstall(hybrid=)with the"hybrid"key ofworker.json. - Removed the Grasshopper components Deconstruct IR Graph, Deconstruct Parameter and Check Channel: Simulate's
irsgo to Analyse Impulse Response, whose dropdowns pick the pair, and Plot 2D'sselectpicks the parameter. A definition that used them opens with the components missing: wire Simulate to Analyse Impulse Response and Plot 2D instead. - Removed the
mix_sourcesandanechoic_soundsinputs of Auralise: each chosen pair is auralised and saved on its own (Auraliser(mix_sources=)andAuraliser(anechoic_sounds=)stay in Python). A definition saved with them reads without them; a sound wired toanechoic_soundsis not carried over: choose it again on the Anechoic sound dropdown or wire a File Path tosound. - Removed the worker function
sound_info. - Removed the
sampling_rateoutput of Auralise: each signal onsignalscarries its rate, which a panel shows and the Audio Player reads. A definition saved with the output reads without it.
[0.1.1] 2026-11-18¶
Added¶
- Added
invoke yakerizeandinvoke publish-yak, and thepublish_yakworkflow: the Grasshopper plugin as a Yak package, published to the Yak test server. - Added the Install Worker component, which creates the worker with the newest
compas_acousticson PyPI that the plugin works with: from the .csproj'sCompasAcousticsVersionup to its next breaking release. The plugin's version is its own, and bumpversion no longer changes it.
Changed¶
- Changed the default HRTF set of
Binauralto the Neumann KU 100 of TH Koeln (KU100_HRIR_L2702.sofa, 2702 directions over the full sphere), replacing the SONICOM KEMAR, which covers elevations from -45 to 90 degrees only;hrtf="kemar"is nowhrtf="ku100". - Changed the API reference to a section with a page per package; the table of contents stops at the classes and functions.
- Changed the
docsworkflow to only build the docs;release.ymldeploys them. - Changed the hybrid's directional late envelope to give every octave band of the delay lines that band's distribution of the ray-traced energy over directions, in place of the distribution summed over the bands, which the bands carrying most of the late energy dominated (
hybrid.envelope.directional_sharestakes one band and its histogram row;shape_latetakeshistogram=and replacesshape_late_directional). Each band keeps its total, 16 kHz included; a band's shares are held once its own rays have decayed 60 dB; a histogram on other bands is refused. Against exact image-source shoeboxes with direction- and frequency-dependent absorption the per-direction late level error falls from up to 10 dB to 0.2-1.2 dB per band. The shaping takes about five times as long (one share computation per band). The directional histograms trace as many rays as give a direction's energy over one smoothing window a standard deviation of 1 dB (hybrid.envelope.histogram_rays, after Vorlaender 2020, Eq. 11.20: proportional to the room volume and the number of lines); atMono's 20000 the per-band late directions of a 2300 m3 open-plan office were mostly ray noise. That office takes 44147 rays, a 640 m3 office 12051, a 320 m3 room about 6000. The count is recorded asgeneration["histogram_rays"]. - Changed the requirement to
pyroomacoustics >=0.10.1, <0.11: the responses are composed from functions of its 0.10 simulation module. - Changed the hybrid's ray-tracing tail to one image source search and one ray trace: its reference,
Mono(ray_tracing=True), is traced with a copy of every receiver that sorts the same rays by direction, so the directional histograms are no second trace, and the reference's search gives the early field's images, whose damping without the specular factor, or the scattered parts ofscattering=True, are read from it (room.reflections.damping_as_searched: every image's walls are traced back from a receiver and kept where the search's own mirroring, visibility test and float32 product give that image bit for bit, so the other build's product along them is its search's; where they leave that damping open, as with two images at one position whose products differ only in the other build, that room is searched). The reference now takes the method'simage_source_orderandseed, the histogram's ray count with the late envelope, anddurationwhere that is longer than the mono default, in place of the mono defaults (order 3, seed 42, 20000 rays): with the late envelope off and at those defaults the responses are unchanged; with adurationthe histograms take the reference's rays, traced to its length.scattering=Trueno longer searches a second room.room.raytracing.ray_traced_runreturns the room, the responses and, withdirections, the histograms (RayTracedRun), and replacesray_traced_rirs;hybrid.early.image_sourcestakesdamping=andscattered=arrays in place ofscattered_room. - Changed to pyFDN 0.7 (
fdn_dss_gallery,decay_to_graphic_eq,gain_to_graphic_eq,dss_to_td), from 0.5, whose API 0.6 removed; the responses are unchanged.hybrid.late.design_fdnreturns,rendertakes andHybridCore.buildsholds(pyFDN.DSS, filters)pairs in place ofpyFDN.FDNBuild; amatrixother than"orthogonal"is seeded byrngand takes pyFDN 0.7's lowercase names. - Changed the time smoothing of the hybrid's directional shares to run on all cores, eight delay lines per thread; the responses are bit-identical.
Fixed¶
- Fixed
Monoand the hybrid's references failing with "zero-size array" when one receiver sees none of the image sources up to the simulated order while another receiver sees the same source, and rendering a blocked direct sound when no receiver sees it: such a pair now has no image part (room.raytracing.image_source_rirs,ray_traced_run). - Fixed the hybrid failing with "rt must be positive" on a reference without any energy (image sources alone at a receiver that sees none): it is refused by the names of its source and receiver.
Removed¶
- Removed the Grasshopper installer (
installer/),invoke installer-bundleand the zip of the releases, replaced by the Yak package and Install Worker.
[0.1.0] 2026-11-05¶
Migration from the previous main¶
Nothing is kept under its old name. What replaces what:
| Before | Now |
|---|---|
Simulator(scene).rir_from_ray_tracing(image_source_order=, n_rays=, air_absorption=, random_seed=) |
scene.simulate(Mono(ray_tracing=True, image_source_order=, n_rays=, air_absorption=, seed=)) |
Simulator(scene).rir_from_image_source_method(order) |
scene.simulate(Mono(image_source_order=order, ray_tracing=False)) |
simulator.sampling_rate = fs |
Scene(name, sampling_rate=fs) or scene.sampling_rate = fs |
simulator.trace_rays(...) |
RayField.from_scene(scene, ...) |
Ray(..., sound_speed=), RayField(..., sound_speed=) |
removed; travel times are at Defaults().DEFAULT_SPEED_OF_SOUND |
compas_acoustics.ray, compas_acoustics.specular |
compas_acoustics.rays (or the classes from compas_acoustics) |
compas_acoustics.acoustic_material, compas_acoustics.materials_library |
compas_acoustics.materials (or the classes from compas_acoustics) |
compas_acoustics.geometry |
compas_acoustics.acoustic_object (or the classes from compas_acoustics) |
compas_acoustics.numerical.fitness |
compas_acoustics.fitness, or compas_acoustics.regularized_fitness |
compas_acoustics.pra_converter |
compas_acoustics.room.pra (no longer an attribute of compas_acoustics) |
JSON with "dtype": "compas_acoustics.<module>/<Class>" |
"dtype": "compas_acoustics/<Class>"; files saved before do not load |
simulator.rirs, simulator.results |
the responses returned by scene.simulate, or scene.impulse_responses(method_name), scene.get_impulse_response(source, receiver) |
Scene(simulation_platform=), ImpulseResponse(simulation_platform=) |
removed; ir.generation names the method |
AcousticObjectsGroup; scene.iter_acoustic_objects() |
scene.add_acoustic_objects(shoebox_room(...)) (a list); scene.acoustic_objects |
scene.acoustic_materials = {...} |
shoebox_room(materials=...), AcousticObject.from_obj(path, materials=...): a material per object |
AcousticAnalyser.compute_rt, compute_clarity_definition, compute_drr, compute_sti, compute_stage_support, compute_strength |
reverberation_times, clarity_definition, direct_to_reverberant_ratio, speech_transmission_index, stage_support, sound_strength |
stage_acoustics.compute_ST1, compute_ST2, compute_G_stage, compute_ITDG |
Analyser.stage_support() |
Auraliser.multiconvolution(), Auraliser.convolve(ir, sound) |
Auraliser(...).convolve(), in the format of the impulse responses |
Auraliser.decode_stereo_simple(), Auraliser.resample_signal() |
no decoder: binaural responses from Binaural(), ambisonic ones from Ambisonics() saved for a decoder elsewhere; pyfar.dsp.resample |
Auraliser(output_format=...) |
removed: the signal has the format of its impulse responses, Auraliser.format (mono, binaural or ambisonic) |
sample_rate (ImpulseResponse, Auraliser, AudioPlayer.play, receivers_to_pra_mic_array) |
sampling_rate |
pra_converter.material_to_pra, mesh_to_pra_wall, acoustic_object_to_pra_walls |
RoomGeometry.to_pra, compas_acoustics.room.pra.scene_to_pra_room |
Tools |
removed |
compas_acoustics.orchestra_layouts; the Orchestra Layout component |
removed |
AcousticAnalyser |
Analyser |
Auraliser, AcousticAnalyser, MaterialsLibrary as Data |
plain classes: no guid, copy() or compas.json_dumps |
Grasshopper: Simulate Ray Tracing, with a sample_rate input |
Simulate Mono; the rate is the sampling_rate input of Acoustic Scene |
| Grasshopper: Analyse IR output STI | no longer an output, with G: they need pyrato >= 1.0 |
Source direction default +z; shoebox_room(materials={'left_wall': ..., 'right_wall': ...}) with left_wall at y = 0 |
direction default +x, as the Grasshopper Source component has it; left_wall is at y = width and right_wall at y = 0, the sides of a receiver at the centre facing +x (swap the two keys to keep a room) |
scene.simulate(hybrid), then hybrid.binaural(hrtf) |
scene.simulate(Binaural(hrtf=...)), stored under 'binaural' |
Hybrid() returning ambisonic responses |
Ambisonics(sh_order=...), stored under 'ambisonics'; the same seed gives both methods the same late field |
synthesize(...), binaural_rir(result, hrtf, filters) |
core = prepare(...), then render_ambisonics(core, sh_order, normalization) or render_binaural(core, hrtf): each delay line through its own HRIR |
ir.generation["output"] |
ir.format ('mono', 'binaural' or 'ambisonic'), read from the channels |
shape_late(late, early, reference, fs) |
shape_late(signals, early_w, late_w, reference, fs) |
Grasshopper: Simulate Ray Tracing output ir_graph |
Simulate Mono output mono_ir_graph |
compas_acoustics.worker.proxy(), a compas.rpc server with COMPAS JSON and WAV files in temporary folders |
compas_acoustics.worker.client(), an HTTP service with compas_pb payloads |
Grasshopper: the hybrid's reference given as a method name on the scene |
the mono_ir_graph wire of Simulate Mono only |
Installer input worker (hybrid) |
not used: the installer always sets up the worker |
Grasshopper: Simulate Hybrid output ir_graph (ambisonic) |
Simulate Binaural (hrtf, output binaural_ir_graph) and Simulate Ambisonics (the SH order dropdown, output ambisonic_ir_graph) |
Grasshopper: Plot 2D with plane, x_size, y_size, settings and text, point and polyline outputs |
Plot 2D draws its charts on the canvas: input data (a list), no outputs |
| Grasshopper: Plot 2D Settings | removed, with Plot 2D's geometry |
| Grasshopper: Material Library's nested right-click menu | a picker dialog with search and a chart, opened from the body or "Choose material..." |
| Grasshopper: value lists and buttons placed next to new components | controls drawn on the component body |
Grasshopper: Analyse IR input time_scale |
right-click the time output: Time scale dB or linear |
Grasshopper: Auralise input level, Acoustic Object input role, Deconstruct Parameter input select |
the switch on the body only |
| Grasshopper: Room Scene | Acoustic Scene (nickname Scene), the same inputs and output |
Grasshopper: Receiver input plane |
removed: position and direction, the receiver upright (+z up) |
Grasshopper: Auralise inputs save, save_file_path, save_file_name |
the Save button on its body: a dialog chooses the folder and the name |
Grasshopper: the Directivity component; Source input directivity |
the directivity dropdown on Source |
Grasshopper: Audio Player input normalize (default True) |
the Norm toggle on its body, off by default |
Grasshopper: Audio Player inputs play, stop; Visualise Billiard output t |
the Play, Pause and Stop buttons on the body; removed |
Grasshopper: Audio Player input sampling_rate (unused) |
removed: a signal carries its rate |
Grasshopper: Visualise Billiard input speed in ms of sound per second |
a factor of the default (the whole field in 10 s), the Speed dropdown 0.25x to 4x |
| Grasshopper: Visualise Energy Map Play and Rewind | removed: the map shows the levels |
Grasshopper: ism_order value list 0 to 6 |
the ISM order slider, 0 to 10 |
Grasshopper: Simulate Ambisonics input sh_order (1 to 3) |
the SH order dropdown on its body, 1 to 7 |
Grasshopper: Acoustic Scene input sampling_rate |
the Sampling rate dropdown on its body (44.1, 48, 96 kHz) |
Grasshopper: Simulate Mono input time_thres |
duration, the length of the responses, as Mono(duration=) names it |
RayField.from_scene(time_thres=) |
RayField.from_scene(duration=) |
Grasshopper: Visualise Energy Map inputs n_rays, image_source_order, seed |
fixed: the rays from the room's volume, order 1, seed 42; the input spacing meshes the surface given |
The Grasshopper components are now a compiled plugin (CompasAcoustics.gha) instead of CPython script components: a definition saved
with the old components does not open with the new ones. Delete the old components in it and place the new ones from the toolbar; they have
the same names, inputs and outputs.
Added¶
- Added
Scene.simulate(method)as the one way to simulate, with the methodsMono(image_source_order=3, ray_tracing=True, ...),Binaural(...)andAmbisonics(...)incompas_acoustics.simulation_methods. - Added
Scene.sampling_rate(default 48000, serialised with the scene), the rate at which every method runs; the Acoustic Scene component has the input. - Added
BinauralandAmbisonics, binaural and ambisonic room impulse responses from one hybrid engine: image sources, optional edge diffraction (diffraction="udfa"or"btms") and a directional feedback delay network tail; needs Python >= 3.11.Binaural(hrtf=None)takes"kemar"(the default) or a SOFA file and records it ingeneration["hrtf"];Ambisonics(sh_order=1, normalization="SN3D")gives ACN channels. Responses are stored under'binaural'and'ambisonics'. - Added
tail=...toBinauralandAmbisonics, with a reference response, the method's own ray-traced reference, or an Eyring or Sabine prediction as decay target. - Added edge diffraction at the edges of the room's own boundary (re-entrant corners) to the hybrid engine.
- Added
scattering=FalsetoBinauralandAmbisonics, surface scattering after Ewert et al. (2025): each image's specular part, the product ofsqrt(1 - s)over its reflections, stays in the early field, and its scattered part, the product ofsqrt(s), enters the delay lines on its own hemisphere through an allpass cascade. Off by default. - Added
compas_acoustics.hybrid.synthesis.prepare,compas_acoustics.hybrid.ambisonics.render_ambisonics(withambisonic_output_matrixanddefault_num_delays, moved fromhybrid.late) andcompas_acoustics.hybrid.binaural.render_binaural(HrtfSet): one format-neutral core per pair (its early paths and delay lines,HybridCore) and two renderers; the binaural one filters every path and every delay line with the HRIR measured nearest its direction. Each renderer evaluates every path's spectrum, and every UDFA transfer function, once, and applies the late envelope (HybridCore.shaped_lines) against its own omnidirectional channel. - Added
HybridResult.late_linesandHybridCore.line_directions: the late field per delay line before it is rendered, and each line's direction in the receiver frame. - Added
Mono(ray_tracing=True), ray tracing on top of the image sources (n_rays,energy_thres,duration,receiver_radius,seed). - Added
AirConditions(temperature=20, humidity=50, pressure=101325): speed of sound after Cramer (1993) and air absorption after ISO 9613-1, for every method, recorded inImpulseResponse.generation. - Added
RoomGeometry, the scene's surfaces as one validated room (welded, outward oriented, closedness checked, coplanar faces merged), withto_pra()andis_inside(). - Added
AcousticObject(role="boundary" | "obstacle")andAcousticObject.from_obj(path, materials=None), a list with one object per OBJ group, every one a boundary; groupsmaterialsdoes not cover have none until they are assigned, andAcousticObject.materialaccepts only anAcousticMaterialorNone. - Added
AcousticObject.assign_roles_by_group(objects, roles)andassign_materials_by_group(objects, materials)to mark OBJ groups as obstacles and give them materials after reading, andAcousticObject.group, the OBJ group an object was read from (not serialised); a group name that none of the objects has raises aValueError. - Added
Receiver.up,rotation,frameandReceiver.from_frame(): the orientation sets the axes of ambisonic responses (x facing, y left, z up). - Added
compas_acoustics.room.diffuse(predicted_rt,mean_absorption,DiffuseFieldWarning): Sabine and Eyring reverberation times. - Added JSON serialisation (
compas.json_dumps) forScene,AcousticObject,Source,Receiver,ImpulseResponse,Ray,ScatteredRayandRayField; the IR graph is not serialised. - Added
Scene.impulse_responses(attribute),Scene.simulation_methods()andattribute=on the IR graph methods: each method stores its responses under its own name. - Added
ImpulseResponsewith peak normalization (denormalized(),normalization_factor,level_db),to_wav(),from_wav(),generation,resampled(),ambisonic_order,normalization,channel_orderanddirect_sound_index(). - Added
Analyser.stage_support()(ST_early and ST_late, ISO 3382-1 Annex C) andsound_strength()(G, needs pyrato >= 1.0), andGin the analysis tables. - Added
Analyseraccepting anImpulseResponse, analysed at its raw level and sampling rate. - Added
Auraliser.format(mono,binauralorambisonic, that of its impulse responses, which must share one),level(relative,individual,none),headroom_db, and lists of impulse responses and sound files as input. - Added
RayField,RayandScatteredRayfor traced rays (RayField.from_scene), with filtering, truncation and viewer display. - Added
Source.directivity,Source.sound_file(theAuralisermixes a multichannel file down to mono when it reads it),Receiver.direction,radiusandreceived_spls. - Added
AcousticMaterial.categoryanddata_origin,MaterialsLibrary.materials_by_category, preset materials, andtools/import_backend_materials.py. - Added
AudioPlayerfor.wavfiles and numpy arrays, withnormalize=True. - Added
compas_acoustics.regularized_fitness, exported from the package. - Added a warning before an image source search that will take long (
simulation_methods.image_source_search_seconds()). - Added
compas_acoustics.worker: runs compas_acoustics in a second Python 3.12, for the Grasshopper plugin and for Rhino 8's Python 3.9: a local HTTP service on a free port with a token per session that takes and returnscompas_pbpayloads (client(),simulate,analyse, and inworker.apithe functions the components call). - Added
compas_acoustics.pb, a compas_pb plugin: the Data types as protobuf messages (pb/protobuf_defs/.../acoustics.proto), their Python bindings, converters registered through thecompas_pb.pluginsentry point,SCHEMA(which the plugin checks the worker against) andplain();compas_pb >= 1.2is a requirement.invoke generateregenerates the Python and C# bindings. - Added
anechoic_soundfiles_library(bassoon, female and male speech, viola) andhrtfs_library(KEMAR, free-field compensated, 48 kHz), with READMEs that credit the sources and licences. - Added
Defaults.HRTF_LIBRARY_PATH,ANECHOIC_SOUNDFILES_LIBRARY_PATHandPARAM_NAMES. - Added
pyFDNandmultislopeto the requirements on Python >= 3.11, for the hybrid method (pyFDN brings flamo and PyTorch), and a CI job for it: onepip install compas_acoustics, no extra. - Added the Grasshopper plugin
CompasAcoustics.gha(C#,src/compas_acoustics_ghcsharp/CompasAcoustics.sln,invoke build-gha): typed parameters for the compas_acoustics data, value lists and buttons next to unconnected inputs, and the worker as the only Python it runs, so STI, G and the hybrid method are always available. It needs Rhino 8 and the .NET 8 SDK to build. - Added the components Simulate Binaural and Simulate Ambisonics (with a
runbutton, their last input), Simulate Mono (was Simulate Ray Tracing), Material Library categories, and the inputslevel(Auralise),normalize(Audio Player, Simulate),method(Deconstruct IR Graph),directionandplane(Receiver, which outputs the receiver only and keeps it upright: +z up, no roll). - Added the input
role(a value list:boundaryorobstacle) to the Grasshopper Acoustic Object component; a wrong role or material is an error on the component instead of a traceback. - Added the IR graph of the Grasshopper plugin: Simulate Mono, Simulate Binaural and Simulate Ambisonics output the responses of their method (
pyroomacoustics,binaural,ambisonics), and Deconstruct IR Graph reads them, so it has nomethodinput. - Changed the Grasshopper Check Channel component to count the channels of any sound: an audio file path, an impulse response, a Source with a sound file, or an array of samples such as the signals of Auralise (the input is now
sound). - Changed the Grasshopper Auralise component to also show the warnings of building the auraliser (impulse responses resampled to a common rate, sounds mixed down to mono), and the Audio Player to remark at which rate it plays an array that comes without one.
- Changed the image source order input of the Grasshopper Simulate Mono (
max_order), Simulate Binaural and Simulate Ambisonics (image_source_order) components toism_order; the Simulate Mono description gave the default as 6, the method's default is 3. - Changed the order of the inputs of the Grasshopper Auralise component to
irs,anechoic_sounds,level,mix_sources,save_file_path,save_file_name,save. - Changed the Grasshopper Auralise component to keep the format of its impulse responses, without the inputs
output_formatandhrtf: mono responses (Simulate Mono) give mono signals, binaural ones binaural, ambisonic ones the undecoded ACN/SN3D signal, and the file saved has that many channels. Binaural signals come from Simulate Binaural and itshrtf. Withmix_sources, responses of different formats at one receiver are an error. It convolves in Rhino's Python, without the worker. - Changed the Grasshopper Audio Player component to warn for a signal of more than two channels (an ambisonic one) instead of an error, and
AudioPlayer.play_arrayto play a mono signal on both channels. - Renamed the input
soundof the Grasshopper Audio Player component toaudioand ordered its inputsaudio,sampling_rate,normalize,play,stop. - Renamed the inputs
signalsandmulticonvolveof the Grasshopper Auralise component toanechoic_soundsandmix_sources:mix_sourcessums the sources at each receiver into one signal. - Changed the order of the inputs of the Grasshopper Source component to
position,name,direction,directivity,sound_file. - Changed
AudioPlayerto read the audio devices again before it plays an array, so that headphones connected after Rhino started are the output. - Added the input
select(a value list:allor one of EDT, T20, T30, C50, C80, D50, DRR, Ts, STI, G) to the Grasshopper Deconstruct Parameter component: a selected parameter comes out as plain lists,allas one branch per parameter. Itsparametersinput takes the list. - Renamed the Grasshopper Simulate Pyroomacoustics component to Simulate Mono, after the method it runs,
Mono(pyroomacoustics; graph attribute and worker method'mono','data'as before) (the same GUID: saved definitions load it) and its outputir_graphtomono_ir_graph, after the format of its responses, as Simulate Binaural'sbinaural_ir_graphand Simulate Ambisonics'ambisonic_ir_graph. - Added the input
source_idxto the Grasshopper Deconstruct IR Graph component (inputsir_graph,source_idx,receiver_idx): withreceiver_idxit picks source-receiver combinations, e.g. a single impulse response for Analyse Impulse Response. Sources are indexed in the order of the scene's sources; an index out of range is a warning. - Added
compas_acoustics.analyser.time_response(level in dB re the peak of all channels, or amplitude) andfrequency_response(fractional-octave smoothed, in dB re the peak), per channel; levels are floored 100 dB below the peak. - Added the outputs
timeandfrequencyand the inputtime_scale(a value list:dborlinear) to the Grasshopper Analyse Impulse Response component: the impulse response and its 1/3-octave smoothed frequency response from 20 Hz to 20 kHz, of the W channel of an ambisonic response and both ears of a binaural one. Plot 2D draws them as a curve per channel, on a time axis or a log frequency axis with ticks at 50, 100, 200, 500 ... 20000 Hz, reduced to the minimum and maximum of 1000 bins; a level in dB runs from its floor on the x axis to its peak, an amplitude is symmetric about zero with the x axis at zero. The time output inlinearends 5 % after its Schroeder curve falls 60 dB, indbit is the whole response, (time_response(..., trim_db=...)); the parameters and the frequency output use the whole response.AcousticParameter.from_time_responseandfrom_frequency_responsereplacefrom_ir, which Plot 2D could not draw. - Renamed the output
paramsof the Grasshopper Analyse Impulse Response component toparameters, and the inputparamof Deconstruct Parameter toparameters. - Renamed the input
paramof the Grasshopper Plot 2D component todata: it takes a parameter, or the time or frequency output of Analyse Impulse Response. - Changed the
hrtfinput of the Grasshopper Simulate Binaural component to get no value list: empty is KEMAR, the HRTF... button on the body chooses the user's own SOFA set (right-click "Use KEMAR" goes back), and a File Path connected to it wins; the component's message names the set in use. - Changed the
seedinput of the Grasshopper Simulate Mono, Simulate Binaural and Simulate Ambisonics components: left empty, each run draws a new random seed (shown in the component's message) instead of the methods' fixed default 42; a number gives repeatable responses.Mono,BinauralandAmbisonicsthemselves still default to 42. - Added a warning to the Grasshopper Simulate Binaural and Simulate Ambisonics components when
tailisreferenceand nothing is connected toreference; it shows before Run, and Run does not start the simulation. - Added the output
parameterto the Grasshopper Deconstruct Parameter component: the selected AcousticParameter, which Plot 2D plots and a panel prints (AcousticParameter.__str__gives the name, unit, value per band and overall value). - Added STI and G to the Grasshopper Analyse IR component, computed in the worker (they need pyrato >= 1.0, which Rhino 8's Python 3.9 cannot install); G only for a simulated response.
- Changed the Grasshopper Plot 2D chart to leave half a band's spacing between the y axis and the first frequency band.
- Changed
compas_acoustics.worker.simulateto store every format of a run on the scene's graph under its attribute and return the first, asScene.simulatedoes; it used to store whatever came back under the method's name. - Added a status to the Grasshopper Simulate Binaural and Simulate Ambisonics components for when they are not running: it says
donewith the tail (and the ambisonic order) of the last result on the graph,settings changed, press Runwhen its inputs differ from that result, andpress Runonly when there is none. - Added the Grasshopper installer for Rhino 8 (
installer/compas_acoustics_installer.gh),invoke installer-bundle, andcompas-dev/compas-actionsv1 workflows (build, release,prepare release), with tests on Python 3.9. - Changed the example scripts' names:
demo.pyisshoebox.py,demo_obj.pyisobj.py,demo_rays.pyisrays.py,demo_scattered_rays.pyisscattered_rays.py; addedspecular_reflections.py. - Changed the example script
shoebox.pytosimple_simulation_shoebox.py; its Grasshopper twin isexamples/simple_simulation_shoebox.ghx. - Added the documentation for the first public release: concepts, installation, a Python and a Grasshopper track, a Grasshopper component reference generated from the plugin's specs (
docs/_ext/ghcomponents, also run byinvoke docs-components), and build checks that fail when the committed images indocs/_images/are out of date. - Added a getting-started section to the README, and
Examplessections thatinvoke testdocscan run in the docstrings ofScene,Mono,Binaural,Ambisonics,AnalyserandAuraliser. - Added
SpecularReflections.from_scene(scene, max_order=3), the image-source paths from each source to each receiver for inspection, withfilter(source, ray_index, receiver_index, order). It is aRayFieldofSpecularPathrays, so it plays in a billiard (particles) and displays like traced rays. - Added source directivity to
RayField.from_scene, and so to Visualise Rays and Visualise Billiard: each source emits its rays with the density of its radiated energy, (p + (1 - p) cos theta)^2 about itsdirection(a deterministic lattice; a cardioid sends nothing straight back, a figure-of-eight nothing sideways); within a spotlight cone the cone's lattice is thinned to that density. An omnidirectional source emits the same rays as before. - Added
RayField.particles(time_ms)andRayField.duration_ms, the rays' positions at a time, for a billiard view. - Added a directional ray-tracing histogram to the hybrid's late envelope (
late_envelope=TrueofBinauralandAmbisonics, the default with a reference or ray-tracing tail): pyroomacoustics keeps one histogram per receiver direction (raytracing.directional_histograms, one bin per delay line, binned by the direction a ray arrives from; Lentz, Schroeder and Vorlaender 2007; Schroeder 2011, Sec. 5.3.4), and after the level per band follows the reference, each delay line is scaled by the square root of its direction's share of the rays' energy over its share of the lines' energy (hybrid.envelope.directional_shares,shape_late_directional), both pooled over neighbouring lines with the weights of Kirsch et al. (2023, Eq. 4), so the total is kept and a direction facing an absorbing wall decays as the rays say it does; the shares are held once the rays have decayed 60 dB. The histogram is traced by the method itself, also with a given reference: one more ray-tracing run per scene. The omnidirectional level and decay are unchanged. - Added the Grasshopper Visualise Reflections component: image-source paths of a source-receiver pair by order, output as
reflections, which Visualise Billiard plays. - Added the Grasshopper Visualise Rays component: rays traced from one source (
source_idx) or all, for display and Visualise Billiard. - Added the Grasshopper Visualise Billiard component: the rays of a ray field as particles (points only) at a time, played with a button or scrubbed with a slider.
- Added colours by reflection order to Visualise Reflections, Visualise Rays and Visualise Billiard: each component draws its paths, ray segments or particles itself (round particles, order 0 black, one colour per order);
RayField.particlesreturns each particle's reflection order too. - Added controls on the Grasshopper component bodies: switches and dropdowns under a title naming their input (Tail, Role), showing the chosen value; Simulate Binaural and Simulate Ambisonics
tail,diffractionandrunand Visualise Billiardplaykeep inputs, hidden on a new component and shown by "Show control inputs" in the right-click menu (a wired one always shows) for parameter studies; Auralise's level, Acoustic Object's role, Deconstruct Parameter's select and Source's directivity are chosen on the body only; Analyse IR's time scale on itstimeoutput's right-click menu; buttons (Run, Cancel; Play, reading Pause while playing (Play goes on from the paused frame), and Rewind on Visualise Billiard and Visualise Rays, whose rays are drawn only as Play makes them grow with the sound; a Preview toggle on the three Visualise components, which draw themselves and not their outputs). A wired value wins and greys the control; every choice is saved with the document; a control's tooltip says what its input means and its default. - Added body controls for the remaining choices of the Grasshopper components, each hidden behind "Show control inputs" like the others and starting at its input's default: the ISM order slider (whole orders 0 to 10, set when the knob is let go) on Simulate Mono, Simulate Binaural and Simulate Ambisonics; toggles and buttons set as far from the control above as a title is; on/off toggles sharing a row, Ray tracing, Air and Normalize on Simulate Mono, Late envelope and Normalize on the hybrid ones; the SH order dropdown (1 to 7, default 1) on Simulate Ambisonics, a choice of the component without an input; the sampling rate dropdown (44.1, 48, 96 kHz, default 48) on Acoustic Scene, a choice of the component without an input; Mix sources on Auralise; the Sound file... button on Source (its file's name on the button, right-click "Clear sound file"); the category dropdown on Construct Material; Source and Receiver dropdowns (All, or each by its index and name, from the wired scene or graph) on Visualise Rays, Visualise Reflections, Visualise Energy Map and Deconstruct IR Graph; Scattering and a slider of the drawn reflection order on Visualise Rays; the reflection orders 0 to 4 on Visualise Reflections, several lit at once; the time slider (it follows playback, and the particles follow the knob while it is dragged) and the Speed dropdown on Visualise Billiard; Play/Stop and Rewind side by side as icon buttons on Visualise Rays and Visualise Billiard; the Frequency bands dropdown (Full (A-weighted), or 125 Hz to 8 kHz) on Visualise Energy Map, its input renamed
frequency_bands(wasband). Controls on integer, number and bool inputs keep their values hidden and in the file, as text ones did. - Added the Audio Player's waveform, and impulse responses as its input (e.g. the
iroutput of Deconstruct IR Graph): the transport and volume right of the icon and below the inputs a lane per channel across the whole component, at one height, the component growing down with the channels, a Play/Pause and a Stop button with their usual glyphs, a playhead, Play, Pause, Stop, seeking by a click on the waveform, a volume slider, and a body that resizes. - Added runs that do not block the canvas: Simulate Mono, Simulate Binaural, Simulate Ambisonics, Analyse IR, Auralise, Visualise Rays and Visualise Reflections call the worker on a background thread, keep their last outputs meanwhile, show
running m:ssand the worker's stage, and offer Cancel; a change of inputs cancels the run and starts another (Simulate Binaural and Simulate Ambisonics wait for Run). - Added viewport previews of sources (a loudspeaker: a cube turned with the source and a driver on its front face, the direction, the directivity lobe), receivers (a head: a sphere with its ears, the facing), acoustic objects and scenes (their edges only, as Rhino draws a surface's: outlines and folds, not the triangulation; no surfaces over the Rhino geometry they come from; obstacles with orange edges). IR graphs draw nothing. The Acoustic Object's message gives its total area, the Acoustic Scene's the room's volume and total area on two lines, its tooltip also the objects, sources, receivers and sampling rate. Sources and receivers are drawn only by the Source and Receiver components, under their preview toggles: not again by a scene, by Deconstruct IR Graph (which previews nothing, its source-to-receiver
edgesincluded), or by a Merge or Data they pass through. Components preview only their outputs, not the geometry, points or planes wired into them; Acoustic Object and Acoustic Scene start with their preview off, their surfaces being in Rhino already. Every component is drawn light and offers Preview, also those with nothing to draw (Grasshopper would draw them in the dark preview-off grey); those draw nothing: every output has a type (text, number, integer, point), none the generic one that draws whatever passes through it. - Added defaults and named values on the Grasshopper ports (
ism_order3,n_rays20000 and 500,max_order10,energy_thres1e-7,k1.0,sampling_rate48000), and the scene's sources and receivers as named values ofsource_idxandreceiver_idx. - Added the material picker (search, Custom above the categories, Name, Category and Origin, a chart of absorption and scattering on which a click or drag sets a band, and a box per band for each to type a value, of a library material or of a custom one whose name and category are editable), opened from the Material Library's strip or by a double-click on it; its inputs
absorptionandscatteringreplace the chosen coefficients; its strip, sized as Deconstruct Parameter's, draws absorption and scattering as the picker's paired bars over the bands, 0 and 1 beside; its message says when scattering is the 0.05 default; a custom material left without absorption warns. A material's tooltip gives its mean absorption. - Added Plot 2D on the canvas: a chart per parameter, a dot per band joined by a line or a line per channel, resizable at a fixed aspect ratio, STI on a 0 to 1 axis and the reverberation times (EDT, T20, T30) from 0, with the values under the mouse in the tooltip and a Save button that writes the charts as a PNG; Deconstruct Parameter shows its bands as a small line chart, the bands below and the lowest, middle and highest value beside.
- Added the Worker component (state, Python, version and schema, Restart, Open log), "Open worker log" in every component's menu, the worker's log file, and message strips of at most 40 characters with the whole text in the tooltip; Acoustic Scene's message counts objects, sources, receivers, the rate and the volume.
- Added one generated icon set for the components (
tools/icons.py). - Added the worker routes
POST /cancel/<call id>andGET /progress/<call id>and the request headerX-Call-Id(compas_acoustics.worker.jobs); a cancelled call answers 499. - Added LF and LFC (ISO 3382-1 early lateral energy fractions) to
Analyser.analyse(), Analyse IR and Deconstruct Parameter, from the first-order channels of an ambisonic response. - Added
Source.splas the source's level (SPL on axis at 1 m, per band; one value or seven) and SPL per band with its A-weighted total toAnalyser(sound_pressure_level,analyse) and Analyse IR. - Added the
splinput to the Grasshopper Source component (the source's level at 1 m per band, or one value). - Added
EnergyMap(compas_acoustics.EnergyMap): the SPL of a scene's sources over many points, per band, A-weighted and over time, from pyroomacoustics' ray tracer with a microphone per point plus first-order image sources, and the worker'senergy_map. - Added the Visualise Energy Map component: a surface (a mesh, a surface or a Brep, meshed into faces no larger than
spacing, default 0.25 m; the rays keep a 1 m grid) coloured by the full A-weighted or one band's SPL at its face centres (the Frequency bands dropdown), drawn a centimetre above the surface so that the two do not flicker. Its settings are fixed: image sources up to order 1, seed 42, and the rays ofenergy_map.map_rays, Vorlaender's (2008) Eq. 11.12 over the response length for 16000 hits per point (20000 to 250000 rays).EnergyMap.from_scene(n_rays=None)uses the same count. The rays are traced to one receiver per 1 m cell of the map (ray_spacing=1.0, the cell's point nearest its centre) and their energy is interpolated to the other points by inverse squared distance; the image sources stay exact at every point. pyroomacoustics checks every receiver for every ray segment, so fewer receivers trace faster, and none lies partly outside the room next to a wall. The worker'senergy_maptakes non_rays,image_source_orderorseed, returns the rays traced asn_rays, and returns no frames of the energy arriving;EnergyMap.frames()gives them.
Changed¶
- Changed the worker's playback API:
play(sound, normalize=True, gain_db=0.0, start=0.0)returns the duration;pause,resume,stop,playback_statusandsound_samplesare new. - Changed how the hybrid's early renderer and late envelope compute, not what:
early.render_imagesandrender_transfersaccumulate the paths' spectra as matrix products over chunks of paths instead of one outer product per path, andenvelope.octave_band_splitapplies pyfar's reconstructing bank as one FFT per channel and one inverse FFT per band (zero-padded past the filter length, the linear convolution pyfar computes) with the bank designed once per sampling rate. Responses are unchanged to rounding. - Changed
Analyser.speech_transmission_indexto reduce the modulation transfer function it already has with pyrato's_sti_calc(IEC 60268-16:2020 Annex A.2.1) instead of callingspeech_transmission_index_indirect, which computes the same MTF again; without_sti_calcthe indirect method is called. - Changed the ray tracer's defaults:
energy_thres1e-7 (pyroomacoustics' own), sincelibroomstops a ray on the product of its wall reflections while the receiver logs that energy over the squared distance; andduration1.5 times the longest Eyring reverberation time within 0.5 to 12 s. The runsBinauralandAmbisonicsmake themselves, a ray-traced reference and the directional histogram, take the same default. A reference shorter than 2/3 of its reverberation time warns, since pyFDN's decay fit shrinks its range to what the response has. A ray-traced response that ends before 2/3 of its own longest T30 warns with the length to rerun with: a room whose absorption is concentrated on a few surfaces can decay far slower than Eyring predicts. A room whose Eyring prediction hits the 12 s cap also warns (raytracing.default_duration): its rays live for hundreds of reflections, usually from a material with no low-frequency absorption on a large surface. - Changed the JSON data type of every
compas_acousticsclass tocompas_acoustics/<ClassName>(wascompas_acoustics.<module>/<ClassName>), so that saved data no longer depends on the module a class lives in; the materials library is stored that way. Files saved before do not load. - Changed the modules:
rayandspecularare one module,rays;acoustic_materialandmaterials_libraryarematerials;geometryisacoustic_object;numerical.fitnessisfitness;room_geometry,air,diffuse,pra_converter,raytracingand_pyfar_constantsare the subpackageroom(room.geometry,room.air,room.diffuse,room.pra,room.raytracing,room._pyfar_constants), which exportsRoomGeometryandAirConditions;room.raytracingholds both pyroomacoustics runs (image_source_rirs,ray_traced_rirs) and the directional histograms, the backend ofMonoand of the binaural and ambisonics methods;binauralishybrid.binaural. The classes are exported fromcompas_acousticsas before. - Changed
Defaults().DEFAULT_SPEED_OF_SOUNDto the speed of sound ofAirConditions()(343.98 m/s at 20 C and 50 %, was 343), the air every simulation runs in without one given.Ray,ScatteredRayandRayFieldno longer take or store asound_speed(it was 343 on its own and was serialised with every ray): their travel times are at this default; ray fields saved with it still load. - Changed the hybrid engine to use 96 delay lines up to third ambisonic order, and always for
Binaural(hybrid.late.MIN_DELAYS): the count Kirsch, Wendt and van de Par (2023) run their network with whatever the number of rendered directions, so that the tail's character does not change with the count, and the one they name for offline simulation. In the binaural response each line is heard through its own HRIR. The methods take nonum_delaysordrive_gain: the count follows fromsh_order(Ambisonics) or is 96 (Binaural), and the input gainsqrt(num_delays)offsets the output's1 / sqrt(num_delays), so the late level does not depend on the count;hybrid.synthesis.preparekeeps both. The delay-line grid depends on the count alone (fdn_directions(num_delays)); whether it carries an ambisonic order isambisonic_output_matrix's check. - Changed how the last rendered image-source order drives the hybrid's network: each image enters the delay lines of the hemisphere opposite its arrival, weighted by the cosine to each line (
hybrid.scattering.scattering_weights(..., opposite=True)), the mapping of Ewert et al. (2025, Sec. 3.1.2). - Changed the spelling of identifiers to
normalizationandnormalizedeverywhere, includingImpulseResponse.normalization(the ambisonic convention) and its JSON metadata key. - Changed
AudioPlayerto raise errors andwarnings.warninstead of printing them; the Audio Player component shows them as messages. An unsupported sound type raises aTypeError. - Changed
seedofMono,BinauralandAmbisonics(was 0) toTrueby default, which seeds with 42 (DEFAULT_SEED); an int seeds with that value;False(orNone) leaves the run unseeded, a new draw each run, recorded asgeneration["seed"] = None. Anything else raises aValueError.RayField.from_scene(random_seed=)follows the same rule. - Changed the hybrid engine to drive the network with the last rendered image source order, as Wendt et al. (2014) and Ewert et al. (2025) do. The search stops at
image_source_order. - Changed
BinauralandAmbisonicswithout a reference to runMono(ray_tracing=True, image_source_order=3, n_rays=100000, seed=42)and fit the decay to it. - Changed the hybrid's 35 Hz high-pass to a causal filter, which removes pre-arrival ringing in the diffracted paths.
- Changed every simulation to run in
AirConditions()(20 C, 50 %, 343.98 m/s) unlessair=is given; before, the methods used different air tables. - Changed simulated impulse responses to 48000 Hz (were always 16000 Hz) and to the package scale (free-field direct sound
1 / (4 pi r)). - Changed
AcousticObject.__init__to take onematerial;AcousticObjectsLibrary.shoebox_room()returns a list of six single-material objects and takesmaterials. - Changed
Source.directionaltoSource.directivity, andSource.directionandReceiver.directiontocompas.geometry.Vector. - Changed
sample_ratetosampling_rateeverywhere:ImpulseResponse,Auraliser,AudioPlayer.play,receivers_to_pra_mic_array,HrtfSetand the Grasshopper components. - Changed the
Analysermethods to name the quantity:reverberation_times,clarity_definition,direct_to_reverberant_ratio,speech_transmission_index,stage_support,sound_strength. - Changed the analyser to apply octave filters zero-phase or after cutting the time windows, which removes a delay of 18 ms at 250 Hz and 35 ms at 125 Hz from EDT, Ts, C50, C80, D50 and DRR.
- Changed
direct_to_reverberant_ratioto 5 ms of direct sound,DRR_overallfrom a 700-4000 Hz band. - Changed
reverberation_timesto Schroeder integration without noise compensation; truncate a measured response with a noise floor before analysing it. - Changed the direct sound detection to the start of ISO 3382-1: the last sample more than 20 dB below the maximum before it.
- Changed
Auraliser.convolve()to return the signal in the format of its impulse responses, without decoding, summing the impulse responses of one sound first. - Changed
Auraliserto auralise at the raw level, export peak at -1 dBFS, and use an impulse response's ownchannel_orderandnormalization. - Changed
Auraliserto read and resample with pyfar (polyphase) and to default to the rate of the first impulse response. - Changed
Analyser,AuraliserandMaterialsLibraryto plain classes; they are services, not data. - Changed the default HRTF to
KEMAR_FreeFieldComp_48kHz.sofa. - Changed a material without scattering coefficients to scatter 0.05 in every band in every pyroomacoustics simulation.
- Changed
AcousticMaterialso that a coefficient of 0 is a value, and material names may have spaces and capitals; library files are named byAcousticMaterial.slugand carry no backend suffix. - Changed sources and receivers outside the room to raise a
UserWarning, and surfaces withrole="obstacle"to reflect from both sides. - Changed
Scene.acoustic_materialsto read-only; assigning it raises anAttributeErrorthat says how materials are assigned. - Changed the hybrid engine to accept
diffractionwithout obstacles, and to report non-closed obstacle components in one warning per call. - Changed the package to run on Python 3.9 (Rhino 8) without Rhino, Grasshopper or .NET; the Grasshopper plugin is in
src/compas_acoustics_ghcsharp/. - Changed
pyrato >= 1.0to be required from Python 3.11 (was 3.12), and removed the upper bounds on pyroomacoustics and pyFDN. - Changed the Analyse IR component to leave out STI and G, which need pyrato >= 1.0; they stay in
Analyserwhere pyrato allows. - Changed
matplotlibto be imported by theAnalyserplot methods only when they run. - Changed the Grasshopper installer to copy the plugin (the bundle's
gha/folder) into Grasshopper's Libraries folder, remove the CPython components of earlier versions, and always set up the worker; itsworkerinput is not used. - Changed
librosaout of the dependencies andsounddeviceinto them;spharpyis required on Python >= 3.11. - Changed
RoomGeometryto weld vertices at 1 mm (WELD_TOLERANCE, was 1 micrometre), as Rhino's tolerance in a metre model: a wall corner 10 micrometres off no longer leaves the room open. A vertex still lies on an edge only within 1e-6 of the model's extent. Faces with a corner more than 10 micrometres off their plane are triangulated (pyroomacoustics raised aRuntimeErroron them), faces that collapse in welding are dropped with a warning, a model more than 500 units across warns that coordinates are read as metres, and a wall pyroomacoustics refuses is aValueErrornaming the face. - Changed
AcousticObject.from_objto read OBJ files with its own parser:o(object) lines are the groups of a file withoutglines, faces may usei/j/kand negative indices, vertices are no longer rounded (RoomGeometrywelds them), and faces with fewer than three distinct vertices are skipped. - Changed the default
Sourcedirection to +x (was +z), the direction the Grasshopper Source component already defaults to and the receiver's facing direction. - Changed
AcousticObjectsLibrary.shoebox_roomso thatleft_wallis the surface at y = width andright_wallthe one at y = 0, matching the receiver frame (x facing, y left); the two names were swapped. The surfaces come in the order floor, right, front, left and back wall, ceiling. - Changed the error of
Receiverfor a name with spaces or capitals to sayReceiver(it saidSource). - Changed
RoomGeometry.surfaces,surface_area,area_normalsandvolumeto count the air side only: a closed obstacle counts one side and its volume is subtracted, and obstacle faces lying on the boundary are left out, so Eyring and Sabine times, the default ray-tracing duration and the hybrid's delays and scattering decay time move in scenes with closed obstacles or obstacles on the boundary; a free panel still counts both sides. - Changed
AcousticMaterialto validate coefficients on creation: any iterable (including Grasshopper'sList[Double]) and scalars become lists of float, a single value (a scalar or a one-element list) applies to every band, an empty list means no coefficients, and another length than 7 or a value outside [0, 1] raisesValueError. - Changed the hybrid's binaural late field to be rendered per delay line, each line
/ sqrt(N)through the HRIR measured nearest its direction, so a binaural response does not needsh_order >= 1. - Changed
hybrid.late.renderto return the delay lines' outputs,(n, num_delays), after the directional absorption and slope weights; the ambisonic late field is that timesC.T. - Changed the format of a response to come from its channels,
ImpulseResponse.format('mono','binaural'for two channels without an ambisonic order,'ambisonic'), not ageneration["output"]flag; the Auraliser, the analysis plots and the Grasshopper Audio Player read it. - Filled in the package metadata, README and documentation for the first public release, and removed the tests that compared against external toolboxes, saved outputs or a running worker.
- Changed the component specs (
Specs/<CA_name>/metadata.json) to list their ports underports.
Fixed¶
- Fixed
raytracing.directional_histogramsfailing with "all input arrays must have the same shape" when the run is longer than pyroomacoustics' default 10 s and rays are still alive then:libroomsizes every direction's histogram for 10 s and doubles only the directions hit later. The hybrid's late envelope failed this way on a reverberant room whose Eyring buffer reached 12 s. - Fixed the Grasshopper Acoustic Scene component failing with
'NoneType' object has no attribute 'sources'when an object is empty or not an acoustic object (an upstream Acoustic Object that failed): such items are left out with a warning. - Fixed
RoomGeometrytaking a vertex up to 1 mm off an edge for a T-junction, which left rooms with sliver faces open: the edge test is 1e-6 of the model's extent again. - Fixed the single-number values of C50, C80, D50 and Ts averaging 500, 1000 and 2000 Hz: they average 500 and 1000 Hz, as ISO 3382-1:2009 Table A.1 has it for G, EDT, C80, D50 and Ts (C50 follows D50), like EDT, T20 and T30 already did.
- Fixed responses simulated in the worker (the hybrid in Rhino) always coming back as peak-normalized views: they keep the method's
normalize. Their raw level was already kept. - Fixed the Grasshopper Material Library component forgetting its material when the file is reopened: the choice is kept in the component's nickname, which Grasshopper saves.
- Fixed the Grasshopper Material Library component failing with
No module named 'compas_acoustics': its script pinned an empty Rhino script environment,compas_acoustics_rhino, instead of the one the installer fills. - Fixed the worker setup from the Grasshopper installer failing at its last check: the worker's Python 3.12 inherited the
PYTHONPATHof Rhino's 3.9 packages and could not import numpy. - Fixed a simulation failing on a Source whose
sound_fileis not a RIFF WAV (an AIFF or FLAC file; the library'sbassoon.wavis an AIFF): the file is read with soundfile. - Fixed the hybrid engine counting an image source twice when its path passes through an edge (+6 dB on that path);
hybrid.early.image_sourcesnow keeps one image per position, asShoeBoxdoes. - Fixed low-frequency bias in EDT, C50, C80, D50, DRR and Ts caused by the delay of causal octave filters.
- Fixed
speech_transmission_indexreturning NaN for impulse responses shorter than 1.6 s. - Fixed wheels that were missing the materials library, the HRTFs, the sound files and the Grasshopper components.
- Fixed
Auralisermodifying the caller's dicts, ignoring 1D responses and multichannel sounds, and wrapping energy around when resampling. - Fixed simulations above 16 kHz with air absorption, which failed on a 7 against 8 octave band mismatch.
- Fixed
ReceiverandSourcelosing name, orientation, directivity and settings in JSON andcopy(). - Fixed NaN responses for a source at a receiver's position (now a
ValueError), and unrelated errors for points inside a closed obstacle, scenes of obstacles only, or too few walls. - Fixed the hybrid failing on a fully absorbing surface, and counting a wall hit on a diffraction apex as a reflection.
- Fixed
display_in_viewerguards that treatedcompas.is_rhino()as a boolean, and the default HRTF path that pointed at a missing file. - Fixed the Grasshopper Auralise and Analyse IR components using a fixed sample rate.
- Fixed
AcousticObject.from_objreading OBJ files in the platform's encoding: a UTF-8 byte order mark dropped the first vertex, and non-ASCII group names were garbled on Windows; files are read as UTF-8. - Fixed obstacle faces lying on a boundary face being counted when the scene is not aligned with the axes: the test used the distance along each axis instead of the distance to the face's plane.
Removed¶
- Removed Plot 2D Settings and Plot 2D's Rhino geometry (texts, points, polylines, grid).
- Removed the worker's
compas.rpctransport (proxy()) and its temporary WAV folders. - Removed
Simulator; useScene.simulate(method)andRayField.from_scene. - Removed
simulation_platformfromSceneandImpulseResponse;generationnames the method. - Removed
Mono(n_jobs=)and the parallel ray tracer, which wrote privateRoomstate. - Removed
AcousticObjectsGroup,AcousticObject.surface_groups,Scene.iter_acoustic_objects,Scene.scene_surface_groupsand their display and print methods; seescene_materialsandprint_scene_materials. - Removed
compas_acoustics.stage_acousticsandtools.Tools; useAnalyser.stage_support(). - Removed
pra_converter.material_to_pra,mesh_to_pra_wall,acoustic_object_to_pra_wallsandroom_octave_bands; seeRoomGeometry.to_pra. - Removed
Auraliser.multiconvolution(),decode_stereo_simple(),resample_signal()and FuMa channel order. - Removed
compas_acoustics.orchestra_layoutsand the Orchestra Layout component. - Removed the two MIT KEMAR HRTF sets and
speech.wav. - Removed
HybridandHybrid.binaural(); useBinauralorAmbisonics. - Removed the ambisonic decoders of
Auraliser(mono from W, stereo cardioids and binaural:output_format,decode,decode_mono,decode_stereo,decode_binaural,hrtf_path,binaural_filters,ambisonics_upmix_downmix),binaural.magls_filters,worker.convolveand the installer'sworkeroptionbinaural. The hybrid renders binaural responses with an HRTF per path and per delay line; an ambisonic response or signal is saved as ACN/SN3D for a decoder elsewhere. Impulse responses of different formats in oneAuraliserraise aValueError.