patch

08 / AUDIO

Play a file or stream

Use Player for a file, a saved recording or an HTTP(S) audio stream. It also holds a queue, a waveform, marks and a cart wall of sounds on pads, so it can run a podcast or a broadcast. Use the DJ decks when you need cue points, beat matching or transitions between tracks.

  1. Open Player from the controller.
  2. Choose Open file, or enter a file path or stream URL.
  3. Use Play/Pause, seek and volume as needed.
  4. Enable repeat if you want a timed file to loop.

Player's shortcuts are listed in Keyboard shortcuts: O opens the file chooser, Space plays or pauses, C cues, P sends Player to the headphone cue (PFL), ←/→ seek, , goes back 10 seconds and . on 30 (the -10 s and +30 s buttons beside Stop), L steps repeat, A sets an A-B loop and < / > change the speed. Seeking requires a source with a known duration; for a timed file the time shows what is left.

Stop rewinds a timed file; for a stream without a known duration, it closes the stream. There is no Stop key: use the Stop button. Closing the Player window leaves playback running. Reopen Player to control it again.

The waveform, the queue and going on where you left off

  • The waveform shows the whole file. What has played is in the accent colour; click or drag on it to go there. Ticks along its top are the file's chapters and the cue point, and an A-B loop is shaded. Patch never decodes the file into memory for it: the file is read as a low-rate stream at the lowest priority, the picture fills in from the left, and the result is cached. A stream has no waveform and keeps the plain seek line.
  • Queue (or Q) lines files up to play in order and lists them in place of the pads; in a window from 1000 px wide it sits beside them. Add… adds files, a click on a line plays it, ↑ moves it up and × takes it out. Next and Prev (N and B) move through it, and Shuffle and Clear are there too. Open file while a queue stands plays that file now and keeps the queue. The Player process holds the queue, so every window and the command line see the same one, and it is saved: after a restart the queue is there and Play goes on with it.
  • PLAYED LATELY lists what you opened before, under the queue. Click one to play it again.
  • A long file goes on where you left it. A file of ten minutes or longer (a podcast, an audiobook, a recorded set) keeps its place when you pause, stop the player or load something else, and every twenty seconds while it plays. Stop means "from the start next time". Shorter files always start at the beginning.
  • Speed runs from 0.5x to 2x with the pitch kept: the speed button steps through 1x, 1.25x, 1.5x, 1.75x, 2x and 0.75x, and < and > step a quarter.
  • A-B (A) loops a part: press at the start, press at the end, press again to clear.
  • Repeat (L) steps through this one, all (the whole queue) and off.

Marks and show notes

M (or Mark here) marks the current place and opens Marks, where you can name it ("name this place"). The list combines your marks with the file's own chapters (marked from the file). Click a timestamp to jump there; ; and ' go to the mark before and after. Copy puts the list on the clipboard as timestamps for show notes. Your marks are kept per file, separately from the audio. Q cycles through Carts, Queue and Marks.

Carts: sounds on pads

Under the transport the Player has a cart wall for a podcast or a broadcast: pads that start a sound at once, over whatever else plays. An intro, a commercial, B-roll, a sting, a music bed.

  • Four banks of twelve pads, named Intros, Commercials, B-roll and Effects (rename them as you like). The number row, 1 to =, plays the pads of the bank shown, and [ and ] change bank. A dot on a bank's tab says one of its sounds plays.
  • Press a pad to play it, press it again to stop it. A playing pad is lit, counts down what is left and draws its progress along its foot. Sounds overlap unless Solo is on: then starting a pad takes over from the others.
  • Fade (F) fades every cart out over two seconds; Stop (Esc) cuts them.
  • Click a free pad to give it a sound (Sound…). Choose several files and they fill the free pads after it. Right-click a pad, or Edit (E), changes one: its name, its sound, Loop (a bed that plays round until stopped), Fade (stopping it fades instead of cutting; a second press cuts) and its level, heard at once when it plays.
  • Hold plays while the pad or its key is held; releasing stops it (or fades it if Fade is on). Duck lowers the main Player transport by 12 dB while that pad plays, then restores it gently after the last ducking pad ends, keeping your volume setting. The colour swatch in Edit cycles five pad colours or none.
  • The carts play on the Player's stream: one Patch Player strip in the Mixer holds their level, EQ and PFL. Sounds keep playing when the window closes; the bar then shows a Carts row with Stop. Up to eight sounds play at once.

The board is saved in ~/.config/omarchy-patch/carts.json; every Player window and the command line share it. For a desktop key binding, a controller script or a Stream Deck:

Terminal
omarchy-patch player cart 3       # pad 3 of the bank shown: play, or stop it
omarchy-patch player cart commercials 1 # a pad of another bank (its number or name)
omarchy-patch player cart fade      # fade everything out · cart fade 3: one pad
omarchy-patch player cart stop      # cut everything   · cart stop 3: one pad
omarchy-patch player cart set 4 ~/ads/spot.wav "Sponsor"  # give pad 4 a sound
omarchy-patch player cart option 4 loop on         # also fade, hold, duck
omarchy-patch player cart colour 4 2 · cart clear 4 · cart bank 2 · cart status
omarchy-patch player skip -10      # back 10 s

The queue and the other new transport controls have commands too:

Terminal
omarchy-patch player add ~/Podcasts/*.mp3  # onto the queue
omarchy-patch player next · prev · queue · queue 3 · queue shuffle · queue clear
omarchy-patch player speed 1.5 · repeat off|one|all · ab
omarchy-patch player mark "Sponsor read" · marks · goto 120 · chapter next|prev

Each sound plays on its own detached mpv, which exits when the sound ends. While a Player window is open one spare waits idle, so a pad starts quickly; the first press with every window closed starts a little slower.

See Recorder and Player.