# Questions tagged [tone-generation]

The tag has no usage guidance.

29 questions
Filter by
Sorted by
Tagged with
58 views

### How to account for phase and shift when composing a new signal based upon 2 or more recordings?

I have 2 signals that were independently recorded, and want to produce a new signal that would represent what would be recorded if both signal sources were emitting at the same time together. ...
424 views

### What causes the mismatch between a calculated sine wave and a measured sine wave?

Note: this question has been edited to refer to a sample that does not use dithering. I recently asked my first question on here, about what I saw in an uncompressed audio file written out as integers....
1 vote
39 views

### Different kinds of beeps and tones

I have heard many different types of beeps, chimes, and other tones. Audacity allows me to generate simple waveforms like sine waves and square waves, as well as DTMF tones. But I want to generate ...
60 views

### How do I use the Lazzarini-Timoney DSVF as a sine generator?

I've tested out the Chamberlin digital state variable filter (DSVF) as a sine generator as per this well-known approach. At $f_0=686\text{Hz}$ tone and $f_s=48000\text{Hz}$ it sounds fine and the FFT ...
85 views

### FM generation with complex numbers

Background To generate a sine wave the straight forward way is to call the sin method for each data point: Iteration (pseudo code): ...
245 views

### Convert A frequency weight to Z frequency weight

I want to get the SPL of a monotonic sound like a 1khz tone but the problem is that I have a SPL meter which gives data in terms of A frequency weight. Is it possible to get the SPL of a 1khz signal, ...
139 views

### Karplus-Strong with Jaffe-Smith sample rate-independent

I tried to implement the Karplus-Strong algorithm with some of the Jaffe-Smith extensions (improve pitch, dynamics, etc). Here is the code. When I run it with a sampleRate of 48000Hz, I get very ...
791 views

### Amplitude of the fft is less than what is expected

This is my MATLAB code ...
1 vote
176 views

### Best window before FFT ? (for a signal consisting of 2 tones used for phase measurement)

I am doing phase measurments by transmitting and receiving tones (100 kHz and 16 kHz simultaneously). I am transmitting the tones and receiving them, applying Blackman Harris window and doing FFT for ...
181 views

### Sampling pure tone sine waves [closed]

What would happen if I am using the maximum frequency as the sample rate for sampling a pure tone sine wave? For example, a $10\ \rm kHz$ sampling frequency for a $10\ \rm kHz$ monotone sine wave. ...
106 views

### Sound of (sea) waves imitation

I need to create an algorithm for sound of waves. So I imagine it should be a white noise with doppler effect. However I understand doppler is just change of frequency. But white noise have all the ...
333 views

### Direct Digital Frequency Synthesis, NCO and negative frequencies

I need to translate a frequency band generated by a DDFS designed in a FPGA (using Xilinx DDS Compiler). My output to the NCO is in I/Q format. I chose to use a NCO to perform the frequency shift but ...
1 vote
3k views

### Understanding sine wave generation in Python with linspace

I was trying to sample a 12.8 MHz sine wave (78.125 ns) signal at every 160us (micro seconds). Since 160us is multiple of base period 78.125ns(x2048) i expected to get a sample of fixed amplitude but ...
132 views

### Irregularities in tone generated using FFT data

I am implementing a simple program to generate tone in MATLAB using FFT/iFFT by zeroing all frequency bins except for the one frequency that I'd like to generate a tone in. Sampling frequency is ...
5k views

### Matlab HIgh frequency sine wave generation

I need to generated a high frequency sinusoidal signal for modulation in MATLAB. But it turns out to be something weird. This is the simple code snippet I used... ...
80 views

### THD requirement for generated sine

I need to generate a sine signal using a DAC with a certain THD specification, say 0.1% @ 1KHz. As a first approach I’m considering it to be an ideal DAC along with an ideal LPF for aliasing removal ...
960 views

### PortAudio: how to generate multiple sounds

I have simple wave generator in PortAudio. I'm creating single sine wave, and then I use a lookup sine to play it. Now I've stucked here. I have no idea how I can add another sine sound. Is it ...
1k views

### How to detect and remove ringback-tone and ivrs voice etc from the beginning of an audio call recording

In an audio recording (say a telephone conv. b/w two people), how would I programatically detect and remove the dial-tone at the beginning of a call using python. Ex : As you can see the first 15 ...
1k views

### DTMF Tone Generation in MATLAB not sounding right

I'm starting out with some DTMF Tone Generation using Matlab and I wanted to find some theory behind how to generate the various tones for a 4x3 keypad consisting of 0-9, * and #. So far I have the ...
1 vote
373 views

### Bandlimited PWM

Trying to figure out how to synthesize a Bandlimited PWM in my audio code in C. I have already figured out a bandlimited pulse wave but I can't really figure out how to translate that to PWM. I have ...
704 views

### Generating drum sample in programming language [closed]

How would you generate the sample of a drum, say "tom". Using the programming language and it's functions like addition, multiplication, sine, sqrt etc. I tried to generate the sine wave and then ...
1 vote
215 views

### reducing MIPS in detecting tones

Currently our software is detecting tones using FFT and checking if there is only a single peak in frequency spectrum. Our software needs to know what kind of input it is before taking action. So we ...
2k views

### Smoothed Square Wave

new here and probably pretty unexperienced compared to the rest of you. This should be simple enough but just wanted some clarification. I'm trying to model an analog square wave oscillator with C. ...
1 vote
5k views

### How to perform sine generation (in C)?

I am interested in how should a listing for a program look like that will generate a sine of f=50hz, using the next arguments for any moment in time. ...
14k views

### How sine wave is generated using lookup tables

From this document I am quoting P2,L7 So what is the incremental distance if we are using a 64 element look-up table instead of a sine function based on 2π? incremental distance = 2k*64/48k = 8/3. ...
1 vote
290 views

### Generating a high SNR sinusoide with lut on a DSP

I'm generating a sinus by using a lut method on a DSPic33f. My sample rate is 48 kHz, so I saved 12000 of the first value (unsigned int, 16 bits) and use trigonometric formulas to calculate the other ...
2k views

### Tone generation in Matlab (scientific paper)

I'm trying to generate sounds as described in a scientific paper that I found on the Internet. What I need to do is to generate simple tones in a certain pattern, however I have some issues ...