Pre-Roll And Punch-In

New Message Reply About this list Date view Thread view Subject view Author view Other groups

Subject: Pre-Roll And Punch-In
From: Rocco (linuxmedia2_AT_netscape.net)
Date: Fri Oct 03 2003 - 04:39:06 EEST


Greetings,

I've been trying to work out a way of doing
a "Pre-Roll" followed by a "Punch-In" using
ecasound. In other words, I want to (for
instance) be able to __play__ for a few seconds
and __then__ punch in __after__ that "Pre-Roll"
period has run.

I've tried everything to do it with one command
(and therefor, one pass). The only thing that I
have come up with (so far) is a "pre and post
processing" meathod in which ecasound does some
copying and pasting to "Tmp Files" and then pastes
them into the "PunchTrack.wav" when the Punch-In
process is finished by the user. This works, but
then it introduces other issues. So obviously, it
would be better have one command that does it.

There's an extra step involed if I want to be able
to hear what's on the "PunchTrack" just prior to
the "mistake" (so they can play along with the
previous peice... and allow for more natural,
"seamless" punch-ins). In other words, I want to
have the "PunchTrack" to be included in the
"Pre-Roll" period also. And this adds to the "new
issues" that arise with this "pre and post
processing" approach.

This is what I have come up with. Please excuse My
lack of programming experience. I only know the
basics of bash.

If You can find a way to do this without the "pre
and post processing" steps (hopefully only one "pass")
then please let Me know...

########################################
# CREATE "PUNCH TRACK" ROLL-IN FILE #
########################################
# The segment of the "PunchTrack.wav"
# (that will be included in the "Pre-Roll"
# period) needs to be copied to a tmp file

export RollStart="25"
export RollTime="5"
export PunchStart="30"
export RollAndPunchTime="10"
ecasound -f:16,2,48000 \
-a:1 \
   -i:PunchTrack.wav -y:$RollStart -t:$RollTime \
-a:1 \
    -o:/tmp/Tmp_PunchTrackRollIn.wav

#######################################################
# RECORD "PUNCH-IN" TMP FILE
#######################################################
# The actual "Punch-In" needs to be copied to a tmp
# file so it can later be copied into the "PunchTrack.wav"
# at the right spot

ecasound -f:16,2,48000 \
-a:1 -f:16,2,48000 \
   -i:/dev/dsp \
-a:2 \
   -i:PlayTrack01.wav \
   -y:$RollStart -t:$RollAndPunchTime \
-a:3 \
   -i:PlayTrack02.wav \
   -y:$RollStart -t:$RollAndPunchTime \
-a:4 \
   -i:/tmp/Tmp_PunchTrackRollIn.wav \
-a:2,3,4 \
   -o:/dev/dsp \
-a:1 -f:16,2,48000 \
   -o:/tmp/Tmp_PunchTrackPunchIn.wav

#######################################################
# PASTE "PUNCH-IN" TMP FILE INTO "PunchTrack.wav"
#######################################################
ecasound -f:16,2,48000 \
-a:1 \
   -i:/tmp/Tmp_PunchTrackPunchIn.wav \
   -y:$RollTime \
-a:1 \
   -o:PunchTrack.wav \
   -y:$PunchStart

###############################################################
# End of amature bash file
###############################################################

If You can find a simplier, less cumbersomee way please let Me know.

Rocco


New Message Reply About this list Date view Thread view Subject view Author view Other groups

This archive was generated by hypermail 2b28 : Fri Oct 03 2003 - 04:41:04 EEST