Skip to content

Multichannel files#445

Draft
Gautzilla wants to merge 21 commits into
Project-OSmOSE:mainfrom
Gautzilla:multichannel-files
Draft

Multichannel files#445
Gautzilla wants to merge 21 commits into
Project-OSmOSE:mainfrom
Gautzilla:multichannel-files

Conversation

@Gautzilla

@Gautzilla Gautzilla commented Jul 22, 2026

Copy link
Copy Markdown
Contributor

🐙Sup?

This PR aims at enhancing the handling of multitchannel files.

Basically, the previous iteration was really straightforward and rigid:

  • AudioData associated with multichannel AudioFile systematically fetched data from every channel
  • SpectroData associated with multichannel AudioData only referred to the first channel.

💡Now what?

Here's what I intend to do about it:

Feature Detail Dev status
AudioData.channels List of int that specifies which channels of the audio file(s) are to get.
AudioData.get_value() rework Get only value from the channels specified in AudioData.channels
SpectroData.audio_channel Index of the channel of the linked AudioData that the SpectroData concerns
Serialization Addition of the channel properties to the data dicts
AudioData.normalize() rework Channel-wise normalization (with updated normalization_values dict)
Dataset incorporations Helpers for managing channels on AudioDataset and channel on SpectroData
(is that truly necessary)
Transform incorporations Public API support for channel selecting
(this could as well been done with some Core on top of the Public, as the properties should be included in the dicts)
Documentation Add a page in the documentation for working with multichannel audio.

@Gautzilla
Gautzilla requested a review from mathieudpnt July 22, 2026 14:45
@Gautzilla Gautzilla self-assigned this Jul 22, 2026
@Gautzilla Gautzilla added the Enhancement Something that could be done in a better way label Jul 22, 2026
@coveralls

coveralls commented Jul 22, 2026

Copy link
Copy Markdown
Collaborator

Coverage Status

coverage: 98.979% (+0.005%) from 98.974% — Gautzilla:multichannel-files into Project-OSmOSE:main

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Enhancement Something that could be done in a better way

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants