traverso-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Traverso-devel] trying latest CVS


From: Remon
Subject: Re: [Traverso-devel] trying latest CVS
Date: Wed, 14 Feb 2007 12:58:50 +0100
User-agent: KMail/1.9.6

Hi Jonatan,

> Sure!
>
> external_processor(clip) {
>   cmd = get_string_from_user(); //pops up dialog with string entry
>   if(cmd==NULL) return; //user pressed Cancel
>
>   tmpfile = make_tmp_filename();
>   export_clip_audio_to_file(tmpfile); //32 bit float works fine with sox
>
>   outfile = make_source_filename(); //just like when recording, guess
>
>                                     //you have a function for this..
>
>   cmd = replace(cmd,"%IF",tmpfile,"%OF",outfile);
>   run_command(cmd);
>
>   delete_file(tmpfile);
>
>   newclip = make_clip_of_whole_source(outfile);
>   remove_clip_from_track(clip);  //should still be available in the
>                                  //source/clip store, if one wants to
>                                  //drag it back...
>   add_clip_to_track(newclip);
> }
>
> example command: "sox %IF %OF lowpass 1000"


So, what about putting this into a Command class, and there we go ?

OK, I'll give it a shot, so you can see how you easily can extend traverso 
with commands like this one!
The next one will be from you :-)

Remon




reply via email to

[Prev in Thread] Current Thread [Next in Thread]