History

tWavetable; untested

Matthew Wang committed 5 years ago

Commit 32f24271 parent 4317a559 files · +250 −53Browse files

Showing the changes to Examples (2 of 9 files). Show all

Unified · Split

2 files
  1. Examples/basic-oscillators.c +4 −2
  2. Examples/basic-oscillators.h +1 −1
Examples/basic-oscillators.c+4−2
@@ -12,9 +12,11 @@ · 11 unmodified lines
12 12
13void exampleInit()13void exampleInit()
14{14{
15 LEAF_init(44100, 64, mempool, 1000, &exampleRandom);15 LEAF leaf;
16 16
17 tCycle_init(&cycle);17 LEAF_init(&leaf, 44100, 128, mempool, 1000, &exampleRandom);
18
19 tCycle_init(&cycle, &leaf);
18 tCycle_setFreq(&cycle, 220);20 tCycle_setFreq(&cycle, 220);
19}21}
20 22
Examples/basic-oscillators.h+1−1
@@ -8,7 +8,7 @@ · 7 unmodified lines
8 ==============================================================================8 ==============================================================================
9*/9*/
10 10
11#include "../LEAF/leaf.h"11#include "../leaf/leaf.h"
12 12
13char mempool[1000];13char mempool[1000];
14tCycle cycle;14tCycle cycle;

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t