Questions tagged [wave]

This tag is for questions about the Python module wave - for working with the .wav sound format. FOR GENERAL WAV QUESTIONS, not related to Python, please use the [wav] tag.

The wave module provides a convenient interface to the WAV sound format. It does not support compression/decompression, but it does support mono/stereo.

It's recommended to use this tag in connection with , due to the colloquial meaning of wave (ex. in math or physics)

498 questions
-1
votes
1 answer

difference between mp3 file and wave file compressed with mpeg123

As we know, wave files can contain compressed audio data. I have some audio files with extension "*.wav". I checked their information with smplayer and it showed: Initial Audio Stream Format 85 Bitrate 32 kbps Rate 22050 Hz Channels 2 Selected codec…
frankli22586
  • 710
  • 6
  • 19
-1
votes
1 answer

Repaint in achartengine with new values

I'm trying to use a seekbar that when you move it, a new graph will be shown in achartengine, but the problem is that paints over the old graphic, instead of repaint the chartview with new values. I've tried everything I've read in other questions…
Dv Apps
  • 153
  • 2
  • 9
-1
votes
3 answers

Dismantling a WAVE file

sorry for this not being a programming question directly, but more indirectly as i try to batch convert audio files, which is proving difficult. I have an audio file which i exported from a package. This audio file is of the RIFF WAVE format. As far…
Smileynator
  • 677
  • 8
  • 24
-1
votes
2 answers

Why sin(0.2*x + pi) is aperiodic function?

I know this might be too easy to be a question... but I can't get why sin(0.2*x + pi) is aperiodic?.. I tried to plot this in matlab and that's what I got: That should be periodic right? Instead in "Schaum's Outline of Digital Signal Processing"…
-1
votes
1 answer

Missing "fmt " on WAVE file

I'm implementing Audio in my cross-plattform application framework and have some trouble while starting working with wave files. UInt32 type = rd.ReadUInt32(); UInt32 size = rd.ReadUInt32(); UInt32 waveType = rd.ReadUInt32(); UInt32 fmtType =…
Felix K.
  • 6,201
  • 2
  • 38
  • 71
-1
votes
1 answer

Changing wave header in mp3 file

Is it possible to change the wave header in an existing mp3 file? I need it to be 8 or 16 bits per sample. Any tips about how to proceed? I am totally stuck. Thank you very much
pindleskin
  • 185
  • 1
  • 3
  • 14
-2
votes
1 answer

How can i write this euqation in matlab ∆φ12 = [φ1 −φ2] (mod 2π)

I know the values for φ1 and φ1 and have to find the ∆φ12. Background of the equation: We know that the relationship between the absolute phase is Φ and the wrapped phase φ = Φ (mod 2π) with 2π discontinuities. Here the modulus operator is to…
-2
votes
1 answer

Music note detection using python audio processing

I'm giving my code with few audio files which are not giving appropriate output. Code: import numpy as np import math import wave import os import struct def note_detect(audio_file): Detected_Note = "" beta = 1 max_notes = 100 …
jarvis
  • 1
  • 1
  • 2
-2
votes
1 answer

Not able to recreate same sound using FFT

I am trying to recreate musical note using top 10 frequencies returned by Fourier Transform (FFT). Resulting sound does not match the original sound. Not sure if I am not finding frequencies correctly or not generating sound from it correctly. The…
-2
votes
1 answer

Representing a sine wave given LSB/V

I create a sine wave of a voltage signal. How can I represent that in the scale factor 128 LSB/Volts ? The amplitude is 180 Volts. Obs: I guess LSB is "LOW SIGNIFICANT BIT". My code: int main(int argc, char **argv) { int i = 0; short…
-3
votes
1 answer

How to generate and plot a triangle wave using python and PyCharm ? How do i code that ?

I would like to generate and plot a triangle wave of the amplitude of 2V and the frequency of 1 Hz using python. I would like to know the code thats does that as well as a simple explanation of each line. I googled that a lot and only found sin…
-3
votes
1 answer

How can I record a sound and play it back after a user-defined delay in Python?

I'm looking for a Python's code that would record a sound and play it back after a certain delay (for example 10 seconds). In other words, I would like to constantly hear (on my headphones) what's going on outside, but with a certain delay. I found…
sherlock85
  • 871
  • 2
  • 12
  • 16
-3
votes
2 answers

How to Draw the Audio waves?

I want to Draw the audio waves only. I am also see the RingDroid open Source code But it's so complicated. I am only generate the waves like tha Sound Waves Like this
Arjun saini
  • 4,223
  • 3
  • 23
  • 51
-3
votes
1 answer

Reading large size wav files in MATLAB

I want to read 80 MB wav file in MATLAB. I tried wavread and audioread functions but I could not read it. I splitted wav file when I was reading by wavread(file, [startpos endpos]). But in 50. iteration the program has broken. I could not read…
yilmaz
  • 1
  • 4
-3
votes
1 answer

mouseenter/mouseleave unwanted waving effect

I am fairly new to JQuery. That being said I am trying to use a .mouseenter that causes a image to become larger in size and it returns to normal size on .mouseleave, it works but my problem is it will start a wave effect that loops a random amount…
1 2 3
33
34