New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
SfPlayer and SfMarker tracebacks #123
Comments
This path, "/sample.wav", means that a file sample.wav is located at the root of the computer... It seems suspicious! Also, SfMarker* objects work only with AIFF files as it needs to read the markers chunk. The warning just says that a component involve in the process (my guess would be portaudio) still use some deprecated carbon calls. Nothing to worry about for now... |
Changed to this:
using a mac, file is in same folder as .py file error message is still the same:
Appreciate your time! |
Is "sample.aif" is a big file? If not, can you attach it so I can try and see what's going wrong? |
Github doesn't support .aif for drag and drop, but i have the .aif here . Thanks for the help with this! |
Something's weird with your soundfile... Here is the output of sox when asking for file info:
If sox can't read the sound (audacity can't open it neither), I doubt pyo will do... How did you produce that file? |
Hmm, yeah its just a sample from a sample pack, just snagged one at random. Its a completely different file from the .wav i used before. Any chance you'd be able to attach an .aiff file that you know is working for me to try, just to confirm on my end that its the issue? |
In this file description it mentions that SFplayer reads many file formats. I mentioned in the first comment, I have tried SFPlayer and SFMarker with both .wav and .aif files. Willing to try whatever on my end, just kind of lost as to why its not happy with my code and files at the moment. |
There is a few samples installed with pyo. Try this code, it should work without issue:
|
Yep, SfPlayer can read many file formats. Only SfMarker* objects need an AIFF. |
Alright so, that runs from the command line without errors. Also tried that with my .wav and it runs. I'm not getting any sound though, or visual indicator of sound from the pyo server window. |
You don't get any sound with your wav file because there is no markers in a wav. Try this:
|
This still just pops up a pyo server that doesn't output any sound :/ |
Let me try your file... |
Closing as i don't think there is an issue here. I'm pretty sure the problem is the format of the file itself or a path problem. |
Have tried with SfPlayer and SfMarker.
Code:
Terminal Output:
Also getting this message every time i run a pyo script, but using
pythonw filename.py
at the terminal seems to allow everything to work with the exception of these sample related calls:"WARNING: 140: This application, or a library it uses, is using the deprecated Carbon Component Manager for hosting Audio Units. Support for this will be removed in a future release. Also, this makes the host incompatible with version 3 audio units. Please transition to the API's in AudioComponent.h."
The text was updated successfully, but these errors were encountered: