Re: Bitperfect Ears

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Tue, 27 Nov 2007 02:26:48 +0100
Rene Herman <rene.herman@xxxxxxxxxxxx> wrote:

[snip]
> Wrote a small sine generator during this test by the way -- attached just in 
> case anyone is interested. Writes S16_LE to stdout, so intended to be used as:
> 
> $ sine -f <freq> -d <dbspl> | aplay -f cd
> 
> -r <rate> for setting a different rate than 44100:
> 
> $ sine -f <freq> -d <dbspl> -r <rate> | aplay -f S16_LE -c 2 -r <rate>
[snip]
> Rene.


Well, among other things "man sox" says:


"
       synth [ length ] type mix [ freq [ -freq2 ]

             [ off ] [ ph ] [ p1 ] [ p2 ] [ p3 ]
                 The  synth effect will generate various types of audio data.  Although this effect is used to generate audio data, an input file must be specified.  The
                 length of the input audio file determines the length of the output audio file.
                 <length> length in sec or hh:mm:ss.frac, 0=inputlength, default=0
                 <type> is sine, square, triangle, sawtooth, trapetz, exp, whitenoise, pinknoise, brownnoise, default=sine
                 <mix> is create, mix, amod, default=create
                 <freq> frequency at beginning in Hz, not used  for noise..
                 <freq2> frequency at end in Hz, not used for noise..  <freq/2> can be given as %%n, where 'n' is the number of half notes in respect to A (440Hz)
                 <off> Bias (DC-offset)  of signal in percent, default=0
                 <ph> phase shift 0..100 shift phase 0..2*Pi, not used for noise..
                 <p1> square: Ton/Toff, triangle+trapetz: rising slope time (0..100)
                 <p2> trapetz: ON time (0..100)
                 <p3> trapetz: falling slope position (0..100)
".

--Sergei.

-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2005.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
Alsa-user mailing list
Alsa-user@xxxxxxxxxxxxxxxxxxxxx
https://lists.sourceforge.net/lists/listinfo/alsa-user

[Index of Archives]     [ALSA Devel]     [Linux Audio Users]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [Yosemite Photos]     [KDE Users]     [Fedora Tools]

  Powered by Linux