Top Level Namespace

Includes:
Level_two

Defined Under Namespace

Modules: Generators, Level_two Classes: Alter_Pitch_Paramobj, Array, Bouncer, Ender, Fanxobj, FlagObject, GotimeObject, MelodyObject, Midi_interface, Midistack, ParamObjs, Section, Sections, Threadset

Instance Attribute Summary

Attributes included from Level_two

#lvl

Instance Method Summary collapse

Methods included from Level_two

#a, #addon, #alter, #altered, #altr, #apply, #chggran, #combine, #copy, #create_notes, #create_specific_notes, #dubl, #ends, #hasharr, #indx, #indx_in_place, #inspectout, #loop, #makechannel, #scayle, #sectionize, #spaceout, #sproute, #to_json, #to_jsonn, #uf

Instance Method Details

#aaddObject



767
768
769
770
771
772
773
774
775
776
777
778
# File 'lib/melody_object/g_comeon4.rb', line 767

def aadd
  aadd=Section.new
2.times do
  # two different a's, which make up aadd
 a=Section.new(4) 
a.create_notes(16,:low)
a.makechannel 1
a=a.array_out(4)
aadd.addon(a)
end
return aadd
end

#bas(n = :mid, ch = 3) ⇒ Object



245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
# File 'lib/melody_object/g_comeon4.rb', line 245

def bas(n=:mid,ch=3)
  a=Section.new
  2.times do
    f=Section.new
    f.create_notes(2,1,:even,n)
     f.versionize 4
       f.alter_versions_all(:alter_pitch,"Alter_Pitch_Paramobj",7)
    f.makechannel(ch)
    a.addon f
  end
  a.nayme
 

  b=a.threadout(evener(8,:m))
  return b
end

#bjithstroke(frst, scnd, chn1, chn2) ⇒ Object



375
376
377
378
379
# File 'lib/melody_object/g_comeon4.rb', line 375

def bjithstroke(frst,scnd,chn1,chn2)
topp=Section.new
topp=shjrtstroke(frst,chn1)
return topp
end

#bjthstroke(frst, scnd, chn1, chn2) ⇒ Object



366
367
368
369
370
371
372
373
# File 'lib/melody_object/g_comeon4.rb', line 366

def bjthstroke(frst,scnd,chn1,chn2)
topp=Section.new
kopp=shjrtstroke(frst,chn1)
lopp=shjrtstroke(scnd,chn2)

topp.addon(t(kopp,lopp))
return topp
end

#bothstroke(frst, scnd, chn1, chn2) ⇒ Object



356
357
358
359
360
361
362
363
# File 'lib/melody_object/g_comeon4.rb', line 356

def bothstroke(frst,scnd,chn1,chn2)
topp=Section.new
kopp=shortstroke(frst,chn1)
lopp=longstroke(scnd,chn2)

topp.addon(t(kopp,lopp))
return topp
end

#bothystroke(frst, scnd, chn1, chn2) ⇒ Object



381
382
383
384
385
386
387
388
# File 'lib/melody_object/g_comeon4.rb', line 381

def bothystroke(frst,scnd,chn1,chn2)
topp=Section.new
kopp=shortystroke(frst,chn1)
lopp=longystroke(scnd,chn2)

topp.addon(t(kopp,lopp))
return topp
end

#combyn(hsh) ⇒ Object



20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
# File 'lib/melody_object/Level_three.rb', line 20

def combyn(hsh)
combind=[]

#~ s=Section.new
        hsh.each_key do |ltr|
fyl=''        
        fyl<<ltr.to_s+'animals'
                hsh[ltr].each do |sec|
                fyl<<sec.to_s
                end
        fyl<<'.yaml'
        #~ puts File.dirname(__FILE__)
        #~ puts fyl
        tmp=YAML.load_file(fyl)
#~ puts  "HI #{hsh[ltr]}"
                hsh[ltr].each do |sec|
                        yoursec=tmp[sec-1]
                        combind.push yoursec
                end
        end
        
