OSCR

The shape of attention reflects flexible filtering of natural speech modulations.

Code ↔ Paper

3 matches between paragraphs of the paper and lines of its authors' code, computed by the harvester (lexical-v1). Click a colored paragraph or line to see its counterpart.

3 blocks of code here have a permanent identifier (oscr:b:…), listed with the matches below: citable for good, with a page of its own. Select a match and press Cite to copy it. What a block identifier is.

The 3 matches · 1 of them tie a paragraph to a whole file without given lines: a weak match, whose lines are not tinted
  1. [1] § Methods › MPS and MRF ↔ GetOmegas.m, the whole file · a weak match · score 0.65 · spectral modulation scale, temporal modulation rate, MPS, cycles, Hz, acoustic · block oscr:b:GJ8HEX9EH7A2X-T · Report a mismatch
  2. [2] § Methods › Envelope and spectrogram processing ↔ GetSpectrogram.m, lines 11 to 84 · score 0.61 · gammatone filterbank, cochlear, compression, bands, signal, octave · block oscr:b:ZS3BTD8AQA7TH-D · Report a mismatch
  3. [3] § Results › MRF across tasks ↔ example.m, lines 1 to 20 · score 0.51 · reconstructed spectrograms, Modulation Response Function, cognitive, cortical, acoustic, MRF · block oscr:b:F4ASVYX983GFR-I · Report a mismatch

Paper

Loaded from Europe PMC by your browser; OSCR does not store it: doi.org · Europe PMC

The paper is loaded when this pane is shown.

The authors' code

