-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdaf_tabla.yaml
More file actions
156 lines (132 loc) · 3.87 KB
/
Copy pathdaf_tabla.yaml
File metadata and controls
156 lines (132 loc) · 3.87 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
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
name: "Daf & Tabla Percussion"
artist: "BabySynth"
tempo: 120
key: "Percussion"
# This config creates an interactive daf/tabla soundboard on the Launchpad
# Layout maps traditional Persian/Indian percussion strokes to the grid
models:
DAF_TABLA:
layout: |
xxxxxxxxx
DDDDTTTTx
DDDDTTTTx
DDDDTTTTx
DDDDTTTTx
BBBBSSSSx
BBBBSSSSx
BBBBSSSSx
BBBBSSSSx
TABLA_FULL:
layout: |
xxxxxxxxx
NNNTTTKKx
NNNTTTKKx
NNNTTTKKx
DDDGGGCCx
DDDGGGCCx
DDDGGGCCx
RRRRRRRRx
RRRRRRRRx
DAF_FULL:
layout: |
xxxxxxxxx
DDDDDDDDx
DDDDDDDDx
TTTTTTTTx
TTTTTTTTx
KKKKKKKKx
KKKKKKKKx
RRRRRRRRx
RRRRRRRRx
# Scales and colors (required by synth.py, not used for percussion)
scales:
C_major: [C, D, E, F, G, A, B]
colors:
C: [255, 0, 0]
D: [0, 255, 0]
E: [0, 0, 255]
F: [255, 255, 0]
G: [0, 255, 255]
A: [255, 0, 255]
B: [128, 128, 128]
# File mappings for different percussion strokes
# Place your .wav files in the sounds/tabla/ and sounds/daf/ directories
file_char_and_locations:
# Tabla strokes (treble drum - right hand)
N: "./sounds/tabla/na.wav" # Open stroke on rim
T: "./sounds/tabla/tin.wav" # Closed stroke on rim
K: "./sounds/tabla/te.wav" # Middle stroke
# Tabla bass strokes (bayan - left hand)
D: "./sounds/tabla/ge.wav" # Open bass
G: "./sounds/tabla/ka.wav" # Bass slap
# Daf strokes
B: "./sounds/daf/dum.wav" # Bass center stroke
S: "./sounds/daf/tak.wav" # Treble rim stroke
# Complex strokes
C: "./sounds/tabla/dha.wav" # Combined stroke (Na + Ge)
R: "./sounds/daf/roll.wav" # Finger roll
# Color coding for visual feedback
# Red tones = Bass/Low sounds
# Blue tones = Treble/High sounds
# Purple = Combined strokes
# Green = Rolls/Special effects
file_colors:
# Tabla treble (blue spectrum)
N: [100, 150, 255] # Light blue - Na
T: [50, 100, 200] # Medium blue - Tin
K: [0, 50, 150] # Dark blue - Te
# Tabla bass (red spectrum)
D: [255, 50, 50] # Bright red - Ge (open bass)
G: [200, 0, 0] # Dark red - Ka (slap)
# Daf strokes (orange/yellow for frame drum)
B: [255, 100, 0] # Orange - Dum (bass)
S: [255, 200, 0] # Yellow - Tak (treble)
# Special strokes
C: [150, 0, 150] # Purple - Dha (combined)
R: [0, 255, 100] # Green - Roll
debounce: true
# Traditional rhythm patterns (for reference/future expansion)
# These can be used to create auto-play sequences
tabla_rhythms:
Teental: # 16 beat cycle (4+4+4+4)
description: "Most common Hindustani rhythm"
pattern: "Dha Dhin Dhin Dha | Dha Dhin Dhin Dha | Dha Tin Tin Ta | Ta Dhin Dhin Dha"
beats: 16
Jhaptal: # 10 beat cycle (2+3+2+3)
description: "10-beat cycle"
pattern: "Dhi Na | Dhi Dhi Na | Ti Na | Dhi Dhi Na"
beats: 10
Rupak: # 7 beat cycle (3+2+2)
description: "7-beat cycle"
pattern: "Tin Tin Na | Dhi Na | Dhi Na"
beats: 7
daf_rhythms:
Basic_Dum_Tak:
description: "Basic daf rhythm"
pattern: "Dum - Tak Tak | Dum - Tak Tak"
Persian_6_8:
description: "Persian 6/8 rhythm"
pattern: "Dum Tak Ka Tak Dum Tak"
Khaliji:
description: "Gulf region rhythm"
pattern: "Dum Dum Tak - Dum Tak Tak"
# Instructions for use
instructions: |
DAF_TABLA Layout:
- Top 4 rows (D): Bass strokes (Dum/Ge)
- Top 4 rows (T): Treble strokes (Tak/Tin)
- Bottom 4 rows (B): Daf bass
- Bottom 4 rows (S): Daf treble
TABLA_FULL Layout:
- Left section (N): Na strokes
- Middle top (T): Tin strokes
- Right top (K): Te strokes
- Left middle (D): Ge bass
- Center middle (G): Ka slap
- Right middle (C): Dha combined
- Bottom row (R): Rolls
DAF_FULL Layout:
- Top rows: Bass (Dum)
- Upper middle: Treble (Tak)
- Lower middle: Slaps (Ka)
- Bottom: Rolls