Skip to content

Commit bffb3eb

Browse files
Fix REAMDE
1 parent acc4035 commit bffb3eb

1 file changed

Lines changed: 5 additions & 5 deletions

File tree

README.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# `neuron`
22

3-
[![Test](https://github.com/blackboxaudio/neuron/actions/workflows/ci.test.yml/badge.svg)](https://github.com/blackboxaudio/neuron/actions/workflows/ci.test.yml)
43
[![Build](https://github.com/blackboxaudio/neuron/actions/workflows/ci.build.yml/badge.svg)](https://github.com/blackboxaudio/neuron/actions/workflows/ci.build.yml)
4+
[![Test](https://github.com/blackboxaudio/neuron/actions/workflows/ci.test.yml/badge.svg)](https://github.com/blackboxaudio/neuron/actions/workflows/ci.test.yml)
55
[![neuron: v0.1.0](https://img.shields.io/badge/Version-v0.1.0-blue.svg)](https://github.com/blackboxaudio/neuron)
66
[![License](https://img.shields.io/badge/License-MIT-yellow)](https://github.com/blackboxaudio/neuron/blob/develop/LICENSE)
77

@@ -69,24 +69,24 @@ make
6969
## Using the Library
7070

7171
```c++
72-
#include "neuron.h"
72+
#include "neuron/neuron.h"
7373

7474
// Create a DSP context (sample rate,
7575
// number of channels, buffer size).
76-
static Context context {
76+
static neuron::Context context {
7777
44100,
7878
1,
7979
128,
8080
};
8181

8282
// Create an oscillator with an initial
8383
// frequency of 440Hz.
84-
static Oscillator osc(context, 440.0f);
84+
static neuron::Oscillator osc(context, 440.0f);
8585

8686
// Write to the buffer with samples
8787
// generated from the oscillator
8888
for(size_t idx = 0; idx < 128; idx++) {
89-
buffer[idx] = (float)osc.Generate();
89+
buffer[idx] = osc.Generate();
9090
}
9191
```
9292

0 commit comments

Comments
 (0)