MATLAB · 135 lines · 5.1 KB · no license · 1 match

  1. % =========================================================================%
  2. % Author: Huet, M.-Ph., & Elhilali, M.
  3. % Contact: [email hidden]
  4. % If used, please cite:
  5. % Huet & Elhilali (2025), bioRxiv, https://doi.org/10.1101/2025.05.22.655464
  6. % =========================================================================
  7. function [omegas_t, omegas_f, params] = GetOmegas(rate_params, scale_params, FS, FMIN, FMAX, NCHAN, TMIN)
  8. % GETOMEGAS Create temporal and spectral modulation axes for MPS/MRF analysis.
  9. %
  10. % Minimal use:
  11. % [omegas_t, omegas_f] = GetOmegas(rate_params, scale_params)
  12. %
  13. % Recommended use:
  14. % [omegas_t, omegas_f, params] = GetOmegas(rate_params, scale_params, FS, FMIN, FMAX, NCHAN, TMIN)
  15. %
  16. % Inputs:
  17. % rate_params = [MIN_RATE, MAX_RATE, STEP_RATE] in log2(Hz)
  18. % scale_params = [MIN_SCALE, MAX_SCALE, STEP_SCALE] in log2(cycles/octave)
  19. % TMIN = shortest signal duration in seconds
  20. % FS = spectrogram sampling rate in Hz
  21. % FMIN = minimum acoustic frequency in Hz
  22. % FMAX = maximum acoustic frequency in Hz
  23. % NCHAN = number of spectrogram frequency channels
  24. %
  25. % Outputs:
  26. % omegas_t = temporal modulation rates in Hz
  27. % omegas_f = spectral modulation scales in cycles/octave
  28. % params = corrected log2 parameters
  29. NCYCLE = 2;
  30. MIN_RATE = rate_params(1);
  31. MAX_RATE = rate_params(2);
  32. STEP_RATE = rate_params(3);
  33. MIN_SCALE = scale_params(1);
  34. MAX_SCALE = scale_params(2);
  35. STEP_SCALE = scale_params(3);
  36. has_limits = nargin >= 7 && ...
  37. ~isempty(FS) && ~isempty(FMIN) && ~isempty(FMAX) && ...
  38. ~isempty(NCHAN) && ~isempty(TMIN);
  39. if ~has_limits
  40. warning(['No signal/spectrogram constraints provided. ' ...
  41. 'Axes generated without automatic checks. To avoid aliasing, use ' ...
  42. 'MAX_RATE < FS/2 and MAX_SCALE < NCHAN/2; minimum rates/scales should allow >=2 cycles.']);
  43. else
  44. % ---------------------------------------------------------------------
  45. % Temporal rate limits
  46. % ---------------------------------------------------------------------
  47. min_rate_recommended = NCYCLE / TMIN;
  48. max_rate_recommended = FS / 2;
  49. if 2^MIN_RATE < min_rate_recommended
  50. new_MIN_RATE = ceil(log2(min_rate_recommended) / STEP_RATE) * STEP_RATE;
  51. warning(['[MPS] MIN_RATE too low: %.3f log2 Hz (%.3f Hz).\n' ...
  52. 'Recommended minimum is %.3f log2 Hz (%.3f Hz), based on %d cycles over %.3f s.\n' ...
  53. 'Using MIN_RATE = %.3f instead.'], ...
  54. MIN_RATE, 2^MIN_RATE, ...
  55. log2(min_rate_recommended), min_rate_recommended, NCYCLE, TMIN, ...
  56. new_MIN_RATE);
  57. MIN_RATE = new_MIN_RATE;
  58. end
  59. if 2^MAX_RATE > max_rate_recommended
  60. new_MAX_RATE = floor(log2(max_rate_recommended) / STEP_RATE) * STEP_RATE;
  61. warning(['[MPS] MAX_RATE too high: %.3f log2 Hz (%.3f Hz).\n' ...
  62. 'Recommended maximum is %.3f log2 Hz (%.3f Hz), based on FS/4.\n' ...
  63. 'Using MAX_RATE = %.3f instead.'], ...
  64. MAX_RATE, 2^MAX_RATE, ...
  65. log2(max_rate_recommended), max_rate_recommended, ...
  66. new_MAX_RATE);
  67. MAX_RATE = new_MAX_RATE;
  68. end
  69. % ---------------------------------------------------------------------
  70. % Spectral scale limits
  71. % ---------------------------------------------------------------------
  72. B_oct = log2(FMAX / FMIN);
  73. min_scale_recommended = NCYCLE / B_oct;
  74. max_scale_recommended = NCHAN / 2;
  75. if 2^MIN_SCALE < min_scale_recommended
  76. new_MIN_SCALE = ceil(log2(min_scale_recommended) / STEP_SCALE) * STEP_SCALE;
  77. warning(['[MPS] MIN_SCALE too low: %.3f log2 cyc/oct (%.3f cyc/oct).\n' ...
  78. 'Recommended minimum is %.3f log2 cyc/oct (%.3f cyc/oct), based on %d cycles over %.3f octaves.\n' ...
  79. 'Using MIN_SCALE = %.3f instead.'], ...
  80. MIN_SCALE, 2^MIN_SCALE, ...
  81. log2(min_scale_recommended), min_scale_recommended, NCYCLE, B_oct, ...
  82. new_MIN_SCALE);
  83. MIN_SCALE = new_MIN_SCALE;
  84. end
  85. if 2^MAX_SCALE > max_scale_recommended
  86. new_MAX_SCALE = floor(log2(max_scale_recommended) / STEP_SCALE) * STEP_SCALE;
  87. warning(['[MPS] MAX_SCALE too high: %.3f log2 cyc/oct (%.3f cyc/oct).\n' ...
  88. 'Recommended maximum is %.3f log2 cyc/oct (%.3f cyc/oct), based on NCHAN/4.\n' ...
  89. 'Using MAX_SCALE = %.3f instead.'], ...
  90. MAX_SCALE, 2^MAX_SCALE, ...
  91. log2(max_scale_recommended), max_scale_recommended, ...
  92. new_MAX_SCALE);
  93. MAX_SCALE = new_MAX_SCALE;
  94. end
  95. end
  96. % -------------------------------------------------------------------------
  97. % Create modulation axes
  98. % -------------------------------------------------------------------------
  99. omegas_t = 2.^(MIN_RATE:STEP_RATE:MAX_RATE);
  100. omegas_f = 2.^(MIN_SCALE:STEP_SCALE:MAX_SCALE);
  101. params = struct();
  102. params.MIN_RATE = MIN_RATE;
  103. params.MAX_RATE = MAX_RATE;
  104. params.STEP_RATE = STEP_RATE;
  105. params.MIN_SCALE = MIN_SCALE;
  106. params.MAX_SCALE = MAX_SCALE;
  107. params.STEP_SCALE = STEP_SCALE;
  108. params.NCYCLE = NCYCLE;
  109. params.has_limits = has_limits;
  110. end

