File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 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
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
8888for(size_t idx = 0; idx < 128; idx++) {
89- buffer[ idx] = (float) osc.Generate();
89+ buffer[ idx] = osc.Generate();
9090}
9191```
9292
You can’t perform that action at this time.
0 commit comments