cortix 0.1.0

Perceptual audio spectrum analyser with Gammatone filterbanks
Documentation
  • Coverage
  • 100%
    71 out of 71 items documented3 out of 58 items with examples
  • Size
  • Source code size: 30.66 kB This is the summed size of all the files inside the crates.io package for this release.
  • Documentation size: 4.22 MB This is the summed size of all files generated by rustdoc for all configured targets
  • Ø build duration
  • this release: 14s Average build duration of successful builds.
  • all releases: 14s Average build duration of successful builds in releases after 2024-10-23.
  • Links
  • dfl/cortix
    0 0 0
  • crates.io
  • Dependencies
  • Versions
  • Owners
  • dfl

Cortix - Perceptual Audio Spectrum Analyser

A high-performance, perceptually-accurate spectrum analysis library featuring Gammatone filterbanks, multiple frequency scales (Bark, ERB, Mel), and real-time processing capabilities.

Named after the Organ of Corti - the biological spectrum analyser in the cochlea where sound is converted to neural signals.

Quick Start

use cortix::{Analyser, Scale};

// Create analyser with builder pattern
let mut analyser = Analyser::builder()
    .sample_rate(48000.0)
    .bands(40)
    .scale(Scale::ERB)
    .build();

// Process audio and get envelope
let audio = vec![0.0f32; 512];
let envelope = analyser.process(&audio);

// Get dB values
let db = analyser.envelope_db();

Features

  • Gammatone Filterbank - Auditory model with true frequency resolution
  • Multiple Scales - Bark, ERB, Mel, Log, and Linear frequency spacing
  • Real-time Performance - Sub-millisecond latency, efficient per-sample processing
  • Perceptually Accurate - Based on auditory neuroscience research

Frequency Scales

Scale Description Use Case
Linear Uniform Hz spacing Scientific analysis
Log Logarithmic (octaves) Music, harmonics
Bark Critical bands Masking, loudness
ERB Equivalent rectangular bandwidth Auditory models
Mel Pitch perception Speech recognition