@grame/faustwasm 0.8.2 → 0.9.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/test/midi.dsp CHANGED
@@ -1,7 +1,14 @@
1
1
 
2
2
  import("stdfaust.lib");
3
+
4
+ /*
3
5
  process = os.osc(freq)*vol
4
6
  with {
5
7
  freq = hslider("Freq[midi:ctrl 1]", 200, 200, 2000, 0.01);
6
8
  vol = hslider("Volume[midi:ctrl 7 5]", 0.5, 0, 1, 0.01);
7
- };
9
+ };
10
+ */
11
+
12
+ process = (os.osc(500)*en.adsr(0.1, 0.1, 0.8, 0.5, button("gate1[midi:key 60]")),
13
+ os.osc(800)*en.adsr(0.1, 0.1, 0.8, 1.0, button("gate2[midi:key 62]")),
14
+ os.osc(200)*en.adsr(0.1, 0.1, 0.8, 1.5, button("gate3[midi:key 64]"))) :> _;