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/instrument.rs
Items
const MAX_OSCILLATORS const MAX_UNISON const MAX_PARTIALS const MAX_NOTES const MAX_PARAMS const CONTROL_BLOCK const MIN_NOTE_MS enum PatchCategory const CATEGORY_NAMES impl PatchCategory enum OscKind const OSC_KIND_NAMES impl OscKind enum NoiseColor const NOISE_COLOR_NAMES struct OscSpec impl Default for OscSpec enum FilterKind const FILTER_KIND_NAMES impl FilterKind struct FilterSpec impl Default for FilterSpec struct Adsr impl Default for Adsr impl Adsr enum LfoShape const LFO_SHAPE_NAMES impl LfoShape struct LfoSpec impl Default for LfoSpec const LFO_DIVISIONS struct VelocitySpec impl Default for VelocitySpec struct PatchSpec impl Default for PatchSpec enum ParamKind struct ParamDescriptor impl ParamDescriptor macro osc_descriptors const GLOBAL_DESCRIPTORS const TAIL_DESCRIPTORS static TABLE impl PatchSpec struct StereoBuffer impl StereoBuffer struct RenderContext struct Biquad64 impl Biquad64 struct NoiseState impl NoiseState struct OscVoice
Functions
By call-graph weight (PageRank; 1.0 is the average function). 69 functions in all.
| function | kind | lines | cyclomatic | callers | callees | weight | crystal |
|---|---|---|---|---|---|---|---|
| PatchSpec::from_paramssrc/instrument.rs:991 | method | 17 | 4 | 12 | 4 | 8.9 | |
| validate_namesrc/instrument.rs:968 | fn | 10 | 6 | 2 | 0 | 3.2 | |
| render_notessrc/instrument.rs:1475 | fn | 47 | 15 | 6 | 5 | 2.8 | |
| descriptor_tablesrc/instrument.rs:883 | fn | 12 | 1 | 3 | 0 | 2.7 | |
| PatchSpec::defaultsrc/instrument.rs:428 | trait impl | 16 | 1 | 1 | 3 | 2.7 | |
| PatchSpec::basicsrc/instrument.rs:982 | method | 3 | 1 | 2 | 1 | 2.6 | |
| PatchSpec::set_paramsrc/instrument.rs:1021 | method | 72 | 37 | 2 | 13 | 2.5 | |
| range_errorsrc/instrument.rs:913 | fn | 4 | 2 | 3 | 0 | 2.2 | |
| StereoBuffer::silentsrc/instrument.rs:1277 | method | 3 | 1 | 7 | 0 | 2.1 | |
| OscSpec::defaultsrc/instrument.rs:174 | trait impl | 18 | 1 | 3 | 0 | 1.4 | |
| Adsr::defaultsrc/instrument.rs:257 | trait impl | 3 | 1 | 1 | 0 | 1.3 | |
| VelocitySpec::defaultsrc/instrument.rs:399 | trait impl | 3 | 1 | 1 | 0 | 1.3 | |
| FilterSpec::defaultsrc/instrument.rs:233 | trait impl | 11 | 1 | 2 | 0 | 1.2 | |
| LfoSpec::defaultsrc/instrument.rs:350 | trait impl | 13 | 1 | 2 | 0 | 1.2 | |
| division_beatssrc/instrument.rs:384 | fn | 3 | 1 | 3 | 0 | 1.2 | |
| NoiseState::whitesrc/instrument.rs:1391 | method | 4 | 1 | 2 | 0 | 1 | |
| PatchSpec::from_jsonsrc/instrument.rs:1227 | method | 10 | 2 | 3 | 1 | 1 | |
| StereoBuffer::monosrc/instrument.rs:1290 | method | 3 | 1 | 2 | 0 | 1 | |
| PatchSpec::lfo_rate_hzsrc/instrument.rs:1239 | method | 7 | 3 | 1 | 2 | 1 | |
| render_notesrc/instrument.rs:1524 | fn | 230 | 38 | 1 | 12 | 1 | |
| param_descriptorsrc/instrument.rs:903 | fn | 3 | 1 | 3 | 1 | 0.9 | |
| Adsr::held_levelsrc/instrument.rs:268 | method | 13 | 4 | 1 | 0 | 0.9 | |
| StereoBuffer::lensrc/instrument.rs:1281 | method | 3 | 1 | 1 | 0 | 0.9 | |
| param_descriptorssrc/instrument.rs:898 | fn | 3 | 1 | 3 | 1 | 0.9 | |
| render_onesrc/instrument.rs:1829 | fn | 12 | 1 | 2 | 1 | 0.8 | |
| unknown_paramsrc/instrument.rs:907 | fn | 5 | 1 | 2 | 1 | 0.7 | |
| parse_numbersrc/instrument.rs:918 | fn | 7 | 4 | 2 | 1 | 0.7 | |
| parse_enumsrc/instrument.rs:926 | fn | 9 | 1 | 2 | 1 | 0.7 | |
| pan_gainssrc/instrument.rs:1309 | fn | 7 | 2 | 2 | 1 | 0.7 | |
| PatchCategory::parsesrc/instrument.rs:73 | method | 13 | 9 | 1 | 0 | 0.7 | |
| LfoShape::parsesrc/instrument.rs:313 | method | 10 | 6 | 1 | 0 | 0.7 | |
| split_osc_keysrc/instrument.rs:955 | fn | 8 | 2 | 1 | 0 | 0.7 | |
| PatchSpec::filter_mutsrc/instrument.rs:1094 | method | 3 | 1 | 1 | 1 | 0.7 | |
| PatchSpec::lfo_mutsrc/instrument.rs:1098 | method | 3 | 1 | 1 | 1 | 0.7 | |
| PatchSpec::set_osc_paramsrc/instrument.rs:1102 | method | 46 | 21 | 1 | 7 | 0.7 | |
| NoiseState::newsrc/instrument.rs:1386 | method | 3 | 1 | 1 | 0 | 0.7 | |
| peaksrc/instrument.rs:1842 | fn | 3 | 1 | 1 | 0 | 0.6 | |
| ParamDescriptor::default_textsrc/instrument.rs:474 | method | 7 | 3 | 1 | 0 | 0.6 | |
| clampsrc/instrument.rs:1153 | nested fn | 6 | 2 | 1 | 1 | 0.6 | |
| sanitize_adsrsrc/instrument.rs:1248 | fn | 16 | 4 | 1 | 1 | 0.6 | |
| OscKind::parsesrc/instrument.rs:114 | method | 13 | 9 | 1 | 0 | 0.6 | |
| parse_listsrc/instrument.rs:936 | fn | 17 | 7 | 1 | 1 | 0.6 | |
| resonance_to_qsrc/instrument.rs:1319 | fn | 3 | 1 | 1 | 1 | 0.6 | |
| NoiseState::pinksrc/instrument.rs:1397 | method | 7 | 1 | 1 | 1 | 0.6 | |
| saw_samplesrc/instrument.rs:1429 | fn | 3 | 1 | 1 | 1 | 0.6 | |
| square_samplesrc/instrument.rs:1434 | fn | 6 | 2 | 1 | 1 | 0.6 | |
| triangle_samplesrc/instrument.rs:1444 | fn | 3 | 1 | 1 | 0 | 0.6 | |
| lfo_valuesrc/instrument.rs:1448 | fn | 24 | 7 | 1 | 0 | 0.6 | |
| lfo_depthsrc/instrument.rs:1756 | fn | 9 | 3 | 1 | 0 | 0.6 | |
| build_voicessrc/instrument.rs:1766 | fn | 58 | 8 | 1 | 3 | 0.6 | |
| PatchCategory::namesrc/instrument.rs:69 | method | 3 | 1 | 0 | 0 | 0.5 | |
| OscKind::namesrc/instrument.rs:110 | method | 3 | 1 | 0 | 0 | 0.5 | |
| FilterKind::namesrc/instrument.rs:208 | method | 3 | 1 | 0 | 0 | 0.5 | |
| Adsr::newsrc/instrument.rs:263 | method | 3 | 1 | 0 | 0 | 0.5 | |
| Adsr::level_atsrc/instrument.rs:284 | method | 8 | 3 | 0 | 1 | 0.5 | |
| LfoShape::namesrc/instrument.rs:309 | method | 3 | 1 | 0 | 0 | 0.5 | |
| PatchSpec::describedsrc/instrument.rs:1010 | method | 4 | 1 | 0 | 0 | 0.5 | |
| PatchSpec::namesrc/instrument.rs:1015 | method | 3 | 1 | 0 | 0 | 0.5 | |
| PatchSpec::sanitizesrc/instrument.rs:1152 | method | 65 | 10 | 0 | 5 | 0.5 | |
| PatchSpec::to_jsonsrc/instrument.rs:1220 | method | 3 | 1 | 0 | 0 | 0.5 | |
| StereoBuffer::is_emptysrc/instrument.rs:1285 | method | 3 | 1 | 0 | 1 | 0.5 | |
| Biquad64::setsrc/instrument.rs:1339 | method | 25 | 4 | 0 | 1 | 0.5 | |
| Biquad64::processsrc/instrument.rs:1366 | method | 9 | 2 | 0 | 0 | 0.5 | |
| every_waveform_renders_audible_finite_audiosrc/instrument.rs:1847 | fn | 10 | 2 | 0 | 3 | 0.5 | |
| unknown_and_out_of_range_params_name_the_keysrc/instrument.rs:1859 | fn | 9 | 2 | 0 | 1 | 0.5 | |
| every_descriptor_default_round_tripssrc/instrument.rs:1870 | fn | 18 | 2 | 0 | 5 | 0.5 | |
| renders_are_reproducible_and_glide_changes_the_attacksrc/instrument.rs:1890 | fn | 23 | 1 | 0 | 3 | 0.5 | |
| untrusted_notes_never_panic_and_stay_inside_the_buffersrc/instrument.rs:1915 | fn | 21 | 1 | 0 | 2 | 0.5 | |
| json_documents_are_repaired_rather_than_trustedsrc/instrument.rs:1938 | fn | 9 | 1 | 0 | 2 | 0.5 |
Source not readable from this process.