# Generate

**URL:** <https://forum.audacityteam.org/t/generate/65467>\
**Category:** Windows\
**Created:** [August 26, 2022, 4:37pm UTC](https://forum.audacityteam.org/t/generate/65467 "2022-08-26T16:37:58Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![sussertown](https://forum.audacityteam.org/letter_avatar_proxy/v4/letter/s/6de8d8/32.png) [@sussertown](https://forum.audacityteam.org/u/sussertown)\
**Post date:** [August 26, 2022, 4:37pm UTC](https://forum.audacityteam.org/t/generate/65467/1 "2022-08-26T16:37:58Z")

</div>

Windows 11  
V. 3.1  
I can save a 6 second preset for silence on one end of the wave but I can’t seem to save it for both ends at the same time.

---

<div class="post-metadata">

**Author:** ![Trebor](https://forum.audacityteam.org/user_avatar/forum.audacityteam.org/trebor/32/45854_2.png) [@Trebor](https://forum.audacityteam.org/u/Trebor)\
**Post date:** [August 26, 2022, 4:47pm UTC](https://forum.audacityteam.org/t/generate/65467/2 "2022-08-26T16:47:55Z")

</div>

> [@](#):
>
> I can save a 6 second preset for silence on one end of the wave but I can’t seem to save it for both ends at the same time.

I think you need to make a macro for that … [Macros - Audacity Manual](https://manual.audacityteam.org/man/macros.html#manage)

> [@Macro equivalent fro "insert silence"?](https://forum.audacityteam.org/t/macro-equivalent-fro-insert-silence/51050/14):
>
> If the project has only one track, there’s a simpler way: SelectTime:End="-2" RelativeTo="ProjectEnd" Start="0" Silence:Use\_Preset="\<Current Settings\>" ExportAs.... (Notice that “End” is set to negative 2, relative to “Project End”) For a single track in a multi-track project, one additional command is required (“Select Track Start to End”), and then select relative to the end of the selection (but this version would not be used for batch processing): SelTrackStartToEnd: SelectTime:End=…

---

<div class="post-metadata">

**Author:** ![steve](https://forum.audacityteam.org/letter_avatar_proxy/v4/letter/s/f19dbf/32.png) [@steve](https://forum.audacityteam.org/u/steve)\
**Post date:** [August 29, 2022, 4:50pm UTC](https://forum.audacityteam.org/t/generate/65467/3 "2022-08-29T16:50:56Z")

</div>

If the track isn’t too long, you can add 6 seconds to the start and end using this code in the Nyquist Prompt effect ([https://manual.audacityteam.org/man/nyquist\_prompt.html](https://manual.audacityteam.org/man/nyquist_prompt.html)):

```plaintext
(defun add-space (sig current added)
  (abs-env
    (sim (s-rest (+ current (* 2 added)))
         (at added (cue sig)))))

(multichan-expand #'add-space *track* (get-duration 1) 6.0)

```