File.open( 'combined.yaml', 'w' ) do |out|

    YAML.dump(combind, out )
  end
        
end

#deounObject



48
49
50
# File 'lib/melody_object/g_comeon4.rb', line 48

def deoun
infun('sounn',16,16,71,65,74,65).a 2
end

#duObject



464
465
466
467
# File 'lib/melody_object/g_comeon4.rb', line 464

def du
  a=g_combin(['wu','g_comeonblu5'])
  return a
end

#dumObject



903
904
905
# File 'lib/melody_object/g_comeon4.rb', line 903

def dum
  infun('sounn',16,0)
end

#dunnObject



907
908
909
# File 'lib/melody_object/g_comeon4.rb', line 907

def dunn
infun('sounn',64,0)
end

#duomObject



53
54
55
# File 'lib/melody_object/g_comeon4.rb', line 53

def duom
  infun('sounn',64,128,47)
end

#euObject



445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
# File 'lib/melody_object/g_comeon4.rb', line 445

def eu
  
r=[4,2,2,2,2,2,2,2,2,2,2,2,2,4]
x=GotimeObject.new(r)
topp=Section.new(x)
topp.name='toppy'

ary=[41,42,42,42,41,42,42,42,41,42,42,42,rand(6)+47,47]
ary.each {|d|
topp.addon g_comeon41(d)
}
topp.makechannel 1
#~ topp=topp.array_out(8)
return topp
end

#evener(lengthh, sit = :f) ⇒ Object



414
415
416
417
418
419
420
421
422
423
# File 'lib/melody_object/g_comeon4.rb', line 414

def evener(lengthh,sit=:f)
   tmpar=[]
  lengthh.times do |f|
    tmpar.push 0
  end
  rtrn=Section.new
  rtrn.create_specific_notes(tmpar,1)
  rtrn.situation=:master if sit==:m
  return rtrn
end

#fanxObject



49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
# File 'lib/melody_object/Level_three.rb', line 49

def fanx

  if $variable>$hilimit then
  $direction=:down
  $variable-=$secondvariable
  elsif $variable<$lolimit then
  $direction=:up
  $variable+=$secondvariable
  else
    case $direction
    when :up
    $variable+=$secondvariable
    when :down
    $variable-=$secondvariable
    end
  end
  #~ $fyl.puts "#{self} #{$variable}"
  return $variable
end

#g_aaddObject



618
619
620
621
622
623
624
625
626
627
628
629
# File 'lib/melody_object/g_comeon4.rb', line 618

def g_aadd
  aadd=Section.new
2.times do
  # two different a's, which make up aadd
 a=Section.new(16) 
a.create_specific_notes(x=[40])
a.makechannel 1
a=a.array_out(4)
aadd.addon(a)
end
return aadd
end

#g_aadd2Object



632
633
634
635
636
637
638
639
640
641
642
643
# File 'lib/melody_object/g_comeon4.rb', line 632

def g_aadd2
  aadd=Section.new
2.times do
  # two different a's, which make up aadd
 a=Section.new(3) 
a.create_specific_notes(x=[54])
a.makechannel 1
a=a.array_out(4)
aadd.addon(a)
end
return aadd
end

#g_combin(ary) ⇒ Object



489
490
491
492
493
494
495
496
# File 'lib/melody_object/g_comeon4.rb', line 489

def g_combin(ary)
  don=Section.new
  aadd=Threadset.new
  ary.each{|s|
    aadd.addon(eval(s))}
  don.addon(aadd)
return don
end

#g_comeonObject



782
783
784
785
786
787
788
789
# File 'lib/melody_object/g_comeon4.rb', line 782

def g_comeon

topp=Section.new(4)
stopp=Section.new

topp.create_notes(16,:drum1)
stopp=topp
end

#g_comeon10Object



647
648
649
650
651
# File 'lib/melody_object/g_comeon4.rb', line 647

def g_comeon10
  topp=Section.new(5)
  topp.addon(g_comeon5)
return topp
end

#g_comeon11Object



