History

revert MB oscs to int casts for negative freq handling

Matthew Wang committed 5 years ago

Commit da54fcd1 parent 5a5d9903 files · +40 −16Browse files

Showing the changes to TestPlugin (1 of 3 files). Show all

Unified · Split

TestPlugin/Source/MyTest.cpp+7−6
@@ -102,11 +102,12 @@ inline double getSawFall(double angle) { · 101 unmodified lines
102102
103103 float LEAFTest_tick (float input)
104104 {
105− float out = 0.0f;
106− for (int i = 0; i < numWavetables; ++i)
107− {
108− out += tWaveOsc_tick(&ws);
109− }
105+ float out = tMBSaw_tick(&bsaw);
106+
107+// for (int i = 0; i < numWavetables; ++i)
108+// {
109+// out += tWaveOsc_tick(&ws);
110+// }
110111 return out;
111112 }
112113
@@ -117,7 +118,7 @@ void LEAFTest_block (void) · 4 unmodified lines
117118 float val = getSliderValue("slider1");
118119 tMBTriangle_setFreq(&btri, val * 440.f);
119120 tMBPulse_setFreq(&bpulse, val * 160000.f - 80000.0f);
120− tMBSaw_setFreq(&bsaw, val * 10000.f);
121+ tMBSaw_setFreq(&bsaw, -val * 2000.f + 1000.0f);
121122 // tWaveTable_setFreq(&wt, val * 160000.f - 80000.0f);
122123 // tWaveTableS_setFreq(&cwt, val * 10000.);
123124 tWaveOsc_setFreq(&ws, val * 2000.f);

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