rust code markers
This commit is contained in:
parent
c92d558067
commit
f20ff94692
1 changed files with 32 additions and 28 deletions
|
@ -35,6 +35,7 @@ This only showcases the non-realtime generation of audio
|
||||||
samples. For a real time application of this library please
|
samples. For a real time application of this library please
|
||||||
refer to the examples that come with this library.
|
refer to the examples that come with this library.
|
||||||
|
|
||||||
|
```rust
|
||||||
use hexosynth::*;
|
use hexosynth::*;
|
||||||
|
|
||||||
let (mut node_conf, mut node_exec) = new_node_engine();
|
let (mut node_conf, mut node_exec) = new_node_engine();
|
||||||
|
@ -55,6 +56,7 @@ refer to the examples that come with this library.
|
||||||
node_conf.upload_prog(prog, true);
|
node_conf.upload_prog(prog, true);
|
||||||
|
|
||||||
let (out_l, out_r) = node_exec.test_run(0.1, false);
|
let (out_l, out_r) = node_exec.test_run(0.1, false);
|
||||||
|
```
|
||||||
|
|
||||||
### Hexagonal Matrix API
|
### Hexagonal Matrix API
|
||||||
|
|
||||||
|
@ -66,6 +68,7 @@ This only showcases the non-realtime generation of audio
|
||||||
samples. For a real time application of this library please
|
samples. For a real time application of this library please
|
||||||
refer to the examples that come with this library.
|
refer to the examples that come with this library.
|
||||||
|
|
||||||
|
```rust
|
||||||
use hexodsp::*;
|
use hexodsp::*;
|
||||||
|
|
||||||
let (node_conf, mut node_exec) = new_node_engine();
|
let (node_conf, mut node_exec) = new_node_engine();
|
||||||
|
@ -86,6 +89,7 @@ refer to the examples that come with this library.
|
||||||
let (out_l, out_r) = node_exec.test_run(0.11, true);
|
let (out_l, out_r) = node_exec.test_run(0.11, true);
|
||||||
// out_l and out_r contain two channels of audio
|
// out_l and out_r contain two channels of audio
|
||||||
// samples now.
|
// samples now.
|
||||||
|
```
|
||||||
|
|
||||||
## State of Development
|
## State of Development
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue