Questions tagged [tone-generation]
The tone-generation tag has no usage guidance.
29
questions
6
votes
2
answers
439
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....
4
votes
1
answer
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. ...
3
votes
4
answers
1k
views
Amplitude of the fft is less than what is expected
This is my MATLAB code
...
3
votes
1
answer
197
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. ...
3
votes
3
answers
693
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
2
answers
4k
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 ...
1
vote
3
answers
881
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, ...
1
vote
2
answers
295
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 ...
1
vote
1
answer
211
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 ...
1
vote
1
answer
414
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 ...
1
vote
1
answer
225
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 ...
1
vote
0
answers
49
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 ...
1
vote
1
answer
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.
...
0
votes
1
answer
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 ...
0
votes
2
answers
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. ...
0
votes
1
answer
129
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):
...
0
votes
3
answers
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...
...
0
votes
1
answer
80
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 ...
0
votes
1
answer
372
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
1
answer
201
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 ...
0
votes
2
answers
62
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
1
answer
135
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
1
answer
98
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
1
answer
1k
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
1
answer
735
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 ...
0
votes
1
answer
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
0
answers
112
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
0
answers
387
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 ...
0
votes
1
answer
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 ...