A relatively simple code found in audio processing. The original author’s code is on github: GitHub – silencesmile/python_wav: Processing of audio files: audio information, reading content, obtaining duration, cutting audio, and converting pcm and wav Code batches can be called with a given start and end time, example: This is the information of the original […]
Tag: wav
stm32 input capture measures the frequency of pwm wave
1. The concept of input capture In STM32 microcontrollers, input capture is a function used to measure external signal parameters. It is implemented through the timer module and can measure the frequency, duty cycle, pulse width, etc. of the signal. Input capture timer based counter and capture compare unit. When the capture trigger condition is […]
[Feature Extraction] Extract brainwave delta, theta, alhpa, beta, and gamma based on Matlab
v Personal homepage: Matlab Research Studio Personal credo: Investigate things to gain knowledge. For more complete Matlab code and simulation customization content, click Intelligent optimization algorithm Neural network prediction Radar communication Wireless sensor Power system Signal processing Image processing Path planning Cellular automaton Drone Content introduction Brain waves are electrical signals emitted by the human […]
Customized audio display in vue project, basic use of wavesurfer.js
Rendering: wavesurfer is a customizable audio waveform visualization built on top of the Audio API and HTML5 Canvas. Basic usage: <body> <script src=”//i2.wp.com/unpkg.com/wavesurfer.js”></script> <div id=”waveform”></div> <script> var wavesurfer = WaveSurfer.create({ container: ‘#waveform’, waveColor: ‘violet’, progressColor: ‘purple’ }); //Receive incoming audio wavesurfer.load(‘./test.mp3’); // event wavesurfer.on(‘ready’, function () { wavesurfer.play(); }); </script> </body> Commonly used parameters of […]
c Read audio protocol WAV file header (regenerate wav file)
Find the key struct location of the wav file header, and of course, you can also find the avi file header. After using this method to find the data location of the avi file, you can directly read out each frame of the file. Of course, the flag bit of avi data is not data, […]
GD32_Timer input capture waveform frequency
GD32_Timer input capture waveform frequency (multi-channel polling) In a previous project, a module was used that used a timer capture input to collect the fan waveform frequency to obtain the fan speed. As a note, simply record the following logical structure and problems encountered at that time. If you need to refer to the source […]
Python Snake’s simplest code, this wave has entered childhood memories~
Article directory Preface Snake code Summarize About Python technical reserves 1. Learning routes in all directions of Python 2. Python basic learning video 3. Excellent Python learning books 4. Python toolkit + project source code collection ①Python toolkit ②Python practical case ③Python mini game source code 5. Interview materials 6. Python part-time channels Foreword The […]
C# uses waveIn to implement sound collection
Article directory Preface 1. Required objects and methods 2. Overall process 3. Key realization 1. Use Thread to open the thread 2. TaskCompletionSource implements asynchronous 3. Use asynchronous streams to simplify calls 4. Complete code 1.Interface 2. Specific implementation 5. Usage examples Example 1 Example 2 Summarize Foreword I previously implemented “C++ uses waveIn to […]
WEBGL Special Topic-3D Special Effects-Drawing Wave Points
In this WebGL topic, we will learn how to use WebGL to create a 3D wavy point effect. We will use vertex and fragment shaders along with WebGL buffer objects and textures to create this effect. First, we need to define a triangle mesh and calculate the value of a wave function at each vertex. […]
Create UI images using wave animation in Unity
How to use Just add this component to an empty object in the canvas. It is highly recommended that you put this object into its own canvas/nested canvas as it will smear the canvas every frame and cause the entire mesh to be regenerated. Note: Sliced images are not supported. using System.Collections.Generic; using UnityEngine; using […]