Questions tagged [pyo]

A Python DSP module written in C

37 questions
5
votes
2 answers

Playing sound in pyo and python

I am trying out the pyo for python. I installed the pyo for ubuntu using these commands from the homepage: sudo apt-get install libjack-jackd2-dev libportmidi-dev portaudio19-dev liblo-dev sudo apt-get install libsndfile-dev python-dev…
user4813927
5
votes
1 answer

Pyo server.boot() fails with pyolib._core.PyoServerStateException on Ubuntu 14.04

I installed pyo on Ubuntu 14.04 without jack and running Python 2.7.I followed the Debian-based installing instructions written in pyo wiki. This was the code i used (it's in the pyo introduction page): from pyo import * s =…
Lucas Menicucci
  • 468
  • 3
  • 7
  • 17
3
votes
1 answer

python3 -O file.py didn't create file.pyo

I wrote a simple script test.py, containing: print('hello') and then use python -O test.py to run it. I expected this to create a test.pyo file but it did not. My version is Python 3.5.2. Why was no cache file created?
jacin
  • 33
  • 4
2
votes
1 answer

Can't install pyo using pip

When trying to install pyo using pip I get error $ pip install pyo Collecting pyo Using cached pyo-1.0.4.tar.gz (6.1 MB) Preparing metadata (setup.py) ... error error: subprocess-exited-with-error × python setup.py egg_info did not run…
VA splash
  • 553
  • 1
  • 8
  • 25
2
votes
1 answer

Can't print Python pyo

Help, I can't seem to print anything as soon as I call pyo audio server. It just exits without returning anything. Even something like this: from pyo import * s = Server() print("this is not printed") s.boot() x = 3.4 print(x,"neither are…
Bob Dole
  • 21
  • 2
2
votes
0 answers

Long error while trying to install pyo library using pip on windows 10

I have a problem installing pyo, after a long fight with PATH problem when I try to install pyo library I have this error: ERROR: Command errored out with exit status 1: command:…
Michu
  • 21
  • 2
2
votes
1 answer

Python 2.7 and Pyo, Server must be booted before creating any audio project

I am using Pyo (http://ajaxsoundstudio.com/software/pyo/) in Python 2.7.14 and I an trying to play an audio file with this code from pyo import * s = Server() s.boot() s.start() sf = SfPlayer("C:\Users\name\Downloads\audio.mp3", speed=1,…
romoon
  • 21
  • 3
2
votes
1 answer

pythonw.exe crashes when using pyo in PsychoPy

I'm generating an experiment in PsychoPy (v1.84.2 on Windows 7), which requires a short tone. The lines of code around the sound generation are: print '1' startTone = sound.Sound(value='B', secs=0.15, octave=5, sampleRate=44100, bits=16, name='',…
JAP
  • 21
  • 1
2
votes
2 answers

Playing sound in Python using Pyo

I'm trying to play sounds using the pyo library. The following code: from psychopy import sound, logging, core logging.console.setLevel(logging.DEBUG) from pyo import * s = Server() s.setInputDevice(4) s.setOutputDevice(4) s.boot() s.start() print…
Docconcoct
  • 2,040
  • 4
  • 28
  • 52
2
votes
0 answers

Psychopy does not quit at end of script when using sounds

I've encountered an odd bug using psychopy recently, where my script does not kill psychopy when it is terminating. This only happens when I add a sound to my routine and when I make psychopy generate a sound or play a sound from a file. In other…
Bastien
  • 362
  • 2
  • 7
  • 21
1
vote
1 answer

Pyo - outputting to multiple audio channels

I'm using Pyo to generate sounds and have been having issues outputting the audio to more than one channel. I've looked through the documentation and can't seem to find a method of sending the output to more than one channel at a time. For example…
Suezzeus
  • 31
  • 4
1
vote
1 answer

Running Multiple If-Loops on Python for Music Production?

I'm creating a simple music production program for a final class project in Python and using pyo for the audio integration. My goal is for users to be able to create simple drum patterns that play back at a BPM they choose. I have created a function…
1
vote
1 answer

Combining multiple input channels to one output channel audio live

I am trying to make my own basic mixer and wanted to know how I could take multiple channels of input audio and outputting all of the channels as one mixed audio source with controllable levels for each input channel. Right now I am trying to use…
Derick Mathews
  • 347
  • 2
  • 3
  • 12
1
vote
1 answer

Python: installing psychopy audiolib

I'm really sorry if this is a stupid question, but here it is. I'm using Python and I've installed psychopy via anaconda command prompt in class. Now I want to use psychopy sound functions. So I tried to import sound, but get that there's no API…
Caeline
  • 119
  • 3
  • 13
1
vote
1 answer

Having trouble using pyo in kivy

I'm not sure if anyone has any experience with this, but I'm trying to write a program using kivy and pyo(Python digital signal processing module). This is what the beginning of my code looks like: from pyo import * import time, kivy …
1
2 3