609
610
611
612
613
# File 'lib/melody_object/g_comeon4.rb', line 609

def g_comeon11
  topp=Section.new
  topp=g_comeon10

end

#g_comeon2Object



724
725
726
727
728
729
730
731
732
733
734
# File 'lib/melody_object/g_comeon4.rb', line 724

def g_comeon2


topp=Section.new(6)
stopp=Section.new

topp.create_notes(16,:drum1)

stopp=topp

end

#g_comeon3Object



741
742
743
744
745
746
# File 'lib/melody_object/g_comeon4.rb', line 741

def g_comeon3
  stopp=Section.new
stopp.addon(stopthread)
stopp=stopp.array_out(2)

end

#g_comeon4(ary) ⇒ Object



700
701
702
703
704
705
706
707
708
709
710
# File 'lib/melody_object/g_comeon4.rb', line 700

def g_comeon4(ary)


topp=Section.new(ary[0])
stopp=Section.new

topp.create_notes(ary[1],:drum1)

stopp=topp

end

#g_comeon40(ary) ⇒ Object



574
575
576
577
578
579
# File 'lib/melody_object/g_comeon4.rb', line 574

def g_comeon40(ary)
topp=Section.new(ary[0])
topp.create_specific_notes(ary[1])
topp.makechannel 1
return topp
end

#g_comeon41(v, len = 1) ⇒ Object



85
86
87
88
89
90
# File 'lib/melody_object/g_comeon4.rb', line 85

def g_comeon41(v,len=1)
topp=Section.new
topp.name=v.to_s
topp.create_specific_notes(v,len)
return topp
end

#g_comeon4a(ary) ⇒ Object



712
713
714
715
716
717
718
719
720
721
722
# File 'lib/melody_object/g_comeon4.rb', line 712

def g_comeon4a(ary)


topp=Section.new(ary[0])
stopp=Section.new

topp.create_notes(ary[1],:none)

stopp=topp

end

#g_comeon5Object



689
690
691
692
693
694
695
696
697
698
# File 'lib/melody_object/g_comeon4.rb', line 689

def g_comeon5

topp=Section.new

ary=[[1,1],[1,1],[1,1],[1,1]]
ary.each {|d|
topp.addon g_comeon4(d)
}
return topp
end

#g_comeon50Object



545
546
547
548
549
550
551
552
553
554
555
# File 'lib/melody_object/g_comeon4.rb', line 545

def g_comeon50
r=[4,6,8,14,16]
x=GotimeObject.new(r)
topp=Section.new(x)
topp.name='toppy'
ary=[42,42,45,43,44]
ary.each {|d|
topp.addon g_comeon41(d)
}
return topp
end

#g_comeon51Object



533
534
535
536
537
538
539
540
541
542
543
# File 'lib/melody_object/g_comeon4.rb', line 533

def g_comeon51
r=[4,8,14,16]
x=GotimeObject.new(r)
topp=Section.new(x)
topp.name='toppy'
ary=[42,45,43,44]
ary.each {|d|
topp.addon g_comeon41(d)
}
return topp
end

#g_comeon55Object



520
521
522
523
524
525
526
527
528
529
530
531
# File 'lib/melody_object/g_comeon4.rb', line 520

def g_comeon55
r=[8,16]
x=GotimeObject.new(r)
topp=Section.new(x)
topp.name='toppy'
ary=[41,41]
ary.each {|d|
topp.addon g_comeon41(d)
}
#~ topp=topp.array_out(8)
return topp
end

#g_comeon56Object



558
559
560
561
562
563
564
565
566
567
568
# File 'lib/melody_object/g_comeon4.rb', line 558

def g_comeon56
r=[4,6,8,10,12,14,16]
x=GotimeObject.new(r)
topp=Section.new(x)
topp.name='toppy'
ary=[42,42,45,45,45,44,44]
ary.each {|d|
topp.addon g_comeon41(d)
}
return topp
end

#g_comeon6Object



680
681
682
683
684
685
# File 'lib/melody_object/g_comeon4.rb', line 680

