class Object

Public Instance Methods

aadd() click to toggle source
# 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) click to toggle source
# 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) click to toggle source
# 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) click to toggle source
# 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) click to toggle source
# 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) click to toggle source
# 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) click to toggle source
# 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
deoun() click to toggle source
# File lib/melody_object/g_comeon4.rb, line 48
def deoun
  infun('sounn',16,16,71,65,74,65).a 2
  end
du() click to toggle source
# File lib/melody_object/g_comeon4.rb, line 464
def du
  a=g_combin(['wu','g_comeonblu5'])
  return a
end
dum() click to toggle source
# File lib/melody_object/g_comeon4.rb, line 903
def dum
  infun('sounn',16,0)
end
dunn() click to toggle source
# File lib/melody_object/g_comeon4.rb, line 907
def dunn
  infun('sounn',64,0)
  end
duom() click to toggle source
# File lib/melody_object/g_comeon4.rb, line 53
def duom
  infun('sounn',64,128,47)
end
eu() click to toggle source
# 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) click to toggle source
# 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
fanx() click to toggle source
# 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_aadd() click to toggle source
# 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_aadd2() click to toggle source
# 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) click to toggle source
# 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_comeon() click to toggle source
# 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_comeon10() click to toggle source
# File lib/melody_object/g_comeon4.rb, line 647
def g_comeon10
  topp=Section.new(5)
  topp.addon(g_comeon5)
return topp
end
g_comeon11() click to toggle source
# File lib/melody_object/g_comeon4.rb, line 609
def g_comeon11
  topp=Section.new
  topp=g_comeon10

end
g_comeon2() click to toggle source
# 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_comeon3() click to toggle source
# 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) click to toggle source
# 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) click to toggle source
# 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) click to toggle source
# 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) click to toggle source
# 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_comeon5() click to toggle source
# 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_comeon50() click to toggle source
# 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_comeon51() click to toggle source
# 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_comeon55() click to toggle source
# 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_comeon56() click to toggle source
# 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_comeon6() click to toggle source
# 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_comeon60() click to toggle source
# 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) click to toggle source
# 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_comeon70() click to toggle source
# 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_comeon77() click to toggle source
# File lib/melody_object/g_comeon4.rb, line 514
def g_comeon77
  s=Section.new
  s.create_notes(4,:none)
  return s
end
g_comeon8() click to toggle source
# 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_comeon9() click to toggle source
# 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_comeonblu5() click to toggle source
# 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_popp() click to toggle source
# 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) click to toggle source
# 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) click to toggle source
# 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) click to toggle source
# 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) click to toggle source
# 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) click to toggle source
# 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_loaded() click to toggle source
# 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_loaded2() click to toggle source
# 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_loaded3() click to toggle source
# 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_loaded4() click to toggle source
# 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_loaded5() click to toggle source
# 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) click to toggle source
# 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) click to toggle source
# 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) click to toggle source
# 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) click to toggle source
top   --> gotimeobject (which dictates when to play the children)

_|__ | | | | |

# 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) click to toggle source
# 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
qanx() click to toggle source
# 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
rd() click to toggle source
# File lib/melody_object/g_comeon4.rb, line 35
def rd
  rand(5)+40
end
s(*arr) click to toggle source
# 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_topp() click to toggle source
# 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
seoun() click to toggle source
# 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) click to toggle source
# 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) click to toggle source
# 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) click to toggle source
# 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) click to toggle source
# 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) click to toggle source
# 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) click to toggle source
# 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) click to toggle source
# 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) click to toggle source
# 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) click to toggle source
# 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) click to toggle source
# 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
ssoun() click to toggle source
# File lib/melody_object/g_comeon4.rb, line 39
def ssoun
  s(seoun,deoun)
  end
sta() click to toggle source
# 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
stedy() click to toggle source
# 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
stopthread() click to toggle source
# File lib/melody_object/g_comeon4.rb, line 748
def stopthread
  stopthread=Threadset.new
stopthread.addon(s_topp,aadd)
return stopthread
end
t(*arr) click to toggle source
# 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
wu() click to toggle source
# 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