[sc-users] buffer to ats file
Josh Parmenter
josh at realizedsound.net
Fri Apr 25 12:10:45 PDT 2008
Hi Alo,
Sorry - I have a very busy day! But I will look into this this
weekend. I actually have some students who want a similar thing, so I
will think about the best way to do this.
One warning! atsa pegs the CPU. Doing these things on the fly may
cause some poor SC performance.
What kind of transformations do you want to do on the fly? There may
be some PV processes that you could use to mimic the ATS results. I
have some nice ugens for extracting noise and partials. Not sure if it
would work well... but it may be VERY efficient.
Best,
Josh
On Apr 25, 2008, at 10:54 AM, alo wrote:
> Hello
>
> I would like to analyze real-time inputs with atsa and one way I
> pictured doing it was to record the input into a buffer and then
> extend the buffer class something like this (I added the action
> to .loadCollection at the end of .loadToBuffer):
>
> + Buffer{
>
> asAtsFile{|action|
> var atsapath = "/Users/ise/ats-1.0.osx/atsa";
> var tempPath, atsfile;
> if (path.notNil)
> { tempPath = "recordings/" ++ path.basename }
> { tempPath = "recordings/" ++ "b2a_" ++ Date.getDate.stamp };
> this.write(tempPath, completionMessage: {
> (atsapath + tempPath + (tempPath ++ "ats")).unixCmdThen({
> atsfile = AtsFile((tempPath ++ "ats"),
> this.server).loadToBuffer(action);
> });
> });
> }
>
> }
>
> This seems to work fine until, I am guessing, there are more than 1
> atsa processes at the same time and the otherwise very handy
> unixCmdThen throws a warning and an error e.g.:
>
> WARNING:
> String.unixCmdInferPID - unable to be sure of the atsa PID.
> Compared: [ 0 ] against [ 1257, 1261, 0 ] with result [ 1257, 1261 ]
> Difference function returns [ 1257, 1261 ]
> ERROR:
> String:unixCmdThen - could not infer PID, therefore couldn't wait
> until done!
>
> I would be very grateful for any suggestions how to avoid this. Or,
> perhaps, Josh, you have a better way of using atsa on the fly?
>
> Cheers
> Alo
>
>
> _______________________________________________
> sc-users mailing list
> sc-users at create.ucsb.edu
> http://lists.create.ucsb.edu/mailman/listinfo/sc-users
******************************************
/* Joshua D. Parmenter
http://www.realizedsound.net/josh/
“Every composer – at all times and in all cases – gives his own
interpretation of how modern society is structured: whether actively
or passively, consciously or unconsciously, he makes choices in this
regard. He may be conservative or he may subject himself to continual
renewal; or he may strive for a revolutionary, historical or social
palingenesis." - Luigi Nono
*/
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.create.ucsb.edu/pipermail/sc-users/attachments/20080425/94be8ac4/attachment.html
More information about the sc-users
mailing list