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 | LEAF_init(&leaf, sampleRate, blockSize, memory, MSIZE, &getRandomFloat); | 55 | LEAF_init(&leaf, sampleRate, blockSize, memory, MSIZE, &getRandomFloat); |
| 56 | 56 | ||
| 57 | tMBSaw_init(&bsaw, &leaf); | 57 | tMBSaw_init(&bsaw, &leaf); |
| 58 | tMBSaw_setFreq(&bsaw, -500); | 58 | tMBSaw_setFreq(&bsaw, 100); |
| 59 | tMBTriangle_init(&btri, &leaf); | 59 | tMBTriangle_init(&btri, &leaf); |
| 60 | tMBTriangle_setFreq(&btri, 200); | ||
| 60 | tMBPulse_init(&bpulse, &leaf); | 61 | tMBPulse_init(&bpulse, &leaf); |
| 62 | tMBPulse_setFreq(&bpulse, -500); | ||
| 61 | 63 | ||
| 62 | bufIn = (float*) leaf_alloc(&leaf, sizeof(float) * 4096); | 64 | bufIn = (float*) leaf_alloc(&leaf, sizeof(float) * 4096); |
| 63 | bufOut = (float*) leaf_alloc(&leaf, sizeof(float) * 4096); | 65 | bufOut = (float*) leaf_alloc(&leaf, sizeof(float) * 4096); |
| @@ -99,9 +101,10 @@ float LEAFTest_tick (float input) · 35 unmodified lines | |||
| 99 | // | 101 | // |
| 100 | // return tMBSampler_tick(&sampler); | 102 | // return tMBSampler_tick(&sampler); |
| 101 | 103 | ||
| 104 | tMBTriangle_tick(&btri); | ||
| 105 | tMBSaw_syncIn(&bsaw, tMBTriangle_syncOut(&btri)); | ||
| 102 | return tMBSaw_tick(&bsaw); | 106 | return tMBSaw_tick(&bsaw); |
| 103 | 107 | ||
| 104 | |||
| 105 | // tMBSaw_setFreq(&bsaw, x); | 108 | // tMBSaw_setFreq(&bsaw, x); |
| 106 | // tMBTriangle_setFreq(&btri, x); | 109 | // tMBTriangle_setFreq(&btri, x); |
| 107 | // tMBPulse_setFreq(&bpulse, x); | 110 | // tMBPulse_setFreq(&bpulse, x); |