sox-users@lists.sourceforge.net unofficial mirror
 help / color / mirror / code / Atom feed
From: "Dr. Mark Bugeja MD" <marcusfb@gmail.com>
To: sox-users@lists.sourceforge.net
Subject: Re: Fwd: Re: merging mono files
Date: Mon, 12 Dec 2016 19:15:07 +0100	[thread overview]
Message-ID: <63992669-0cd0-6186-4b9d-26f5dc8295c4@gmail.com> (raw)
In-Reply-To: <e7bfdec83308c671417d01e7dfc157f6@wingsandbeaks.org.uk>


[-- Attachment #1.1: Type: text/plain, Size: 3148 bytes --]

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

[-- Attachment #1.2: Type: text/html, Size: 4781 bytes --]

[-- Attachment #2: Type: text/plain, Size: 203 bytes --]

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

[-- Attachment #3: Type: text/plain, Size: 158 bytes --]

_______________________________________________
Sox-users mailing list
Sox-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/sox-users

  reply	other threads:[~2016-12-12 18:15 UTC|newest]

Thread overview: 34+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <a4f1ff10-c573-a233-916f-3f92c66bf9ce@gmail.com>
2016-12-08 13:36 ` Fwd: Re: merging mono files Dr. Mark Bugeja MD
2016-12-09 13:51   ` Jan Stary
2016-12-09 14:10     ` Dr. Mark Bugeja MD
2016-12-09 17:48       ` Erich Eckner
2016-12-09 18:58         ` Dr. Mark Bugeja MD
2016-12-09 22:55           ` Jan Stary
2016-12-10  6:42             ` Dr. Mark Bugeja MD
2016-12-10 21:49               ` Jan Stary
2016-12-09 23:41           ` Jeremy Nicoll - ml sox users
2016-12-10  6:44             ` Dr. Mark Bugeja MD
2016-12-10  9:23               ` Jeremy Nicoll - ml sox users
2016-12-10 10:18                 ` Dr. Mark Bugeja MD
2016-12-10 21:53                   ` Jan Stary
2016-12-10 22:28                     ` Dr. Mark Bugeja MD
2016-12-11  6:43                       ` Erich Eckner
2016-12-11  7:44                         ` Kevin Conder
2016-12-11  8:59                           ` Jeremy Nicoll - ml sox users
2016-12-11  9:38                           ` Dr. Mark Bugeja MD
2016-12-11 10:31                             ` Erich Eckner
2016-12-11 11:16                               ` Jeremy Nicoll - ml sox users
2016-12-11 20:39                                 ` Dr. Mark Bugeja MD
2016-12-11 21:48                                   ` Jeremy Nicoll - ml sox users
2016-12-12 10:41                                     ` Dr. Mark Bugeja MD
2016-12-12 12:12                                       ` Dr. Mark Bugeja MD
2016-12-12 18:00                                         ` Jeremy Nicoll - ml sox users
2016-12-12 18:15                                           ` Dr. Mark Bugeja MD [this message]
2016-12-12 18:51                                             ` Jeremy Nicoll - ml sox users
2016-12-12 17:46                                       ` Jeremy Nicoll - ml sox users
2016-12-12 11:31                           ` Dr. Mark Bugeja MD
2016-12-12 18:06                             ` Jeremy Nicoll - ml sox users
2016-12-12 18:35                               ` Dr. Mark Bugeja MD
2016-12-12 19:02                                 ` Jeremy Nicoll - ml sox users
2016-12-12 20:06                                   ` Dr. Mark Bugeja MD
2016-12-11 19:08                       ` Jan Stary

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-list from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://lists.sourceforge.net/lists/listinfo/sox-users

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=63992669-0cd0-6186-4b9d-26f5dc8295c4@gmail.com \
    --to=sox-users@lists.sourceforge.net \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://80x24.org/mirrors/sox.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).