Synchronizing multiple mp3 files

Help for Audacity 2.x.x on Mac OS X.

ImageThis forum is for Audacity 2.x.x on Mac OS X 10.4 and later.
Please state which version of OS X you are using, the exact three-section version of Audacity from Audacity > About Audacity and whether you obtained the .dmg installer or the zip.

Audacity 1.2.x and 1.3.x are obsolete and no longer supported. If you still have those versions, please upgrade at https://www.audacityteam.org/download/.
The old forums for those versions are now closed, but you can still read the archives of the 1.2.x and 1.3.x forums.

Re: Synchronizing multiple mp3 files

Permanent link to this post Posted by steve » Sat Jul 22, 2017 7:38 pm

jamesadrian wrote:It need not be arduous.

If you want to be totally without restriction, then all things must be allowed, and it is the matter of defining the specific thing that you want that is arduous.

For example, It is common for synthesizers to offer a selection of simple cyclical waveforms, such as Sine, Triangle, Square, Sawtooth. All cyclical waveforms may be defined in terms of a series of pure (sine) waves, their frequency, amplitude and phase. For example, a square wave can be defined as a series of odd harmonics of decreasing amplitude:

Fourier_series_for_square_wave.gif
Fourier_series_for_square_wave.gif (178.9 KiB) Viewed 356 times


So let's take away the restriction and say that we allow 'any' series of sine waves that have frequency, amplitude and phase related (or not) by any rules that the composer wants.
That takes us from a simple 4 way choice betwee Sine, Triangle, Square, Sawtooth, to defining an arbitrary algorithm for generating any number of sine waves of any amplitude and any phase (and there are of course an infinite number of different waveforms that could be generated).

For example, try running this code in the Nyquist Prompt effect:
Code: Select all
(setf pitch C4) ; Note pitch
(setf dur 3.0)  ; Duration seconds

;; Define waveform
(setf *table* (sum  (mult 0.5 (build-harmonic 1 2048))
                    (mult 0.25 (build-harmonic 2 2048))
                    (mult 0.125 (build-harmonic 3 2048))
                    (mult 0.0625 (build-harmonic 4 2048))))
(setf *table* (list *table* (hz-to-step 1.0) t))

;; Generate tone
(abs-env
  (osc pitch dur *table*))

That is much more "arduous" than simply pressing a key on an electronic keyboard, but much less restricted in that we have precisely defined the harmonic content that we want, rather than just selecting a waveform that the keyboard manufacturer thought we should have.
9/10 questions are answered in the FREQUENTLY ASKED QUESTIONS (FAQ)
steve
Site Admin
 
Posts: 44665
Joined: Sat Dec 01, 2007 11:43 am
Operating System: Linux *buntu

Re: Synchronizing multiple mp3 files

Permanent link to this post Posted by jamesadrian » Sat Jul 22, 2017 10:00 pm

Steve,

One way to approach the problem is to use a graphical grid. Let's suppose we want to create a few sounds that have integer multiple frequencies for overtones. Few notes will have more than 32 partials, but let's take the severe case of a base instrument having seven octaves of sine wave components (partials). That would be 128 frequencies. The horizontal axis of the graphical grid would have the numbers 1 through 128, or 1 through 256 if you like. As you move the pointing device from left to right or right to left, the cursor jumps from one number to its neighbor without giving you options between. As you move the cursor vertically, every value is an option, possibly accompanied by a multi-digit number window. As you scan through these vertical places, the last vertical value touched before moving onto another horizontal position is kept as the value for that partial (the numbered on the horizontal axis).

Sound feedback could be sampled at any time for the waveform as chosen so far. Experience would quickly reveal that some sorts of paths across the grid make no sense, and further experience would reveal that some sorts of paths seem inappropriate for the music you are writing. In eight hours, you might seriously consider 40 sounds, but after a month, maybe you will like 15 or maybe just 4. This is not tedium. This is freedom.

If you really want a fast but less exacting method, just draw a waveform where time is the horizontal axis and intensity is the vertical axis and listen to it.

I can write algorithms if you can write python.

Thank you for pursuing this issue.

Jim Adrian
jamesadrian
 
Posts: 14
Joined: Sun Jul 09, 2017 10:26 pm
Operating System: OS X 10.11 El Capitan or later (macOS)

Re: Synchronizing multiple mp3 files

Permanent link to this post Posted by jamesadrian » Sat Jul 22, 2017 10:35 pm

cyrano,

Very interesting. I like the additive synthesis, although my last post about that might point to a faster method.

Do you program?


Jim Adrian
jamesadrian
 
Posts: 14
Joined: Sun Jul 09, 2017 10:26 pm
Operating System: OS X 10.11 El Capitan or later (macOS)

Re: Synchronizing multiple mp3 files

Permanent link to this post Posted by jamesadrian » Sat Jul 22, 2017 11:01 pm

Steve,

