Showing the changes to Examples (2 of 9 files). Show all
Unified · Split
| @@ -12,9 +12,11 @@ · 11 unmodified lines | |||
| 12 | 12 | ||
| 13 | void exampleInit() | 13 | void 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 | ||
| @@ -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 | ||
| 13 | char mempool[1000]; | 13 | char mempool[1000]; |
| 14 | tCycle cycle; | 14 | tCycle cycle; |