Commits

uniqx committed 22b1c3b

moved the function definitions out of main; lambdafied unitz stuff

Comments (0)

Files changed (12)

algorithmic-oneline-music/curv1.py

 import oneline
 import math
 
+curv = lambda t: t&t>>6
+
 if __name__ == '__main__':
   
-  curv = lambda t: t&t>>6
-    
   oneline.make_wav(func=curv,filename='curv.wav')
   
 

algorithmic-oneline-music/curv2.py

 import oneline
 import math
 
+curv = lambda t: (t&t>>6)|(t^t>>6)
+
 if __name__ == '__main__':
   
-  curv = lambda t: (t&t>>6)|(t^t>>6)
-    
   oneline.make_wav(func=curv,filename='curv.wav')
   
 

algorithmic-oneline-music/curv3.py

 import oneline
 import math
 
+curv = lambda t: (t&t>>6)*((t>>6)+1)
+
 if __name__ == '__main__':
   
-  curv = lambda t: (t&t>>6)*((t>>6)+1)
-    
   oneline.make_wav(func=curv,filename='curv.wav')
   
 

algorithmic-oneline-music/curv4.py

 import oneline
 import math
 
+curv = lambda t: (t&t>>6)*((t>>8)+1)
+
 if __name__ == '__main__':
   
-  curv = lambda t: (t&t>>6)*((t>>8)+1)
-    
   oneline.make_wav(func=curv,filename='curv.wav')
   
 

algorithmic-oneline-music/curv5.py

 import oneline
 import math
 
+curv = lambda t: (t&t>>8)*((t>>6)+1)
+
 if __name__ == '__main__':
   
-  curv = lambda t: (t&t>>8)*((t>>6)+1)
-    
   oneline.make_wav(func=curv,filename='curv.wav')
   
 

algorithmic-oneline-music/curv6.py

 import oneline
 import math
 
+curv = lambda t: (1-((2**17&t)>>17)) * (t&t>>8)*((t>>6)+1) | ((2**17&t)>>17) * (t&t>>6)*((t>>8)+1)
+
 if __name__ == '__main__':
   
-  curv = lambda t: (1-((2**17&t)>>17)) * (t&t>>8)*((t>>6)+1) | ((2**17&t)>>17) * (t&t>>6)*((t>>8)+1)
-    
   oneline.make_wav(func=curv,filename='curv.wav',frame_count=2**18)
   
 

algorithmic-oneline-music/unitz1.py

 import oneline
 import math
 
+unitz = lambda t: (t|t>>8)
+
 if __name__ == '__main__':
   
-  def unitz(t):
-    return (t|t>>8)
-  
   oneline.make_wav(func=unitz,filename='unitz.wav')
   
 

algorithmic-oneline-music/unitz2.py

 import oneline
 import math
 
+unitz = lambda t: (t|t>>8|t>>2)
+
 if __name__ == '__main__':
   
-  def unitz(t):
-    return (t|t>>8|t>>2)
-  
   oneline.make_wav(func=unitz,filename='unitz.wav')
   
 

algorithmic-oneline-music/unitz3.py

 import oneline
 import math
 
+unitz = lambda t: (t|t>>8|t>>2)*(t|t>>16)
+
 if __name__ == '__main__':
   
-  def unitz(t):
-    return (t|t>>8|t>>2)*(t|t>>16)
-  
   oneline.make_wav(func=unitz,filename='unitz.wav')
   
 

algorithmic-oneline-music/unitz4.py

 import oneline
 import math
 
+unitz = lambda t: (t|t>>8|t>>2)*(t|t>>12)
+
 if __name__ == '__main__':
   
-  def unitz(t):
-    return (t|t>>8|t>>2)*(t|t>>12)
-  
   oneline.make_wav(func=unitz,filename='unitz.wav')
   
 

algorithmic-oneline-music/unitz5.py

 import oneline
 import math
 
+unitz = lambda t: (t|t>>8|t>>2)*(t|t>>12) | (t|t>>12|t>>8)*(t|t>>2)
+
 if __name__ == '__main__':
   
-  def unitz(t):
-    return (t|t>>8|t>>2)*(t|t>>12) | (t|t>>12|t>>8)*(t|t>>2)
-  
   oneline.make_wav(func=unitz,filename='unitz.wav')
   
 

algorithmic-oneline-music/unitz6.py

 import oneline
 import math
 
+unitz = lambda t: (t|t>>9|t>>7)*(t|t>>8) ^ (t|t>>5|t>>8)*(t|t>>4)
+
 if __name__ == '__main__':
   
-  def unitz(t):
-    return (t|t>>9|t>>7)*(t|t>>8) ^ (t|t>>5|t>>8)*(t|t>>4)
-  
   oneline.make_wav(func=unitz,filename='unitz.wav')