There are, of course, many short-cut features that could be on the menu. A clarinet has only odd numbered partials. Clicking off or attenuating even numbered partials should not require a lot of up and down drawing. Also, there are curves that could be applied and superimposed. If you wanted octaves of the second partial to be louder than the octaves of the third or fifth partial all the way up, this should not necessarily be left to free hand drawing. I'm sure you can image many conveniences or this sort.

Jim Adrian
jamesadrian
 
Posts: 14
Joined: Sun Jul 09, 2017 10:26 pm
Operating System: OS X 10.11 El Capitan or later (macOS)

Re: Synchronizing multiple mp3 files

Permanent link to this post Posted by Trebor » Sun Jul 23, 2017 3:26 am

jamesadrian wrote:... A clarinet has only odd numbered partials. Clicking off or attenuating even numbered partials should not require a lot of up and down drawing.

There are free programs, like SPEAR, which convert recorded sound into a series of sine waves.
This gets rid of breathy/clicky-type noises, as they don't survive the translation into sine waves ...

Clarinet, Before-After processing in SPEAR.wav
(1.02 MiB) Downloaded 10 times
Trebor
 
Posts: 3840
Joined: Sat Dec 27, 2008 5:22 pm
Operating System: Windows Vista

Re: Synchronizing multiple mp3 files

Permanent link to this post Posted by cyrano » Sun Jul 23, 2017 12:24 pm

jamesadrian wrote:Very interesting. I like the additive synthesis, although my last post about that might point to a faster method.

Do you program?


Nope. Just some scripting, but rarely for audio.
cyrano
 
Posts: 1275
Joined: Fri Apr 17, 2015 11:54 pm
Operating System: OS X 10.9 Mavericks

Re: Synchronizing multiple mp3 files

Permanent link to this post Posted by jamesadrian » Mon Jul 24, 2017 1:46 am

I wish to add that if the user draws a waveform, the CAD software should immediately provide an analysis (the relative coefficients of the overtones).

The programmer does not need to know the math so long as there is an algorithm writer who does.

You might be surprised by how many mathematicians and physicists do not have the patience for current programming languages.

Jim Adrian
jamesadrian
 
Posts: 14
Joined: Sun Jul 09, 2017 10:26 pm
Operating System: OS X 10.11 El Capitan or later (macOS)

Re: Synchronizing multiple mp3 files

Permanent link to this post Posted by jamesadrian » Mon Jul 24, 2017 3:33 am

There is another important issue regarding the computer aided design of sounds. When the user inputs a drawn waveform, that waveform might have an instantaneous change from one vertical position to another, and it might sound good. A saw tooth wave is an example. Speakers cannot change position instantaneously. If all of the overtones are integer multiples of the heard frequency, and there are no other voices being sounded by that particular speaker, then there will be no intermodulation distortion or frequency modulation distortion, but there will be a waveform distortion, altering the relative amplitude of the overtones, and thereby altering the sound as perceived by people.

Fortunately, the human ear does not care much about the phase of any given overtone. The various hair cells in the cochlea react selectively to various frequencies, but they do not keep track of the phase. This means that the phases of the overtones can be shifted to avoid instantaneous jumps in their sum. The CAD software should check for this and present workable waveforms to the speakers, while preserving the sound chosen by the user.

A Fourier transform is a function that represents a function of time (such as a waveform) by a sum of some number of sinusoidal functions. The phase is included, but the phase relationships need not be preserved in order to represent the sound as heard by people.

Jim Adrian
jamesadrian
 
Posts: 14
Joined: Sun Jul 09, 2017 10:26 pm
Operating System: OS X 10.11 El Capitan or later (macOS)

Re: Synchronizing multiple mp3 files

Permanent link to this post Posted by jamesadrian » Mon Jul 24, 2017 5:50 pm

Is there a formal procedure for submitting add-on applications to Audacity?

Thank you for your help.

Jim Adrian
jamesadrian
 
Posts: 14
Joined: Sun Jul 09, 2017 10:26 pm
Operating System: OS X 10.11 El Capitan or later (macOS)

Re: Synchronizing multiple mp3 files

Permanent link to this post Posted by steve » Mon Jul 24, 2017 6:04 pm

jamesadrian wrote:Is there a formal procedure for submitting add-on applications to Audacity?

Yes, you post your proposal to this board on the forum: https://forum.audacityteam.org/viewforum.php?f=20
The proposal will remain on that board so that other Audacity users can comment, discus agree or disagree, then about 1 month after the discussion has concluded, one of the forum crew will transfer the feature request to the feature request page of the Audacity wiki.

Note that the proposal should describe the requested feature in a clear way that can be summarised on the wiki.
9/10 questions are answered in the FREQUENTLY ASKED QUESTIONS (FAQ)
steve
Site Admin
 
Posts: 44665
Joined: Sat Dec 01, 2007 11:43 am
Operating System: Linux *buntu

PreviousNext

Return to Mac OS X



Who is online

Users browsing this forum: No registered users and 11 guests