History

added Q control of hihat bandpass

Jeff Snyder committed 7 years ago

Commit cd53a581 parent f0a12042 files · +8 −4Browse files

Unified · Split

2 files
  1. LEAF/Inc/leaf-808.h +3 −1
  2. LEAF/Src/leaf-808.c +5 −3
LEAF/Inc/leaf-808.h+3−1
@@ -73,7 +73,9 @@ void t808Hihat_on (t808Hihat* const, float vel); · 72 unmodified lines
7373 void t808Hihat_setOscNoiseMix (t808Hihat* const, float oscNoiseMix);
7474 void t808Hihat_setDecay (t808Hihat* const, float decay);
7575 void t808Hihat_setHighpassFreq (t808Hihat* const, float freq);
76−void t808Hihat_etOscBandpassFreq (t808Hihat* const, float freq);
76+void t808Hihat_setOscBandpassFreq (t808Hihat* const, float freq);
77+void t808Hihat_setOscBandpassQ (t808Hihat* const hihat, float Q);
78+void t808Hihat_setStickBandPassFreq (t808Hihat* const, float freq);
7779 void t808Hihat_setOscFreq (t808Hihat* const, float freq);
7880
7981
LEAF/Src/leaf-808.c+5−3
@@ -157,6 +157,11 @@ void t808Hihat_setOscBandpassFreq(t808Hihat* const hihat, float freq) · 156 unmodified lines
157157 tSVF_setFreq(&hihat->bandpassOsc,freq);
158158 }
159159
160+void t808Hihat_setOscBandpassQ(t808Hihat* const hihat, float Q)
161+{
162+ tSVF_setQ(&hihat->bandpassOsc,Q);
163+}
164+
160165 void t808Hihat_setStickBandPassFreq(t808Hihat* const hihat, float freq)
161166 {
162167 tSVF_setFreq(&hihat->bandpassStick,freq);
@@ -165,15 +170,12 @@ void t808Hihat_setStickBandPassFreq(t808Hihat* const hihat, float freq) · 2 unmodified lines
165170
166171 void t808Hihat_setOscFreq(t808Hihat* const hihat, float freq)
167172 {
168− //if (freq < 5600.0f) //to avoid aliasing (for some reason high frequency settings here cause hard faults)
169− {
170173 tSquare_setFreq(&hihat->p[0], 2.0f * freq);
171174 tSquare_setFreq(&hihat->p[1], 3.00f * freq);
172175 tSquare_setFreq(&hihat->p[2], 4.16f * freq);
173176 tSquare_setFreq(&hihat->p[3], 5.43f * freq);
174177 tSquare_setFreq(&hihat->p[4], 6.79f * freq);
175178 tSquare_setFreq(&hihat->p[5], 8.21f * freq);
176− }
177179 }
178180
179181 void t808Hihat_init(t808Hihat* const hihat)

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