Commits

uniqx committed 6092404

playing with oneliners ^^

Comments (0)

Files changed (6)

algorithmic-oneline-music/curv.py

+#! /usr/bin/env python
+# -*- coding: utf-8 -*-
+#
+#  Copyright (C) 2011 uniqx
+#   Metalab, 1010 Vienna, Austria
+#
+# the algorithms and music generated by them are available to you under
+# following licence:
+#
+#  Creative Commons Attribution-ShareAlike 3.0 Austria License
+#  http://creativecommons.org/licenses/by-sa/3.0/at/
+#
+
+import oneline
+import math
+
+if __name__ == '__main__':
+  
+  def curv(t):
+    return t&t>>6
+    
+  oneline.make_wav(func=curv,filename='curv.wav',print_frames=True)
+  
+
+

algorithmic-oneline-music/oneline.pyc

Binary file added.

algorithmic-oneline-music/unitz1.py

+#! /usr/bin/env python
+# -*- coding: utf-8 -*-
+#
+#  Copyright (C) 2011 uniqx
+#   Metalab, 1010 Vienna, Austria
+#
+# the algorithms and music generated by them are available to you under
+# following licence:
+#
+#  Creative Commons Attribution-ShareAlike 3.0 Austria License
+#  http://creativecommons.org/licenses/by-sa/3.0/at/
+#
+
+import oneline
+import math
+
+if __name__ == '__main__':
+  
+  def unitz(t):
+    return (t|t>>8)
+  
+  oneline.make_wav(func=unitz,filename='unitz.wav')
+  
+
+

algorithmic-oneline-music/unitz2.py

+#! /usr/bin/env python
+# -*- coding: utf-8 -*-
+#
+#  Copyright (C) 2011 uniqx
+#   Metalab, 1010 Vienna, Austria
+#
+# the algorithms and music generated by them are available to you under
+# following licence:
+#
+#  Creative Commons Attribution-ShareAlike 3.0 Austria License
+#  http://creativecommons.org/licenses/by-sa/3.0/at/
+#
+
+import oneline
+import math
+
+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

+#! /usr/bin/env python
+# -*- coding: utf-8 -*-
+#
+#  Copyright (C) 2011 uniqx
+#   Metalab, 1010 Vienna, Austria
+#
+# the algorithms and music generated by them are available to you under
+# following licence:
+#
+#  Creative Commons Attribution-ShareAlike 3.0 Austria License
+#  http://creativecommons.org/licenses/by-sa/3.0/at/
+#
+
+import oneline
+import math
+
+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

+#! /usr/bin/env python
+# -*- coding: utf-8 -*-
+#
+#  Copyright (C) 2011 uniqx
+#   Metalab, 1010 Vienna, Austria
+#
+# the algorithms and music generated by them are available to you under
+# following licence:
+#
+#  Creative Commons Attribution-ShareAlike 3.0 Austria License
+#  http://creativecommons.org/licenses/by-sa/3.0/at/
+#
+
+import oneline
+import math
+
+if __name__ == '__main__':
+  
+  def unitz(t):
+    return (t|t>>8|t>>2)*(t|t>>12)
+  
+  oneline.make_wav(func=unitz,filename='unitz.wav')
+  
+
+