How do you get amplitude modulation (tremolo) based on a sample?

Use Audacity’s pitch-shift to drop the frequency of the modulator audio down by an octave, before multiplying.

One way to achieve that envelope shape is to full-wave rectify the modulator audio then use the multiply code …

full rectify , then multiply.gif