sound-synthesis

Using supercollider with python

假如想象 提交于 2019-12-20 12:25:07
问题 I want to do some real time sound processing and I heard about supercollider and it looks great, but I want to stick to python as far as 'normal' programming is the issue. Is there any way to load a python script as a module to supercollider or the oposite? meaning importing a library to my python code and using the supercollider features? I did not find much info about it in the web so any help will be great. 回答1: I am not aware of a python implementation of SuperCollider, however it is very

Using supercollider with python

倖福魔咒の 提交于 2019-12-20 12:24:10
问题 I want to do some real time sound processing and I heard about supercollider and it looks great, but I want to stick to python as far as 'normal' programming is the issue. Is there any way to load a python script as a module to supercollider or the oposite? meaning importing a library to my python code and using the supercollider features? I did not find much info about it in the web so any help will be great. 回答1: I am not aware of a python implementation of SuperCollider, however it is very

Generate sine wave to play middle C using PortAudio

落爺英雄遲暮 提交于 2019-12-13 00:53:30
问题 I am having trouble generating specific frequencies in PortAudio, whenever I try and change the frequency inside of the sin(n * FREQ * 2 * PI / SAMPLE_RATE) the frequency remains the same however the sound does seem to change in timbre, the higher the frequency value I put in there the uglier the sound, yet the same frequency. This is what I have in my patestCallback loop: static int patestCallback( const void *inputBuffer, void *outputBuffer, unsigned long framesPerBuffer, const

How to convert midi files to keypresses (in Python)?

一世执手 提交于 2019-12-12 18:36:53
问题 I'm trying to read a MIDI file and then convert each note (midi number) to a simulated keypress on the keyboard (A,f,h,J,t...). I'm able to read any MIDI file with the python-midi library like this: pattern = midi.read_midifile("example.mid") and I can also simulate keypresses with pywin32 like this: shell = win32com.client.Dispatch("WScript.Shell") shell.SendKeys(key) But I have no idea on how to actually convert midi numbers (that are in midi files) to keypresses. To be more precise I'm

Sound of a rolling ball

大城市里の小女人 提交于 2019-12-04 09:26:40
问题 I'm looking for the most realistic way of playing sound of a rolling ball. Currently I'm using a Wav sample that I play over and over as long as the ball is moving - which just doesn't feel right. I've been thinking about completely synthesizing the sound, which I know very little about (almost nothing), I'd be grateful for any tutorials/research materials/samples concerning synthesis of sound of a ball made of particular material rolling on surface made of another material. Also if this idea

Using supercollider with python

眉间皱痕 提交于 2019-12-03 02:24:23
I want to do some real time sound processing and I heard about supercollider and it looks great, but I want to stick to python as far as 'normal' programming is the issue. Is there any way to load a python script as a module to supercollider or the oposite? meaning importing a library to my python code and using the supercollider features? I did not find much info about it in the web so any help will be great. I am not aware of a python implementation of SuperCollider, however it is very easy to communicate between SC and Python with OpenSoundControl . Here is some sample code, from a tutorial

How to play chords in ASM 8086?

邮差的信 提交于 2019-12-01 11:40:02
I want to know what is the best way to play more then 1 note at the time in assembly. If you can, please add a procedure that explain your answer. Thanks! Orange, next code is a program a made long time ago in EMU8086 and Windows XP (it ran at that time). Now I have Windows 8 64 bits and it doesn't run anymore. I will give you the code because it may help you. All the names and comments are in spanish because I am costarrican, but the assembler code is universal (google translator will give you a hand): .model small .stack 100h .data ;-----------------------------------------------------------

How to play chords in ASM 8086?

一曲冷凌霜 提交于 2019-12-01 11:20:10
问题 I want to know what is the best way to play more then 1 note at the time in assembly. If you can, please add a procedure that explain your answer. Thanks! 回答1: Orange, next code is a program a made long time ago in EMU8086 and Windows XP (it ran at that time). Now I have Windows 8 64 bits and it doesn't run anymore. I will give you the code because it may help you. All the names and comments are in spanish because I am costarrican, but the assembler code is universal (google translator will

FFT Pitch Detection - Melody Extraction [closed]

房东的猫 提交于 2019-11-30 02:31:14
I am creating a pitch detection program that extracts the fundamental frequency from the power spectrum obtained from the FFT of a frame. This is what I have so far: divide input audio signal into frames. multiply frame with a Hamming window compute the FFT and magnitude of the frame sqrt(real^2 + img^2) find the fundamental frequency (peak) by harmonic product spectrum convert the frequency of the peak (bin frequency) to note (e. g. ~440 Hz is A4) Now the program produces an integer with value from 0 to 87 for each frame. Each integer corresponds to a piano note according to a formula I found

FFT Pitch Detection - Melody Extraction [closed]

梦想与她 提交于 2019-11-28 23:26:59
问题 Closed . This question needs to be more focused. It is not currently accepting answers. Want to improve this question? Update the question so it focuses on one problem only by editing this post. Closed 11 months ago . I am creating a pitch detection program that extracts the fundamental frequency from the power spectrum obtained from the FFT of a frame. This is what I have so far: divide input audio signal into frames. multiply frame with a Hamming window compute the FFT and magnitude of the