Enum weresocool_ast::ast::Op
source · pub enum Op {
Show 33 variants
AsIs,
Id(String),
Tag(String),
CSV1d {
path: String,
scale: Option<Rational64>,
},
CSV2d {
path: String,
scales: Vec<Scale>,
},
Lowpass {
hash: String,
cutoff_frequency: Rational64,
q_factor: Rational64,
},
Highpass {
hash: String,
cutoff_frequency: Rational64,
q_factor: Rational64,
},
Bandpass {
hash: String,
cutoff_frequency: Rational64,
q_factor: Rational64,
},
FunctionCall {
name: String,
args: Vec<Term>,
},
Lambda {
input_name: Option<String>,
term: Box<Term>,
scope: String,
},
Noise,
Saw,
Sine {
pow: Option<Rational64>,
},
Triangle {
pow: Option<Rational64>,
},
Square {
width: Option<Rational64>,
},
AD {
attack: Rational64,
decay: Rational64,
asr: ASR,
},
Portamento {
m: Rational64,
},
Reverse,
FInvert,
Silence {
m: Rational64,
},
TransposeM {
m: Rational64,
},
TransposeA {
a: Rational64,
},
PanM {
m: Rational64,
},
PanA {
a: Rational64,
},
Gain {
m: Rational64,
},
Length {
m: Rational64,
},
Reverb {
m: Option<Rational64>,
},
Sequence {
operations: Vec<Term>,
},
Overlay {
operations: Vec<Term>,
},
Compose {
operations: Vec<Term>,
},
ModulateBy {
operations: Vec<Term>,
},
WithLengthRatioOf {
main: Option<Box<Term>>,
with_length_of: Box<Term>,
},
Focus {
name: String,
main: Box<Term>,
op_to_apply: Box<Term>,
},
}
Variants§
AsIs
Id(String)
Tag(String)
CSV1d
CSV2d
Lowpass
Highpass
Bandpass
FunctionCall
Lambda
Noise
Saw
Sine
Fields
§
pow: Option<Rational64>
Triangle
Fields
§
pow: Option<Rational64>
Square
Fields
§
width: Option<Rational64>
AD
Portamento
Fields
§
m: Rational64
Reverse
FInvert
Silence
Fields
§
m: Rational64
TransposeM
Fields
§
m: Rational64
TransposeA
Fields
§
a: Rational64
PanM
Fields
§
m: Rational64
PanA
Fields
§
a: Rational64
Gain
Fields
§
m: Rational64
Length
Fields
§
m: Rational64
Reverb
Fields
§
m: Option<Rational64>
Sequence
Overlay
Compose
ModulateBy
WithLengthRatioOf
Focus
Trait Implementations§
source§impl GetLengthRatio<Term> for Op
impl GetLengthRatio<Term> for Op
fn get_length_ratio( &self, normal_form: &NormalForm, defs: &mut Defs<Term> ) -> Result<Rational64, Error>
source§impl Normalize<Term> for Op
impl Normalize<Term> for Op
fn apply_to_normal_form( &self, input: &mut NormalForm, defs: &mut Defs<Term> ) -> Result<(), Error>
source§impl Substitute<Term> for Op
impl Substitute<Term> for Op
fn substitute( &self, normal_form: &mut NormalForm, defs: &mut Defs<Term> ) -> Result<Term, Error>
impl StructuralPartialEq for Op
Auto Trait Implementations§
impl RefUnwindSafe for Op
impl Send for Op
impl Sync for Op
impl Unpin for Op
impl UnwindSafe for Op
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more