Skip to content

Commit ddd7e9b

Browse files
committed
Fixed examples
Fixed old examples
1 parent 0b3e71e commit ddd7e9b

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

51 files changed

+220
-447
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,3 @@
11
/tests
22
/examples/atom
3+
/examples/ignore

examples/avril14th.rb

Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
1+
load "~/ziffers/ziffers.rb"
2+
3+
# Avril 14th by Aphex Twin
4+
# Created automatically from MIDI file using: https://github.com/amiika/ziffers-musescore
5+
6+
ziff "
7+
/ synth: :piano, sustain: 2.0, decay: 0.6
8+
| [: q 2 _ 5 ^ 0 e r s 0 _ 5 | q. _ 5 e 5 ^ 4 3 2 0 :] | [: q ^ 2 _ 5 ^ 0 e r s 0 _ 5 | \
9+
| w 5 :] | [: q. _ 2 s 2 4 q. 4 e 2 | q. _ 2 s 2 4 q. 5 e 4 :] | q. _ 2 s 2 4 q. 4 e 2 | \
10+
| q. _ 2 s 2 4 q. 5 e 4 | e r e _ 5 6 ^ 0 2 q. _ 6 | e r e _ 5 6 ^ 0 2 _ 6 q 5 | \
11+
| e r e _ 5 6 ^ 0 2 q. _ 6 | e r e _ 5 6 ^ 0 e. 2 s _ 6 6 e. 5 | [: q 2 _ 5 ^ 0 e r s 0 _ 5 | \
12+
| q. _ 5 e 5 ^ 4 3 2 0 :] | [: q ^ 2 _ 5 ^ 0 e r s 0 _ 5 | q. 5 e 5 ^ 4 3 2 0 :] | q. 2 s 2 1 q. 2 s 2 2 | \
13+
| s 4 5 e 4 h 2 q 4 | q. 2 s 2 1 q. 0 s 0 2 | s 4 5 e _ 5 q ^ 2 _ 5 ^ 0 | s r e. ^ 2 q 2 h _ 1 | \
14+
| s ^ 4 5 e 4 r ^ 2 q 2 _ 4 | s 2 e. ^^ 0 e _ 5 s r _ 1 q ^ 1 s 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 | \
32+
| e __ 3 ^ 0 2 5 _ 1 ^ 0 3 ^ 0 | e _ 2 0 _ 5 3 2 ^ 0 2 4 | \
33+
| e __ 5 ^ 0 2 5 _ 0 ^ 0 ^ 0 _ 2 | w _ 2 |
34+
35+
| [: w r | w r :] | [: w r | \
36+
| w r :] | [: w r | w r :] | w r | \
37+
| w r | w r | w r | \
38+
| w r | w r | [: w r | \
39+
| w r :] | [: w r | w r :] | h __ 3 13 | \
40+
| h __ 2 03 | h ___ 5 4^1 | h __ 0 _30 | h r e. ^ 2 2 s 2 r | \
41+
| s r s r e r s ^^ 4 e 4 s r h r | w r | \
42+
| q __ 1 r h r | w r |
43+
"

examples/canone.rb

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11

2-
require "~/ziffers/ziffers.rb"
2+
load "~/ziffers/ziffers.rb"
3+
4+
use_bpm 120
35

46
a = zparse "| q. _ 0 e 0 q 1 e 2 2 | C q _ 3 3 2 e 2 2 | q _ 1 h 4 q 3 | e r s _ 4 3 e 2 s 3 2 h 1 | q. _ 0 e 0 q 1 e 2 2 | w _ 3 |", C: {cue: :foo }
57

examples/cowbell_synth_example.rb

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
load "~/ziffers/ziffers.rb"
2+
3+
use_bpm 200
4+
5+
live_loop :te do
6+
zplay "q 4 4 3 e 4 5 0 1 2 1 2 3 4 5 q 2 2 3 e 4 5 [q 6 6 5 4,e 6 4 5 3 4 2 3 2,e (0..8)~]", sample: :drum_cowbell, rate_based: true
7+
end

examples/not_tested/custom_lambda_progression.rb renamed to examples/custom_lambda_progression.rb

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
11

2+
load "~/ziffers/ziffers.rb"
3+
24
seq = [->n{n+2},->n{n-2},->n{n+rrand_i(-8,1)},->n{n/2}].ring.reflect
35

46
1.upto(50) do |m|

examples/deprecated/jig_trance.rb

Lines changed: 0 additions & 27 deletions
This file was deleted.

examples/deprecated/kungssangen.rb

Lines changed: 0 additions & 13 deletions
This file was deleted.

examples/deprecated/single_synth_random_song.rb

Lines changed: 0 additions & 20 deletions
This file was deleted.

examples/deprecated/sync_example.rb

Lines changed: 0 additions & 24 deletions
This file was deleted.

examples/deprecated/trance_samples_example.rb

Lines changed: 0 additions & 16 deletions
This file was deleted.

0 commit comments

Comments
 (0)