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
0
votes
1 answer

sampling wav files in to get amplitude at a specific time

i am wondering if there is any way to cycle through a .wav file to get the amplitude/DB of a specific point in the wav file. i am reading it into a byte array now but that has no help to me from what i can see. i am using this in conjunction with…
0
votes
1 answer

Java: Serialize and Deserialize audio files

Im writing a small fighting-game. Right now im creating Character maker with animations, combos, etc. I allready had some problems with my sprites, because BufferedImage can not be serialized. This was solved with PixelGrabber - when i click…
0
votes
1 answer

pcm input on mp3 encoder

does anyone know how a PCM input is partitioned in a mp3 encoder? I already know that each input is a small part of the original wave and inside the encoder it's divided in 32 smaller parts and so forth, but what is the size of this initial input?
0
votes
0 answers

Python wave MemoryError

I'm processing wav files and checking each for energy levels using python's wave module. Everything works great for dozens of files but then suddenly I start to get this MemoryError exceptions. For the meanwhile I ignore the exception and continue…
devdc
  • 161
  • 1
  • 4
  • 13
0
votes
1 answer

Is a frame a sample?

I'm working with sound files in Java for a homework assignment (dealing with wave files only). I've read a lot of articles and information about wave files and the header and everything the only thing I'm confused with is a frame (For the sound data…
Kevin Heng
  • 173
  • 1
  • 3
  • 10
0
votes
3 answers

Linux and python: Combining multiple wave files to one wave file

I am looking for a way that I can combine multiple wave files into one wave file using python and run it on linux. I don't want to use any add on other than the default shell command line and default python modules. For example, if I have a.wav and…
victorxiv
  • 266
  • 3
  • 8
0
votes
1 answer

Generating a sin wave to be saved in a .mif file in MATLAB

I am trying to generate a sin wave that is 500Hz for the first 5 seconds, then 1000Hz to be saved in a .mif file in MATLAB. This is the general code I will be using to save the data to the .mif files, but I'm unsure how to properly generate the sin…
user1633930
  • 61
  • 1
  • 2
  • 10
0
votes
1 answer

iOS Seemingly the Same Strings with different behaviour

I'm storing a WAV filename in an array, including the extenstion. When I try to load it it is requiring the extension be removed. If I substring the extension off it abends, while the seemingly same string works fine when hard-coded. I also tried…
port5432
  • 5,889
  • 10
  • 60
  • 97
0
votes
3 answers

How can I convert an 8bit unsigned wave file, to an 8bit signed wave file?

I'm using NAudio with C# to convert wave files to 48,000, 8bit, Mono. I'm storing the converted data in a byte array. My code is below. It works fine, but the new wave file data is unsigned, and I need it to be signed. WaveFormat target = new…
user1561302
  • 81
  • 2
  • 5
0
votes
1 answer

Correctly decoding/encoding raw PCM data

I'm writing my WAVE decoder/encoder in C++. I've managed to correctly convert between different sample sizes (8, 16 and 32), but I need some help with the channels and the frequency. Channels: If I want to convert from stereo to mono: do I just…
goocreations
  • 2,938
  • 8
  • 37
  • 59
0
votes
1 answer

How do I create a audio sine wave file with some modifications in Java?

I want to create a sine wave file and apply some modifications like change in amplitude etc. at specific time intervals to the sine function. Any suggestions on how to go about it? An equivalent of https://ccrma.stanford.edu/software/stk/hello.html…
ishan
  • 1,029
  • 1
  • 12
  • 19
0
votes
1 answer

waveOutGetPosition always returns zero

I'm using waveOutWrite to write several small buffers (80ms each). As they are playing, I'm calling this function to get the playback position: uint GetWaveOutPosInMS() { WinMM.MMTIME mmtime = new WinMM.MMTIME(); …
eselk
  • 6,764
  • 7
  • 60
  • 93
0
votes
1 answer

Making "wave" effect with text, need to fix bug

This is what I did. As you can see, there is freaking mess when you hover over text fast. I want so that "wave" effect would not mess up after second immidiate hover and only after that "wave" effect can be done again. Thnx in advance!
phoxd
  • 1,546
  • 3
  • 12
  • 26
0
votes
2 answers

Making waves from letters with jQuery

I am trying to make waves from letters on hover using jQuery and its plugin called lettering.js, which spans every letter of a element. This is what I tried to do [http://jsbin.com/ezuze]) I am newb and tried using for loop, but failed :(. Anyone…
phoxd
  • 1,546
  • 3
  • 12
  • 26
0
votes
1 answer

Wav to MP3 Conversion

I'm making a program in Delphi, which records the audio from vinyl records, then detects and separates the different tracks from each other. My problem is I can't convert the recorded wav files to mp3. I have tried to use LAME, but that gives me an…
Grant
  • 233
  • 2
  • 5
  • 10