Working with stereo and mono track

Help for Audacity on GNU/Linux.
Forum rules
ImageThis forum is for Audacity on GNU/Linux.
Please state:
  • which version of Linux you are using,
  • the exact three-section version number of Audacity from Help menu > About Audacity,
  • whether you installed your distribution's release, PPA version, or compiled Audacity from source code.

Audacity 1.2.x and 1.3.x are obsolete and no longer supported. If you still have those versions, please upgrade (see 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.
Post Reply
vedshree
Posts: 20
Joined: Wed Feb 26, 2014 6:26 am
Operating System: Please select

Working with stereo and mono track

Post by vedshree » Tue Mar 11, 2014 3:31 pm

Hello,
For the stereo track it shows two channels in which the position of sample points differ, is there any way to select any single channel, either left or right ?
We want to work on the selected channel so can you please tell us the nyquist code for selecting the channel.

Thanking you.

steve
Site Admin
Posts: 81627
Joined: Sat Dec 01, 2007 11:43 am
Operating System: Linux *buntu

Re: Working with stereo and mono track

Post by steve » Tue Mar 11, 2014 4:01 pm

The easiest way to work with one channel of a stereo pair is to split the pair into two separate tracks. See: http://manual.audacityteam.org/o/man/sp ... racks.html

To work with stereo tracks in Nyquist, use the AREF command http://www.cs.cmu.edu/~rbd/doc/nyquist/ ... #index1385
See here for more information: http://wiki.audacityteam.org/wiki/Nyqui ... reo_Tracks

By the way, how are you getting on with: http://forum.audacityteam.org/viewtopic ... 11#p238811
9/10 questions are answered in the FREQUENTLY ASKED QUESTIONS (FAQ)

vedshree
Posts: 20
Joined: Wed Feb 26, 2014 6:26 am
Operating System: Please select

Re: Working with stereo and mono track

Post by vedshree » Wed Mar 12, 2014 7:24 am

hi,
We have retrieved the time values at a particular instance refering to the topic "Beats Per Minute".

Moving to my next query, I want to get 44100 samples per second. How do i get those many samples?
And also, after getting those many samples, how do i iterate through each of the sample? snd-fetch does not satisfy my need.

I have put this code in the do loop so that i iterate through the samples

Code: Select all

(setq p (< v thres))
  (setq time (+ time 0.001))
  (setq v (snd-fetch s2)))  
I expect 441 samples in 10 milli seconds but I am getting only 12.

So how do I proceed with the coding to achieve the result?

Thank you :)

steve
Site Admin
Posts: 81627
Joined: Sat Dec 01, 2007 11:43 am
Operating System: Linux *buntu

Re: Working with stereo and mono track

Post by steve » Thu Mar 13, 2014 1:08 am

Look at your usage of SND-FETCH http://www.cs.cmu.edu/~rbd/doc/nyquist/ ... l#index260
What values is it actually getting and where is it getting them from?
9/10 questions are answered in the FREQUENTLY ASKED QUESTIONS (FAQ)

vedshree
Posts: 20
Joined: Wed Feb 26, 2014 6:26 am
Operating System: Please select

Re: Working with stereo and mono track

Post by vedshree » Sat Mar 22, 2014 12:58 pm

hello,
Can u please explain us the exact use of snd-follow & force-srate in your own words. We already reffered the links, but we are not getting it.
Please can u help us with this ?

steve
Site Admin
Posts: 81627
Joined: Sat Dec 01, 2007 11:43 am
Operating System: Linux *buntu

Re: Working with stereo and mono track

Post by steve » Sat Mar 22, 2014 3:15 pm

FORCE_SRATE changes the sample rate of the sound to the specified sample rate.
Example:
(force-srate 1000 sound)
changes the sample rate of "sound" to 1000 samples per second.


SND_FOLLOW produces a control signal that rides over the top of the peaks of a sound.
This takes several parameters to define precisely how it does this, but the basic idea is to create an "envelope" that follows the contour of the sound waveform.
Example:

Code: Select all

(let ((floor 0.001)
      (risetime 0.1)
      (falltime 0.5)
      (lookahead 4410))
    (snd-follow s floor risetime falltime lookahead))
The upper track shows the input sound. The lower track shows the resulting "envelope".
Note how the envelope "follows" the shape of the input audio, but is offset by 4410 samples.
tracks000.png
tracks000.png (16.13 KiB) Viewed 3981 times
9/10 questions are answered in the FREQUENTLY ASKED QUESTIONS (FAQ)

vedshree
Posts: 20
Joined: Wed Feb 26, 2014 6:26 am
Operating System: Please select

Re: Working with stereo and mono track

Post by vedshree » Tue Apr 01, 2014 4:32 pm

Hello,

Thank you so much for guidance. I located the beats for different rhythms.And also calculated tempo(beats per minute). Is there any function available to take more than one sound clip as a input? I want to take more than one sound clip as a input and calculate tempo of those then sort according to their increasing tempo and create a playlist. Please can you help me?

Thanking you.

steve
Site Admin
Posts: 81627
Joined: Sat Dec 01, 2007 11:43 am
Operating System: Linux *buntu

Re: Working with stereo and mono track

Post by steve » Wed Apr 02, 2014 7:54 am

In Audacity you can only select one "region" at a time, but you can select the same time region in multiple tracks (see: http://manual.audacityteam.org/o/man/au ... ction.html)

When using Nyquist effects, the audio from one track is sent from Audacity to Nyquist for processing and Nyquist then returns a "result" (which may be a sound, labels, text, or nothing). If there are multiple tracks selected, this is repeated one track at a time for each track.
9/10 questions are answered in the FREQUENTLY ASKED QUESTIONS (FAQ)

Post Reply