Path: csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!feeder.erje.net!eu.feeder.erje.net!newsfeed.xs4all.nl!newsfeed2.news.xs4all.nl!xs4all!post.news.xs4all.nl!not-for-mail Return-Path: X-Original-To: python-list@python.org Delivered-To: python-list@mail.python.org X-Spam-Status: OK 0.016 X-Spam-Evidence: '*H*': 0.97; '*S*': 0.00; 'tutorial': 0.03; '16,': 0.03; 'ignored': 0.07; 'wednesday,': 0.07; 'snippet': 0.09; 'python': 0.11; 'windows': 0.15; 'effect,': 0.16; 'jacob': 0.16; 'left,': 0.16; 'pygame': 0.16; 'subject:effect': 0.16; 'wrote:': 0.18; 'bit': 0.19; 'module': 0.19; 'trying': 0.19; 'memory': 0.22; 'import': 0.22; 'load': 0.23; 'url:moin': 0.24; 'sort': 0.25; '>': 0.26; 'possibly': 0.26; 'second': 0.26; 'primary': 0.26; 'header:In-Reply-To:1': 0.27; 'skip:p 30': 0.29; 'am,': 0.29; 'dec': 0.30; 'errors': 0.30; 'primarily': 0.30; 'url:mailman': 0.30; 'code': 0.31; 'url:wiki': 0.31; 'os,': 0.31; 'file': 0.32; 'another': 0.32; 'url:python': 0.33; '-----': 0.33; 'could': 0.34; 'december': 0.35; 'something': 0.35; 'but': 0.35; 'subject:Simple': 0.36; 'url:listinfo': 0.36; 'url:org': 0.36; 'easily': 0.37; 'being': 0.38; 'to:addr:python-list': 0.38; 'little': 0.38; 'subject:': 0.39; 'channel': 0.39; 'heard': 0.39; 'itself': 0.39; 'volume': 0.39; 'to:addr:python.org': 0.39; 'either': 0.39; 'skip:p 20': 0.39; 'called': 0.40; 'space': 0.40; 'url:mail': 0.40; 'ian': 0.60; 'free,': 0.61; 'simple': 0.61; 're:': 0.63; 'more': 0.64; 'sound': 0.68; 'received:41': 0.70; 'compiling': 0.84; 'effects,': 0.84; 'played': 0.84; 'stereo': 0.84; 'relating': 0.93 From: "Jacob Kruger" To: References: <65314F0A9A824416A920374265BD359C@JakePC> In-Reply-To: Subject: Re: Simple background sound effect playback Date: Wed, 17 Dec 2014 21:41:40 +0200 MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_NextPart_000_0019_01D01A42.3DE584C0" X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Windows Mail 6.0.6002.18197 X-MimeOLE: Produced By Microsoft MimeOLE V6.1.7601.17609 X-Spam-Score: -1.1 (-) X-Spam-Report: BAYES_00=-1.9, FSL_HELO_NON_FQDN_1=0.001, HTML_MESSAGE=0.001, RDNS_NONE=0.793, * 0.0 FSL_HELO_NON_FQDN_1 No description available. * -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% * [score: 0.0000] * 0.0 HTML_MESSAGE BODY: HTML included in message * 0.8 RDNS_NONE Delivered to internal network by a host with no rDNS X-BeenThere: python-list@python.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: General discussion list for the Python programming language List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Newsgroups: comp.lang.python Message-ID: Lines: 204 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1418846538 news.xs4all.nl 2931 [2001:888:2000:d::a6]:35094 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:82611 This is a multi-part message in MIME format. ------=_NextPart_000_0019_01D01A42.3DE584C0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Ok, trying simple code from a pygame tutorial snippet - nothing happens = - just silent, but with no errors being returned: # play a sound to the left, to the right and to the center # import the time standard module import time # import the pygame module import pygame # start pygame pygame.init() # load a sound file into memory sound =3D pygame.mixer.Sound("bird.ogg") # start playing the sound # and remember on which channel it is being played channel =3D sound.play() # set the volume of the channel # so the sound is only heard to the left channel.set_volume(1, 0) # wait for 1 second time.sleep(1) # do the same to the right channel =3D sound.play() channel.set_volume(0, 1) time.sleep(1) # do the same to the center channel =3D sound.play() channel.set_volume(1, 1) time.sleep(1) #end code Think this is why ignored pygame in past... - think it actually = needs more than itself to be installed, or something. Jacob Kruger Blind Biker Skype: BlindZA ...Roger Wilco wants to welcome you, to the space janitor's closet... ----- Original Message -----=20 From: Ian Kelly=20 To: Python=20 Sent: Wednesday, December 17, 2014 3:49 AM Subject: Re: Simple background sound effect playback On Tue, Dec 16, 2014 at 9:57 AM, Jacob Kruger = wrote: > > Would prefer to use something free, that could work somewhat = cross-platform, but, my primary target is for windows OS, and would = primarily just want to be able to easily trigger playback of either .wav = or .mp3 background sound effects, but, yes, would also be nice to be = able to control them a little bit in terms of volume, possibly stereo = panning as well as playback rate/frequency/pitch? > =20 > I have used something called sound_lib, as well as another one = relating to a sort of windows directSound effect, but, both of them had = issues when working with either py2exe or cx_freeze when it came to = compiling into executable, and main thing is would like to keep it = simple... > =20 > Suggestions? https://wiki.python.org/moin/Audio/ -------------------------------------------------------------------------= ----- --=20 https://mail.python.org/mailman/listinfo/python-list ------=_NextPart_000_0019_01D01A42.3DE584C0 Content-Type: text/html; charset="utf-8" Content-Transfer-Encoding: quoted-printable =EF=BB=BF
Ok, trying simple code from a pygame = tutorial=20 snippet - nothing happens - just silent, but with no errors being=20 returned:
 
