mercury-engine 1.2.2 → 1.3.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.
@@ -60,13 +60,13 @@
60
60
  set scale dorian d
61
61
 
62
62
  list progression chordsFromNumerals([I7 IIIm7 IV7 V7])
63
+ print progression
63
64
  new polySynth saw name(chrd)
64
- set chrd note(progression 1) time(2/1) shape(1 2/1) fx(triggerFilter low 1/1 1/1 4000 100) super(0.132 3)
65
+ set chrd note(progression 1) time(2/1) shape(1 2/1) fx(triggerFilter low 1/1 1/1 4000 100) super(3 0.132)
65
66
 
66
67
  list melody add(repeat(flat(progression) 2) [0 12])
67
68
  new polySynth saw name(lead)
68
- set lead note(melody 2) time(1/8) shape(1 2/1) super(0.112 3) gain(0.6) fx(triggerFilter low 1 1/6 5000 100)
69
-
69
+ set lead note(melody 2) time(1/8) shape(1 2/1) super(3 0.112) gain(0.6) fx(triggerFilter low 1 1/6 5000 100)
70
70
  set all fx(squash 1) fx(reverb 0.4 7)
71
71
 
72
72
  list drums choose(17 [hat_808 kick_808 snare_808])
@@ -77,7 +77,8 @@
77
77
  let b1 = document.getElementById('b1');
78
78
  b1.onclick = () => {
79
79
  let tree = Engine.code(mercuryCode);
80
- console.log(tree.errors);
80
+ console.log(tree);
81
+ // console.log(tree.errors);
81
82
  }
82
83
 
83
84
  // stop the code on the click of a button
@@ -52,7 +52,7 @@
52
52
  set tempo 100
53
53
  set scale major c
54
54
  new midi default time(1/1) chord(on) note(chordsFromNumerals(I IV V VIm) 1) length(1/2)
55
- new midi default time(1/8) note(random(16 12) 2) length(1/16)
55
+ new midi default time(1/8) note(random(16 12) 2) length(1/16) program([0 5 5 10]) out(2)
56
56
  `
57
57
 
58
58
  // evaluate the code on the click of a button
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "mercury-engine",
3
- "version": "1.2.2",
3
+ "version": "1.3.1",
4
4
  "description": "The mercury engine generates web audio output from mercury code input",
5
5
  "main": "./dist/mercury.js",
6
6
  "scripts": {
@@ -33,7 +33,7 @@
33
33
  "author": "Timo Hoogland",
34
34
  "license": "ISC",
35
35
  "dependencies": {
36
- "mercury-lang": "^1.9.x",
36
+ "mercury-lang": "^1.10.0",
37
37
  "tone": "^14.7.77",
38
38
  "webmidi": "^3.1.6"
39
39
  },