-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fixed old examples
- Loading branch information
Showing
51 changed files
with
220 additions
and
447 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,3 @@ | ||
/tests | ||
/examples/atom | ||
/examples/ignore |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,43 @@ | ||
load "~/ziffers/ziffers.rb" | ||
|
||
# Avril 14th by Aphex Twin | ||
# Created automatically from MIDI file using: https://github.com/amiika/ziffers-musescore | ||
|
||
ziff " | ||
/ synth: :piano, sustain: 2.0, decay: 0.6 | ||
| [: 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 | \ | ||
| 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 | \ | ||
| 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 | \ | ||
| 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 | \ | ||
| 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 | \ | ||
| s 4 5 e 4 h 2 q 4 | q. 2 s 2 1 q. 0 s 0 2 | s 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 _ 2 ^ 0 2 4 | e __ 3 ^ 0 3 4 _ 1 ^ 0 3 2 :] | h __ 5 5 | \ | ||
| h _ 0 0 | h _ 0 2 | h _ 2 0 | e ___ 5 ^ 5 ^ 0 1 _ 2 ^ 0 1 4 | \ | ||
| e __ 3 ^ 0 2 5 _ 1 ^ 0 3 ^ 0 | e _ 2 0 _ 5 3 2 ^ 0 2 4 | \ | ||
| e __ 5 ^ 0 2 5 _ 0 ^ 0 ^ 0 _ 2 | w _ 2 | | ||
| [: w r | w r :] | [: w r | \ | ||
| w r :] | [: w r | w r :] | w r | \ | ||
| w r | w r | w r | \ | ||
| w r | w r | [: w r | \ | ||
| w r :] | [: w r | w r :] | h __ 3 13 | \ | ||
| h __ 2 03 | h ___ 5 4^1 | h __ 0 _30 | h r e. ^ 2 2 s 2 r | \ | ||
| s r s r e r s ^^ 4 e 4 s r h r | w r | \ | ||
| q __ 1 r h r | w r | | ||
" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
load "~/ziffers/ziffers.rb" | ||
|
||
use_bpm 200 | ||
|
||
live_loop :te do | ||
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 | ||
end |
2 changes: 2 additions & 0 deletions
2
...s/not_tested/custom_lambda_progression.rb → examples/custom_lambda_progression.rb
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
load "~/ziffers/ziffers.rb" | ||
|
||
use_bpm 300 | ||
|
||
ievanpolka = \ | ||
"[:q 0 e 0 0 q 0 1 | q 2 0 0 2 | <(q1 _ 6 6 ^1 |q2 0 h0) (q. 4 e3 q 2 1|q 2 0 h0)> :]"\ | ||
"[:q 4 e 4 4 q 3 2 | q 1 _ 6 6 ^1 | <(q3 e3 3 q2 1|q2 0 0 2) (q3 e 3 3 q 2 1|q 2 0 h0)> :]" | ||
|
||
n = zparse ievanpolka, key:"g", scale:"minor" | ||
notes = zparams(n, :note) | ||
durations = zparams(n, :beats) | ||
|
||
with_synth :mod_tri do | ||
play_pattern_timed notes, durations, release: 0.1 | ||
end |
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
load "~/ziffers/ziffers.rb" | ||
|
||
use_synth :piano | ||
use_bpm 100 | ||
|
||
zloop :moonlight, "h 07 [: (-3 0 2) :4] -16 [: (-3 0 2) :4] -25 [: (-2 0 2) :] -43 [: (-2 b1 3) :] -34 (-3 #-1 3) (-3 0 2) -34 (-3 0 #1) (-4 -1 1)", | ||
key: :cs4, scale: :minor, release: 4, sustain: 3, decay: 1, | ||
chord_key: :cs2 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
load "~/ziffers/ziffers.rb" | ||
|
||
use_bpm 200 | ||
|
||
z1 "q1 e3 q4", seed: 1, rules: { | ||
/([a-z])*([1-9]*)/=> ->(i,m){ m[1]+(m[2].to_i*2%7).to_s } | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.