1 viewer
rust 1,860,549 · typescript 235,540 · javascript 132,956 · python 20,426 · 6,408 files · digest f04d4637f52b · built in 1.5 s · crystals off
crates/cre8-app-audio/src/synth.rs
Items
enum Waveform struct Oscillator impl Oscillator struct Envelope impl Default for Envelope impl Envelope struct Voice impl Voice struct HarmonicSeries impl HarmonicSeries struct Mixer impl Mixer struct FmSynth impl FmSynth struct GrainConfig impl Default for GrainConfig
Functions
By call-graph weight (PageRank; 1.0 is the average function). 37 functions in all.
| function | kind | lines | cyclomatic | callers | callees | weight | crystal |
|---|---|---|---|---|---|---|---|
| Oscillator::newsrc/synth.rs:84 | method | 3 | 1 | 11 | 0 | 2.9 | |
| Mixer::to_wav_bytessrc/synth.rs:269 | method | 36 | 2 | 10 | 2 | 2.9 | |
| HarmonicSeries::newsrc/synth.rs:218 | method | 3 | 1 | 6 | 0 | 2.7 | |
| Mixer::to_stereo_wav_bytessrc/synth.rs:307 | method | 39 | 2 | 5 | 2 | 1.8 | |
| poly_blepsrc/synth.rs:37 | fn | 14 | 4 | 3 | 0 | 1.7 | |
| Envelope::newsrc/synth.rs:144 | method | 3 | 1 | 8 | 0 | 1.4 | |
| Oscillator::sample_atsrc/synth.rs:89 | method | 30 | 8 | 3 | 5 | 1.3 | |
| Envelope::amplitude_atsrc/synth.rs:149 | method | 31 | 6 | 3 | 0 | 1.1 | |
| Mixer::mixsrc/synth.rs:254 | method | 13 | 2 | 6 | 4 | 1.1 | |
| FmSynth::newsrc/synth.rs:469 | method | 3 | 1 | 1 | 0 | 0.9 | |
| granular_synthesissrc/synth.rs:526 | fn | 59 | 10 | 1 | 0 | 0.9 | |
| render_voices_parallelsrc/synth.rs:348 | fn | 6 | 1 | 1 | 0 | 0.7 | |
| render_voices_sequentialsrc/synth.rs:355 | fn | 3 | 1 | 1 | 0 | 0.7 | |
| mix_rendered_voicessrc/synth.rs:359 | fn | 9 | 4 | 1 | 0 | 0.7 | |
| normalize_mix_outputsrc/synth.rs:369 | fn | 9 | 3 | 1 | 0 | 0.7 | |
| phase_cyclesrc/synth.rs:28 | fn | 3 | 1 | 1 | 0 | 0.7 | |
| band_limited_trianglesrc/synth.rs:52 | fn | 11 | 3 | 1 | 0 | 0.7 | |
| custom_partials_samplesrc/synth.rs:64 | fn | 18 | 5 | 1 | 0 | 0.7 | |
| FmSynth::rendersrc/synth.rs:474 | method | 14 | 2 | 1 | 0 | 0.7 | |
| HarmonicSeries::bright_leadsrc/synth.rs:227 | method | 3 | 1 | 2 | 1 | 0.7 | |
| HarmonicSeries::build_oscillatorsrc/synth.rs:241 | method | 3 | 1 | 2 | 1 | 0.7 | |
| Envelope::defaultsrc/synth.rs:138 | trait impl | 3 | 1 | 1 | 0 | 0.6 | |
| HarmonicSeries::warm_padsrc/synth.rs:223 | method | 3 | 1 | 1 | 1 | 0.6 | |
| HarmonicSeries::bellsrc/synth.rs:236 | method | 4 | 1 | 1 | 1 | 0.6 | |
| Oscillator::rendersrc/synth.rs:121 | method | 5 | 1 | 0 | 1 | 0.5 | |
| Voice::rendersrc/synth.rs:192 | method | 16 | 2 | 0 | 2 | 0.5 | |
| HarmonicSeries::hollowsrc/synth.rs:231 | method | 4 | 1 | 0 | 1 | 0.5 | |
| test_sine_oscillatorsrc/synth.rs:384 | fn | 5 | 1 | 0 | 2 | 0.5 | |
| test_envelope_adsrsrc/synth.rs:391 | fn | 6 | 1 | 0 | 2 | 0.5 | |
| test_wav_header_validsrc/synth.rs:399 | fn | 7 | 1 | 0 | 1 | 0.5 | |
| test_mix_normalizessrc/synth.rs:408 | fn | 12 | 1 | 0 | 2 | 0.5 | |
| test_custom_partials_are_normalized_and_nyquist_limitedsrc/synth.rs:422 | fn | 6 | 1 | 0 | 1 | 0.5 | |
| test_band_limited_shapes_are_finitesrc/synth.rs:430 | fn | 7 | 2 | 0 | 1 | 0.5 | |
| test_fm_synth_produces_outputsrc/synth.rs:439 | fn | 5 | 1 | 0 | 1 | 0.5 | |
| test_granular_produces_outputsrc/synth.rs:446 | fn | 6 | 1 | 0 | 1 | 0.5 | |
| FmSynth::render_with_envelopesrc/synth.rs:490 | method | 9 | 2 | 0 | 2 | 0.5 | |
| GrainConfig::defaultsrc/synth.rs:519 | trait impl | 3 | 1 | 0 | 0 | 0.5 |
Source not readable from this process.