[nama] Re: $thiswav shell alias

  • From: "S. Massy" <lists@xxxxxxxxxxxx>
  • To: nama@xxxxxxxxxxxxx
  • Date: Wed, 7 Sep 2011 17:00:14 -0400

On Sat, Aug 20, 2011 at 10:02:45PM -1000, Joel Roth wrote:
> Often you need to do something with a WAV file
> from Nama. 
> 
> Now you can use $thiswav to specify the current
> track/version/wavfile in shell commands.  In other words,
> $thiswav serves as an alias to $this_track->full_path
> 
> nama> ! echo $thiswav
> 
> /home/jroth/nama/untitled/Mixdown_2.wav
> 
> nama> ln -s $thiswav /some/other/songname.wav
> 
> Note that this only works from *inside* Nama.
Wonderful! Are there any other such variables already available? This
could facilitate macro building. For instance, if we had $project_name
and $trackversion variables we could have something like this (beware,
fake syntax):
export {
! lame --preset 192 $thiswav $1/$projectname${trackversion}.mp3
}
nama> mixdown export /tmp/

Then you'd get something like greathit5.mp3 in your /tmp directory.

Cheers,
S.M.


Other related posts: