Using sound operator ! for simple command in py script - Audaspace

Hi,
this is my second post about how to use audaspace internal module, and i have few question regarding the process of using it in a script.

i found how to load a factory sound, but it seems mysterious for me, it plays the sound without path directly from my desktop !? :eek:

sound = aud.Factory("music.ogg")

So, it works, ok, but how it is possible ?
how to define a precise location for it in a case wher i want to load many sound ?

i found how to play a synthetized wave using device, not too complicated for a sound designer, but here also, some mysterious append.
This sound is produced by the device itself ! where are the limits ?

i found also a collection of tools in audaspace: limiters/filters/faders/…
can we access it without creating a new operator ?

that my main question today !
:stuck_out_tongue:

i was wondering that i can find how to “handle” sound from python, here is my last try:


import aud
device = aud.device()
music = aud.Factory("mymusicfile.ogg")
handle = device.play(music)

it just play my file from desktop ! if you look at my first post, my question is: how blender can find it without path info ?

the second part, i’ve added at the end of my script:


handle.volume = 0.2
handle.loop_count = 2

Perfect match ! the volume was quite low and it played 2 times ! what a success !

then, next part: i added:


handle.reverse = True
handle.pitch = 0.5

it returns an error, aud.handle has no attribut ‘reverse’, same for pitch !

can you explain ? i don’t see here the rules…help !

Hi,
i would like first thanks nexyon for his collaborative attitude !

So, here i’m, i’ve now completely understood how audaspace is accessible and how to work with audio files, sine waves,etc…
On the other hand, i tried to operate these features from the UI, i need operators of course, but the only one i know is limited to open/pack/unpack sound files !

ok, i’m telling to myself…let’s go for a new operator which can do the following:
from selected strip > lesson (play from buffer), pause toggle resume, stop
it would be an operator used in sequencer panel with some buttons (3)

simple operator, i said …hummm, not so easy.

if you (or nexyon !) can help, welcome !
have a nice day

Hi,

perhaps this post may help. http://blenderartists.org/forum/showthread.php?t=195585&page=3&highlight=wave+sound