-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsetup_daf_tabla.sh
More file actions
executable file
·76 lines (67 loc) · 2.45 KB
/
Copy pathsetup_daf_tabla.sh
File metadata and controls
executable file
·76 lines (67 loc) · 2.45 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
#!/bin/bash
# Daf/Tabla Demo Setup Script
# This script sets up the directory structure and placeholder sound files
echo "================================================"
echo " Daf & Tabla Demo Setup"
echo "================================================"
echo ""
# Create directories
echo "Creating sound directories..."
mkdir -p sounds/tabla
mkdir -p sounds/daf
echo "✓ Directories created"
echo ""
# Check if we have existing sound files to use as placeholders
if [ -f "sounds/upla.wav" ]; then
echo "Setting up placeholder sound files..."
echo "(Replace these with real tabla/daf samples later)"
echo ""
# Copy existing sounds as placeholders for tabla
cp sounds/upla.wav sounds/tabla/na.wav
cp sounds/beezoo.wav sounds/tabla/tin.wav
cp sounds/hopla.wav sounds/tabla/te.wav
cp sounds/bisou.wav sounds/tabla/ge.wav
cp sounds/yallah.wav sounds/tabla/ka.wav
cp sounds/upla.wav sounds/tabla/dha.wav
# Copy existing sounds as placeholders for daf
cp sounds/beezoo.wav sounds/daf/dum.wav
cp sounds/hopla.wav sounds/daf/tak.wav
cp sounds/bisou.wav sounds/daf/roll.wav
echo "✓ Placeholder files created"
echo ""
echo "Placeholder files created:"
echo " Tabla: na.wav, tin.wav, te.wav, ge.wav, ka.wav, dha.wav"
echo " Daf: dum.wav, tak.wav, roll.wav"
echo ""
else
echo "⚠️ No existing sound files found in sounds/ directory"
echo ""
echo "Please either:"
echo " 1. Place .wav files in sounds/ directory and re-run this script"
echo " 2. Download tabla/daf samples manually (see sounds/DAF_TABLA_SOUNDS.md)"
echo ""
fi
echo "================================================"
echo "Next steps:"
echo "================================================"
echo ""
echo "1. Review the sound setup guide:"
echo " cat sounds/DAF_TABLA_SOUNDS.md"
echo ""
echo "2. (Optional) Replace placeholder sounds with real tabla/daf samples"
echo ""
echo "3. Run the demo:"
echo " python demos/daf_tabla.py"
echo ""
echo "4. Choose different layouts:"
echo " python demos/daf_tabla.py --layout DAF_TABLA"
echo " python demos/daf_tabla.py --layout TABLA_FULL"
echo " python demos/daf_tabla.py --layout DAF_FULL"
echo ""
echo "5. Or use with web UI:"
echo " python main_web.py"
echo " # Then load the daf_tabla config in the web interface"
echo ""
echo "================================================"
echo "Setup complete! 🎵"
echo "================================================"