Lightweight, text-based user interface (TUI) utility to recurse a directory and audition sound files.
cargo install --path .
In a shell, run:
sampletree <path/to/directory>
For example:
sampletree Drum\ Machines/
A user interface similar to the following should appear:
Traversing Drum Machines/
z[ ] x[ ] c[ ] v[ ]
[1/4433] Drum Machines/Alesis SR-16/SR16 Kik_Amb Elect.wav
Each sample is played as the user traverses the directory. Samples can be assigned to "pad" keys z, x, c, and v by pressing Shift+{z,x,c,y}, and played back by pressing the pad key after a sample has been assigned. The pads may be used as a primative drum machine to assist in auditioning the samples.
When exiting the program, the paths to the sample files assigned to the pads are dumped to stdout.
Key | Function |
---|---|
j or i | Play next sample |
k or o | Play previous sample |
Shift>+z | Assign current sample to z key |
z | Play sample assigned to z key |
Shift>+x | Assign current sample to x key |
x | Play sample assigned to x key |
Shift>+c | Assign current sample to c key |
c | Play sample assigned to c key |
Shift>+v | Assign current sample to v key |
v | Play sample assigned to v key |
s | Stop all sample playback |
q or Ctrl+c | Exit |
<any other key> |
Play current sample |