def g_comeon6
  topp=Section.new(2)
  2.times do topp.addon(g_comeon5) end
  c=topp.array_out(4)
  return c
end

#g_comeon60Object



595
596
597
598
599
600
601
602
603
604
605
# File 'lib/melody_object/g_comeon4.rb', line 595

def g_comeon60

topp=Section.new

ary=[[4,[41]],[2,[40]],[2,[40]]]
ary.each {|d|
topp.addon g_comeon40(d)
}
topp=topp.array_out(8)
return topp
end

#g_comeon7(x) ⇒ Object



671
672
673
674
675
676
677
678
# File 'lib/melody_object/g_comeon4.rb', line 671

def g_comeon7(x)
  topp=Section.new
  a=eval(x)  #how do i make the function the variable?
  b=eval(x)
  ary=[a,b,a.uf,b.uf]
 ary.each {|d| topp.addon(d)}
  return topp
end

#g_comeon70Object



582
583
584
585
586
587
588
589
590
591
592
593
# File 'lib/melody_object/g_comeon4.rb', line 582

def g_comeon70

topp=Section.new
x=45
ary=[[1,[45]],[10,[38]],[14,[43]],[1,[44]]]
ary.each {|d|
topp.addon g_comeon40(d)
}
topp.makechannel 0
topp=topp.array_out(8)
return topp
end

#g_comeon77Object



514
515
516
517
518
# File 'lib/melody_object/g_comeon4.rb', line 514

def g_comeon77
  s=Section.new
  s.create_notes(4,:none)
  return s
end

#g_comeon8Object



664
665
666
667
668
# File 'lib/melody_object/g_comeon4.rb', line 664

def g_comeon8
  topp=Section.new
  2.times {topp.addon(g_comeon7('g_comeon6'))}
  return topp
end

#g_comeon9Object



653
654
655
656
657
658
659
660
# File 'lib/melody_object/g_comeon4.rb', line 653

def g_comeon9
  topp=Section.new
  ts=Threadset.new
  topp.addon(ts)
  a=[1,16]
  ts.addon(g_comeon8,g_comeon4a(a))
return topp
end

#g_comeonblu5Object



498
499
500
501
502
503
504
505
506
507
508
509
510
511
# File 'lib/melody_object/g_comeon4.rb', line 498

def g_comeonblu5
r=[4,6,8,10,12,14,16,18,20,22,24,26,28,32]
x=GotimeObject.new(r)
topp=Section.new(x)
topp.name='toppy'

ary=[41,42,42,42,41,42,42,42,41,42,42,42,49,47]
ary.each {|d|
topp.addon g_comeon41(d)
}
topp.makechannel 1
#~ topp=topp.array_out(8)
return topp
end

#g_poppObject



866
867
868
869
870
# File 'lib/melody_object/g_comeon4.rb', line 866

def g_popp
  popp=Section.new
  popp.addon(l_loaded3,stopthread,l_loaded3)
  return popp
end

#infun(fun, len, gran, *ary) ⇒ Object



57
58
59
60
61
62
63
# File 'lib/melody_object/g_comeon4.rb', line 57

def infun(fun,len,gran,*ary)
  s=Section.new
  ary.each do |i|
    s.addon(eval(fun+"("+i.to_s+","+gran.to_s+","+len.to_s+")"))
  end
  return s
end

#jjstroke(notetype = :mid, chn = 1) ⇒ Object



323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
# File 'lib/melody_object/g_comeon4.rb', line 323

def jjstroke(notetype=:mid,chn=1)
  stopp=Section.new
  2.times do
  gopp=Section.new
  #popp=Section.new
  gopp.create_notes(3,2,:rand,notetype)
  gopp.makechannel(chn)
  q=gopp.threadout(evener(rand(8)+2,:m))
  stopp.addon(q)
  q.repl(q.a(rand(3)+1))
  end
  stopp.threadout(evener(8,:m))
  stopp=stopp.a(2)
  return stopp
end

#jkstroke(notetype = :mid, chn = 1) ⇒ Object



