The Stack Overflow podcast is back! Listen to an interview with our new CEO.

Questions tagged [wave]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
0
votes
2answers
1k views

Wav file scale factor

I seek a scaled audio file format for my dsp output. I'd like to produce "scaled wav files", when I've done my pre processing. Eg. if the amplitude is 15.5 (of whatever unit), you should be able to ...
0
votes
2answers
783 views

Audio Watermarking in MATLAB - How to choose frames to embed in?

Hello I am working on audio watermarking in MATLAB and am trying to choose specific frames of the audio signal where the watermark will be embedded. Through research, I have read that the best way to ...
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
63 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
2k 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
127 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
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
181 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
270 views

Pulse wave from sum of sinusoids

...
0
votes
1answer
771 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
374 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
522 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
449 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
113 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
35 views

Clip wav by PSD

I have the following two things. sequence_1: Sound file in the wave format. PSD_1: Some PSD (Power Spectral Density). I want that the PSD(sequence_1) < PSD_1 for all indices. How I think about ...
0
votes
0answers
25 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
165 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
2answers
176 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
135 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
99 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
105 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
814 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
156 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
47 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
148 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
102 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
23 views

Mix N sinusoidal waveforms without clipping but at a costant amplitude with no clipping and maximum amplitude

I need to mix "n" sinusoidal waveforms which can be all active or some or all can be silent. The math seemed simple (working with float32 samples) because I just added all waveforms and then divide ...
-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
49 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
212 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
-3
votes
2answers
53 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 ...