Questions tagged [tone-generation]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
0
votes
1answer
22 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, ...
0
votes
1answer
51 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 ...
3
votes
4answers
173 views

Amplitude of the fft is less than what is expected

This is my MATLAB code ...
1
vote
1answer
47 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 ...
3
votes
1answer
80 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. ...
0
votes
0answers
53 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 ...
0
votes
1answer
43 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. ...
0
votes
0answers
91 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
2answers
1k 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 ...
0
votes
1answer
97 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 ...
0
votes
1answer
63 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 ...
0
votes
1answer
783 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 ...
0
votes
1answer
844 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 ...
0
votes
1answer
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 ...
0
votes
1answer
242 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 ...
0
votes
1answer
550 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
1answer
181 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 ...
4
votes
1answer
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
1answer
4k 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. ...
0
votes
2answers
11k 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
2answers
268 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 ...
0
votes
1answer
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 ...
0
votes
3answers
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... ...
3
votes
3answers
663 views

Constructing a tone through additive synthesis

This question follows from: Synthesizing harmonic tones with Karplus Strong I am attempting to generate a full soundbank of 88 notes. As far as I can see my three options are: Using samples Using ...
1
vote
3answers
785 views

Synthesizing harmonic tones with Karplus Strong

I'm building my own MIDI synth. I have to create a decent sounding tone for every note on the piano keyboard (A-1 through C7, or MIDI 21 through 21+88=109) I've been using a basic ring resonator, ...