GetOmegas.m at commit f3e3820, no license · at the source

Overview

  1. Department of Electrical and Computer Engineering, Johns Hopkins University, Baltimore, MD USA
Institutions: Johns Hopkins University (United States)
Journal: Communications biology, volume 9, issue 1, article 1107
Dates: received 15 October 2025; accepted 5 May 2026; published online 24 May 2026
Type: Research article · Language: English
License: CC BY-NC-ND
Identifiers: DOI 10.1038/s42003-026-10265-1 · PMID 42177335 · PMCID PMC13478475 · OpenAlex W7162190684
Open access: gold, a free copy (OpenAlex)
Status: code verified (how the code is found and verified)
Categories: EEG (modality), human (organism), cognitive (subfield)
Methods: Spectral & time-frequency, Connectivity, Statistics, Machine learning, Preprocessing
Keywords: Cognitive neuroscience, Attention, Perception
MeSH: Attention*, Speech*, Speech Perception*, Acoustic Stimulation, Adult, Comprehension, Electroencephalography, Female, Humans, Male, Noise, Speech Intelligibility, Young Adult (* major topic)
Topic: Multisensory perception and integration (Experimental and Cognitive Psychology, Psychology), according to OpenAlex
Funding: United States Department of Defense | United States Navy | Office of Naval Research (N00014-23-1-2050, N00014-23-1-2086)
Citations: not cited yet (Europe PMC); 84 references in the paper

Abstract

The abstract is not reproduced here: the paper's license (CC BY-NC-ND) does not allow it. Read it in the paper, at the publisher or on Europe PMC.

Repositories

Its files are read in the Code ↔ Paper reader above, with 3 matches between paragraphs and lines of code.

Zenodo 19830754

License: CC-BY-4.0
State: the link answers, verified on 28 September 2026
Evidence: files inventoried
Size: 1 file
Software Heritage: not checked
Found in: “Code availability”
Not found: README, license file, CITATION.cff, environment file, tests, continuous integration, documentation
Availability: 1 check, the latest on 28 September 2026: the link answers (HTTP 200)
  • 28 September 2026: the link answers (HTTP 200)
12 files
At the source:

mphuet/matgaborstm

License: none: the authors keep all their rights
State: the link answers, verified on 28 September 2026
Evidence: files inventoried
Commit: f3e3820996ae423b1cd8847512240214824177da, 25 April 2026
Languages: MATLAB (11)
Size: 16 files, 11 scripts
Software Heritage: not archived
Found in: the Zenodo archive record
Holds: README
Not found: license file, CITATION.cff, environment file, tests, continuous integration, documentation
Availability: 1 check, the latest on 28 September 2026: the link answers
  • 28 September 2026: the link answers
12 files

Code availability statement

The paper has a code availability statement. Its license (CC BY-NC-ND) does not allow reproducing it here; in short, from what the harvester recognized in it:

  • it points to the authors' code: Zenodo 19830754

Read it in the paper: doi.org/10.1038/s42003-026-10265-1.

Tracing map

Proposed by the machine: these links were found in the paper and verified at the source, without human review. The map will receive a Zenodo DOI once one of the paper's authors has validated it with their ORCID.

What the map holds:

  • 2 repositories of the authors' code, each at its verified commit, with its license and how the link was found in the paper;
  • 22 scripts, each with its path and the digest of its content;
  • 3 matches between paragraphs of the paper and lines of the code (method lexical-v1);
  • neither the text of the paper nor the code itself.

Its JSON (tracing-map.json) is deposited on Zenodo with its DOI once the map is validated.

Data

Datasets cited

Data availability statement

The paper has a data availability statement. Its license (CC BY-NC-ND) does not allow reproducing it here; in short, from what the harvester recognized in it:

