Re: Fwd: Re: merging mono files

"Dr. Mark Bugeja MD" <[email protected]>
Newsgroups gmane.comp.audio.sox
Message-ID <[email protected]>
At the end of the day I only need the merged files. By what I suggested, 
I though I could go one step further of automating the lot with a single 
click since, as you say, subfolders are processed too. So I reckoned 
that creating a structure of folders and subfolders like this, the 
entire lot could be processed without having to go back to the script 
and change the name each time.

I hope to get the most out of the script and should I have reasons to 
process other files similary, all I would have to do is keep the 
structure the same irrespective of the different names that other 
samplesets would carry.

Mark


On 12/12/2016 19:00, Jeremy Nicoll - ml sox users wrote:
> On 2016-12-12 12:12, Dr. Mark Bugeja MD wrote:
>> Should files in subfolders be handled in the same way as those in the
>> main folders, by running the script, then it might be even better to
>> separate the L folders from the R folders:
>>
>> Recit Organ > Left  > Bourdon16L
>>                      > BassoonHautbois8L
>>                      > Cor-De-Buit8L
>>                      > etc etc
>>              > Right > Bourdon16R
>>                      > BassoonHautbois8R
>>                      > Cor-De-Buit8R
>>                      > etc etc
>> NB: each folder has a list of files + 3 folders, each with its own
>> list of files. Structure and names of L folders correspond to R
>> folders.
> For the purposes of running the merges I'd suggest you don't change the
> structure of the files.
>
> After you've merged them, you can move the individual files around
> however
> you please.
>
>
>> Then modifying the script to:
>>
>>              pathDir  = "E:\"
>>
>>               ' a sample name, without a trailing L or R
>>               sampname = "Recit Organ"
>>
>>               leftDir   = pathDir & sampname & "L\"
>>               rightDir  = pathDir & sampname & "R\"
>>               stereoDir = pathDir & sampname
> This will not work because you've lost the "Basson16" (etc) part of a
> sample name.
>
> WORSE, from a programmer's perspective, and likely to complicate your
> understanding
> of what the script does, is that having a 'variable' called 'sampname'
> and then
> storing in it something that does not include a sample name, just
> obscures what the
> code is meant to do.
>
>
>
>> .... also, Stereo files could be placed directly into folders without
>> the "S"
> Yes, they could be... but at the moment you have a 'standard convention'
> in that
> folder names are the base sample name plus one letter.  Programmers like
> simple
> ideas like this because it means that if you find in future you need to
> do other
> automated manipulation of folders, it's easy to write code that 'knows'
> that every
> such folder is named 'samplename' + L/R/S.  If you change that then you
> lose some
> knowledge about what's in that kind of folder, and increase the chance
> that you
> accidentally damage the wrong files, and you also need to write more
> logic that
> knows when the suffix letter is there and when it is not.
>
>
>



---
This email has been checked for viruses by Avast antivirus software.
https://www.avast.com/antivirus

------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most 
engaging tech sites, SlashDot.org! http://sdm.link/slashdot

_______________________________________________
Sox-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/sox-users
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.