339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
# File 'lib/melody_object/g_comeon4.rb', line 339

def jkstroke(notetype=:mid,chn=1)
  stopp=Section.new
  2.times do
  gopp=Section.new
  #popp=Section.new
  gopp.create_notes(3,1,:rand,notetype)
  gopp.makechannel(chn)
  q=gopp.threadout(evener(rand(8)+2,:m))
  stopp.addon(q)
  q.repl(q.a(rand(3)+1))
  end
  stopp.threadout(evener(8,:m))
  stopp=stopp.a(2)
  return stopp
end

#jstroke(notetype = :mid, chn = 1) ⇒ Object



306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
# File 'lib/melody_object/g_comeon4.rb', line 306

def jstroke(notetype=:mid,chn=1)
  stopp=Section.new
  2.times do
  gopp=Section.new
  #popp=Section.new
  gopp.create_notes(7,2,:rand,notetype)
  gopp.makechannel(chn)
  q=gopp.threadout(evener(rand(16)+2,:m))
  stopp.addon(q)
  q.repl(q.a(rand(3)+1))
  end
  stopp.threadout(evener(16,:m))
  stopp=stopp.a(2)
  return stopp
end

#l_load(obj, opt = 1) ⇒ Object



836
837
838
839
840
841
842
843
844
845
846
847
848
849
# File 'lib/melody_object/g_comeon4.rb', line 836

def l_load(obj,opt=1)
  stopp=Section.new
case opt
when 1
  folder='eoms'
when 2
  folder='xoms'
end

   a=File.open("trax/#{folder}/#{obj}.dat") do |g|
     Marshal.load(g)
   end
stopp=a
end

#l_loadedObject



805
806
807
808
809
810
811
812
813
814
815
816
817
818
# File 'lib/melody_object/g_comeon4.rb', line 805

def l_loaded

stopp=Section.new

dall=['rund-gqscvh']

 dall.each do |f|
   a=File.open("trax/eoms/#{f}.dat") do |g|
     Marshal.load(g)
   end
stopp=a
end
loaded=stopp
end

#l_loaded2Object



820
821
822
823
824
825
826
827
828
829
830
831
832
833
# File 'lib/melody_object/g_comeon4.rb', line 820

def l_loaded2

stopp=Section.new

dall=['rund-gud']

 dall.each do |f|
   a=File.open("eooms/#{f}.dat") do |g|
     Marshal.load(g)
   end
stopp=a
end
loaded=stopp
end

#l_loaded3Object



851
852
853
854
855
856
857
858
859
860
861
862
863
864
# File 'lib/melody_object/g_comeon4.rb', line 851

def l_loaded3

stopp=Section.new

dall=['rund-nyce']

 dall.each do |f|
   a=File.open("eooms/#{f}.dat") do |g|
     Marshal.load(g)
   end
stopp=a
end
loaded=stopp
end

#l_loaded4Object



872
873
874
875
876
877
878
879
880
881
882
883
884
885
# File 'lib/melody_object/g_comeon4.rb', line 872

def l_loaded4

stopp=Section.new

dall=['rund-fsp']

 dall.each do |f|
   a=File.open("eooms/#{f}.dat") do |g|
     Marshal.load(g)
   end
stopp=a
end
loaded=stopp
end

#l_loaded5Object



887
888
889
890
891
892
893
894
895
896
897
898
899
900
# File 'lib/melody_object/g_comeon4.rb', line 887

def l_loaded5

stopp=Section.new

dall=['rund-natt']

 dall.each do |f|
   a=File.open("eooms/#{f}.dat") do |g|
     Marshal.load(g)
   end
stopp=a
end
loaded=stopp
end

#ljngstroke(notetype = :low, chn = 1) ⇒ Object



169
170
171
172
173
174
175
176
177
178
179
180
181
# File 'lib/melody_object/g_comeon4.rb', line 169

