melody_object 0.0.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,910 @@
1
+
2
+
3
+ #
4
+ #
5
+ #
6
+ # top --> gotimeobject (which dictates when to play the children)
7
+ # _________|________
8
+ # | | | | |
9
+ #
10
+ #
11
+ #
12
+ #
13
+ #
14
+ #
15
+ #
16
+ #
17
+ #
18
+
19
+
20
+
21
+ def makeinstances(fun,num)
22
+ ary=[]
23
+
24
+ 1.upto(num) {|instance| ary[instance-1]=eval(fun)}
25
+ return ary
26
+ end
27
+
28
+ def si(fun,num=1)
29
+ s=makeinstances(fun,num)
30
+ d=Section.new
31
+ s.each{|e| d.addon(e)}
32
+ return d
33
+ end
34
+
35
+ def rd
36
+ rand(5)+40
37
+ end
38
+
39
+ def ssoun
40
+ s(seoun,deoun)
41
+ end
42
+
43
+ def seoun
44
+ infun('sounn',64,64,60,52,60,52)
45
+ #~ return s(sounn(34),sounn(30),sounn(34),sounn(30))
46
+ end
47
+
48
+ def deoun
49
+ infun('sounn',16,16,71,65,74,65).a 2
50
+ end
51
+
52
+
53
+ def duom
54
+ infun('sounn',64,128,47)
55
+ end
56
+
57
+ def infun(fun,len,gran,*ary)
58
+ s=Section.new
59
+ ary.each do |i|
60
+ s.addon(eval(fun+"("+i.to_s+","+gran.to_s+","+len.to_s+")"))
61
+ end
62
+ return s
63
+ end
64
+
65
+
66
+
67
+ def sounn(note,gran,len)
68
+ timingary=[]
69
+ noteary=[]
70
+ 0.upto(0) {
71
+ noteary.push(note)
72
+ timingary.push(gran)
73
+ }
74
+
75
+ a=objfromarys(noteary,timingary,len)
76
+ a.makechannel 3
77
+ return a
78
+ end
79
+
80
+
81
+
82
+
83
+
84
+
85
+ def g_comeon41(v,len=1)
86
+ topp=Section.new
87
+ topp.name=v.to_s
88
+ topp.create_specific_notes(v,len)
89
+ return topp
90
+ end
91
+
92
+ def objfromarys(noteary,timingary,len)
93
+ x=GotimeObject.new(timingary)
94
+ topp=Section.new(x)
95
+ noteary.each {|d| topp.addon g_comeon41(d,len)}
96
+ #~ $fyl.puts timingary.join(',')
97
+ return topp
98
+
99
+ end
100
+
101
+
102
+
103
+
104
+
105
+ def sta
106
+
107
+ timingary=[]
108
+ noteary=[]
109
+ fee=rand(4)+1
110
+ feei=fee
111
+ rdi=rd
112
+
113
+ 0.upto(fee) {timingary.push(16/feei)}
114
+ x=GotimeObject.new(timingary)
115
+ topp=Section.new(x)
116
+ noteary[0]=rd
117
+ 1.upto(fee-1) {noteary.push(rdi)}
118
+ noteary.push(rd)
119
+ noteary.each {|d| topp.addon g_comeon41(d)}
120
+ $fyl.puts timingary.join(',')
121
+ return topp
122
+
123
+ end
124
+
125
+ def shortstroke(notetype=:all,chn=3)
126
+ stopp=Section.new
127
+ 4.times do
128
+ gopp=Section.new
129
+ #popp=Section.new
130
+ gopp.create_notes(rand(16)+1,rand(2)+1,:rand,notetype)
131
+ gopp.makechannel(chn)
132
+ stopp.addon(gopp)
133
+ p=gopp.threadout(evener(rand(32)+1,:m))
134
+ q=p.threadout(evener(32,:m))
135
+ q.repl(q.a(2))
136
+ end
137
+ return stopp
138
+ end
139
+
140
+ def shjrtstroke(notetype=:all,chn=3)
141
+ stopp=Section.new
142
+ 2.times do
143
+ gopp=Section.new
144
+ #popp=Section.new
145
+ gopp.create_notes(rand(16)+1,rand(2)+1,:rand,notetype)
146
+ gopp.makechannel(chn)
147
+ stopp.addon(gopp)
148
+ p=gopp.threadout(evener(rand(32)+1,:m))
149
+ q=p.threadout(evener(32,:m))
150
+ q.repl(q.a(2))
151
+ end
152
+ return stopp
153
+ end
154
+
155
+ def longstroke(notetype=:low,chn=1)
156
+ stopp=Section.new
157
+ 4.times do
158
+ gopp=Section.new
159
+ #popp=Section.new
160
+ gopp.create_notes(rand(16)+1,rand(4)+1,:rand,notetype)
161
+ gopp.makechannel(chn)
162
+ stopp.addon(gopp)
163
+ q=gopp.threadout(evener(64,:m))
164
+ q.repl(q.a(2))
165
+ end
166
+ return stopp
167
+ end
168
+
169
+ def ljngstroke(notetype=:low,chn=1)
170
+ stopp=Section.new
171
+ 2.times do
172
+ gopp=Section.new
173
+ #popp=Section.new
174
+ gopp.create_notes(rand(16)+1,rand(4)+1,:rand,notetype)
175
+ gopp.makechannel(chn)
176
+ stopp.addon(gopp)
177
+ q=gopp.threadout(evener(64,:m))
178
+ q.repl(q.a(2))
179
+ end
180
+ return stopp
181
+ end
182
+
183
+ def shortystroke(notetype=:all,chn=3)
184
+ stopp=Section.new
185
+ 1.times do
186
+ gopp=Section.new
187
+ #popp=Section.new
188
+ gopp.create_notes(rand(12)+16,(rand(8)+1)*(rand(3)+1),:rand,notetype)
189
+ gopp.makechannel(chn)
190
+ stopp.addon(gopp)
191
+ p=gopp.threadout(evener(rand(8)+16,:m))
192
+ q=p.threadout(evener(32,:m))
193
+ #q.repl(q.a(2))
194
+ end
195
+ return stopp
196
+ end
197
+
198
+ def longystroke(notetype=:low,chn=1)
199
+ stopp=Section.new
200
+ 1.times do
201
+ gopp=Section.new
202
+ #popp=Section.new
203
+ gopp.create_notes(rand(12)+16,(rand(8)+1)*(rand(3)+1),:rand,notetype)
204
+ gopp.makechannel(chn)
205
+ stopp.addon(gopp)
206
+ q=gopp.threadout(evener(64,:m))
207
+ #q.repl(q.a(2))
208
+ end
209
+ return stopp
210
+ end
211
+
212
+
213
+ def shitystroke(notetype=:mid,chn=1)
214
+ stopp=Section.new
215
+ 4.times do
216
+ gopp=Section.new
217
+ #popp=Section.new
218
+ gopp.create_notes(7,1,:rand,notetype)
219
+ gopp.makechannel(chn)
220
+ q=gopp.threadout(evener(rand(4)+2,:m))
221
+ stopp.addon(q)
222
+ q.repl(q.a(rand(3)+1))
223
+ end
224
+ stopp.threadout(evener(32))
225
+ #stopp=stopp.a(4)
226
+ return stopp
227
+ end
228
+
229
+ def shityrstroke(notetype=:mid,chn=1)
230
+ stopp=Section.new
231
+ 4.times do
232
+ gopp=Section.new
233
+ #popp=Section.new
234
+ gopp.create_notes(7,(rand(3)+1)*3,:rand,notetype)
235
+ gopp.makechannel(chn)
236
+ q=gopp.threadout(evener(rand(4)+2,:m))
237
+ stopp.addon(q)
238
+ q.repl(q.a(rand(3)+1))
239
+ end
240
+ stopp.threadout(evener(32))
241
+ #stopp=stopp.a(4)
242
+ return stopp
243
+ end
244
+
245
+ def bas(n=:mid,ch=3)
246
+ a=Section.new
247
+ 2.times do
248
+ f=Section.new
249
+ f.create_notes(2,1,:even,n)
250
+ f.versionize 4
251
+ f.alter_versions_all(:alter_pitch,"Alter_Pitch_Paramobj",7)
252
+ f.makechannel(ch)
253
+ a.addon f
254
+ end
255
+ a.nayme
256
+
257
+
258
+ b=a.threadout(evener(8,:m))
259
+ return b
260
+ end
261
+
262
+
263
+ def shitvstroke(notetype=:mid,chn=1)
264
+ stopp=Section.new
265
+ 4.times do
266
+ gopp=Section.new
267
+ #popp=Section.new
268
+ gopp.create_notes(7,2,:rand,notetype)
269
+ gopp.makechannel(chn)
270
+ p 'one'
271
+ gopp.versionize 4
272
+ p 'two'
273
+ gopp.alter_versions_all(:alter_pitch,"Alter_Pitch_Paramobj",7)
274
+ p 'three'
275
+ q=gopp.threadout(evener(32,:m))
276
+ p 'four'
277
+ stopp.addon(q)
278
+ p 'five'
279
+ #q.repl(q.a(rand(3)+1))
280
+ p 'six'
281
+ end
282
+ p 'seven'
283
+ #stopp.threadout(evener(64))
284
+ #stopp=stopp.a(4)
285
+ return stopp
286
+ end
287
+
288
+
289
+ def shitstroke(notetype=:mid,chn=1)
290
+ stopp=Section.new
291
+ 4.times do
292
+ gopp=Section.new
293
+ #popp=Section.new
294
+ gopp.create_notes(7,2,:rand,notetype)
295
+ gopp.makechannel(chn)
296
+ q=gopp.threadout(evener(rand(16)+2,:m))
297
+ stopp.addon(q)
298
+ q.repl(q.a(rand(3)+1))
299
+ end
300
+ stopp.threadout(evener(16,:m))
301
+ stopp=stopp.a(4)
302
+ return stopp
303
+ end
304
+
305
+
306
+ def jstroke(notetype=:mid,chn=1)
307
+ stopp=Section.new
308
+ 2.times do
309
+ gopp=Section.new
310
+ #popp=Section.new
311
+ gopp.create_notes(7,2,:rand,notetype)
312
+ gopp.makechannel(chn)
313
+ q=gopp.threadout(evener(rand(16)+2,:m))
314
+ stopp.addon(q)
315
+ q.repl(q.a(rand(3)+1))
316
+ end
317
+ stopp.threadout(evener(16,:m))
318
+ stopp=stopp.a(2)
319
+ return stopp
320
+ end
321
+
322
+
323
+ def jjstroke(notetype=:mid,chn=1)
324
+ stopp=Section.new
325
+ 2.times do
326
+ gopp=Section.new
327
+ #popp=Section.new
328
+ gopp.create_notes(3,2,:rand,notetype)
329
+ gopp.makechannel(chn)
330
+ q=gopp.threadout(evener(rand(8)+2,:m))
331
+ stopp.addon(q)
332
+ q.repl(q.a(rand(3)+1))
333
+ end
334
+ stopp.threadout(evener(8,:m))
335
+ stopp=stopp.a(2)
336
+ return stopp
337
+ end
338
+
339
+ def jkstroke(notetype=:mid,chn=1)
340
+ stopp=Section.new
341
+ 2.times do
342
+ gopp=Section.new
343
+ #popp=Section.new
344
+ gopp.create_notes(3,1,:rand,notetype)
345
+ gopp.makechannel(chn)
346
+ q=gopp.threadout(evener(rand(8)+2,:m))
347
+ stopp.addon(q)
348
+ q.repl(q.a(rand(3)+1))
349
+ end
350
+ stopp.threadout(evener(8,:m))
351
+ stopp=stopp.a(2)
352
+ return stopp
353
+ end
354
+
355
+
356
+ def bothstroke(frst,scnd,chn1,chn2)
357
+ topp=Section.new
358
+ kopp=shortstroke(frst,chn1)
359
+ lopp=longstroke(scnd,chn2)
360
+
361
+ topp.addon(t(kopp,lopp))
362
+ return topp
363
+ end
364
+
365
+
366
+ def bjthstroke(frst,scnd,chn1,chn2)
367
+ topp=Section.new
368
+ kopp=shjrtstroke(frst,chn1)
369
+ lopp=shjrtstroke(scnd,chn2)
370
+
371
+ topp.addon(t(kopp,lopp))
372
+ return topp
373
+ end
374
+
375
+ def bjithstroke(frst,scnd,chn1,chn2)
376
+ topp=Section.new
377
+ topp=shjrtstroke(frst,chn1)
378
+ return topp
379
+ end
380
+
381
+ def bothystroke(frst,scnd,chn1,chn2)
382
+ topp=Section.new
383
+ kopp=shortystroke(frst,chn1)
384
+ lopp=longystroke(scnd,chn2)
385
+
386
+ topp.addon(t(kopp,lopp))
387
+ return topp
388
+ end
389
+
390
+
391
+
392
+
393
+
394
+
395
+
396
+
397
+
398
+
399
+
400
+ def stedy
401
+ timingary=[]
402
+ noteary=[]
403
+ fee=15
404
+ 0.upto(fee) {timingary.push(1)}
405
+ x=GotimeObject.new(timingary)
406
+ topp=Section.new(x)
407
+ 0.upto(fee-1) {noteary.push(0)}
408
+ noteary.push(42)
409
+ noteary.each {|d| topp.addon g_comeon41(d)}
410
+
411
+ return topp
412
+ end
413
+
414
+ def evener(lengthh,sit=:f)
415
+ tmpar=[]
416
+ lengthh.times do |f|
417
+ tmpar.push 0
418
+ end
419
+ rtrn=Section.new
420
+ rtrn.create_specific_notes(tmpar,1)
421
+ rtrn.situation=:master if sit==:m
422
+ return rtrn
423
+ end
424
+
425
+ def t(*arr)
426
+ don=Section.new
427
+ aadd=Threadset.new
428
+ #p "hi #{arr.class}"
429
+ # arr.each {|d| p d.class}
430
+ arr.each{|s|
431
+ aadd.addon(s)}
432
+ don.addon(aadd)
433
+ return don
434
+ end
435
+
436
+
437
+ def s(*arr)
438
+ don=Section.new
439
+ arr.each{|d| don.addon(d)}
440
+ return don
441
+ end
442
+
443
+
444
+
445
+ def eu
446
+
447
+ r=[4,2,2,2,2,2,2,2,2,2,2,2,2,4]
448
+ x=GotimeObject.new(r)
449
+ topp=Section.new(x)
450
+ topp.name='toppy'
451
+
452
+ ary=[41,42,42,42,41,42,42,42,41,42,42,42,rand(6)+47,47]
453
+ ary.each {|d|
454
+ topp.addon g_comeon41(d)
455
+ }
456
+ topp.makechannel 1
457
+ #~ topp=topp.array_out(8)
458
+ return topp
459
+ end
460
+
461
+
462
+
463
+
464
+ def du
465
+ a=g_combin(['wu','g_comeonblu5'])
466
+ return a
467
+ end
468
+
469
+
470
+
471
+ def wu
472
+ #~ s=Section.new
473
+ a=g_combin(['g_comeon55','g_comeon51'])
474
+ a=a.array_out(4)
475
+ t=g_combin(['g_comeon55','g_comeon50'])
476
+ t=t.array_out(4)
477
+ z=g_combin(['g_comeon55','g_comeon56'])
478
+ z=z.array_out(64)
479
+ s=Section.new
480
+ s.addon(a,t)
481
+ s=s.array_out(8)
482
+ s.addon(z)
483
+ #~ s=s.array_out 8
484
+ #~ s.addon(g_comeon60,d)
485
+ #~ s.makechannel 1
486
+ return s
487
+ end
488
+
489
+ def g_combin(ary)
490
+ don=Section.new
491
+ aadd=Threadset.new
492
+ ary.each{|s|
493
+ aadd.addon(eval(s))}
494
+ don.addon(aadd)
495
+ return don
496
+ end
497
+
498
+ def g_comeonblu5
499
+ r=[4,6,8,10,12,14,16,18,20,22,24,26,28,32]
500
+ x=GotimeObject.new(r)
501
+ topp=Section.new(x)
502
+ topp.name='toppy'
503
+
504
+ ary=[41,42,42,42,41,42,42,42,41,42,42,42,49,47]
505
+ ary.each {|d|
506
+ topp.addon g_comeon41(d)
507
+ }
508
+ topp.makechannel 1
509
+ #~ topp=topp.array_out(8)
510
+ return topp
511
+ end
512
+
513
+
514
+ def g_comeon77
515
+ s=Section.new
516
+ s.create_notes(4,:none)
517
+ return s
518
+ end
519
+
520
+ def g_comeon55
521
+ r=[8,16]
522
+ x=GotimeObject.new(r)
523
+ topp=Section.new(x)
524
+ topp.name='toppy'
525
+ ary=[41,41]
526
+ ary.each {|d|
527
+ topp.addon g_comeon41(d)
528
+ }
529
+ #~ topp=topp.array_out(8)
530
+ return topp
531
+ end
532
+
533
+ def g_comeon51
534
+ r=[4,8,14,16]
535
+ x=GotimeObject.new(r)
536
+ topp=Section.new(x)
537
+ topp.name='toppy'
538
+ ary=[42,45,43,44]
539
+ ary.each {|d|
540
+ topp.addon g_comeon41(d)
541
+ }
542
+ return topp
543
+ end
544
+
545
+ def g_comeon50
546
+ r=[4,6,8,14,16]
547
+ x=GotimeObject.new(r)
548
+ topp=Section.new(x)
549
+ topp.name='toppy'
550
+ ary=[42,42,45,43,44]
551
+ ary.each {|d|
552
+ topp.addon g_comeon41(d)
553
+ }
554
+ return topp
555
+ end
556
+
557
+
558
+ def g_comeon56
559
+ r=[4,6,8,10,12,14,16]
560
+ x=GotimeObject.new(r)
561
+ topp=Section.new(x)
562
+ topp.name='toppy'
563
+ ary=[42,42,45,45,45,44,44]
564
+ ary.each {|d|
565
+ topp.addon g_comeon41(d)
566
+ }
567
+ return topp
568
+ end
569
+
570
+
571
+
572
+
573
+
574
+ def g_comeon40(ary)
575
+ topp=Section.new(ary[0])
576
+ topp.create_specific_notes(ary[1])
577
+ topp.makechannel 1
578
+ return topp
579
+ end
580
+
581
+
582
+ def g_comeon70
583
+
584
+ topp=Section.new
585
+ x=45
586
+ ary=[[1,[45]],[10,[38]],[14,[43]],[1,[44]]]
587
+ ary.each {|d|
588
+ topp.addon g_comeon40(d)
589
+ }
590
+ topp.makechannel 0
591
+ topp=topp.array_out(8)
592
+ return topp
593
+ end
594
+
595
+ def g_comeon60
596
+
597
+ topp=Section.new
598
+
599
+ ary=[[4,[41]],[2,[40]],[2,[40]]]
600
+ ary.each {|d|
601
+ topp.addon g_comeon40(d)
602
+ }
603
+ topp=topp.array_out(8)
604
+ return topp
605
+ end
606
+
607
+
608
+
609
+ def g_comeon11
610
+ topp=Section.new
611
+ topp=g_comeon10
612
+
613
+ end
614
+
615
+
616
+
617
+
618
+ def g_aadd
619
+ aadd=Section.new
620
+ 2.times do
621
+ # two different a's, which make up aadd
622
+ a=Section.new(16)
623
+ a.create_specific_notes(x=[40])
624
+ a.makechannel 1
625
+ a=a.array_out(4)
626
+ aadd.addon(a)
627
+ end
628
+ return aadd
629
+ end
630
+
631
+
632
+ def g_aadd2
633
+ aadd=Section.new
634
+ 2.times do
635
+ # two different a's, which make up aadd
636
+ a=Section.new(3)
637
+ a.create_specific_notes(x=[54])
638
+ a.makechannel 1
639
+ a=a.array_out(4)
640
+ aadd.addon(a)
641
+ end
642
+ return aadd
643
+ end
644
+
645
+
646
+
647
+ def g_comeon10
648
+ topp=Section.new(5)
649
+ topp.addon(g_comeon5)
650
+ return topp
651
+ end
652
+
653
+ def g_comeon9
654
+ topp=Section.new
655
+ ts=Threadset.new
656
+ topp.addon(ts)
657
+ a=[1,16]
658
+ ts.addon(g_comeon8,g_comeon4a(a))
659
+ return topp
660
+ end
661
+
662
+
663
+
664
+ def g_comeon8
665
+ topp=Section.new
666
+ 2.times {topp.addon(g_comeon7('g_comeon6'))}
667
+ return topp
668
+ end
669
+
670
+
671
+ def g_comeon7(x)
672
+ topp=Section.new
673
+ a=eval(x) #how do i make the function the variable?
674
+ b=eval(x)
675
+ ary=[a,b,a.uf,b.uf]
676
+ ary.each {|d| topp.addon(d)}
677
+ return topp
678
+ end
679
+
680
+ def g_comeon6
681
+ topp=Section.new(2)
682
+ 2.times do topp.addon(g_comeon5) end
683
+ c=topp.array_out(4)
684
+ return c
685
+ end
686
+
687
+
688
+
689
+ def g_comeon5
690
+
691
+ topp=Section.new
692
+
693
+ ary=[[1,1],[1,1],[1,1],[1,1]]
694
+ ary.each {|d|
695
+ topp.addon g_comeon4(d)
696
+ }
697
+ return topp
698
+ end
699
+
700
+ def g_comeon4(ary)
701
+
702
+
703
+ topp=Section.new(ary[0])
704
+ stopp=Section.new
705
+
706
+ topp.create_notes(ary[1],:drum1)
707
+
708
+ stopp=topp
709
+
710
+ end
711
+
712
+ def g_comeon4a(ary)
713
+
714
+
715
+ topp=Section.new(ary[0])
716
+ stopp=Section.new
717
+
718
+ topp.create_notes(ary[1],:none)
719
+
720
+ stopp=topp
721
+
722
+ end
723
+
724
+ def g_comeon2
725
+
726
+
727
+ topp=Section.new(6)
728
+ stopp=Section.new
729
+
730
+ topp.create_notes(16,:drum1)
731
+
732
+ stopp=topp
733
+
734
+ end
735
+
736
+
737
+
738
+
739
+
740
+
741
+ def g_comeon3
742
+ stopp=Section.new
743
+ stopp.addon(stopthread)
744
+ stopp=stopp.array_out(2)
745
+
746
+ end
747
+
748
+ def stopthread
749
+ stopthread=Threadset.new
750
+ stopthread.addon(s_topp,aadd)
751
+ return stopthread
752
+ end
753
+
754
+
755
+ def s_topp
756
+ s_topp=Section.new
757
+ 2.times do
758
+ t_tset=Threadset.new
759
+ t_tset.addon(g_comeon,g_comeon2)
760
+ #~ z=z.array_out(2)
761
+ #~ stopp.addon(x,y)
762
+ s_topp.addon(t_tset)
763
+ end
764
+ return s_topp
765
+ end
766
+
767
+ def aadd
768
+ aadd=Section.new
769
+ 2.times do
770
+ # two different a's, which make up aadd
771
+ a=Section.new(4)
772
+ a.create_notes(16,:low)
773
+ a.makechannel 1
774
+ a=a.array_out(4)
775
+ aadd.addon(a)
776
+ end
777
+ return aadd
778
+ end
779
+
780
+
781
+
782
+ def g_comeon
783
+
784
+ topp=Section.new(4)
785
+ stopp=Section.new
786
+
787
+ topp.create_notes(16,:drum1)
788
+ stopp=topp
789
+ end
790
+
791
+
792
+ def g_comeon2
793
+
794
+
795
+ topp=Section.new(6)
796
+ stopp=Section.new
797
+
798
+ topp.create_notes(16,:drum1)
799
+
800
+ stopp=topp
801
+
802
+ end
803
+
804
+
805
+ def l_loaded
806
+
807
+ stopp=Section.new
808
+
809
+ dall=['rund-gqscvh']
810
+
811
+ dall.each do |f|
812
+ a=File.open("trax/eoms/#{f}.dat") do |g|
813
+ Marshal.load(g)
814
+ end
815
+ stopp=a
816
+ end
817
+ loaded=stopp
818
+ end
819
+
820
+ def l_loaded2
821
+
822
+ stopp=Section.new
823
+
824
+ dall=['rund-gud']
825
+
826
+ dall.each do |f|
827
+ a=File.open("eooms/#{f}.dat") do |g|
828
+ Marshal.load(g)
829
+ end
830
+ stopp=a
831
+ end
832
+ loaded=stopp
833
+ end
834
+
835
+
836
+ def l_load(obj,opt=1)
837
+ stopp=Section.new
838
+ case opt
839
+ when 1
840
+ folder='eoms'
841
+ when 2
842
+ folder='xoms'
843
+ end
844
+
845
+ a=File.open("trax/#{folder}/#{obj}.dat") do |g|
846
+ Marshal.load(g)
847
+ end
848
+ stopp=a
849
+ end
850
+
851
+ def l_loaded3
852
+
853
+ stopp=Section.new
854
+
855
+ dall=['rund-nyce']
856
+
857
+ dall.each do |f|
858
+ a=File.open("eooms/#{f}.dat") do |g|
859
+ Marshal.load(g)
860
+ end
861
+ stopp=a
862
+ end
863
+ loaded=stopp
864
+ end
865
+
866
+ def g_popp
867
+ popp=Section.new
868
+ popp.addon(l_loaded3,stopthread,l_loaded3)
869
+ return popp
870
+ end
871
+
872
+ def l_loaded4
873
+
874
+ stopp=Section.new
875
+
876
+ dall=['rund-fsp']
877
+
878
+ dall.each do |f|
879
+ a=File.open("eooms/#{f}.dat") do |g|
880
+ Marshal.load(g)
881
+ end
882
+ stopp=a
883
+ end
884
+ loaded=stopp
885
+ end
886
+
887
+ def l_loaded5
888
+
889
+ stopp=Section.new
890
+
891
+ dall=['rund-natt']
892
+
893
+ dall.each do |f|
894
+ a=File.open("eooms/#{f}.dat") do |g|
895
+ Marshal.load(g)
896
+ end
897
+ stopp=a
898
+ end
899
+ loaded=stopp
900
+ end
901
+
902
+
903
+ def dum
904
+ infun('sounn',16,0)
905
+ end
906
+
907
+ def dunn
908
+ infun('sounn',64,0)
909
+ end
910
+