This website works better with JavaScript.
Home
Help
Sign In
VCVRack
/
Fundamental
mirror of
https://github.com/VCVRack/Fundamental.git
Watch
1
Star
0
Fork
0
Code
Issues
0
Releases
28
Wiki
Activity
Browse Source
SHASR: Make PUSH button only trigger row 1, and lower rows if triggers are unconnected.
tags/v2.6.0
Andrew Belt
1 year ago
parent
bd0a2adb12
commit
b5c725e8bf
1 changed files
with
4 additions
and
1 deletions
Unified View
Diff Options
Show Stats
Download Patch File
Download Diff File
+4
-1
src/SHASR.cpp
+ 4
- 1
src/SHASR.cpp
View File
@@ -64,7 +64,10 @@ struct SHASR : Module {
if (inputs[TRIG_INPUTS + i].isConnected()) {
if (inputs[TRIG_INPUTS + i].isConnected()) {
lastTrig = triggers[i].process(inputs[TRIG_INPUTS + i].getVoltage(), 0.1f, 1.f);
lastTrig = triggers[i].process(inputs[TRIG_INPUTS + i].getVoltage(), 0.1f, 1.f);
}
}
if (lastTrig || push) {
if (i == 0 && push) {
lastTrig = true;
}
if (lastTrig) {
float sample = 0.f;
float sample = 0.f;
if (i == 0) {
if (i == 0) {
if (randomize) {
if (randomize) {
Write
Preview
Loading…
Cancel
Save