def ljngstroke(notetype=:low,chn=1)
  stopp=Section.new
  2.times do
  gopp=Section.new
  #popp=Section.new
  gopp.create_notes(rand(16)+1,rand(4)+1,:rand,notetype)
  gopp.makechannel(chn)
  stopp.addon(gopp)
  q=gopp.threadout(evener(64,:m))
  q.repl(q.a(2))
  end
  return stopp
end

#longstroke(notetype = :low, chn = 1) ⇒ Object



155
156
157
158
159
160
161
162
163
164
165
166
167
# File 'lib/melody_object/g_comeon4.rb', line 155

def longstroke(notetype=:low,chn=1)
  stopp=Section.new
  4.times do
  gopp=Section.new
  #popp=Section.new
  gopp.create_notes(rand(16)+1,rand(4)+1,:rand,notetype)
  gopp.makechannel(chn)
  stopp.addon(gopp)
  q=gopp.threadout(evener(64,:m))
  q.repl(q.a(2))
  end
  return stopp
end

#longystroke(notetype = :low, chn = 1) ⇒ Object



198
199
200
201
202
203
204
205
206
207
208
209
210
# File 'lib/melody_object/g_comeon4.rb', line 198

def longystroke(notetype=:low,chn=1)
  stopp=Section.new
  1.times do
  gopp=Section.new
  #popp=Section.new
  gopp.create_notes(rand(12)+16,(rand(8)+1)*(rand(3)+1),:rand,notetype)
  gopp.makechannel(chn)
  stopp.addon(gopp)
  q=gopp.threadout(evener(64,:m))
  #q.repl(q.a(2))
  end
  return stopp
end

#makeinstances(fun, num) ⇒ Object



21
22
23
24
25
26
# File 'lib/melody_object/g_comeon4.rb', line 21

def makeinstances(fun,num)
  ary=[]

  1.upto(num) {|instance| ary[instance-1]=eval(fun)}
return ary
end

#objfromarys(noteary, timingary, len) ⇒ Object



92
93
94
95
96
97
98
99
# File 'lib/melody_object/g_comeon4.rb', line 92

def objfromarys(noteary,timingary,len)
  x=GotimeObject.new(timingary)
topp=Section.new(x)
noteary.each {|d| topp.addon g_comeon41(d,len)}
   #~ $fyl.puts timingary.join(',')
return topp

end

#qanxObject



108
109
110
111
112
113
114
115
116
117
118
# File 'lib/melody_object/Level_three.rb', line 108

def qanx
a=[]
(4).times do
t=[]
(3).times do
t.push (rand(4))
end
a.push t
end
return a
end

#rdObject



35
36
37
# File 'lib/melody_object/g_comeon4.rb', line 35

def rd
  rand(5)+40
end

#s(*arr) ⇒ Object



437
438
439
440
441
# File 'lib/melody_object/g_comeon4.rb', line 437

def s(*arr)
  don=Section.new
  arr.each{|d| don.addon(d)}
  return don
end

#s_toppObject



755
756
757
758
759
760
761
762
763
764
765
# File 'lib/melody_object/g_comeon4.rb', line 755

def s_topp
  s_topp=Section.new
  2.times do
  t_tset=Threadset.new
t_tset.addon(g_comeon,g_comeon2)
#~ z=z.array_out(2)
#~ stopp.addon(x,y)
s_topp.addon(t_tset)
end
return s_topp
end

#seounObject



43
44
45
46
# File 'lib/melody_object/g_comeon4.rb', line 43

def seoun
  infun('sounn',64,64,60,52,60,52)
  #~ return s(sounn(34),sounn(30),sounn(34),sounn(30))
end

#shitstroke(notetype = :mid, chn = 1) ⇒ Object



289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
# File 'lib/melody_object/g_comeon4.rb', line 289

def shitstroke(notetype=:mid,chn=1)
  stopp=Section.new
  4.times do
  gopp=Section.new
  #popp=Section.new
  gopp.create_notes(7,2,:rand,notetype)
  gopp.makechannel(chn)
  q=gopp.threadout(evener(rand(16)+2,:m))
  stopp.addon(q)
  q.repl(q.a(rand(3)+1))
  end
  stopp.threadout(evener(16,:m))
  stopp=stopp.a(4)
  return stopp
