Skip to content

Commit

Permalink
remove clock
Browse files Browse the repository at this point in the history
use ramp() >> <(0.5)
  • Loading branch information
tomara-x committed Jun 4, 2024
1 parent 90e098f commit be597d9
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 2 deletions.
1 change: 0 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -663,7 +663,6 @@ sources
- `pluck(float, float, float)` (frequency, gain per sec, high freq damping) input is string excitation signal
- `mls([float])`
- `ramp()` ramp from 0 to 1 at input freq (phasor)
- `clock()` simple clock with 50% duty cycle (just a `sine() >> >(0)`)

filters
- `allpole()`
Expand Down
1 change: 0 additions & 1 deletion src/functions.rs
Original file line number Diff line number Diff line change
Expand Up @@ -185,7 +185,6 @@ pub fn str_to_net(op: &str) -> Net32 {
} else { return Net32::wrap(Box::new(soft_saw())); }
}
"ramp" => { return Net32::wrap(Box::new(An(Ramp::new()))); }
"clock" => { return Net32::wrap(Box::new(sine() >> map(|i: &Frame<f32,U1>| if i[0] > 0. {1.} else {0.}))); }

// -------------------- filters --------------------
"allpole" => { return Net32::wrap(Box::new(allpole())); }
Expand Down

0 comments on commit be597d9

Please sign in to comment.