Cortical representation of pitch perception in mice.
4 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 5 matches · 2 of them tie a paragraph to a whole file without given lines: weak matches, whose lines are not tinted
- [1] § Materials and Methods › Auditory filter model ↔ auditoryFilterModel.m, lines 147 to 259 · score 0.90 · iterated ripple noises, 4–48 kHz, Fundamental frequencies, harmonic complex tones, pulse trains, auditory filter · block
oscr:b:B4QHTCCVX89EM-5· Report a mismatch - [2] § Materials and Methods › Auditory filter model ↔ generateStimulus.m, the whole file · a weak match · score 0.89 · amplitude modulated noises, iterated ripple noises, 4–48 kHz, harmonic complex tones, pulse trains, delay · block
oscr:b:NGR8GAF9S9SZ6-E· Report a mismatch - [3] § Materials and Methods › Auditory filter model ↔ auditoryFilterModel.m, lines 63 to 145 · score 0.84 · half wave rectified, zero phase gammatone, low pass filtered, phase locking, gammatone filter, CB · block
oscr:b:ZDW9FJXFH3T6D-3· Report a mismatch - [4] § Results › Modeled temporal pitch salience predicts F0 discrimination sensitivity in mice ↔ auditoryFilterModel.m, lines 1 to 19 · score 0.77 · half wave rectified, zero phase gammatone, low pass filtered, phase locking, modeled, compressive · block
oscr:b:TG9XFDWYWFWMX-C· Report a mismatch - [5] § Materials and Methods › Acoustic stimulus presentation ↔ generateStimulus.m, the whole file · a weak match · score 0.68 · bandpass filtered, cosine, delay, depth, pi, summing · block
oscr:b:NGR8GAF9S9SZ6-E· 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 · 259 lines · 7 KB · no license · 3 matches
- %% Mouse Auditory Filter Model from Putnam and Kumar et al 2026
- % This is a gammatone auditory filterbank model. It processes four different stimulus classes (Pulse
- % Trains, Harmonic Complex Tones, Amplitude Modulated Noise, and Iterated Ripple Noise).
- %
- % Processing pipeline:
- % 1) Stimulus synthesis
- % 2) Zero-phase gammatone filtering
- % 3) Half-wave rectification and compression
- % 4) Low-pass filtering to phase-locking limit (1 kHz)
- % 5) Temporal pitch strength via autocorrelation function (ACF) peak around the F0 period
- % 6) Visualization
- %
- % Author: Nikolas Francis, 2026
- clear; clc; close all
- % Add model path
- codepath = fileparts(mfilename('fullpath'));
- addpath(genpath(codepath));
- %% Parameters
- % Sampling rate (Hz)
- fs = 200e3;
- % Stimulus duration (s)
- duration = 0.5;
- % Time vector
- t = 0:1/fs:(duration - 1/fs);
- % Duration of onset/offset ramp (s)
- rampDur = 0.005;
- % Hanning window for ramp
- ramp = hanning(round(rampDur*fs*2));
- ramp = ramp(1:floor(end/2))';
- rampOff = fliplr(ramp);
- % Filter spacing (Hz)
- filtspace = 500;
- % Phase-locking cutoff frequency (Hz)
- phaseLockHz = 1000;
- % Compression factor (0-1, 1 = no compression)
- compfact = 0.5;
- % Mouse cochlear bandwidth data (Ehret, 1976)
- f = [5 10 15 20 30 40 50]*1e3;
- CB_ehret = [3.89 4.44 6.39 7.94 15.67 17.72 21.94]*1e3;
- % Fundamental frequencies (Hz)
- F0s = [55, 330];
- % Compute filterbank center frequencies
- f_interp = 4000:filtspace:48000;
- % Linear fit to Ehret CBs
- P = polyfit(f, CB_ehret, 1);
- CB = P(1)*f_interp + P(2);
- %% Loop through each stimulus configuration
- % Preallocate storage
- Stim = cell(2,4);
- auditoryFilterOutput = cell(2,4);
- auditoryFilterSpectrum = cell(2,4);
- pitchStrength = zeros(2,4);
- for s = 1:4
- for F0idx = 1:2
- % Display status
- stimNames = {'Pulse Train','Harmonic Complex Tone','AM Noise','IRN'};
- fprintf('Processing stimulus type %d (%s), F0 = %d Hz\n', s, stimNames{s}, F0s(F0idx));
- % Select F0
- f0 = F0s(F0idx);
- % Generate stimulus
- [stim, ~] = generateStimulus(f0, s, fs, t);
- % Apply onset/offset ramps
- stim(1:length(ramp)) = stim(1:length(ramp)) .* ramp;
- stim(end-length(ramp)+1:end) = stim(end-length(ramp)+1:end) .* rampOff;
- % Normalize stimulus
- stim = stim ./ max(abs(stim));
- Stim{F0idx,s} = stim;
- % Auditory filter processing (zero-phase gammatone)
- filtStim = zeros(length(stim), length(f_interp));
- parfor i = 1:length(f_interp)
- cf = f_interp(i);
- erb = CB(i);
- filtered = zerophaseGammatoneFilter(stim(:), fs, cf, erb);
- filtered = filtered - mean(filtered);
- filtStim(:,i) = filtered;
- end
- % Half-wave rectification and compression
- filtStim(filtStim < 0) = 0;
- D = (filtStim'.^compfact) / max(abs(filtStim(:)));
- clear filtStim
- % Low-pass filtering (phase locking limit)
- [b2,a2] = butter(6, phaseLockHz/(fs/2), 'low');
- X = double(D.');
- auditoryFilterOutput{F0idx, s} = filtfilt(b2, a2, X)';
- clear D
- % Auditory spectrum (max over time, normalized)
- d = max(auditoryFilterOutput{F0idx,s}, [], 2);
- auditoryFilterSpectrum{F0idx,s} = d ./ max(abs(d));
- % Temporal pitch strength (ACF peak around the period)
- % FFT-based autocorrelation for speed
- X = auditoryFilterOutput{F0idx,s};
- [C,T] = size(X);
- w = hamming(T).';
- X = X - mean(X,2);
- X = X .* w;
- X = single(X);
- p = round((1/f0)*fs);
- kmin = max(0, floor(0.8*p));
- kmax = min(T-1, ceil(1.2*p));
- Nfft = 2^nextpow2(2*T-1);
- F = fft(X, Nfft, 2);
- Sxx = real(F .* conj(F));
- acf = ifft(Sxx, [], 2, 'symmetric');
- % Keep nonnegative lags only
- acf = acf(:,1:T);
- % Normalize by zero-lag
- zlag = max(acf(:,1), eps('single'));
- acf = bsxfun(@rdivide, acf, zlag);
- % Max within ±20% window around fundamental period (1/F0)
- corrP = max(acf(:,kmin+1:kmax+1), [], 2);
- pitchStrength(F0idx,s) = mean(corrP,'omitnan');
- end
- end
- %% Plot stimuli auditory filter output using Ehret CBs
- figure
- % Subplot indexes for Stim 1 Target
- pos{1,1} = [1 2 3];
- pos{1,3} = [17:19 33:35];
- pos{1,4} = [49:51];
- pos{1,5} = [20 36];
- % Subplot indexes for Stim 1 Non-target
- pos{2,1} = [1 2 3] + 64;
- pos{2,3} = [17:19 33:35] + 64;
- pos{2,4} = [49:51] + 64;
- pos{2,5} = [20 36] + 64;
- % Display duration (s)
- dispDur = 0.1;
- for s = 1:4
- for F0 = 1:2
- % Fundamental frequency selection and color
- if F0 == 1
- f0 = F0s(1);
- col = 'r';
- else
- f0 = F0s(2);
- col = 'b';
- end
- % Frequency axis for plots (kHz)
- f_interp = (4000:filtspace:48000) ./1000;
- % Stimulus waveform
- subplot(9,16, pos{F0,1} + ((s-1)*4))
- w = Stim{F0,s}(1,1:ceil(fs*dispDur));
- w = w ./ max(abs(w));
- t = 0:1/fs:duration-(1/fs);
- plot(t(1:ceil(fs*dispDur)), w, col, 'linewidth',1)
- ylim([-1.25 1.25])
- xlim([0 dispDur])
- set(gca,'xticklabel',[],'ytick',[-1 1])
- box off
- if F0==1 && s==1
- ylabel('Amplitude')
- end
- % Stimulus title selection
- if F0==1
- if s == 1
- T = 'Pulse Train';
- elseif s == 2
- T = 'Harmonic Complex Tone';
- elseif s == 4
- T = 'Iterated Ripple Noise';
- elseif s == 3
- T = 'AM Noise';
- end
- title(T)
- end
- xlabel('Time (s)')
- % Auditory Filter Spectrogram
- D = abs(auditoryFilterOutput{F0,s});
- h = subplot(9,16, pos{F0,3} + ((s-1)*4));
- t = 0:1/fs:(size(D,2)./fs) - (1/fs);
- imagesc(t, (f_interp'./1000), D);
- colormap(flipud(gray))
- mD = max(D(:));
- D=sum(D)./max(sum(D));
- freezeColors(h)
- set(gca,'YDir','normal','ytick',[4 48],'xtick',[])
- caxis([mD*.01 mD])
- xlim([0 dispDur])
- ylabel('Frequency (kHz)')
- box off
- % Auditory filter spectrum
- cf = f_interp;
- subplot(9,16, pos{F0,5} + ((s-1)*4))
- plot(auditoryFilterSpectrum{F0,s}, cf, col, 'linewidth',1)
- ylim([4 48])
- xlim([0 1])
- xlabel('Magnitude')
- set(gca,'yticklabel',[],'xtick',[0 1])
- box off
- % Auditory filter waveform (sum over channels)
- subplot(9,16, pos{F0,4} + ((s-1)*4))
- plot(t, D, col, 'linewidth',1)
- xlim([0 dispDur])
- box off
- xlabel('Time (s)')
- set(gca,'ytick',[0 1])
- ylabel('Amplitude')
- set(gcf,'position',[1238 615 551 420])
- end
- end
- % Plot pitch strength
- figure
- plot(1:4, mean(pitchStrength(:,:,1)), 'ko', 'MarkerFaceColor','k')
- hold on
- plot(1:4, mean(pitchStrength(:,:,1)), 'k')
- set(gca,'ytick',[0.5 .75 1])
- ylim([0.5 1])
- set(gca,'xtick',1:4,'xticklabel',{'CT','HCT','AMN','IRN'})
- xlabel('Stimulus')
- ylabel('Autocorrelation Peak')
- title('Pitch Strength')
- xlim([0.5 4.5])
- box off
auditoryFilterModel.m at commit f9019f1, no license · at the source
Overview
- Department of Biology, University of Maryland, College Park, MD USA
- Neuroscience and Cognitive Science Graduate Program, University of Maryland, College Park, MD USA
- Center for Comparative and Evolutionary Biology of Hearing, University of Maryland, College Park, MD USA
- Brain and Behavior Institute, University of Maryland, College Park, MD USA
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 5 matches between paragraphs and lines of code.
Zenodo 19616783
Availability: 1 check, the latest on 28 September 2026: the link answers (HTTP 200)
- 28 September 2026: the link answers (HTTP 200)
5 files
- auditoryFilterModel.m, MATLAB, 259 lines
- freezeColors.m, MATLAB, 328 lines
- generateStimulus.m, MATLAB, 98 lines
- zerophaseGammatoneFilter
.m , MATLAB, 80 lines - README.md, Text, 67 lines
soundcortex/francislabafm
f9019f1a1aff89f07a10aa43c02d0bf4097b5f00, 16 April 2026Availability: 1 check, the latest on 28 September 2026: the link answers
- 28 September 2026: the link answers
5 files
- auditoryFilterModel.m, MATLAB, 259 lines, 3 matches
- freezeColors.m, MATLAB, 328 lines
- generateStimulus.m, MATLAB, 98 lines, 2 matches
- zerophaseGammatoneFilter
.m , MATLAB, 80 lines - README.md, Text, 67 lines
The paper's code and data availability statement is in the Data section.
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;
- 8 scripts, each with its path and the digest of its content;
- 5 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
No dataset and no data link were found in the paper.
Code and data availability statement
The paper has a code and data 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 19616783
Read it in the paper: doi.org/10.1038/s42003-026-10246-4.
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, 8 authors, 2 keywords, 8 MeSH terms, 4 funders, 79 references.
Cite
This paper
Putnam, J. W., Kumar, A., Gill, N. K., Dinh, J., Orellana Castellanos, F., Leusch, S., Vaughn, S., & Francis, N. A. (2026). Cortical representation of pitch perception in mice. Communications biology, 9(1), 1008. https://
BibTeX
@article{putnam2026corti
author = {Putnam, Jason W and Kumar, Abhay and Gill, Nasiru K and Dinh, Jonathan and Orellana Castellanos, Franshesca and Leusch, Sofia and Vaughn, Sarah and Francis, Nikolas A},
title = {{Cortical representation of pitch perception in mice}},
journal = {Communications biology},
year = {2026},
month = may,
volume = {9},
number = {1},
pages = {1008},
publisher = {Nature Publishing Group},
issn = {2399-3642},
doi = {10.1038/
url = {https://
pmid = {42129426},
pmcid = {PMC13396396}
}
RIS
TY - JOUR
AU - Putnam, Jason W
AU - Kumar, Abhay
AU - Gill, Nasiru K
AU - Dinh, Jonathan
AU - Orellana Castellanos, Franshesca
AU - Leusch, Sofia
AU - Vaughn, Sarah
AU - Francis, Nikolas A
TI - Cortical representation of pitch perception in mice
T2 - Communications biology
J2 - Commun Biol
PY - 2026
DA - 2026/
VL - 9
IS - 1
SP - 1008
SN - 2399-3642
PB - Nature Publishing Group
DO - 10.1038/
UR - https://
LA - en
ER -
CSL-JSON
{
"id": "10.1038/
"type": "article-journal",
"title": "Cortical representation of pitch perception in mice",
"container-title": "Communications biology",
"author": [
{
"family": "Putnam",
"given": "Jason W"
},
{
"family": "Kumar",
"given": "Abhay"
},
{
"family": "Gill",
"given": "Nasiru K"
},
{
"family": "Dinh",
"given": "Jonathan"
},
{
"family": "Orellana Castellanos",
"given": "Franshesca"
},
{
"family": "Leusch",
"given": "Sofia"
},
{
"family": "Vaughn",
"given": "Sarah"
},
{
"family": "Francis",
"given": "Nikolas A"
}
],
"container-title-short":
"volume": "9",
"issue": "1",
"page": "1008",
"DOI": "10.1038/
"PMID": "42129426",
"PMCID": "PMC13396396",
"ISSN": "2399-3642",
"publisher": "Nature Publishing Group",
"URL": "https://
"language": "en",
"issued": {
"date-parts": [
[
2026,
5,
13
]
]
}
}
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.1038/s41467-021-27366-6 [code]
- Deep neural network models reveal interplay of peripheral coding and stimulus statistics in pitch perception.Journal: Nature communicationsIn common: cognitive, 10 references
- [2] doi:10.1371/journal.pcbi.1009889 [code]
- Human discrimination and modeling of high-frequency complex tones shed light on the neural codes for pitch.Journal: PLoS computational biologyIn common: 7 references
- [3] doi:10.1162/imag_a_00160 [code]
- The auditory P2 is influenced by pitch changes but not pitch strength and consists of two separate subcomponents.Journal: Imaging neuroscience (Cambridge, Mass.)In common: Signal Processing Toolbox, 6 references
- [4] doi:10.1038/s41467-025-56779-w
- Cortical processing of discrete prosodic patterns in continuous speech.Journal: Nature communicationsIn common: cognitive, 6 references
- [5] doi:10.1038/s41467-024-54700-5 [code]
- Models optimized for real-world tasks reveal the task-dependent necessity of precise temporal coding in hearing.Journal: Nature communicationsIn common: cognitive, 6 references
- [6] doi:10.1126/sciadv.aef3715
- A cortical output channel for perceptual categorization.Journal: Science advancesIn common: cognitive, mouse, 6 references
- [7] doi:10.1016/j.celrep.2024.114172
- Auditory discrimination learning differentially modulates neural representation in auditory cortex subregions and inter-areal connectivity.Journal: Cell reportsIn common: mouse, 5 references
- [8] doi:10.1016/j.isci.2025.113796
- Orthogonal spectral and temporal envelope representation during the onset phase in auditory cortex.Journal: iScienceIn common: 5 references
- [9] doi:10.1016/j.neuroimage.2022.118879 [code]
- MEG correlates of temporal regularity relevant to pitch perception in human auditory cortex.Journal: NeuroImageIn common: Signal Processing Toolbox, 4 references
- [10] doi:10.1162/opmi_a_00131
- Preliminary Evidence for Global Properties in Human Listeners During Natural Auditory Scene Perception.Journal: Open mind : discoveries in cognitive scienceIn common: cognitive, 4 references
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.
Claim this paper
Correct its record
Say what each link of this record is, remove the ones that are not the paper's, add the ones that are missing. The correction becomes a new version of the record, in its Versions section.
Validate its tracing map
You validate the map as this page shows it: 2 repositories of the authors' code, each at its verified commit and with its license, 8 scripts, and 5 matches between paragraphs and code (see the Code and Map sections). It then receives a DOI on Zenodo, with you (your ORCID iD) and OSCR as its creators; the code itself is not deposited.
The map's fingerprint: sha256:9df9cb275c4e96a2…
Add the badge to the code's README
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 -->
[](https://openscicode.org/badge/doi/10.1038/s42003-026-10246-4)
<!-- oscr-badge:end -->reStructuredText
.. oscr-badge:start
.. image:: https://openscicode.org/badge/doi/10.1038/s42003-026-10246-4.svg
:target: https://openscicode.org/badge/doi/10.1038/s42003-026-10246-4
:alt: OSCR
.. oscr-badge:endHTML
<!-- oscr-badge:start -->
<a href="https://openscicode.org/badge/doi/10.1038/s42003-026-10246-4"><img src="https://openscicode.org/badge/doi/10.1038/s42003-026-10246-4.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.
