Questions tagged [sound-synthesis]

Periodic electric signals can be converted into sound by amplifying them and driving a loudspeaker with them. One way to do this is to simply add various amplitudes of the harmonics of a chosen pitch until the desired timbre is obtained, called additive synthesis. Another way is to start with geometric waves, which are rich in harmonic content, and filter the harmonics to produce a new sound- subtractive synthesis.

91 questions
2
votes
1 answer

How to send blocks of audio to be processed by synthesizer -- without discontinuities

I am using the Juce framework to build a VST/AU audio plugin. The audio plugin accepts MIDI, and renders that MIDI as audio samples — by sending the MIDI messages to be processed by FluidSynth (a soundfont synthesizer). This is almost working. MIDI…
Birchlabs
  • 7,437
  • 5
  • 35
  • 54
2
votes
2 answers

Android audiotrack getMinBufferSize() returning different values on different devices

I have an audio synthesis app that uses buffersize and a seekbar value to change the tempo. The smaller the buffer size, the faster the tempo. The seekbar value is subtracted from the buffer size; the further the seekbar is moved, the faster the…
arius
  • 89
  • 3
  • 12
2
votes
3 answers

Free Wavetable Synthesizer?

I need to implement a wavetable synthesizer in an ARM Cortex-M3 core. I'm looking for any code or tools to help me get started. I'm aware of this AVR implementation. I actually converted it to a PIC a while back. Now I am looking for something…
Imbue
  • 3,897
  • 6
  • 40
  • 42
2
votes
1 answer

Synthesizing Singing

So this is from the late 90s ... http://www.cs.princeton.edu/~prc/SingingSynth.html Why hasn't this taken off? (We can synthesize photorealistic like images, but the synthesis of singing ... still seems to be in very primitive stages). What exactly…
anon
  • 41,035
  • 53
  • 197
  • 293
2
votes
2 answers

What's a simple way to output homebrewed synthesized sound on Unix?

I want to do some sound synthesis on Mac OS X (and ideally other Unix-like OS) using ANSI C. This is for learning purposes rather than "I need a solution, any solution, quick!" Say I have an 8-bit buffer in my C program that I update 22050 times a…
xyz
  • 27,223
  • 29
  • 105
  • 125
2
votes
0 answers

Linear ramp not acting linearly with gain node

EDIT: found the fix. I was missing g.gain.setValueAtTime(0,now); before the line setting the attack ramp below. The g.gain.value = 0; was also redundant after adding that. So I'm having a weird issue. Let me give some background: I'm implementing a…
Matt Hancock
  • 3,870
  • 4
  • 30
  • 44
2
votes
2 answers

Language for realtime, low-latency sound synthesis and fast processing?

I'm a IT student in the university, been programming in Visual Basic for a great time. Learnt Java here and C# by myself(really analog to Java). I am also a music producer, and I want to start working on a large project, just for myself, for fun and…
2
votes
1 answer

Music multiple simultaneous tones, python

I am working on an interesting project relating solving mathematical problems and music. It is easy to generate a specific note (or tone): ton = amplitude * sin(2pi * frequency * time / samplerate) I'm working in python, and have code to do this…
Dr. Andrew
  • 2,532
  • 3
  • 26
  • 42
2
votes
1 answer

How to code an audio envelope (attack time, fade in) for a Sound object?

I made a simple sine wave tone generator. The problem is that when the tone is played a strong click can be heard, and I need to implement a fast fade in (attack time) to avoid this. I tried using tweening (like tweenmax) but it induces distortion…
NPN328
  • 1,863
  • 3
  • 27
  • 47
2
votes
0 answers

Synthesis toolkit: MIDI note has different frequencies with different instruments

I have been experimenting with using the Synthesis toolkit for an audio project. I wrote a quick program below, that generates a WAV file of duration 1 sec with MIDI note 49. Actually, the program generates two such files, one using a "Bowed"…
Karthik
  • 719
  • 2
  • 11
  • 18
1
vote
1 answer

Realtime time playing of synthesised sounds in C#

I'm trying to write a mini synth program. Essentially, every 200mS a timer is fired. When this is fired, 200mS worth of PCM samples are generated by the loop (e.g. sawtooth, sine wave etc, etc.), the number of samples related to the sample rate and…
1
vote
1 answer

Generate sounds programmatically

I want to develop a bada application that generate notes when user touches the screen. Is there any way to do that? I remember my old Amstrad CPC 464 had a BASIC instruction, SOUND, to generate sounds programmatically. Is there any library to do…
VansFannel
  • 45,055
  • 107
  • 359
  • 626
1
vote
0 answers

How to get rid of clicking in my phase accumulator when I change the pitch?

I'm currently trying to make my own FM synthesizer, but instead of modulating sine waves, I modulate wavetables, or, one cycle waveforms. I did the phase accumulator, but the problem is when I do a pitch change, like a vibrato for exemple, I have…
1
vote
0 answers

How can I synthesise a phoneme through python by using frequency and sample rate

I am a 10th grade high school computer student looking for help with python audio. I'm not asking anyone to do any work for me, but I've reached an impasse. I am trying to create a custom speech program using python (not through the use of GTTS or…
1
vote
1 answer

Synthesized polyphonic sound completely different from the "real" one

I am making a software audio synthesizer and so far i've managed to play a single tone at once. My goal was to make it polyphonic, i.e when i press 2 keys both are active and produce sound (i'm aware that a speaker can only output one waveform at a…