end

#shitvstroke(notetype = :mid, chn = 1) ⇒ Object



263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
# File 'lib/melody_object/g_comeon4.rb', line 263

def shitvstroke(notetype=:mid,chn=1)
  stopp=Section.new
  4.times do
  gopp=Section.new
  #popp=Section.new
  gopp.create_notes(7,2,:rand,notetype)
  gopp.makechannel(chn)
  p 'one'
  gopp.versionize 4
  p 'two'
  gopp.alter_versions_all(:alter_pitch,"Alter_Pitch_Paramobj",7)
  p 'three'
  q=gopp.threadout(evener(32,:m))
  p 'four'
  stopp.addon(q)
  p 'five'
  #q.repl(q.a(rand(3)+1))
  p 'six'
  end
  p 'seven'
  #stopp.threadout(evener(64))
  #stopp=stopp.a(4)
  return stopp
end

#shityrstroke(notetype = :mid, chn = 1) ⇒ Object



229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
# File 'lib/melody_object/g_comeon4.rb', line 229

def shityrstroke(notetype=:mid,chn=1)
  stopp=Section.new
  4.times do
  gopp=Section.new
  #popp=Section.new
  gopp.create_notes(7,(rand(3)+1)*3,:rand,notetype)
  gopp.makechannel(chn)
  q=gopp.threadout(evener(rand(4)+2,:m))
  stopp.addon(q)
  q.repl(q.a(rand(3)+1))
  end
  stopp.threadout(evener(32))
  #stopp=stopp.a(4)
  return stopp
end

#shitystroke(notetype = :mid, chn = 1) ⇒ Object



213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
# File 'lib/melody_object/g_comeon4.rb', line 213

def shitystroke(notetype=:mid,chn=1)
  stopp=Section.new
  4.times do
  gopp=Section.new
  #popp=Section.new
  gopp.create_notes(7,1,:rand,notetype)
  gopp.makechannel(chn)
  q=gopp.threadout(evener(rand(4)+2,:m))
  stopp.addon(q)
  q.repl(q.a(rand(3)+1))
  end
  stopp.threadout(evener(32))
  #stopp=stopp.a(4)
  return stopp
end

#shjrtstroke(notetype = :all, chn = 3) ⇒ Object



140
141
142
143
144
145
146
147
148
149
150
151
152
153
# File 'lib/melody_object/g_comeon4.rb', line 140

def shjrtstroke(notetype=:all,chn=3)
  stopp=Section.new
  2.times do
  gopp=Section.new
  #popp=Section.new
  gopp.create_notes(rand(16)+1,rand(2)+1,:rand,notetype)
  gopp.makechannel(chn)
  stopp.addon(gopp)
  p=gopp.threadout(evener(rand(32)+1,:m))
  q=p.threadout(evener(32,:m))
  q.repl(q.a(2))
  end
  return stopp
end

#shortstroke(notetype = :all, chn = 3) ⇒ Object



125
126
127
128
129
130
131
132
133
134
135
136
137
138
# File 'lib/melody_object/g_comeon4.rb', line 125

def shortstroke(notetype=:all,chn=3)
  stopp=Section.new
  4.times do
  gopp=Section.new
  #popp=Section.new
  gopp.create_notes(rand(16)+1,rand(2)+1,:rand,notetype)
  gopp.makechannel(chn)
  stopp.addon(gopp)
  p=gopp.threadout(evener(rand(32)+1,:m))
  q=p.threadout(evener(32,:m))
  q.repl(q.a(2))
  end
  return stopp
end

#shortystroke(notetype = :all, chn = 3) ⇒ Object



183
184
185
186
187
188
189
190
191
192
193
194
195
196
# File 'lib/melody_object/g_comeon4.rb', line 183

