Expand description
Convenience re-exports for common bbx_dsp usage.
This module provides a single import for the most commonly used types when building DSP graphs.
§Example
ⓘ
use bbx_dsp::prelude::*;
let mut builder = GraphBuilder::<f32>::new(44100.0, 512, 2);
let osc = builder.add(OscillatorBlock::new(440.0, Waveform::Sine, None));
let gain = builder.add(GainBlock::new(-6.0, None));
builder.connect(osc, 0, gain, 0);
let graph = builder.build();Re-exports§
pub use crate::blocks::AmbisonicDecoderBlock;pub use crate::blocks::BinauralDecoderBlock;pub use crate::blocks::BinauralStrategy;pub use crate::blocks::ChannelMergerBlock;pub use crate::blocks::ChannelMode;pub use crate::blocks::ChannelRouterBlock;pub use crate::blocks::ChannelSplitterBlock;pub use crate::blocks::DcBlockerBlock;pub use crate::blocks::EnvelopeBlock;pub use crate::blocks::FileInputBlock;pub use crate::blocks::FileOutputBlock;pub use crate::blocks::GainBlock;pub use crate::blocks::LfoBlock;pub use crate::blocks::LowPassFilterBlock;pub use crate::blocks::MatrixMixerBlock;pub use crate::blocks::MixerBlock;pub use crate::blocks::OscillatorBlock;pub use crate::blocks::OutputBlock;pub use crate::blocks::OverdriveBlock;pub use crate::blocks::PannerBlock;pub use crate::blocks::PannerMode;pub use crate::blocks::VcaBlock;pub use crate::block::Block;pub use crate::block::BlockId;pub use crate::block::BlockType;pub use crate::buffer::AudioBuffer;pub use crate::context::DEFAULT_BUFFER_SIZE;pub use crate::context::DEFAULT_SAMPLE_RATE;pub use crate::context::DspContext;pub use crate::graph::Graph;pub use crate::graph::GraphBuilder;pub use crate::parameter::Parameter;pub use crate::smoothing::Linear;pub use crate::smoothing::LinearSmoothedValue;pub use crate::smoothing::Multiplicative;pub use crate::smoothing::MultiplicativeSmoothedValue;pub use crate::smoothing::SmoothedValue;pub use crate::smoothing::SmoothingStrategy;pub use crate::waveform::Waveform;
Traits§
- Sample
- A floating-point type suitable for audio sample data.