Skip to content

Commit ca3dadd

Browse files
author
JWL
committed
vowel hymn generator now accessible via standard sample TEA programs
1 parent 1aab070 commit ca3dadd

1 file changed

Lines changed: 22 additions & 0 deletions

File tree

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
#############################################
2+
# RANDOM VOWEL HYMN GENERATOR v1
3+
#############################################
4+
# Though legit vowel hymns ought be generated
5+
# based on transforming the text of legit hymns
6+
# or words, this generator instead generates
7+
#such hymns based on nothing really, but the
8+
# outputs shall read and feel like legitimate
9+
#vowel hymns nonetheless.
10+
#-------------------------------------------
11+
# For Theory: https://bit.ly/grimoirelumtauto
12+
# For Example: https://www.youtube.com/watch?v=p_THWo4MjIU
13+
##############################################
14+
v:vLINES:5 | v:vI:0 | v:vHYMN:{}
15+
v:vLIMIT:10 | v:vGLUE:{ } | v:vALPHABET:{aeiou }
16+
l:LOOP
17+
p*!:vLIMIT:vGLUE:vALPHABET | v:vLINE #generate and store random string
18+
g*:{
19+
}:vHYMN:vLINE | v:vHYMN #add it to the hymn
20+
y:vI | x!:{+1} | r.: | v:vI
21+
y:vI | x!:{>} | x*!:vLINES | r.: | f:^true$:FIN:LOOP #test if we must finish
22+
l:FIN | y:vHYMN | k!:^$ #return clean hymn

0 commit comments

Comments
 (0)