help-octave
[Top][All Lists]

## Re: Audio signal

 From: Matthias Brennwald Subject: Re: Audio signal Date: Sun, 18 Nov 2007 18:44:55 +0100

```On 18.11.2007, at 16:54, Pol Moreno wrote:

```
```But why should I remove the Fs from sin(..)?

Isn't it suposed to be there?
```
```
```
The sampling rate is used to determine the time values of your signal samples, nothing more. Why would you want to put in Fs in to the sine function?
```
```
Imagine an analogue sine signal with a frequency f0, i.e. y = sin (2pi x f0 x t). Note that the only arguments of the sine function are the frequency f0 and the time t. If this signal is digitized with a sampling frequency Fs, the values of the sine function will be sampled at time 1/Fs, 2/Fs, 3/Fs, 4/Fs,... . The frequency f0 of the sine signal will not change. The sine function must therefore not depend on Fs.
```
```
(please keep discussions on the octave help list, so that others can contribute or profit)
```
Cheers
Matthias

-------
Matthias Brennwald
Lägernstrasse 6
CH 8037 Zürich
+41 (0)44 364 17 03