commit ae120b537f186f631aaf681bc68ea25377c45545
parent a2212304f043fadd9884383833e684c1527ecadd
Author: rpa <rpa@laika>
Date: Wed, 4 Jan 2023 19:09:19 +0000
mu: housekeeping
Diffstat:
7 files changed, 257 insertions(+), 83 deletions(-)
diff --git a/src/mu/mkfile b/src/mu/mkfile
@@ -1,8 +1,5 @@
</$objtype/mkfile
-TARG=trk mubox throttle piano
+TARG=seq mubox throttle piano
</sys/src/cmd/mkmany
-
-test:V: $O.trk $O.mubox track
- $O.trk < track | $O.mubox -r > /dev/audio
diff --git a/src/mu/trk.c b/src/mu/seq.c
diff --git a/src/mu/tplay b/src/mu/tplay
@@ -1,3 +1,3 @@
#!/bin/rc
rfork e
-6.trk $* | 6.mubox -r > /dev/audio
+6.seq $* | 6.mubox > /dev/audio
diff --git a/src/mu/track b/src/mu/track
@@ -1,56 +0,0 @@
-.bpm 120 2
-
-d100
-
-k
-.
-k
-.
-k
-.
-n02 N1f
-.
-##############
-. n04 N7f k v110
-. n08 N1f v110
-. n04 N3f k v110 v220 v330
-. n08 N1f v110
-. n02 N5f k v220
-. n08 N1f v440
-. n04 N3f v110
-. n08 N1f v220
-. n04 N7f k v550
-. n08 N1f v110
-. n04 N3f k v220
-. n04 N3f v440
-. n02 N5f k v110
-. n08 N1f v220
-. n04 N3f v330
-. n08 N1f v440
-##############
-. n04 N7f k v110
-. n08 N1f v110
-. n04 N3f k v220 v165 v110
-. n08 N1f v330
-. n02 N5f k v110
-. n08 N1f v165
-. n04 N3f v330
-. n08 N1f v220
-. n04 N7f k v440
-. n08 N1f v110
-. n04 N3f k v330
-. n04 N3f v110
-. n02 N5f k v220
-. n08 N1f v110
-. n04 N3f v165
-. n08 N1f v330
-. ##############
-. v220 k
-. v110
-. v55 k
-. v27
-. v13 k
-.
-.
-.
-# END
diff --git a/src/mu/track2 b/src/mu/track2
@@ -1,22 +0,0 @@
-.bpm 120 4
-d250
- k C-3 C-5
-----
- C-6
- C-5
- k F-5
- C-6
- F-6
- F-5
- k C-3 G-5
- F-6
- G-6
- G-5
- k D#5
- G-6
- D#6
- D#5
-----
- k
- D#6
-----
diff --git a/src/mu/tracks/beat b/src/mu/tracks/beat
@@ -0,0 +1,220 @@
+.bpm 90 4
+
+.jmp :intro
+.jmp :intro
+.jmp :lead
+.jmp :lead
+.jmp :lead2
+.jmp :post
+.jmp :post
+.jmp :end
+
+:intro
+k C-2 C-3 H
+----
+k G-3 h
+---- H
+---- A#3 h
+----
+K C-4 H
+----
+k C-2 D#3 h
+----
+---- G-3 h
+----
+K A#3 H
+----
+---- C-4
+----
+k C-2 F-3 H
+----
+k G-3 h
+---- H
+---- A#3 h
+----
+K C-4 H
+----
+k C-2 D#3 h
+----
+---- C-4
+----
+K A#1 A#3 H
+----
+---- G-3
+----
+.ret
+
+:lead
+k C-2 C-3 H C-4 G-4
+----
+k G-3 h
+---- H C-4 G-4
+---- A#3 h
+----
+K C-4 H C-4 G-4
+----
+k C-2 D#3 h
+---- D#4 A#4
+---- G-3 h
+----
+K A#3 H D#4 A#4
+----
+---- C-4
+----
+k C-2 F-3 H F-4 A-4
+----
+k G-3 h
+---- H F-4 A-4
+---- A#3 h
+----
+K C-4 H F-4 A-4
+----
+k C-2 D#3 h
+---- D-4 G-4
+---- C-4
+----
+K A#1 A#3 H D-4 G-4
+----
+---- G-3
+----
+.ret
+
+:lead2
+k C-2 C-3 H C-4 G-4 C-5
+----
+k G-3 h
+---- H C-4 G-4 C-5
+---- A#3 h
+----
+K C-4 H C-4 G-4 C-5
+----
+k C-2 D#3 h
+---- D#4 A#4 D#5
+---- G-3 h
+----
+K A#3 H D#4 A#4 D#5
+----
+---- C-4
+----
+k C-2 F-3 H F-4 A-4 F-5
+----
+k G-3 h
+---- H F-4 A-4 F-5
+---- A#3 h
+----
+K C-4 H F-4 A-4 F-5
+----
+k C-2 D#3 h
+---- D-4 G-4 G-5
+---- C-4
+----
+K A#1 A#3 H D-4 G-4 G-5
+----
+---- G-3
+----
+k C-2 C-3 H C-4 G-4 G-5
+----
+k G-3 h
+---- H C-4 G-4 G-5
+---- A#3 h
+----
+K C-4 H C-4 G-4 G-5
+----
+k C-2 D#3 h
+---- D#4 A#4 A#5
+---- G-3 h
+----
+K A#3 H D#4 A#4 A#5
+----
+---- C-4
+----
+k C-2 F-3 H F-4 A-4 A-5
+----
+k G-3 h
+---- H F-4 A-4 A-5
+---- A#3 h
+----
+K C-4 H F-4 A-4 A-5
+----
+k C-2 D#3 h
+---- D-4 G-4 G-5
+---- C-4
+----
+K A#1 A#3 H D-4 G-4 G-5
+----
+---- G-3
+----
+.ret
+
+:post
+k C-2 C-3 H C-5
+----
+k G-3 h C-5
+---- H
+---- A#3 h C-5
+----
+K C-4 H C-5
+----
+k C-2 D#3 h A#4
+----
+---- G-3 h A#4
+----
+K A#3 H A#4
+----
+---- C-4 A#4
+----
+k C-2 F-3 H A-4
+----
+k G-3 h A-4
+---- H
+---- A#3 h A-4
+----
+K C-4 H A-4
+----
+k C-2 D#3 h G-4
+----
+---- C-4 G-4
+----
+K A#1 A#3 H G-4
+----
+---- G-3 G-4
+----
+k C-2 C-3 H C-5
+----
+k G-3 h C-5
+---- H
+---- A#3 h C-5
+----
+K C-4 H C-5
+----
+k C-2 D#3 h A#4
+----
+---- G-3 h A#4
+----
+K A#3 H A#4
+----
+---- C-4 A#4
+----
+k C-2 F-3 H G-4
+----
+k G-3 h G-4
+---- H
+---- A#3 h G-4
+----
+K C-4 H G-4
+----
+k C-2 D#3 h A-4
+----
+---- C-4 A-4
+----
+K A#1 A#3 H A-4
+----
+---- G-3 A-4
+----
+.ret
+
+:end
+k C-2 C-5
+----
+----
+----
diff --git a/src/mu/tracks/elka b/src/mu/tracks/elka
@@ -0,0 +1,35 @@
+.bpm 120 2
+
+d500 G-5 C-3 k
+ ---- C-4
+ E-5 C-3
+ E-5 C-4
+ G-5 C-3 k h
+ ---- C-4
+ E-5 C-3
+ E-5 C-4
+ G-5 G-2 k
+ F-5 G-3
+ E-5 G-2
+ D-5 G-3 k
+ C-5 G-2 h
+ ---- G-3 k
+ G-2
+ ---- G-3
+ A-5 A-2 k
+ ---- A-3
+ C-6 A-2
+ A-5 A-3
+ G-5 A-2 k h
+ ---- A-3
+ E-5 A-2
+ E-5 A-3
+ G-5 E-3 k
+ F-5 E-4
+ E-5 E-3
+ D-5 E-4 k
+ C-5 E-3 h
+ ---- E-4 k
+ E-3
+ ---- E-4
+.rld