Showing the changes to Examples/basic-oscillators.c (1 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 | ||