[SCM] python-pyo/master: adding radiopyo and copying
tiago at users.alioth.debian.org
tiago at users.alioth.debian.org
Sun Aug 31 00:08:37 UTC 2014
The following commit has been merged in the master branch:
commit 321a5590acb6042420d1c48c48a4ee0bf58440d5
Author: Tiago Bortoletto Vaz <tiago at debian.org>
Date: Sat Aug 30 17:14:06 2014 -0400
adding radiopyo and copying
diff --git a/pyolib/COPYING.txt b/COPYING.txt
similarity index 100%
copy from pyolib/COPYING.txt
copy to COPYING.txt
diff --git a/scripts/radiopyo-template.py b/scripts/radiopyo-template.py
new file mode 100644
index 0000000..bb07eec
--- /dev/null
+++ b/scripts/radiopyo-template.py
@@ -0,0 +1,57 @@
+#!/usr/bin/env python
+# encoding: utf-8
+"""
+Template for a RadioPyo song (version 1.0).
+
+A RadioPyo song is a musical python script using the python-pyo
+module to create the audio processing chain. You can connect to
+the radio here : http://radiopyo.acaia.ca/
+
+There is only a few rules:
+ 1 - It must be a one-page script.
+ 2 - No soundfile, only synthesis.
+ 3 - The script must be finite in time, with fade-in and fade-out
+ to avoid clicks between pieces. Use the DURATION variable.
+
+belangeo - 2014
+
+"""
+from pyo import *
+
+################### USER-DEFINED VARIABLES ###################
+### READY is used to manage the server behaviour depending ###
+### of the context. Set this variable to True when the ###
+### music is ready for the radio. TITLE and ARTIST are the ###
+### infos shown by the radio player. DURATION set the ###
+### duration of the audio file generated for the streaming.###
+##############################################################
+READY = False # Set to True when ready for the radio
+TITLE = "Song Title" # The title of the music
+ARTIST = "Artist Name" # Your artist name
+DURATION = 300 # The duration of the music in seconds
+##################### These are optional #####################
+GENRE = "Electronic" # Kind of your music, if there is any
+DATE = 2014 # Year of creation
+
+####################### SERVER CREATION ######################
+if READY:
+ s = Server(duplex=0, audio="offline").boot()
+ s.recordOptions(dur=DURATION, filename="radiopyo.ogg", fileformat=7)
+else:
+ s = Server(duplex=0).boot()
+
+
+##################### PROCESSING SECTION #####################
+# global volume (should be used to control the overall sound)
+fade = Fader(fadein=0.001, fadeout=10, dur=DURATION).play()
+
+
+###
+### Insert your algorithms here...
+###
+
+
+#################### START THE PROCESSING ###################
+s.start()
+if not READY:
+ s.gui(locals())
--
python-pyo packaging
More information about the pkg-multimedia-commits
mailing list