Generate Sustained Trumpet Tone

Is there a tool in the Audacity toolkit that will allow me to generate a track where the waveform sounds like a sustained trumpet note at a fundamental frequency I input? I am not interested in the ‘attack’ with which the tone starts, just the tone itself.

For example, I would like to lay down a track at 440 Hz at an amplitude I select, much like I can create a sine tone using the ‘generate’ function.

Alternatively, is there a menu item I’ve overlooked that will allow me to select a sine tone and transform it into a reasonable facsimile of a trumpet tone?

I am running Audacity 2.3.0 under Win 7/Pro X64.


The best solution would be to get a MIDI application. With MIDI you could just make an A that plays for many measures and assign it to a trumpet.

Or if you have a recording of the note/tone, “loop it”. …Just keep pasting copies together to make it as long as you like.

You could try generating a square wave and then equalize to see how close you can get. And/or try the same thing with a sawtooth wave.

Or, you could probably do something with [u]Nyquist programming[/u], but you’d have to learn how to program in Nyquist and you have to research how to “synthesize” a trumpet.

For a very approximate “trumpet-like” sound, you could try this in the Nyquist Prompt effect:

;type generate
;version 4

;control dur "Duration" float "seconds" 30 1 101
;control hz "Frequency" int "" 440 220 880

(setf pitch (hz-to-step hz))

(mult (sum 0.2 (mult 0.02 (lfo 4)))
      (highpass2 (lp (osc pitch dur *saw-table*) 2000)
                 hz 2.0))

For (much) more realistic synthesis, there’s a couple of articles here:
Part 1:
Part 2:

Could find a trumpet sample and stretch it

Trumpet waveform is WAY more complicated than a sine wave.
There may be a formula to synthesise a trumpet waveform, (but I don’t know what it is).

Thanks for the tone file.
I worked with it until I ran out of time.
I hope to explore its use again another day.


Arbitrary waveform generator ?

Arbitrary waveform generator.png

.17  -.08 -.23 -.2 -.12 -.05 0 -.01 -.02 -.02 0 0 0 -.01 -.02 -.03 -.05 -.04 -.03 -.02 0 .02 .05 .09 .13 .20 .27 .20

It’s trumpet-ish …