Audio Sidebar

approved

by pjeurien

This plugin has not been manually reviewed by Obsidian staff. A persistent sound panel in the sidebar for playing music tracks and one-shot sound effects, with volume control, crossfading, and embeddable note buttons.

↓ 192 downloadsUpdated 28d agoMIT

Audio Sidebar

An Obsidian plugin for managing music, one-shot sound effects, and looping ambience during play sessions β€” with a persistent sidebar player, note-embedded audio buttons, and fade-aware controls throughout.

Made by Patriek Jeuriens.

Features

  • Persistent right-sidebar player for folder-based music playback
  • Searchable one-shot sound effects picker with fade-out on stop
  • Searchable looping ambience picker β€” loops fade in and out automatically
  • Now-playing panel showing all active music, loops, and SFX with elapsed time and stop controls
  • Fade-aware crossfading for music tracks with a configurable duration
  • Optional music overlap mode for manual transitions between tracks
  • Per-category volume sliders: master, music, SFX, and loop
  • Scene creator: combine a music track and any number of loops into a single note button
  • Markdown codeblocks for note-embedded audio buttons
  • File-explorer context menu to copy ready-to-paste codeblocks

Codeblocks

Music sidebar loader

Loads a folder into the audio sidebar. Optionally auto-plays a specific track by basename.

```audiosidebar
Session Information/Campaigns/The Ballad of the Corpse Dancer/Audio
```
```audiosidebar
Session Information/Campaigns/The Ballad of the Corpse Dancer/Audio#The Ballad of the Corpse Dancer
```

One-shot sound effect

Plays a single sound effect immediately. Can be stopped with a fade from the now-playing panel.

```audiosfx
SFX#Door Slam
```

You can also target a file by its full vault path, or use folder#basename syntax to pick from a specific folder.

Looping ambience

Toggles a looping ambient sound on or off. The same loop cannot be started twice. Fades in on start and fades out on stop.

```audioloop
Loops#Rain Interior
```

Scene

Fades out all current audio and simultaneously starts a music track and any number of loops. Created with the 🎬 Create Scene button in the sidebar toolbar, which opens a dialog to pick a track and loops and copy the finished codeblock.

```audioscene
name: Tavern Night
music: Music/Bardify#Tavern Night
loop: Loops#Rain Interior
loop: Loops#Hearth Fire
```
  • name β€” label shown on the button (required)
  • music β€” optional; uses folder#basename syntax, same as audiosidebar
  • loop β€” optional; repeatable; uses folder#basename syntax, same as audioloop

Clicking the button fades out all active audio before starting the scene.

Fade out all audio

Fades out all active music and loops, and stops any active SFX. Intended as a scene-control button embedded directly in a note.

```audiofadeoutall
Fade out all audio
```

The label is optional β€” if omitted the button reads Fade out all audio.

Right-Click Menu

Folders

Right-clicking a folder in the file explorer provides:

  • Add to note as Audio Sidebar
  • Copy fade-out-all codeblock

Audio files

Right-clicking an audio file opens an Audio submenu with:

  • Copy track codeblock
  • Copy SFX codeblock
  • Copy loop codeblock
  • Copy fade-out-all codeblock

Commands

CommandDescription
Load audio from current note's folderLoads the active note's parent folder into the sidebar
Open sound effects pickerOpens the searchable one-shot SFX modal
Open loop pickerOpens the searchable loop modal
Stop all loopsFades out and stops all active loops
Fade out all audioFades out all music and loops, stops all SFX

Settings

SettingDescription
Default folderVault-relative path loaded automatically when the sidebar opens
Use selected folderCopies the folder selected in the file explorer into the default folder setting
Sound effects folderVault-relative path used by the SFX picker
Loops folderVault-relative path used by the loop picker
Allow music overlapLets multiple music tracks play simultaneously for manual crossfades
Master volumeOverall volume applied to all categories
Music volumeVolume for tracks played in the sidebar
Sound effects volumeVolume for one-shot effects
Loop volumeVolume for looping ambience
Music fade durationFade in/out duration in milliseconds, used for music and loops

Notes

  • audiosidebar uses the sidebar view and can auto-play a track after loading a folder.
  • audiosfx plays detached one-shot audio and does not require the sidebar to stay open.
  • audioloop tracks active loops by file path so the same loop cannot be started twice.
  • audioscene fades out all audio before starting, so it always starts clean.
  • audiofadeoutall uses the fade-aware stop path for music and loops.
  • SFX fade out over 500 ms when stopped from the now-playing panel. The stop-all command cuts immediately.

For plugin developers

Search results and similarity scores are powered by semantic analysis of your plugin's README. If your plugin isn't appearing for searches you'd expect, try updating your README to clearly describe your plugin's purpose, features, and use cases.