@devaloop/devalang 0.1.9 → 0.2.0
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/README.md +2 -2
- package/package.json +1 -1
- package/project-version.json +2 -2
package/README.md
CHANGED
|
@@ -176,7 +176,7 @@ bpm myTempo
|
|
|
176
176
|
bank devaloop.808 as drums
|
|
177
177
|
|
|
178
178
|
# Create a simple kick pattern (can also use "mySample")
|
|
179
|
-
pattern kickPattern with drums.kick = "x
|
|
179
|
+
pattern kickPattern with drums.kick = "x-o- x--o xo-- x-o-"
|
|
180
180
|
|
|
181
181
|
# Define a constant for synth, with a global LFO effect
|
|
182
182
|
# You can define variables scopes using const/let/var
|
|
@@ -243,7 +243,7 @@ let myAwesomeSample = .mySample
|
|
|
243
243
|
.myAwesomeSample 1/8 # Play the sample for 1/8 beats
|
|
244
244
|
|
|
245
245
|
# Play the sample in conditional loop
|
|
246
|
-
for i in 0..3:
|
|
246
|
+
for i in [0..3]:
|
|
247
247
|
if i == 2:
|
|
248
248
|
.myAwesomeSample 1/4 # Play for 1/4 beats on iteration 2
|
|
249
249
|
else:
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@devaloop/devalang",
|
|
3
3
|
"private": false,
|
|
4
|
-
"version": "0.
|
|
4
|
+
"version": "0.2.0",
|
|
5
5
|
"description": "Write music with code. Devalang is a domain-specific language (DSL) for sound designers and music hackers. Compose, automate, and control sound — in plain text.",
|
|
6
6
|
"main": "out-tsc/index.js",
|
|
7
7
|
"types": "./out-tsc/index.d.ts",
|
package/project-version.json
CHANGED