def shortystroke(notetype=:all,chn=3)
  stopp=Section.new
  1.times do
  gopp=Section.new
  #popp=Section.new
  gopp.create_notes(rand(12)+16,(rand(8)+1)*(rand(3)+1),:rand,notetype)
  gopp.makechannel(chn)
  stopp.addon(gopp)
  p=gopp.threadout(evener(rand(8)+16,:m))
  q=p.threadout(evener(32,:m))
  #q.repl(q.a(2))
  end
  return stopp
end

#si(fun, num = 1) ⇒ Object



28
29
30
31
32
33
# File 'lib/melody_object/g_comeon4.rb', line 28

def si(fun,num=1)
  s=makeinstances(fun,num)
  d=Section.new
  s.each{|e| d.addon(e)}
  return d
end

#sounn(note, gran, len) ⇒ Object



67
68
69
70
71
72
73
74
75
76
77
78
# File 'lib/melody_object/g_comeon4.rb', line 67

def sounn(note,gran,len)
  timingary=[]
  noteary=[]
  0.upto(0) {
  noteary.push(note)
  timingary.push(gran)
  }

  a=objfromarys(noteary,timingary,len)
  a.makechannel 3
  return a
end

#sproutenapply(ary) ⇒ Object



2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
# File 'lib/melody_object/Level_three.rb', line 2

def sproutenapply(ary)
b=[]
ary.each {|d|
f=Section.new
h=Hash.new
d.each_index do |e|
h.store(hasharr[e],d[e])
end
#~ h.each_pair do |d,e| puts "#{d} #{e}" end
f.sproute(h) {(rand(4)+1)*12}
b.push f.apply(*qanx)
#~ sbaby.to_json if d=a[0]
}

return b

end

#ssounObject



39
40
41
# File 'lib/melody_object/g_comeon4.rb', line 39

def ssoun
s(seoun,deoun)
end

#staObject



105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
# File 'lib/melody_object/g_comeon4.rb', line 105

def sta
  
  timingary=[]
  noteary=[]
  fee=rand(4)+1
  feei=fee
  rdi=rd
  
 0.upto(fee) {timingary.push(16/feei)}
  x=GotimeObject.new(timingary)
  topp=Section.new(x)
  noteary[0]=rd
  1.upto(fee-1) {noteary.push(rdi)}
  noteary.push(rd)
  noteary.each {|d| topp.addon g_comeon41(d)}
     $fyl.puts timingary.join(',')
  return topp

end

#stedyObject



400
401
402
403
404
405
406
407
408
409
410
411
412
# File 'lib/melody_object/g_comeon4.rb', line 400

def stedy
  timingary=[]
noteary=[]
fee=15
0.upto(fee) {timingary.push(1)}
x=GotimeObject.new(timingary)
topp=Section.new(x)
0.upto(fee-1) {noteary.push(0)}
noteary.push(42)
noteary.each {|d| topp.addon g_comeon41(d)}

return topp
end

#stopthreadObject



748
749
750
751
752
# File 'lib/melody_object/g_comeon4.rb', line 748

def stopthread
  stopthread=Threadset.new
stopthread.addon(s_topp,aadd)
return stopthread
end

#t(*arr) ⇒ Object



425
426
427
428
429
430
431
432
433
434
# File 'lib/melody_object/g_comeon4.rb', line 425

def t(*arr)
don=Section.new
aadd=Threadset.new
#p "hi #{arr.class}"
#       arr.each {|d| p d.class}
arr.each{|s|
  aadd.addon(s)}
don.addon(aadd)
return don
end

#wuObject



471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
# File 'lib/melody_object/g_comeon4.rb', line 471

def wu
  #~ s=Section.new 
  a=g_combin(['g_comeon55','g_comeon51'])
  a=a.array_out(4)
  t=g_combin(['g_comeon55','g_comeon50'])
  t=t.array_out(4)
  z=g_combin(['g_comeon55','g_comeon56'])
  z=z.array_out(64)
  s=Section.new
  s.addon(a,t)
  s=s.array_out(8)
  s.addon(z)
  #~ s=s.array_out 8
   #~ s.addon(g_comeon60,d)
   #~ s.makechannel 1
return s
end