Read it in the paper: doi.org/10.1038/s42003-026-10265-1.

Versions

The history of this record: each version stored by the harvester or made by a correction of its authors or of the maintainers of its code, and what changed in its facts. The texts of the paper (its abstract, its availability statements) are not part of it; versions that changed only those are not listed.

Version 1, 28 September 2026: the first record

Recorded: type, language, journal, volume, issue, pages, dates, 2 authors, 3 keywords, 13 MeSH terms, 1 funder, 69 references.

Cite

This paper

Huet, M.-P., & Elhilali, M. (2026). The shape of attention reflects flexible filtering of natural speech modulations. Communications biology, 9(1), 1107. https://doi.org/10.1038/s42003-026-10265-1

BibTeX

@article{huet2026shape,
author = {Huet, Moïra-Phoebé and Elhilali, Mounya},
title = {{The shape of attention reflects flexible filtering of natural speech modulations}},
journal = {Communications biology},
year = {2026},
month = may,
volume = {9},
number = {1},
pages = {1107},
publisher = {Nature Publishing Group},
issn = {2399-3642},
doi = {10.1038/s42003-026-10265-1},
url = {https://doi.org/10.1038/s42003-026-10265-1},
pmid = {42177335},
pmcid = {PMC13478475}
}

RIS

TY - JOUR
AU - Huet, Moïra-Phoebé
AU - Elhilali, Mounya
TI - The shape of attention reflects flexible filtering of natural speech modulations
T2 - Communications biology
J2 - Commun Biol
PY - 2026
DA - 2026/05/24
VL - 9
IS - 1
SP - 1107
SN - 2399-3642
PB - Nature Publishing Group
DO - 10.1038/s42003-026-10265-1
UR - https://doi.org/10.1038/s42003-026-10265-1
LA - en
ER -

CSL-JSON

{
"id": "10.1038/s42003-026-10265-1",
"type": "article-journal",
"title": "The shape of attention reflects flexible filtering of natural speech modulations",
"container-title": "Communications biology",
"author": [
{
"family": "Huet",
"given": "Moïra-Phoebé"
},
{
"family": "Elhilali",
"given": "Mounya"
}
],
"container-title-short": "Commun Biol",
"volume": "9",
"issue": "1",
"page": "1107",
"DOI": "10.1038/s42003-026-10265-1",
"PMID": "42177335",
"PMCID": "PMC13478475",
"ISSN": "2399-3642",
"publisher": "Nature Publishing Group",
"URL": "https://doi.org/10.1038/s42003-026-10265-1",
"language": "en",
"issued": {
"date-parts": [
[
2026,
5,
24
]
]
}
}

The tracing map gets a citation of its own once an author has validated it and it has a DOI.

Similar papers

The papers with a page that share the most with this one: the tools found in their code, their categories, datasets, cited references and authors, the rarest counting most.

[1] doi:10.1016/j.isci.2023.106849
Target enhancement but not distractor suppression in auditory neural tracking during continuous speech.
Journal: iScience
In common: cognitive, 13 references
[2] doi:10.3389/fnins.2021.674112
Behavioral Account of Attended Stream Enhances Neural Tracking.
Journal: Frontiers in neuroscience
In common: EEG, cognitive, 6 references, author Moïra-Phoebé Huet
[3] doi:10.1523/jneurosci.0657-25.2025 [code]
Attentional Engagement with Target and Distractor Streams Predicts Speech Comprehension in Multitalker Environments.
Journal: The Journal of neuroscience : the official journal of the Society for Neuroscience
In common: EEG, cognitive, 11 references
[4] doi:10.1007/s11571-025-10289-z
Linear modeling of brain activity during selective attention to continuous speech: the critical role of the N1 effect in event-related potentials to acoustic edges.
Journal: Cognitive neurodynamics
In common: EEG, cognitive, 11 references
[5] doi:10.1093/cercor/bhac094 [code]
Expectations boost the reconstruction of auditory features from electrophysiological responses to noisy speech.
Journal: Cerebral cortex (New York, N.Y. : 1991)
In common: EEG, cognitive, 10 references
[6] doi:10.1371/journal.pcbi.1009358 [code]
Envelope reconstruction of speech and music highlights stronger tracking of speech at low frequencies.
Journal: PLoS computational biology
In common: EEG, cognitive, 10 references
[7] doi:10.1371/journal.pbio.3002534 [code]
Attention to audiovisual speech shapes neural processing through feedback-feedforward loops between different nodes of the speech network.
Journal: PLoS biology
In common: EEG, cognitive, 9 references
[8] doi:10.1162/nol.a.14 [code]
Attention Modulation to Linguistic Speech Units.
Journal: Neurobiology of language (Cambridge, Mass.)
In common: EEG, cognitive, 10 references
[9] doi:10.1162/imag.a.126 [code]
Neural speech tracking in noise reflects the opposing influence of SNR on intelligibility and attentional effort.
Journal: Imaging neuroscience (Cambridge, Mass.)
In common: cognitive, 9 references
[10] doi:10.1186/s13636-023-00286-7
Explicit-memory multiresolution adaptive framework for speech and music separation.
Journal: EURASIP journal on audio, speech, and music processing
In common: cognitive, 5 references, author Mounya Elhilali

Contribute

The authors of this paper can claim it, correct its record and validate its tracing map, and the maintainers of its code (its owner, or a public member of its organization) correct what it says of their repository; anyone signed in can ask for its removal. Every request goes to OSCR's own machine, which answers it; your account page follows them.

Sign in with ORCID to claim this paper as one of its authors, correct its record or validate its tracing map: when the paper's metadata lists your ORCID iD, you are recognized at once. Maintainers of its code: sign in with GitHub, then claim the repository on your account page.

Add the badge to the code's README

OSCR: the badge of this paper

If you are an author or a maintainer of this paper's code, you can add this badge. It says what OSCR knows of the paper (its code, its validated tracing map) and links the code to this page. Paste one of these snippets under the README's title. Keep the two marks around it, so that the badge can be replaced in place and is never added twice. OSCR changes nothing in your repository.

Markdown
<!-- oscr-badge:start -->
[![OSCR](https://openscicode.org/badge/doi/10.1038/s42003-026-10265-1.svg)](https://openscicode.org/badge/doi/10.1038/s42003-026-10265-1)
<!-- oscr-badge:end -->
reStructuredText
.. oscr-badge:start

.. image:: https://openscicode.org/badge/doi/10.1038/s42003-026-10265-1.svg
   :target: https://openscicode.org/badge/doi/10.1038/s42003-026-10265-1
   :alt: OSCR

.. oscr-badge:end
HTML
<!-- oscr-badge:start -->
<a href="https://openscicode.org/badge/doi/10.1038/s42003-026-10265-1"><img src="https://openscicode.org/badge/doi/10.1038/s42003-026-10265-1.svg" alt="OSCR"></a>
<!-- oscr-badge:end -->

On GitHub, open the README, choose Edit (the pencil), paste the snippet under the title, then "Commit changes".

If you choose to, you can have the badge kept up to date for you, with oscr badge --write from the command line or with the GitHub Action in your repository's workflows. Every other form and option (a card, AsciiDoc, LaTeX, shields.io) is on the badge page.

Request its removal

To ask OSCR to remove this record, the copies of its authors' scripts or its tracing map, use the removal request page: signed in, you say who you are, what to remove and why, then review and confirm the request. Published rules decide every request (how).

Discussion, reproductions, activity

Discussion: code errors and mismatches between the code and the paper about this paper and its code, from readers and its authors, beside the paper and its tracing map.

Report a mismatch between the code and the paper · Report a code error (signed in)

Reproductions: reports from readers who ran the authors' code and did not get the paper's result, what they ran, with which environment, commit and data.

Report a reproduction failure (signed in)

Versions of its code: the releases of its code tied to a version of this paper (the preprint, the accepted manuscript, the version of record…), each with the tracing map versioned with it.

Activity: what happens around this paper: new versions of its record, its map's validation, discussions and reproductions. It opens with sign-in.