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
bpm = 400 | |
palette = 28 | |
dilution = 14 | |
length = 16 | |
noteLength = 1 | |
chance = 0.5 | |
velocityMax = 0.3 | |
velocityMin = 0.2 | |
seed = Time.new.to_i |
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
## sections | |
# first functions | |
define :getMirrorRange do |pNum| | |
return [-pNum, pNum]; | |
end | |
## constants =================================================================== |
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
##| prototypes | |
##| environment | |
BPM = 300; | |
use_bpm BPM; | |
RANDOM_SEED = Time.new.to_i; | |
PRINT_RANDOM_SEED_REMINDER = true; | |
use_random_seed RANDOM_SEED; |
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
##| computational organisms (computational counterpoint, dedicated to Steve Reich) | |
##| v0.0.3 (20210103) | |
##| by d0lfyn (twitter: @0delphini) | |
##| | |
##| a development of "pattern-oriented" music, this program creates | |
##| worlds in which patterns live, evolve, and interweave | |
##| | |
##| history: | |
##| v0.0.1 (20210102) | |
##| + initial implementation |
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
##| computational organisms | |
##| environment | |
use_bpm 480; | |
# t = Time.new; | |
# use_random_seed ((t.to_i * 1000000000) + t.nsec); | |
use_random_seed Time.new.to_i; | |
# use_random_seed 0; |
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
##| patterns | |
##| environment | |
use_bpm 480; | |
use_random_seed 0; | |
LOGGING = false; | |
##| domain | |
BASE_NOTE = :c3; | |
NUM_OCTAVES = 3; |
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
##| polyphony | |
##| v0.4 | |
##| by d0lfyn (twitter: @0delphini) | |
##| | |
##| a simple generator for polyphony in 4 parts | |
##| | |
##| history: | |
##| v0.3 | |
##| + add patterns | |
##| v0.4 |
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
##| polyphony | |
##| v0.4 | |
##| by d0lfyn (twitter: @0delphini) | |
##| | |
##| a simple generator for polyphony in 4 parts | |
##| | |
##| history: | |
##| v0.3 | |
##| + add patterns | |
##| v0.4 |
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
##| polyphony | |
##| v0.5 | |
##| by d0lfyn (twitter: @0delphini) | |
##| | |
##| a simple generator for polyphony in 4 parts | |
##| | |
##| history: | |
##| v0.3 | |
##| + add patterns | |
##| v0.4 |