supernova: fix for small audio vector sizes
[supercollider.git] / examples / misuse_and_hacks / generate_titles.scd
blobb115020f4d36aab20877a06c9b7b16474ec32845
1 //redFrik april'06 - title generation techniques
2 //osx only
3 //give credit if you use any of these in your code
5 //----------
6 ~file= FileReader.read("/usr/share/dict/words");        //will take a little while to load
8 ~fileFunc= {
9         var b, c;
10         b= ~file.choose[0];
11         c= ~file.choose[0];
12         b= b[0].toUpper++b.copyRange(1, b.size-1);
13         c= c[0].toUpper++c.copyRange(1, c.size-1);
14         (c++b).join
17 10.do{~fileFunc.value.postln};""
19 //----------
20 ~file= FileReader.read("/usr/share/dict/web2a");
22 ~fileFunc= {
23         var b, c;
24         b= ~file.choose[0];
25         c= ~file.choose[0];
26         b= b[0].toUpper++b.copyRange(1, b.size-1);
27         c= c[0].toUpper++c.copyRange(1, c.size-1);
28         (c++b).join
31 10.do{~fileFunc.value.postln};""
33 //----------
34 ~file= FileReader.read("/usr/share/dict/web2");
36 ~fileFunc= {
37         var b, c;
38         b= ~file.choose[0];
39         c= ~file.choose[0];
40         b= b[0].toUpper++b.copyRange(1, b.size-1);
41         c= c[0].toUpper++c.copyRange(1, c.size-1);
42         (c++b).join
45 10.do{~fileFunc.value.postln};""
47 //----------
48 ~file= FileReader.read("/usr/share/dict/propernames");
50 ~fileFunc= {
51         var b, c;
52         b= ~file.choose[0];
53         c= ~file.choose[0];
54         b= b[0].toUpper++b.copyRange(1, b.size-1);
55         c= c[0].toUpper++c.copyRange(1, c.size-1);
56         (c++b).join
59 10.do{~fileFunc.value.postln};""
61 //----------
62 ~file= FileReader.read("/usr/share/dict/connectives");
64 ~fileFunc= {
65         var b, c;
66         b= ~file.choose[0];
67         c= ~file.choose[0];
68         b= b[0].toUpper++b.copyRange(1, b.size-1);
69         c= c[0].toUpper++c.copyRange(1, c.size-1);
70         (c++b).join
73 10.do{~fileFunc.value.postln};""