sndobj-devel Mailing List for The Sound Object Library (Page 2)
Status: Abandoned
Brought to you by:
veplaini
This list is closed, nobody may subscribe to it.
2007 |
Jan
(57) |
Feb
(16) |
Mar
(5) |
Apr
|
May
|
Jun
|
Jul
(8) |
Aug
(24) |
Sep
(12) |
Oct
(4) |
Nov
(11) |
Dec
(9) |
---|---|---|---|---|---|---|---|---|---|---|---|---|
2008 |
Jan
(9) |
Feb
(13) |
Mar
(3) |
Apr
(10) |
May
(11) |
Jun
(12) |
Jul
(8) |
Aug
(9) |
Sep
(1) |
Oct
(24) |
Nov
(11) |
Dec
(19) |
2009 |
Jan
(5) |
Feb
(24) |
Mar
(43) |
Apr
(9) |
May
(14) |
Jun
(28) |
Jul
|
Aug
(6) |
Sep
|
Oct
(4) |
Nov
(10) |
Dec
|
2010 |
Jan
|
Feb
|
Mar
|
Apr
(3) |
May
|
Jun
(2) |
Jul
|
Aug
|
Sep
|
Oct
|
Nov
(9) |
Dec
|
2011 |
Jan
(3) |
Feb
(3) |
Mar
|
Apr
|
May
(2) |
Jun
(1) |
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
2012 |
Jan
|
Feb
|
Mar
|
Apr
(3) |
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
(2) |
Nov
|
Dec
|
2013 |
Jan
(2) |
Feb
|
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
(1) |
Oct
|
Nov
|
Dec
|
2017 |
Jan
(1) |
Feb
|
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
From: Vilson V. <vi...@vo...> - 2010-11-05 06:28:06
|
Hello, I'm trying to build and install SndObj with scons. It works with the commands: $ scons pythonmodule=true $ sudo scons install But the module is not installed at Python packages. So I can't run "import sndobj" on the Python interpreter. Any suggestion? Thanks. -- Vilson Vieira vi...@vo... ((( http://automata.cc ))) ((( http://musa.cc ))) |
From: Daniel S. <das...@gm...> - 2010-06-09 18:22:30
|
Hi, I actually have some sample code that deals with portions of what you talked about. === Buffer audio === This is a bit dated but it was part of a project where I was streaming audio between two pc's (and video). This doesn't actually use SndBuffer as I really wasn't aware of it at the time i wrote this (some time ago) and theres some inconsistency of implementation as a numpy extension for sndobj was committed part way through writing this code, and well its made my life alot easier. You can look here, and at other sources if u like http://github.com/dasacc22/videotalk/blob/master/sound.py === plot spectrum === I have another project called vizi and one thing it does is visualize the audio from each sndobj. The project itself started as opengl, migrated partially to PyQT, and now I'm investigating various alternatives still. Cant seem to make up my mind. Nevertheless, you can see some examples of all those bits in vizi, and specifically u can see this for how I do the visuals (refer to SoundObject.draw_waveform in the following link) http://github.com/dasacc22/vizi/blob/master/src/orb2.py its specific to my project so i do some normalizing to the visuals to fit in the constraint of the project. But overall, popping the sound out into a numpy array makes things pretty easy. The rest u were saying is mostly gui specific in how u choose to implement it On Wed, Jun 9, 2010 at 1:05 PM, Nikolas Francis <cor...@gm...>wrote: > Hello, > > I'm a two week old newbie to OOP and python, but I have lots of Matlab > experience from my research. I found psysndobj a few days ago, and it > looks promising for my current foray into python audio. My long-term > goals using pysndobj are: > > (1) buffer audio streaming in from a microphone > (2) plot the spectrum of the audio stored in the buffer > (3) give the user an option to select a band of frequencies from the > display, in order to band-pass filter subsequent audio buffers around > the chosen frequency-band > (3) update the buffer and spectrum display every second or so > > I gather that pysndobj can do the recording, buffering and filtering, > and I was thinking of pyQT for the GUI. I'm currently far, FAR away > from those goals. Currently, I only understand how to monitor my mic: > > ###Start Code > > import sndobj > import time > > #Create input and output objects > input = sndobj.SndRTIO(1, sndobj.SND_INPUT) > output = sndobj.SndRTIO(1, sndobj.SND_OUTPUT) > > #Setup input object > mic = sndobj.SndIn(input) > > #Set output > output.SetOutput(1, mic) > > #threading > thread = sndobj.SndThread() > thread.AddObj(input, sndobj.SNDIO_IN) > thread.AddObj(output, sndobj.SNDIO_OUT) > thread.AddObj(mic) > > #start processing > thread.ProcOn() > time.sleep(30) > thread.ProcOff() > > ###End Code > > Does anyone have any **simple** examples of how to use SndBuffer in > pysndobj? Comments/other recommendations on using pyQT for displaying > and interacting with the spectrum? I realize that this is a high-level > inqury, but I'm floundering a bit with coding, since its a bit > difficult to find relevant examples online, which is how I learned a > lot in Matlab (by editing other people's code to my purpose). > > Thanks! > > > -- > Nik > > > ------------------------------------------------------------------------------ > ThinkGeek and WIRED's GeekDad team up for the Ultimate > GeekDad Father's Day Giveaway. ONE MASSIVE PRIZE to the > lucky parental unit. See the prize list and enter to win: > http://p.sf.net/sfu/thinkgeek-promo > _______________________________________________ > Sndobj-devel mailing list > Snd...@li... > https://lists.sourceforge.net/lists/listinfo/sndobj-devel > |
From: Nikolas F. <cor...@gm...> - 2010-06-09 18:05:50
|
Hello, I'm a two week old newbie to OOP and python, but I have lots of Matlab experience from my research. I found psysndobj a few days ago, and it looks promising for my current foray into python audio. My long-term goals using pysndobj are: (1) buffer audio streaming in from a microphone (2) plot the spectrum of the audio stored in the buffer (3) give the user an option to select a band of frequencies from the display, in order to band-pass filter subsequent audio buffers around the chosen frequency-band (3) update the buffer and spectrum display every second or so I gather that pysndobj can do the recording, buffering and filtering, and I was thinking of pyQT for the GUI. I'm currently far, FAR away from those goals. Currently, I only understand how to monitor my mic: ###Start Code import sndobj import time #Create input and output objects input = sndobj.SndRTIO(1, sndobj.SND_INPUT) output = sndobj.SndRTIO(1, sndobj.SND_OUTPUT) #Setup input object mic = sndobj.SndIn(input) #Set output output.SetOutput(1, mic) #threading thread = sndobj.SndThread() thread.AddObj(input, sndobj.SNDIO_IN) thread.AddObj(output, sndobj.SNDIO_OUT) thread.AddObj(mic) #start processing thread.ProcOn() time.sleep(30) thread.ProcOff() ###End Code Does anyone have any **simple** examples of how to use SndBuffer in pysndobj? Comments/other recommendations on using pyQT for displaying and interacting with the spectrum? I realize that this is a high-level inqury, but I'm floundering a bit with coding, since its a bit difficult to find relevant examples online, which is how I learned a lot in Matlab (by editing other people's code to my purpose). Thanks! -- Nik |
From: Art B. <ac...@in...> - 2010-04-14 14:54:44
|
OK, back off the road and checking back on this project. Any insights, Daniel or anyone? A simple loop-through of realtime audio doesn't seem like an unreasonable thing to attempt. Am I simply doing something wrong in my code, or is there some reason SndObj actually can't do this? - Art On Apr 5, 2010, at 4/5/10 7:26 PM, Daniel Skinner wrote: > I dont think i've ever connected sndobj to multiple hardware interfaces before which would be my first guess as to what to start looking at. You may have already done this successfully in other cases and noticed its related to the use of SndBuffer, is this the case? > > I may try and play around with this out of curiosity tomorrow, feed the line in of my audio interface to the line out of my built-in audio card. > > On Mon, Apr 5, 2010 at 9:08 PM, Art Botterell <ac...@in...> wrote: > Obviously I'm doing something wrong. I'm a SndObj newbie and a Python-only chap to boot. But I'm trying to get a simple buffered audio-in to audio-out loop to work... and apparently it's not quite as simple as I am. So I'm reaching out for guidance. > > I can substitute an Oscil for the SndRTIO and SndIn and I get a tone out, but somehow feeding the SndBuffer from the realtime input isn't the same. The following runs ok for the prescribed ten seconds, but I hear nothing coming out. > > #!/usr/bin/python > ##################################### > # Testing soundcard loopback > # (this doesn't work) > > import sndobj > import time > > # set all to 16-bit (thanks Daniel Skinner) > vec = 2**16 > > snd = sndobj.SndObj() > > # Set up the input thread to fill a buffer from soundcard input > inThread = sndobj.SndThread() > inp = sndobj.SndRTIO(1, sndobj.SND_INPUT, 512, 4, sndobj.SHORTSAM_LE, snd.GetInput(), vec, sndobj.DEF_SR, 'plughw:1,0') > sndin = sndobj.SndIn(inp, 1, vec) > inBuf = sndobj.SndBuffer(1,512) > inBuf.SetOutput(1, sndin) > inThread.AddObj(sndin) > inThread.AddObj(inBuf, sndobj.SNDIO_OUT) > > # Set up the output thread to play from the buffer over another soundcard output > outThread = sndobj.SndRTThread() > sound = sndobj.SndIn(inBuf) > outp = sndobj.SndRTIO(1, sndobj.SND_OUTPUT, 512, 4, sndobj.SHORTSAM_LE, snd.GetInput(), vec, sndobj.DEF_SR, 'plughw:0,0') > outp.SetOutput(1, sound) > outThread.AddObj(inBuf, sndobj.SNDIO_IN) > outThread.AddObj(sound) > outThread.AddObj(outp, sndobj.SNDIO_OUT) > > # Run both threads for ten seconds > inThread.ProcOn() > outThread.ProcOn() > time.sleep(10) > outThread.ProcOff() > inThread.ProcOff() > > ### EOF > > Thanks in advance for any light that can shine on this! > > - Art > > > ------------------------------------------------------------------------------ > Download Intel® Parallel Studio Eval > Try the new software tools for yourself. Speed compiling, find bugs > proactively, and fine-tune applications for parallel performance. > See why Intel Parallel Studio got high marks during beta. > http://p.sf.net/sfu/intel-sw-dev > _______________________________________________ > Sndobj-devel mailing list > Snd...@li... > https://lists.sourceforge.net/lists/listinfo/sndobj-devel > |
From: Daniel S. <das...@gm...> - 2010-04-06 02:26:26
|
I dont think i've ever connected sndobj to multiple hardware interfaces before which would be my first guess as to what to start looking at. You may have already done this successfully in other cases and noticed its related to the use of SndBuffer, is this the case? I may try and play around with this out of curiosity tomorrow, feed the line in of my audio interface to the line out of my built-in audio card. On Mon, Apr 5, 2010 at 9:08 PM, Art Botterell <ac...@in...> wrote: > Obviously I'm doing something wrong. I'm a SndObj newbie and a Python-only > chap to boot. But I'm trying to get a simple buffered audio-in to audio-out > loop to work... and apparently it's not quite as simple as I am. So I'm > reaching out for guidance. > > I can substitute an Oscil for the SndRTIO and SndIn and I get a tone out, > but somehow feeding the SndBuffer from the realtime input isn't the same. > The following runs ok for the prescribed ten seconds, but I hear nothing > coming out. > > #!/usr/bin/python > ##################################### > # Testing soundcard loopback > # (this doesn't work) > > import sndobj > import time > > # set all to 16-bit (thanks Daniel Skinner) > vec = 2**16 > > snd = sndobj.SndObj() > > # Set up the input thread to fill a buffer from soundcard input > inThread = sndobj.SndThread() > inp = sndobj.SndRTIO(1, sndobj.SND_INPUT, 512, 4, sndobj.SHORTSAM_LE, > snd.GetInput(), vec, sndobj.DEF_SR, 'plughw:1,0') > sndin = sndobj.SndIn(inp, 1, vec) > inBuf = sndobj.SndBuffer(1,512) > inBuf.SetOutput(1, sndin) > inThread.AddObj(sndin) > inThread.AddObj(inBuf, sndobj.SNDIO_OUT) > > # Set up the output thread to play from the buffer over another soundcard > output > outThread = sndobj.SndRTThread() > sound = sndobj.SndIn(inBuf) > outp = sndobj.SndRTIO(1, sndobj.SND_OUTPUT, 512, 4, sndobj.SHORTSAM_LE, > snd.GetInput(), vec, sndobj.DEF_SR, 'plughw:0,0') > outp.SetOutput(1, sound) > outThread.AddObj(inBuf, sndobj.SNDIO_IN) > outThread.AddObj(sound) > outThread.AddObj(outp, sndobj.SNDIO_OUT) > > # Run both threads for ten seconds > inThread.ProcOn() > outThread.ProcOn() > time.sleep(10) > outThread.ProcOff() > inThread.ProcOff() > > ### EOF > > Thanks in advance for any light that can shine on this! > > - Art > > > > ------------------------------------------------------------------------------ > Download Intel® Parallel Studio Eval > Try the new software tools for yourself. Speed compiling, find bugs > proactively, and fine-tune applications for parallel performance. > See why Intel Parallel Studio got high marks during beta. > http://p.sf.net/sfu/intel-sw-dev > _______________________________________________ > Sndobj-devel mailing list > Snd...@li... > https://lists.sourceforge.net/lists/listinfo/sndobj-devel > |
From: Art B. <ac...@in...> - 2010-04-06 02:08:27
|
Obviously I'm doing something wrong. I'm a SndObj newbie and a Python-only chap to boot. But I'm trying to get a simple buffered audio-in to audio-out loop to work... and apparently it's not quite as simple as I am. So I'm reaching out for guidance. I can substitute an Oscil for the SndRTIO and SndIn and I get a tone out, but somehow feeding the SndBuffer from the realtime input isn't the same. The following runs ok for the prescribed ten seconds, but I hear nothing coming out. #!/usr/bin/python ##################################### # Testing soundcard loopback # (this doesn't work) import sndobj import time # set all to 16-bit (thanks Daniel Skinner) vec = 2**16 snd = sndobj.SndObj() # Set up the input thread to fill a buffer from soundcard input inThread = sndobj.SndThread() inp = sndobj.SndRTIO(1, sndobj.SND_INPUT, 512, 4, sndobj.SHORTSAM_LE, snd.GetInput(), vec, sndobj.DEF_SR, 'plughw:1,0') sndin = sndobj.SndIn(inp, 1, vec) inBuf = sndobj.SndBuffer(1,512) inBuf.SetOutput(1, sndin) inThread.AddObj(sndin) inThread.AddObj(inBuf, sndobj.SNDIO_OUT) # Set up the output thread to play from the buffer over another soundcard output outThread = sndobj.SndRTThread() sound = sndobj.SndIn(inBuf) outp = sndobj.SndRTIO(1, sndobj.SND_OUTPUT, 512, 4, sndobj.SHORTSAM_LE, snd.GetInput(), vec, sndobj.DEF_SR, 'plughw:0,0') outp.SetOutput(1, sound) outThread.AddObj(inBuf, sndobj.SNDIO_IN) outThread.AddObj(sound) outThread.AddObj(outp, sndobj.SNDIO_OUT) # Run both threads for ten seconds inThread.ProcOn() outThread.ProcOn() time.sleep(10) outThread.ProcOff() inThread.ProcOff() ### EOF Thanks in advance for any light that can shine on this! - Art |
From: Daniel S. <das...@gm...> - 2009-11-22 19:06:17
|
well, i just noticed that asio source was distributed under sndobj/src and was included automatically with the msvc build. Dont know the details but it works and Im happy. On Sun, Nov 22, 2009 at 1:37 PM, Daniel Skinner <das...@gm...> wrote: > Actually, i was looking over the the license agreement for ASIO and think i > misunderstood the first time around. Specifically, it states that I cant > redistribute the SDK, but its perfectly ok to distribute compiled code based > on the SDK as long as I notify steinberg via a form. > > Does anyone have any experience with that? > > > On Sun, Nov 22, 2009 at 1:25 PM, Daniel Skinner <das...@gm...>wrote: > >> ok, well maybe ill try and see what i can away with using mingw's unistd.h >> and anything relevant, and get a basic test compiled via msvc. I see alot of >> starter code for drop in replacement unistd.h for msvc. Once I can make sure >> thats mostly straight ill post the specifics to the jack audio mailing list. >> >> I would just as soon compile ASIO into the library and be done with it, my >> only interest is realtime support. But i need to be able to redistribute the >> compiled library and as I understand it, the ASIO licensing is restrictive >> in doing this. >> >> >> On Sun, Nov 22, 2009 at 12:58 PM, Victor Lazzarini < >> Vic...@nu...> wrote: >> >>> It'll be good to ask in the Jack list then what headers are used in >>> Windows. I had the impression unistd.h was available on mingw/gcc. I see you >>> are using MSVC, perhaps that will not work. >>> >>> Victor >>> >>> It's pretty much >>> >>> On 22 Nov 2009, at 01:49, Daniel Skinner wrote: >>> >>> unistd.h is where the mess starts, referenced by SndJackIO.cpp >>>> >>>> then, depending on what I do, comment it out, or try a drop in >>>> replacement, i start getting tons of errors from the jack header files and >>>> eventually SndJackIO.cpp >>>> jack/types.h >>>> jack/transport.h >>>> jack/jack.h >>>> >>>> so its hard for me to say what needs to be done. I attached a build log >>>> of if i comment out unistd.h, advice is appreciated >>>> >>>> <build.log>------------------------------------------------------------------------------ >>>> Let Crystal Reports handle the reporting - Free Crystal Reports 2008 >>>> 30-Day >>>> trial. Simplify your report design, integration and deployment - and >>>> focus on >>>> what you do best, core application coding. Discover what's new with >>>> Crystal Reports now. >>>> http://p.sf.net/sfu/bobj-july_______________________________________________ >>>> Sndobj-devel mailing list >>>> Snd...@li... >>>> https://lists.sourceforge.net/lists/listinfo/sndobj-devel >>>> >>> >>> >> > |
From: Daniel S. <das...@gm...> - 2009-11-22 18:37:35
|
Actually, i was looking over the the license agreement for ASIO and think i misunderstood the first time around. Specifically, it states that I cant redistribute the SDK, but its perfectly ok to distribute compiled code based on the SDK as long as I notify steinberg via a form. Does anyone have any experience with that? On Sun, Nov 22, 2009 at 1:25 PM, Daniel Skinner <das...@gm...> wrote: > ok, well maybe ill try and see what i can away with using mingw's unistd.h > and anything relevant, and get a basic test compiled via msvc. I see alot of > starter code for drop in replacement unistd.h for msvc. Once I can make sure > thats mostly straight ill post the specifics to the jack audio mailing list. > > I would just as soon compile ASIO into the library and be done with it, my > only interest is realtime support. But i need to be able to redistribute the > compiled library and as I understand it, the ASIO licensing is restrictive > in doing this. > > > On Sun, Nov 22, 2009 at 12:58 PM, Victor Lazzarini < > Vic...@nu...> wrote: > >> It'll be good to ask in the Jack list then what headers are used in >> Windows. I had the impression unistd.h was available on mingw/gcc. I see you >> are using MSVC, perhaps that will not work. >> >> Victor >> >> It's pretty much >> >> On 22 Nov 2009, at 01:49, Daniel Skinner wrote: >> >> unistd.h is where the mess starts, referenced by SndJackIO.cpp >>> >>> then, depending on what I do, comment it out, or try a drop in >>> replacement, i start getting tons of errors from the jack header files and >>> eventually SndJackIO.cpp >>> jack/types.h >>> jack/transport.h >>> jack/jack.h >>> >>> so its hard for me to say what needs to be done. I attached a build log >>> of if i comment out unistd.h, advice is appreciated >>> >>> <build.log>------------------------------------------------------------------------------ >>> Let Crystal Reports handle the reporting - Free Crystal Reports 2008 >>> 30-Day >>> trial. Simplify your report design, integration and deployment - and >>> focus on >>> what you do best, core application coding. Discover what's new with >>> Crystal Reports now. >>> http://p.sf.net/sfu/bobj-july_______________________________________________ >>> Sndobj-devel mailing list >>> Snd...@li... >>> https://lists.sourceforge.net/lists/listinfo/sndobj-devel >>> >> >> > |
From: Daniel S. <das...@gm...> - 2009-11-22 18:25:37
|
ok, well maybe ill try and see what i can away with using mingw's unistd.h and anything relevant, and get a basic test compiled via msvc. I see alot of starter code for drop in replacement unistd.h for msvc. Once I can make sure thats mostly straight ill post the specifics to the jack audio mailing list. I would just as soon compile ASIO into the library and be done with it, my only interest is realtime support. But i need to be able to redistribute the compiled library and as I understand it, the ASIO licensing is restrictive in doing this. On Sun, Nov 22, 2009 at 12:58 PM, Victor Lazzarini <Vic...@nu... > wrote: > It'll be good to ask in the Jack list then what headers are used in > Windows. I had the impression unistd.h was available on mingw/gcc. I see you > are using MSVC, perhaps that will not work. > > Victor > > It's pretty much > > On 22 Nov 2009, at 01:49, Daniel Skinner wrote: > > unistd.h is where the mess starts, referenced by SndJackIO.cpp >> >> then, depending on what I do, comment it out, or try a drop in >> replacement, i start getting tons of errors from the jack header files and >> eventually SndJackIO.cpp >> jack/types.h >> jack/transport.h >> jack/jack.h >> >> so its hard for me to say what needs to be done. I attached a build log of >> if i comment out unistd.h, advice is appreciated >> >> <build.log>------------------------------------------------------------------------------ >> Let Crystal Reports handle the reporting - Free Crystal Reports 2008 >> 30-Day >> trial. Simplify your report design, integration and deployment - and focus >> on >> what you do best, core application coding. Discover what's new with >> Crystal Reports now. >> http://p.sf.net/sfu/bobj-july_______________________________________________ >> Sndobj-devel mailing list >> Snd...@li... >> https://lists.sourceforge.net/lists/listinfo/sndobj-devel >> > > |
From: Victor L. <Vic...@nu...> - 2009-11-22 17:59:52
|
It'll be good to ask in the Jack list then what headers are used in Windows. I had the impression unistd.h was available on mingw/gcc. I see you are using MSVC, perhaps that will not work. Victor It's pretty much On 22 Nov 2009, at 01:49, Daniel Skinner wrote: > unistd.h is where the mess starts, referenced by SndJackIO.cpp > > then, depending on what I do, comment it out, or try a drop in > replacement, i start getting tons of errors from the jack header > files and eventually SndJackIO.cpp > jack/types.h > jack/transport.h > jack/jack.h > > so its hard for me to say what needs to be done. I attached a build > log of if i comment out unistd.h, advice is appreciated > < > build > .log > > > ------------------------------------------------------------------------------ > Let Crystal Reports handle the reporting - Free Crystal Reports 2008 > 30-Day > trial. Simplify your report design, integration and deployment - and > focus on > what you do best, core application coding. Discover what's new with > Crystal Reports now. http://p.sf.net/sfu/bobj-july_______________________________________________ > Sndobj-devel mailing list > Snd...@li... > https://lists.sourceforge.net/lists/listinfo/sndobj-devel |
From: Daniel S. <das...@gm...> - 2009-11-21 20:07:30
|
Ok i updated SConstruct for related msvc builds of python-sndobj. the msvc-6 folder i left untouched as the projects and workspace convert fine and build fine for c++ projects from what i can tell. Related to python-sndobj and msvc was the inclusion of the new path to the ms sdks as well as pthreads for windows. I altered the install method a bit for windows/msvc (where before absolutely nothing happened from what I could tell) to package up all relevant files and install that to site-packages/sndobj/ directory with a relevant __init__.py created (for neatness since theres a number of files on windows). I also created a basic setup.py for packaging purposes, mainly geared for win32 environment. I went ahead and created a windows msi package and uploaded it to sourceforge as well under PySndObj/ as 2.6.99 I tested the windows install package and it works fine as far as i can tell, testing with my vizi project. I *did* build it with numpy=yes and im not aware of what would happen if numpy was not installed and sndobj was installed. If it bombs, then I might just compile two different versions. It really only takes a couple of minutes. I figure a relevant section on the homepage should be created for prebuilt binaries for python, including links to the ubuntu ppa and to the sourceforge win32 msi package. Ill add this when i look up how to log into the ftp portion of the project again. Last bit to do is try and build jack support on win32. I actually vaguely recall trying to do this way back before and it bombed referencing a header file that either was only available through cygwin or just wasn't available on windows, period. I'll see again soon enough what the problem was |
From: Daniel S. <das...@gm...> - 2009-11-20 15:09:06
|
Thats great, Im going to try and do this build over the weekend. Ill get all my changes together for using the latest ms build tools as well to commit On Fri, Nov 20, 2009 at 6:48 AM, Victor Lazzarini <Vic...@nu...>wrote: > It should not mean more than fixing SConstruct to look for headers and > libraries, and including SndJackIO.cpp in the build. No extra C++ code > should be needed. There is one fix I need to make though, a deprecated > function (jack_client_new) needs to be replaced by a similar function in > the later APIs. It's simple and I'll do it as soon as I can. However this > should not cause any problems with the build. > > Victor > > > On 20 Nov 2009, at 05:30, Daniel Skinner wrote: > > Im a total noob when it comes to C++ as Ive never solely worked on any > major project before, but what im curious about is what kind of work might > be involved with getting sndobj working with jack on the windows platform. > > Theres an installer on their website, http://jackaudio.org/download and i > remember playing around with it some months back successfully. > > Im just wondering if this is an in-depth programming task, a patching job > of sorts, or a little of both. Any heads up before i go getting my feet wet > is appreciated. > > Thanks, > Daniel > > ------------------------------------------------------------------------------ > Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day > > trial. Simplify your report design, integration and deployment - and focus > on > what you do best, core application coding. Discover what's new with > Crystal Reports now. > http://p.sf.net/sfu/bobj-july_______________________________________________ > Sndobj-devel mailing list > Snd...@li... > https://lists.sourceforge.net/lists/listinfo/sndobj-devel > > > |
From: Victor L. <Vic...@nu...> - 2009-11-20 11:48:24
|
It should not mean more than fixing SConstruct to look for headers and libraries, and including SndJackIO.cpp in the build. No extra C++ code should be needed. There is one fix I need to make though, a deprecated function (jack_client_new) needs to be replaced by a similar function in the later APIs. It's simple and I'll do it as soon as I can. However this should not cause any problems with the build. Victor On 20 Nov 2009, at 05:30, Daniel Skinner wrote: > Im a total noob when it comes to C++ as Ive never solely worked on > any major project before, but what im curious about is what kind of > work might be involved with getting sndobj working with jack on the > windows platform. > > Theres an installer on their website, http://jackaudio.org/download > and i remember playing around with it some months back successfully. > > Im just wondering if this is an in-depth programming task, a > patching job of sorts, or a little of both. Any heads up before i go > getting my feet wet is appreciated. > > Thanks, > Daniel > ------------------------------------------------------------------------------ > Let Crystal Reports handle the reporting - Free Crystal Reports 2008 > 30-Day > trial. Simplify your report design, integration and deployment - and > focus on > what you do best, core application coding. Discover what's new with > Crystal Reports now. http://p.sf.net/sfu/bobj-july_______________________________________________ > Sndobj-devel mailing list > Snd...@li... > https://lists.sourceforge.net/lists/listinfo/sndobj-devel |
From: Daniel S. <das...@gm...> - 2009-11-20 05:30:45
|
Im a total noob when it comes to C++ as Ive never solely worked on any major project before, but what im curious about is what kind of work might be involved with getting sndobj working with jack on the windows platform. Theres an installer on their website, http://jackaudio.org/download and i remember playing around with it some months back successfully. Im just wondering if this is an in-depth programming task, a patching job of sorts, or a little of both. Any heads up before i go getting my feet wet is appreciated. Thanks, Daniel |
From: Daniel S. <das...@gm...> - 2009-11-18 21:18:00
|
Hi, I've just built python-sndobj for the latest ubuntu release, which can be seen here, https://launchpad.net/~dasacc22/+archive/sndobj adding the following to /etc/apt/sources.list # python-sndobj deb http://ppa.launchpad.net/dasacc22/sndobj/ubuntu karmic main deb-src http://ppa.launchpad.net/dasacc22/sndobj/ubuntu karmic main and you can add the key like so (to not be pestered with warning messages), sudo apt-key adv --recv-keys --keyserver keyserver.ubuntu.comB0753F0BBFCCC44D finished with of course sudo aptitude update sudo aptitude install python-sndobj |
From: Daniel S. <das...@gm...> - 2009-10-19 15:15:35
|
I have a ppa you can use if your using jaunty, ill be making karmic packages after the official release when i have some time https://launchpad.net/~dasacc22/+archive/sndobj/+packages On Sun, Oct 18, 2009 at 11:23 PM, Mason Fischer <moo...@gm...>wrote: > Hey, > Yes, I meant that I copied _sndobj.so my mistake. I am using > Ubuntu. I am willing to help set up a repo if I can. > Thanks, > > -Mason Fischer > > On Sun, Oct 18, 2009 at 8:41 PM, Daniel Skinner <das...@gm...> > wrote: > > Hi, > > What distribution are you building on? There are packages for debian > based, > > x86, amd64, lpia, also if your using fedora, there is some work i think > for > > building the appropriate rpm, maybe i could look into setting up some > kind > > of repo if its needed. > > > > On Sun, Oct 18, 2009 at 3:17 PM, Mason Fischer <moo...@gm...> > > wrote: > >> > >> Hello, > >> Excited to get started using python SndObj but I am having > >> issues building/installing it. > >> The error is: > >> > >> scons: *** [/usr/lib/python2.6/dist-packages/_sndobj.so] Source > >> `_sndobj.so' not found, needed by target > >> `/usr/lib/python2.6/dist-packages/_sndobj.so'. > >> > >> I have tried copying _libsndobj.so to > >> /usr/lib/python2.6/dist-packages/ and /usr/local/lib > >> > >> Any help would greatly appreciated. > >> > >> Thanks in advance, > >> > >> The build log and install log are attached > >> > >> -Mason Fischer > >> > >> > >> > ------------------------------------------------------------------------------ > >> Come build with us! The BlackBerry(R) Developer Conference in SF, CA > >> is the only developer event you need to attend this year. Jumpstart your > >> developing skills, take BlackBerry mobile applications to market and > stay > >> ahead of the curve. Join us from November 9 - 12, 2009. Register now! > >> http://p.sf.net/sfu/devconference > >> _______________________________________________ > >> Sndobj-devel mailing list > >> Snd...@li... > >> https://lists.sourceforge.net/lists/listinfo/sndobj-devel > >> > > > > > |
From: Daniel S. <das...@gm...> - 2009-10-19 00:49:41
|
Hi, What distribution are you building on? There are packages for debian based, x86, amd64, lpia, also if your using fedora, there is some work i think for building the appropriate rpm, maybe i could look into setting up some kind of repo if its needed. On Sun, Oct 18, 2009 at 3:17 PM, Mason Fischer <moo...@gm...>wrote: > Hello, > Excited to get started using python SndObj but I am having > issues building/installing it. > The error is: > > scons: *** [/usr/lib/python2.6/dist-packages/_sndobj.so] Source > `_sndobj.so' not found, needed by target > `/usr/lib/python2.6/dist-packages/_sndobj.so'. > > I have tried copying _libsndobj.so to > /usr/lib/python2.6/dist-packages/ and /usr/local/lib > > Any help would greatly appreciated. > > Thanks in advance, > > The build log and install log are attached > > -Mason Fischer > > > ------------------------------------------------------------------------------ > Come build with us! The BlackBerry(R) Developer Conference in SF, CA > is the only developer event you need to attend this year. Jumpstart your > developing skills, take BlackBerry mobile applications to market and stay > ahead of the curve. Join us from November 9 - 12, 2009. Register now! > http://p.sf.net/sfu/devconference > _______________________________________________ > Sndobj-devel mailing list > Snd...@li... > https://lists.sourceforge.net/lists/listinfo/sndobj-devel > > |
From: victor <Vic...@nu...> - 2009-10-18 21:13:24
|
The Python module is called _sndobj.so, not _libsndobj.so. The SndObj library is built into either libsndobj.so or libsndobj.a, depending if you are using dynamic or static builds. Victor ----- Original Message ----- From: "Mason Fischer" <moo...@gm...> To: <snd...@li...> Sent: Sunday, October 18, 2009 8:17 PM Subject: [Sndobj-devel] Build error: Source `_sndobj.so' not found > Hello, > Excited to get started using python SndObj but I am having > issues building/installing it. > The error is: > > scons: *** [/usr/lib/python2.6/dist-packages/_sndobj.so] Source > `_sndobj.so' not found, needed by target > `/usr/lib/python2.6/dist-packages/_sndobj.so'. > > I have tried copying _libsndobj.so to > /usr/lib/python2.6/dist-packages/ and /usr/local/lib > > Any help would greatly appreciated. > > Thanks in advance, > > The build log and install log are attached > > -Mason Fischer > -------------------------------------------------------------------------------- > ------------------------------------------------------------------------------ > Come build with us! The BlackBerry(R) Developer Conference in SF, CA > is the only developer event you need to attend this year. Jumpstart your > developing skills, take BlackBerry mobile applications to market and stay > ahead of the curve. Join us from November 9 - 12, 2009. Register now! > http://p.sf.net/sfu/devconference -------------------------------------------------------------------------------- > _______________________________________________ > Sndobj-devel mailing list > Snd...@li... > https://lists.sourceforge.net/lists/listinfo/sndobj-devel > |
From: Mason F. <moo...@gm...> - 2009-10-18 19:26:11
|
Hello, Excited to get started using python SndObj but I am having issues building/installing it. The error is: scons: *** [/usr/lib/python2.6/dist-packages/_sndobj.so] Source `_sndobj.so' not found, needed by target `/usr/lib/python2.6/dist-packages/_sndobj.so'. I have tried copying _libsndobj.so to /usr/lib/python2.6/dist-packages/ and /usr/local/lib Any help would greatly appreciated. Thanks in advance, The build log and install log are attached -Mason Fischer |
From: Victor L. <Vic...@nu...> - 2009-08-13 09:26:44
|
Sounds like a bug. I have never tried switching the input to it and then resampling. You could try just running with some audio, without switching the output and then calling resample() to see if it does what it supposed to do. I have used SndLoop like that quite a lot and never encountered a problem. When sampling, the input is connected directly to the output, ie: PutSample((m_output[m_vecpos] = m_input->Output(m_vecpos))); PutSample() writes the signal into memory. So you are getting input OK. Then when you are playing back it switches to this code: m_output[m_vecpos] = GetSample(); m_point += m_pitch; m_rpointer = (long)m_point; while(m_point >= m_size) m_point -= m_size; while(m_point < 0) m_point += m_size; Now the output is connected to memory only (through GetSample()). The playback speed is controlled by m_pitch. If that is for some reason, set to 0, you would be stuck in one memory location and would hear nothing (possibly a click when switching off or on, but nothing else). Make sure pitch is not 0. Looking at the code, I can't see what else could be wrong. Calling SetInput() only points the input object to a different object. Victor At 01:30 13/08/2009, Daniel Skinner wrote: >Hi, > >Ive created a SndLoop object with a default input of sndobj.SndIn() >with a sample time of 2 seconds. As I understand, at this point is >should have sampled 2 seconds of nothing and be playing in a >continuous loop. Is that correct? > >Afterwards I play back a wav file with SndRead and sometime during >the playback i > >sndloop.SetInput(sndread) >sndloop.ReSample() > >effectively. As it resamples for 2 seconds I can immediately see the >output of the sndloop as it plays back everything it is sampling and >then at 2 seconds it stops. No looping or anything. I could also set >the input to an oscili and it will produce the same effect. 2 >seconds of pushing the same sound data to the output during >resampling, then silence afterwards, no looping. Im showing no >errors on the object and i can repeat the process as many times as i like. > >On a side note, its exciting to see with sndobj that i can start >sampling any portion of a signal chain that i may have going and >start messing with it. This is one of the first things i do when >creating ambient background noise for music i mix. Kudos > >Thanks, >Daniel >------------------------------------------------------------------------------ >Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day >trial. Simplify your report design, integration and deployment - and focus on >what you do best, core application coding. Discover what's new with >Crystal Reports now. http://p.sf.net/sfu/bobj-july >_______________________________________________ >Sndobj-devel mailing list >Snd...@li... >https://lists.sourceforge.net/lists/listinfo/sndobj-devel Victor Lazzarini Music Technology Laboratory Music Department National University of Ireland, Maynooth |
From: Daniel S. <das...@gm...> - 2009-08-13 00:30:52
|
Hi, Ive created a SndLoop object with a default input of sndobj.SndIn() with a sample time of 2 seconds. As I understand, at this point is should have sampled 2 seconds of nothing and be playing in a continuous loop. Is that correct? Afterwards I play back a wav file with SndRead and sometime during the playback i sndloop.SetInput(sndread) sndloop.ReSample() effectively. As it resamples for 2 seconds I can immediately see the output of the sndloop as it plays back everything it is sampling and then at 2 seconds it stops. No looping or anything. I could also set the input to an oscili and it will produce the same effect. 2 seconds of pushing the same sound data to the output during resampling, then silence afterwards, no looping. Im showing no errors on the object and i can repeat the process as many times as i like. On a side note, its exciting to see with sndobj that i can start sampling any portion of a signal chain that i may have going and start messing with it. This is one of the first things i do when creating ambient background noise for music i mix. Kudos Thanks, Daniel |
From: Daniel S. <das...@gm...> - 2009-08-05 17:43:58
|
jack is prone to crackling if the sound server is not started correctly. Most notably this involves the period, buffer, sample rate, and the realtime setting. If your using jack with the builtin audio card of your pc you'll want to make sure to have a sizable period/frames. If you have a pro audio usb/firewire device, or whatever the case, Jack is definately the way to go, and I've read alot of people report success with such devices using a sample rate of 48000 and a buffer of 3, adjusting period size to your mileage. I dont know what version of xubuntu your using but if its an older version, i might recommend a clean upgrade. Im not sure if xubuntu usings a sound server by default but if i were to guess, it would be the default ubuntu pulse audio which has been getting alot of major overhauls as of late. pulseaudio is the name of the package in the repos and another option is esound, which pulseaudio is meant to replace. Having either installed and configured correctly should be enough to share your sound (not with jack, just the SndRTIO class) as anything that trys to access the alsa hardware will get automatically routed to the sound server. pulseaudio should be (hopefully) correctly configured from a fresh install of the latest ubuntu. 2009/8/5 Renaud Chénard <rch...@gm...> > Ok, thanks. > > In fact, i have maid a code to use jack, but i don't understand why > 50% of the time, there is crack-noises in the outputing sound. > Could it be because i use the callback-function of the sndthread to do > many actions in python ? > > I try to do a sequencer "à la" LMMS, with the same simplicity of no > need of other software. > Jack is nice, but if i can avoid it, i will be glad. > > At least, is it possible to see if the alsa-output is available ? > > Renaud > > > ------------------------------------------------------------------------------ > Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day > trial. Simplify your report design, integration and deployment - and focus > on > what you do best, core application coding. Discover what's new with > Crystal Reports now. http://p.sf.net/sfu/bobj-july > _______________________________________________ > Sndobj-devel mailing list > Snd...@li... > https://lists.sourceforge.net/lists/listinfo/sndobj-devel > |
From: Renaud C. <rch...@gm...> - 2009-08-05 09:23:18
|
Ok, thanks. In fact, i have maid a code to use jack, but i don't understand why 50% of the time, there is crack-noises in the outputing sound. Could it be because i use the callback-function of the sndthread to do many actions in python ? I try to do a sequencer "à la" LMMS, with the same simplicity of no need of other software. Jack is nice, but if i can avoid it, i will be glad. At least, is it possible to see if the alsa-output is available ? Renaud |
From: victor <Vic...@nu...> - 2009-08-05 08:29:34
|
There are three possibilities I know of: dmix, pulseaudio, jack. The first two would work with alsa output (pulseaudio uses an alsa plugin). For Jack, you will use SndJackIO instead of SndRTIO. Of the three, Jack is the pro-audio choice and the only one I used so far. Victor ----- Original Message ----- From: "Renaud Chénard" <rch...@gm...> To: <snd...@li...> Sent: Wednesday, August 05, 2009 8:13 AM Subject: [Sndobj-devel] Output > Hello, > > I have a question about output. > > I am on xubuntu, and when i want to use sndobj, i have to be sure that > any other program is using the output. > For example, if i have watch a flash video, i have to close mozilla, > same thing with audacious. > I've use gstreamer who had no problem with "outputing" with other > programs. > > Is there a way to use the alsa output in parallel with other programs ? > If not, is it possible to check the output to see if it's free ? > > Thanks by advance > > Renaud > > ------------------------------------------------------------------------------ > Let Crystal Reports handle the reporting - Free Crystal Reports 2008 > 30-Day > trial. Simplify your report design, integration and deployment - and focus > on > what you do best, core application coding. Discover what's new with > Crystal Reports now. http://p.sf.net/sfu/bobj-july > _______________________________________________ > Sndobj-devel mailing list > Snd...@li... > https://lists.sourceforge.net/lists/listinfo/sndobj-devel |
From: Renaud C. <rch...@gm...> - 2009-08-05 07:13:31
|
Hello, I have a question about output. I am on xubuntu, and when i want to use sndobj, i have to be sure that any other program is using the output. For example, if i have watch a flash video, i have to close mozilla, same thing with audacious. I've use gstreamer who had no problem with "outputing" with other programs. Is there a way to use the alsa output in parallel with other programs ? If not, is it possible to check the output to see if it's free ? Thanks by advance Renaud |