[Top][All Lists]
[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
- Re: [Traverso-devel] trying latest CVS, (continued)
- Re: [Traverso-devel] trying latest CVS, Remon, 2007/02/12
- Re: [Traverso-devel] trying latest CVS, Jonatan Liljedahl, 2007/02/12
- Re: [Traverso-devel] trying latest CVS, Remon, 2007/02/13
- Re: [Traverso-devel] trying latest CVS, Jonatan Liljedahl, 2007/02/14
- Re: [Traverso-devel] trying latest CVS, Remon, 2007/02/14
- Re: [Traverso-devel] trying latest CVS, Jonatan Liljedahl, 2007/02/15
- Re: [Traverso-devel] trying latest CVS, Remon, 2007/02/15
- Re: [Traverso-devel] trying latest CVS, Jonatan Liljedahl, 2007/02/15
- Re: [Traverso-devel] trying latest CVS,
Remon <=
- [Traverso-devel] extending functionality of traverso by writing command plugins, Remon, 2007/02/14