Showing the changes to TestPlugin/Source/MyTest.cpp (1 of 2 files). Show all
Unified · Split
| @@ -55,9 +55,11 @@ void LEAFTest_init (float sampleRate, int blockSize) · 54 unmodified lines | ||
| 55 | 55 | LEAF_init(&leaf, sampleRate, blockSize, memory, MSIZE, &getRandomFloat); |
| 56 | 56 | |
| 57 | 57 | tMBSaw_init(&bsaw, &leaf); |
| 58 | − tMBSaw_setFreq(&bsaw, -500); | |
| 58 | + tMBSaw_setFreq(&bsaw, 100); | |
| 59 | 59 | tMBTriangle_init(&btri, &leaf); |
| 60 | + tMBTriangle_setFreq(&btri, 200); | |
| 60 | 61 | tMBPulse_init(&bpulse, &leaf); |
| 62 | + tMBPulse_setFreq(&bpulse, -500); | |
| 61 | 63 | |
| 62 | 64 | bufIn = (float*) leaf_alloc(&leaf, sizeof(float) * 4096); |
| 63 | 65 | bufOut = (float*) leaf_alloc(&leaf, sizeof(float) * 4096); |
| @@ -99,9 +101,10 @@ float LEAFTest_tick (float input) · 35 unmodified lines | ||
| 99 | 101 | // |
| 100 | 102 | // return tMBSampler_tick(&sampler); |
| 101 | 103 | |
| 104 | + tMBTriangle_tick(&btri); | |
| 105 | + tMBSaw_syncIn(&bsaw, tMBTriangle_syncOut(&btri)); | |
| 102 | 106 | return tMBSaw_tick(&bsaw); |
| 103 | 107 | |
| 104 | − | |
| 105 | 108 | // tMBSaw_setFreq(&bsaw, x); |
| 106 | 109 | // tMBTriangle_setFreq(&btri, x); |
| 107 | 110 | // tMBPulse_setFreq(&bpulse, x); |