[LAU] Sine Wave Generator

Kjetil S. Matheussen k.s.matheussen at notam02.no
Wed Feb 2 12:13:51 UTC 2011


Andrew Bryant:
>
> Hi all,
>
> I have been looking for a simple audio sine-wave generator that
> interfaces with Jack.
>
> Minimum requirement is that it generates 1KHz tone, with level
> predictably controlled from digital peak down to, say -60dB.
>
> The nearest I've come to it yet is ecasound -i tone, driving a mixer.
> This doesn't, however, give  the confidence I need in the output level.
>
> Any suggestions?
>

Start the snd-ls sound editor[1] and paste the following code into the 
terminal:

(<rt-out> (oscil :freq 1000))

   Set volume:

(<rt-out> (* 0.01 (oscil :freq 1000)))


[1] http://www.notam02.no/arkiv/src/snd/



More information about the Linux-audio-user mailing list