Stack Exchange Network

Stack Exchange network consists of 175 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [wave]

The tag has no usage guidance.

0
votes
4answers
3k views

How to generate a good Sinus audio signal of specific SampleRate, DataBits and Chunnels in a time frame

I encountered a problem when I tried to generate by a program an sinus audio signal. My parameters are Sample Rate: 44100 Hz Data Bits: 16 bits Channels: 2 I need to create a WAV file ...
0
votes
1answer
54 views

frequencies in sound: multiple possibilities?

First, I am by no mean a sound engineer (as you will guess later). I was just wondering something while looking at the waveform of a .wav for a given shape of waveform on a duration of 2 sec for ...
0
votes
1answer
1k views

Extracting metadata from wav files [closed]

I was curious if there is a way to extract metadata from wav files. For instance, can you get bpm, key, instrument, etc. from a .wav file on upload?
0
votes
1answer
97 views

Windows Audio WAVEFORMAT buffer BYTE to 16-bit int

I am trying to understand audio-buffer processing at the low-level for the first time. I have the following C++ code copying WAVE-format byte data from capture buffer of Window Core Audio (*ppData in ...
0
votes
1answer
2k views

Mathematical equation for the sound wave that a piano makes

Is there a mathematical function that can output the sound that a piano makes at different frequencies? So if the simplest equation for a sound wave (at a given frequency and for a given sample rate) ...
0
votes
2answers
66 views

Pitch fluctuates unexpectedly in simple sine function

I wrote a very basic C program to play a sine of a user-specified frequency. In the interest of portability, I have it spit values directly to stdout, so hopefully you can reproduce my problem on your ...
0
votes
1answer
169 views

wavwrite with 32 bits per sample seems to overflow?

I am trying to generate a 32bit PCM wav file with octave, the file shall contain a single full-scale sample (0db impulse). I am getting the expected result when using 24 bits per sample: ...
0
votes
1answer
242 views
0
votes
1answer
620 views

Combining 2 sinusoids of equal amplitude with different frequencies into 1 new “wave”

This question is about combining 2 sinusoids with frequencies $\omega_1$ and $\omega_2$ into 1 "wave shape", where the frequency linearly changes from $\omega_1$ to $\omega_2$, and where the wave ...
0
votes
1answer
337 views

How do I sum the discrete cosine transform cosine waves?

Sorry if this sounds like a stupid question, I'm new to DCT. I've implemented various types of DCT (like IV and II) and they all give vastly different coefficients. From what I've read, the DCT ...
0
votes
1answer
452 views

Generate loopable sine wave cycle for given frequencies

I am somewhat new to DSP so bare with me. I am working on a simple wavetable oscillator. What I am trying to do is generate one cycle of a wave form for each note (frequency) and store it in an array ...
0
votes
1answer
416 views

Instantaneous phase calculation problems

I am currently struggling with a problem when calculating the instantaneous phase of a wavefield using a 1D Hilbert transformation. The scheme is as follows. 1D Hilbert transformation of wave field $...
0
votes
1answer
107 views

Basics of waveform, how to define the zero point

Audio is a sequence of waveforms which have peaks, troughs, 0, just like below. How to define the x axis (y = 0) in the picture, how to choose the 0 point in the waveform since there are so many ...
0
votes
0answers
15 views

Need help with detecting onset of audio in wav file

I'm new to DSP and I'm learning as I go. I have an audio file with a chirp signal(2kHz). I played and recorded this chirp signal and the recording has a lot of environmental sounds. Here is my code:
0
votes
0answers
153 views

Equation for impulse train

I am looking for a formula (Fourier series) to generate an impulse train waveform - a spike-wave with amplitude and period both $1$ – so that $f(x)$ has value $1$ at $x = 1,2,3,4...$ and $f(x)$ has ...
0
votes
1answer
204 views

Get dB full scale value of a group of wave samples

I am trying to compute the dBFS value of a group of samples (stereo wave file), according to this formula: $$p_{RMS} = \sqrt{\frac{ x_1^2 + x_2^2 + \ldots}n } $$ $$dbFS = 20\log_{10}\frac{ p_{RMS}}{...
0
votes
2answers
159 views

How to mix two audio files recorded with different settings to obtain a realistic result

I am a software engineer, currently working on a signal-processing related project, which I am new to. For evaluating the algorithm(which is written in R), I need to mix (merge) two different audio ...
0
votes
1answer
129 views

Computing of speech signals modulation entropy

I got a question regarding to modulation entropy of audio signal. There is some literature I found about this topic, http://www.irit.fr/recherches/SAMOVA/FeaturesExtraction.html#me. I've read sample ...
0
votes
0answers
93 views

Formatting issue WAV - MP3?

I have two "sources" of audio: record WAV audio files (44.1kHz, 16bit, stereo) with Linux arecord and convert them with LameMP3Encoder to MP3 files (44.1kHz, 320kbps, 32bit**, CBR)*** record MP3 ...
0
votes
1answer
104 views

What is the Sound of a Solution to the Wave Equation?

What is the sound of a solution $y(x,t)$ to the Wave Equation $\frac{\partial^2y}{\partial t^2}=c^2\,\frac{\partial^2y}{\partial x^2}\enspace$? To be clear, I don't look for a solution of the Wave ...
0
votes
1answer
764 views

Convert Triangle Wave to Sine Wave

I have this triangle wave as input: and I want to derive a sine wave out of it. How do I go about it? PS: I am doing this in Lua, so any piece of code close to that language would be appreciated.
0
votes
0answers
141 views

generating a waveform in matlab for rohde and schwarz signal generator

We are doing a test which consists in sending a waveform from Matlab to the signal generator SMB100A and sending it through a cable to the r&s spectrum analyzer just to have a channel. We set the ...
0
votes
2answers
46 views

Spectral Content of two waveforms

I have found this interesting question here: Which of these two waveforms has a richer spectral content, and why? Intuitively speaking, I think that the first one is richer, but I cant really ...
0
votes
1answer
143 views

Wave Correlation?

I have an image processing application that is different than anything that I've done before, and am looking for suggestions on how to approach. Here is a basic description of the problem: Given a ...
0
votes
1answer
101 views

Adding sine waves

I need to play thousands of simple sounds (generated tones) at the same time. If I am understand correctly there should be a way to add them together in complex wave but i really can't see the light ...
-1
votes
1answer
1k views

Power of a square wave signal

I have a signal with half-amplitude $A$ and period $T$ and I want to calculate the average power of the signal. I think I remember the power of a signal $x(t)$ to be $$\frac{1}{T}\int_{0}^{T}|x(t)|^...
-1
votes
1answer
46 views

are Ultra sound signal amplitude dangerous? [closed]

First sorry if this question if it's out of topic but I'm very intrigued The human ear can hear a specific range of sound waves frequency. and huge amplitude of those sounds can damage the ears but ...
-1
votes
1answer
193 views

How to compare two audio files that maybe have been recorded in the same environment

I have two audio files that I think they were recorded in the same room. Is there any tool that can be used to compare both of them. Knowing that sample rate and format are the same. Thanks
-2
votes
2answers
45 views

difficulty in understanding amplitude, frequency and period

I have difficulty in understanding of some fundamental terms as amplitude. Can be there more than one amplitude for a signal? The following expression is combination of 3 sinusoidal signal, so are ...