Skip to content
This repository was archived by the owner on Apr 5, 2025. It is now read-only.

Commit 86300f1

Browse files
committed
Fixed squinewave args for Android example.
1 parent eadc649 commit 86300f1

File tree

1 file changed

+5
-1
lines changed
  • CsoundForAndroid/CsoundForAndroid/CsoundApplication/src/main/assets/Csound6AndroidExamples/Gogins

1 file changed

+5
-1
lines changed

CsoundForAndroid/CsoundForAndroid/CsoundApplication/src/main/assets/Csound6AndroidExamples/Gogins/ModulateInput.csd

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ amodulation_hz init 35
1717
amodulation_depth init 0.125
1818
aclip init 0.5
1919
askew init 0.5
20+
asyncin init 0
2021
kdelay chnget "slider1"
2122
printks2 "kdelay: %9.4\n", kdelay
2223
kmodulation_hz chnget "slider2"
@@ -27,7 +28,10 @@ kclip chnget "slider3"
2728
printks2 "kclip: %9.4\n", kclip
2829
kskew chnget "slider4"
2930
printks2 "kskew: %9.4\n", kskew
30-
amodulator squinewave a(kmodulation_hz), a(kclip), a(kskew)
31+
akmodulation_hz = a(kmodulation_hz)
32+
akclip = a(kclip)
33+
akskew = a(kskew)
34+
amodulator squinewave akmodulation_hz, akclip, akskew, 0
3135
amodulator = amodulator * kmodulation_depth + .5
3236
adelay = kdelay * amodulator
3337
aoutput vdelay3 ainput, adelay, imaximum_delay_milliseconds

0 commit comments

Comments
 (0)