History

negative frequency support for all mb oscs and sync fixes

Matthew Wang committed 6 years ago

Commit 74dc8f91 parent 3eca39b2 files · +380 −134Browse files

Showing the changes to TestPlugin/Source/MyTest.cpp (1 of 2 files). Show all

Unified · Split

TestPlugin/Source/MyTest.cpp+5−2
@@ -55,9 +55,11 @@ void LEAFTest_init (float sampleRate, int blockSize) · 54 unmodified lines
5555 LEAF_init(&leaf, sampleRate, blockSize, memory, MSIZE, &getRandomFloat);
5656
5757 tMBSaw_init(&bsaw, &leaf);
58− tMBSaw_setFreq(&bsaw, -500);
58+ tMBSaw_setFreq(&bsaw, 100);
5959 tMBTriangle_init(&btri, &leaf);
60+ tMBTriangle_setFreq(&btri, 200);
6061 tMBPulse_init(&bpulse, &leaf);
62+ tMBPulse_setFreq(&bpulse, -500);
6163
6264 bufIn = (float*) leaf_alloc(&leaf, sizeof(float) * 4096);
6365 bufOut = (float*) leaf_alloc(&leaf, sizeof(float) * 4096);
@@ -99,9 +101,10 @@ float LEAFTest_tick (float input) · 35 unmodified lines
99101 //
100102 // return tMBSampler_tick(&sampler);
101103
104+ tMBTriangle_tick(&btri);
105+ tMBSaw_syncIn(&bsaw, tMBTriangle_syncOut(&btri));
102106 return tMBSaw_tick(&bsaw);
103107
104−
105108 // tMBSaw_setFreq(&bsaw, x);
106109 // tMBTriangle_setFreq(&btri, x);
107110 // tMBPulse_setFreq(&bpulse, x);

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