Questions tagged [sample-rate]

157 questions
1
vote
3 answers

How can I get into a wav file to change the sample rate?

I have a wav file pulled up in MATLAB, and I can see it's sample rate. All I need to do is change this 1 number. Everything else in the file will remain uncahnged. (The resulting sound would play at a different speed but would have an identical…
1
vote
3 answers

Play 48 kHz PCM on 44.1 kHz receiver

I have a 48 kHz PCM stream and want to stream it to a 44.1 kHz compatible player (Apple's AirPlay). Someone knows if this "just works because some bytes would get lost", or do I have to do a conversion/down-sampling before? If it not "just works",…
Martin L.
  • 3,006
  • 6
  • 36
  • 60
0
votes
0 answers

Raise real time event at audio sample rate

I'm playing around doing some audio synthesis in real time with C# .Net. I've got a VCO class that updates it's output waveform whenever the output waveform is read. In order to play a sound, I want to feed it into the DirectSound secondary buffer.…
0
votes
1 answer

Sample rate of the resulting wav after combing 2 wav files

I'm doing the following in VS2010 manually. 1. Read in 2 wave files, say "1.wav" and "2.wav". 2. Insert 2.wav to the middle of 1.wav. 3. Write the result wave stream to an output file "out.wav". I can now read in the wave files successfully using…
goldfrapp04
  • 2,326
  • 7
  • 34
  • 46
0
votes
1 answer

How to set sample rate in a VST3 plugin

I try to create a vst3 plugin that can resample audio data to a given sample rate. Just like the "Resampling Plugin" of Wavelab. How can a vst3 plugin change the output sample rate? A further problem is that I have only one sample count:…
Marc Klein
  • 13
  • 3
0
votes
0 answers

Weighted Sampler PyTorch

I would like to make a sampler for my dataloader. I have 12 unique classes in my dataset and it is really important that there is no more than one element of each class in each batch. It also doesn't matter how big the batch size is as long as this…
0
votes
1 answer

Divide by zero and adjust sample rate of sin(1/x)

I want to create the function f(x)=sin(30/x) in Manim. However, I get an error because I'm dividing by zero. So I adjusted the definition set. The sample rate is also too low, how can I increase the number of sample rates so that the graph is…
0
votes
1 answer

Movesense HR Sensor - Acceleration data noise level at high vs low sample frequency

measured standard deviation of the Acceleration signal from the Movesense HR+ sensor collected by the MS showcase app is the same at 1666Hz sample frequency compared to the 208Hz and even 26Hz SF. Assuming that 1666Hz is fastes sampling possible,…
0
votes
1 answer

Unity animation not playing at low sample rate

I'm using Unity 2019.4.24f1. I have a simple animation of 2 sprites. 1 for 2 frames, then the other for 2 frames. At a sample rate of 12 the animation plays perfectly, only too fast. If I lower the sample rate to 6, then the animation doesn't play.…
Zoltán Király
  • 259
  • 1
  • 12
0
votes
1 answer

Is there a limit of sample rate of accelerometer on android?

Is it possible to reading data from accelerometer with very high sample rate? I need about an 1-2 KHZ. My sensor is can read data with sample rate 25 KHZ, but on android it reading data with 200-400 HZ sample rate. What to do?
RD1706
  • 11
  • 3
0
votes
0 answers

I want to extract a sample from a .wav audio file, how can I do that?

first of all i apologize because i am new to programming. now I have .wav files as in section A in the picture. My goal is to output partition B from partition A. I do not want a direct solution from you, but what are the issues that I need to…
efeaysal
  • 1
  • 1
0
votes
1 answer

How to get the key value of json generated by the ffmpeg command?

ffprobe -hide_banner -loglevel panic -show_streams -of json 01e8adee-b0f9-4569-a5f5-b2d69d1f7088.flac output:- { "streams": [ { "index": 0, "codec_name": "flac", …
0
votes
0 answers

How to get the sample rate info of a file using JavaScript

I'm trying to get the sample rate information of a file before uploading it to server, need to access this for some validation purpose on browser. What I did so far let reader = new FileReader(); reader.readAsArrayBuffer(e.files[0]); reader.onload =…
phpLover
  • 155
  • 1
  • 2
  • 14
0
votes
1 answer

I cant run filesource<->uhd/any sink flowgraph on gnuradio and high samplate

I am going to transmit the complex data produced from matlab by using usrp b210 and gnuradio on windows. gnuradio flowgraph is following: Here, data type is complex. Problem: I want sample-rate is 20MHz or 30.72MHz, but gnuradio is stoped, logging…
Leonardo
  • 3
  • 1
0
votes
2 answers

Define samplerate in Formants Parselmouth Python

I'm super new to praat parselmouth in python and I am a big fan, as it enables analyzes without Praat. So my struggle is, that I need formants in a specific sampling rate but I cant change it here. If I change the time_step (and also time window),…