# play a sound to the left, to the = right and to the=20 center
 
# import the time standard = module
import=20 time
 
# import the pygame module
import=20 pygame
 

# start pygame
pygame.init()
 
# load a sound file into memory
sound =3D=20 pygame.mixer.Sound("bird.ogg")
 
# start playing the sound
# and remember on which channel it is = being=20 played
channel =3D sound.play()
# set the volume of the = channel
# so the=20 sound is only heard to the left
channel.set_volume(1, 0)
# wait = for 1=20 second
time.sleep(1)
 
# do the same to the right
channel =3D=20 sound.play()
channel.set_volume(0, 1)
time.sleep(1)
 
# do the same to the center
channel =3D=20 sound.play()
channel.set_volume(1, 1)
time.sleep(1)
#end = code
 
Think this is why ignored pygame in past...<smile> - think it = actually needs more than itself to be installed, or=20 something.

Jacob=20 Kruger
Blind Biker
Skype: BlindZA
...Roger Wilco wants to = welcome you,=20 to the space janitor's closet...
----- Original Message -----
From:=20 Ian=20 Kelly
To: Python
Sent: Wednesday, December 17, = 2014 3:49=20 AM
Subject: Re: Simple background = sound=20 effect playback

On Tue, Dec 16, 2014 at 9:57 AM, Jacob Kruger <jacob@blindza.co.za>=20 wrote:
>
> Would prefer to use something free, that could = work=20 somewhat cross-platform, but, my primary target is for windows OS, and = would=20 primarily just want to be able to easily trigger playback of either = .wav or=20 .mp3 background sound effects, but, yes, would also be nice to be able = to=20 control them a little bit in terms of volume, possibly stereo panning = as well=20 as playback rate/frequency/pitch?
>  
> I have used = something=20 called sound_lib, as well as another one relating to a sort of windows = directSound effect, but, both of them had issues when working with = either=20 py2exe or cx_freeze when it came to compiling into executable, and = main thing=20 is would like to keep it simple...<smile>
>  
> = Suggestions?

https://wiki.python.org/moin= /Audio/


--=20
https://mail.python.org/mailman/listinfo/python-list
= ------=_NextPart_000_0019_01D01A42.3DE584C0--