Skip to content

Commit 202a2dd

Browse files
committed
Update readmes, add test
1 parent d7043c4 commit 202a2dd

File tree

4 files changed

+27
-5
lines changed

4 files changed

+27
-5
lines changed

.github/workflows/test.yml

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
name: test
2+
on: [push]
3+
jobs:
4+
test:
5+
runs-on: ${{ matrix.os }}
6+
strategy:
7+
matrix:
8+
os: [ubuntu-latest, windows-latest, macOS-latest]
9+
rust: [stable]
10+
steps:
11+
- uses: hecrj/setup-rust-action@v1
12+
with:
13+
rust-version: ${{ matrix.rust }}
14+
- uses: actions/checkout@master
15+
- run: |
16+
cargo test --release
17+
cargo test --release --all-features

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ CAW is a framework for building synthesizers as Rust programs.
99
Here's a simple example that plays a 60Hz saw wave:
1010
```toml
1111
# Cargo.toml
12-
...
12+
1313
[dependencies]
1414
caw = { version = "0.4", features = ["interactive"] }
1515
```
@@ -85,5 +85,5 @@ fn main() {
8585
There's a bunch of effects that can be chained onto signals. Here we'll add a
8686
chorus and reverb effect.
8787

88-
See the examples in the [caw](caw) [caw_interactive](interactive) crates for
88+
See the examples in the [caw](caw) and [caw_interactive](interactive) crates for
8989
more complex examples.

caw/README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ CAW is a framework for building synthesizers as Rust programs.
1212
Here's a simple example that plays a 60Hz saw wave:
1313
```toml
1414
# Cargo.toml
15-
...
15+
1616
[dependencies]
1717
caw = { version = "0.4", features = ["interactive"] }
1818
```
@@ -88,5 +88,5 @@ fn main() {
8888
There's a bunch of effects that can be chained onto signals. Here we'll add a
8989
chorus and reverb effect.
9090

91-
See the examples in the [caw](../caw) [caw_interactive](../interactive) crates for
91+
See the examples in the [caw](../caw) and [caw_interactive](../interactive) crates for
9292
more complex examples.

interactive/examples/keyboard_and_mouse_interactive.rs

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,12 @@ fn sig(input: Input, channel: Channel) -> Sig<impl SigT<Item = f32>> {
4141

4242
fn main() -> anyhow::Result<()> {
4343
env_logger::init();
44-
let window = Window::builder().build();
44+
let window = Window::builder()
45+
.sane_default()
46+
.visualization(Visualization::StereoOscillographics)
47+
.line_width(2)
48+
.scale(4.)
49+
.build();
4550
let input = window.input();
4651
window.play_stereo(
4752
Stereo::new_fn_channel(|channel| sig(input.clone(), channel)),

0 commit comments

Comments
 (0)