Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/common/Util/Instruments.py
blob: eb0828e712698b0ae7b3f58e0d85a5c9b0c606be (plain)
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
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
import os
from gettext import gettext as _

import common.Config as Config
from common.Config import imagefile
import common.Util.InstrumentDB as InstrumentDB

LOW = Config.LOW
MID = Config.MID
HIGH = Config.HIGH
PUNCH = Config.PUNCH

INSTRUMENT_TABLE_OFFSET = Config.INSTRUMENT_TABLE_OFFSET
INST_FREE = Config.INST_FREE
INST_TIED = Config.INST_TIED
INST_SIMP = Config.INST_SIMP
INST_PERC = Config.INST_PERC

instrumentDB = InstrumentDB.getRef()


def _addInstrument(name, csoundInstrumentId, instrumentRegister, category,
        loopStart, loopEnd, crossDur, ampScale=1, kit=None, kitStage=False,
        volatile=False, nameTooltip=""):
    instrumentDB.addInstrumentFromArgs(name, csoundInstrumentId,
            instrumentRegister, loopStart, loopEnd, crossDur, ampScale, kit,
            name, imagefile(name + '.png'), category, kitStage=kitStage,
            volatile=volatile, nameTooltip=nameTooltip)

if Config.FEATURES_MIC:
    _addInstrument("mic1", INST_TIED, MID, 'mysounds', .01, 1.99, .01, 1, volatile=True)
    _addInstrument("mic2", INST_TIED, MID, 'mysounds', .01, 1.99, .01, 1, volatile=True)
    _addInstrument("mic3", INST_TIED, MID, 'mysounds', .01, 1.99, .01, 1, volatile=True)
    _addInstrument("mic4", INST_TIED, MID, 'mysounds', .01, 1.99, .01, 1, volatile=True)

if Config.FEATURES_LAB:
    _addInstrument("lab1", INST_SIMP, MID, 'mysounds', 0, 0, 0, 1, volatile=True)
    _addInstrument("lab2", INST_SIMP, MID, 'mysounds', 0, 0, 0, 1, volatile=True)
    _addInstrument("lab3", INST_SIMP, MID, 'mysounds', 0, 0, 0, 1, volatile=True)
    _addInstrument("lab4", INST_SIMP, MID, 'mysounds', 0, 0, 0, 1, volatile=True)
    _addInstrument("lab5", INST_SIMP, MID, 'mysounds', 0, 0, 0, 1, volatile=True)
    _addInstrument("lab6", INST_SIMP, MID, 'mysounds', 0, 0, 0, 1, volatile=True)

_addInstrument('ounk', INST_SIMP, MID, 'animals',
        0, 0, 0, 1,
        # TRANS: The sound made by this animal
        # TRANS: http://en.wikipedia.org/wiki/Guinea_pig
        nameTooltip=_('Guinea Pig'))
_addInstrument('gam', INST_TIED, HIGH, 'percussions',
        .69388, .7536, .02922, 1.4,
        # TRANS: The sound made by this instrument
        # TRANS: http://en.wikipedia.org/wiki/Gamelan
        nameTooltip=_('Gamelan'))
_addInstrument('guit', INST_TIED, MID, 'strings',
        .08592, .75126, .33571, 0.7,
        # TRANS: The sound made by this instrument
        # TRANS: http://en.wikipedia.org/wiki/Electric_guitar
        nameTooltip=_('Electric Guitar'))
_addInstrument('guitmute', INST_SIMP, MID, 'strings',
        0, 0, 0, 0.6,
        # TRANS: The sound made by this instrument
        # TRANS: http://en.wikipedia.org/wiki/Electric_guitar
        nameTooltip=_('Electric Guitar'))
_addInstrument('guitshort', INST_SIMP, MID, 'strings',
        0, 0, 0, 0.6,
        # TRANS: The sound made by this instrument
        # TRANS: http://en.wikipedia.org/wiki/Electric_guitar
        nameTooltip=_('Electric Guitar'))
_addInstrument('koto', INST_TIED, HIGH, 'strings',
        .56523, .70075, .05954, 1,
        # TRANS: The sound made by this instrument
        # TRANS: http://en.wikipedia.org/wiki/Koto_%28musical_instrument%29
        nameTooltip=_('Koto'))
_addInstrument('banjo', INST_TIED, MID, 'strings',
        .8928046875, 1.6325390625, .0525, 0.6,
        # TRANS: The sound made by this instrument
        # TRANS: http://en.wikipedia.org/wiki/Banjo
        nameTooltip=_('Banjo'))
_addInstrument('ukulele', INST_TIED, MID, 'strings',
        .64097090625, 1.0887984375, .17375, 0.35,
        # TRANS: The sound made by this instrument
        # TRANS: http://en.wikipedia.org/wiki/Ukulele
        nameTooltip=_('Ukulele'))
_addInstrument('harpsichord', INST_TIED, MID, 'keyboard',
        .57529609375, .936075, .2, 0.35,
        # TRANS: The sound made by this instrument
        # TRANS: http://en.wikipedia.org/wiki/Harpsichord
        nameTooltip=_('Harpsichord'))
_addInstrument('clarinette', INST_TIED, MID, 'winds',
        1.635276375, 2.72956523438, .2, 0.3,
        # TRANS: The sound made by this instrument
        # TRANS: http://en.wikipedia.org/wiki/Clarinet
        nameTooltip=_('Clarinet'))
_addInstrument('flute', INST_TIED, MID, 'winds',
        .47169, .53693, .02481, 1.3,
        # TRANS: The sound made by this instrument
        # TRANS: http://en.wikipedia.org/wiki/Flute
        nameTooltip=_('Flute'))
_addInstrument("drum1hatpedal", INST_SIMP, MID, 'percussions',
        0, 0, 0, 1, kitStage=True)
_addInstrument("drum1hatshoulder", INST_SIMP, HIGH, 'percussions',
        0, 0, 0, 1, kitStage=True)
_addInstrument("drum1hardride", INST_SIMP, MID, 'percussions',
        0, 0, 0, 1, kitStage=True)
_addInstrument("drum1ridebell", INST_SIMP, HIGH, 'percussions',
        0, 0, 0, 1, kitStage=True)
_addInstrument("drum1snare", INST_SIMP, MID, 'percussions',
        0, 0, 0, 1, kitStage=True)
_addInstrument("drum1snaresidestick", INST_SIMP, MID, 'percussions',
        0, 0, 0, 1, kitStage=True)
_addInstrument("drum1crash", INST_SIMP, PUNCH, 'percussions',
        0, 0, 0, 1, kitStage=True)
_addInstrument("drum1splash", INST_SIMP, PUNCH, 'percussions',
        0, 0, 0, 1, kitStage=True)
_addInstrument("drum1tom", INST_SIMP, MID, 'percussions',
        0, 0, 0, 1, kitStage=True)
_addInstrument("drum1floortom", INST_SIMP, LOW, 'percussions',
        0, 0, 0, 1, kitStage=True)
_addInstrument("drum1chine", INST_SIMP, PUNCH, 'percussions',
        0, 0, 0, 1, kitStage=True)
_addInstrument("drum1kick", INST_SIMP, LOW, 'percussions',
        0, 0, 0, 1, kitStage=True)
_addInstrument("drum7kit", INST_SIMP, MID, 'percussions', #FOSS 4/10/2013
		0, 0, 0, 1, kitStage=True
			nameTooltip=_('fossdrum'))
		
_addInstrument('piano', INST_TIED, MID, 'keyboard',
        0.8883, 1.420524, .13575, 1,
        # TRANS: The sound made by this instrument
        # TRANS: http://en.wikipedia.org/wiki/Piano
        nameTooltip=_('Piano'))
_addInstrument('dog', INST_SIMP, MID, 'animals',
        0, 0, 0, 1,
        # TRANS: The sound made by this animal
        # TRANS: http://en.wikipedia.org/wiki/Dog
        nameTooltip=_('Dog'))
_addInstrument('chiken', INST_TIED, MID, 'animals',
        .1972125, .8689675781, .02, 0.5,
        # TRANS: The sound made by this animal
        # TRANS: http://en.wikipedia.org/wiki/Chicken
        nameTooltip=_('Chicken'))
_addInstrument('duck', INST_SIMP, MID, 'animals',
        0, 0, 0, 0.7,
        # TRANS: The sound made by this animal
        # TRANS: http://en.wikipedia.org/wiki/Duck
        nameTooltip=_('Duck'))
_addInstrument('armbone', INST_SIMP, MID, 'people',
        0, 0, 0, 0.8,
        # TRANS: The sound made by a person doing this
        # TRANS: http://en.wikipedia.org/wiki/Blowing_a_raspberry
         nameTooltip=_('Raspberry'))
_addInstrument("drum2darbukadoom", INST_SIMP, LOW, 'percussions',
        0, 0, 0, 1, kitStage=True)
_addInstrument("drum2darbukapied", INST_SIMP, LOW, 'percussions',
        0, 0, 0, 1, kitStage=True)
_addInstrument("drum2darbukapiedsoft", INST_SIMP, LOW, 'percussions',
        0, 0, 0, 1, kitStage=True)
_addInstrument("drum2hatflanger", INST_SIMP, PUNCH, 'percussions',
        0, 0, 0, 1, kitStage=True)
_addInstrument("drum2darbukatak", INST_SIMP, PUNCH, 'percussions',
        0, 0, 0, 1, kitStage=True)
_addInstrument("drum2darbukafinger", INST_SIMP, MID, 'percussions',
        0, 0, 0, 1, kitStage=True)
_addInstrument("drum2darbukaroll", INST_SIMP, HIGH, 'percussions',
        0, 0, 0, 1, kitStage=True)
_addInstrument("drum2darbukaslap", INST_SIMP, MID, 'percussions',
        0, 0, 0, 1, kitStage=True)
_addInstrument("drum2hatpied", INST_SIMP, MID, 'percussions',
        0, 0, 0, 1, kitStage=True)
_addInstrument("drum2tambourinepied", INST_SIMP, MID, 'percussions',
        0, 0, 0, 1, kitStage=True)
_addInstrument("drum2hatpied2", INST_SIMP, HIGH, 'percussions',
        0, 0, 0, 1, kitStage=True)
_addInstrument("drum2tambourinepiedsoft", INST_SIMP, HIGH, 'percussions',
        0, 0, 0, 1, kitStage=True)
_addInstrument("drum3cowbell", INST_SIMP, HIGH, 'percussions',
        0, 0, 0, 1, kitStage=True)
_addInstrument("drum3cowbelltip", INST_SIMP, MID, 'percussions',
        0, 0, 0, 1, kitStage=True)
_addInstrument("drum3cup", INST_SIMP, HIGH, 'percussions',
        0, 0, 0, 1, kitStage=True)
_addInstrument("drum3djembelow", INST_SIMP, LOW, 'percussions',
        0, 0, 0, 1, kitStage=True)
_addInstrument("drum3djembemid", INST_SIMP, HIGH, 'percussions',
        0, 0, 0, 1, kitStage=True)
_addInstrument("drum3djembesidestick", INST_SIMP, MID, 'percussions',
        0, 0, 0, 1, kitStage=True)
_addInstrument("drum3djembeslap", INST_SIMP, LOW, 'percussions',
        0, 0, 0, 1, kitStage=True)
_addInstrument("drum3djembestickmid", INST_SIMP, MID, 'percussions',
        0, 0, 0, 1, kitStage=True)
_addInstrument("drum3metalstand", INST_SIMP, MID, 'percussions',
        0, 0, 0, 1, kitStage=True)
_addInstrument("drum3pedalperc", INST_SIMP, LOW, 'percussions',
        0, 0, 0, 1, kitStage=True)
_addInstrument("drum3rainstick", INST_SIMP, PUNCH, 'percussions',
        0, 0, 0, 1, kitStage=True)
_addInstrument("drum3tambourinehigh", INST_SIMP, PUNCH, 'percussions',
        0, 0, 0, 1, kitStage=True)
_addInstrument("drum3tambourinelow", INST_SIMP, PUNCH, 'percussions',
        0, 0, 0, 1, kitStage=True)
_addInstrument('harmonica', INST_TIED, MID, 'winds',
        .1531, .19188, .01792, 1,
        # TRANS: The sound made by this instrument
        # TRANS: http://en.wikipedia.org/wiki/Harmonica
        nameTooltip=_('Harmonica'))
_addInstrument('alarm', INST_TIED, MID, 'concret',
        1.37555859375, 2.0286015625, .0675, 0.4,
        # TRANS: The sound of an alarm bell
        nameTooltip=_('Alarm'))
_addInstrument('bird', INST_TIED, MID, 'animals',
        .1, 1, .05, 1,
        # TRANS: The sound made by this animal
        # TRANS: http://en.wikipedia.org/wiki/Bird
        nameTooltip=_('Bird'))
_addInstrument('frogs', INST_TIED, MID, 'animals',
        1.954453125, 4.350234375, .2, 0.5,
        # TRANS: The sound made by this animal
        # TRANS: http://en.wikipedia.org/wiki/Frog
        nameTooltip=_('Frog'))
_addInstrument('cat', INST_SIMP, MID, 'animals',
        0, 0, 0, 0.8,
        # TRANS: The sound made by this animal
        # TRANS: http://en.wikipedia.org/wiki/Cat
        nameTooltip=_('Cat'))
_addInstrument('cow', INST_SIMP, MID, 'animals',
        # TRANS: The sound made by this animal
        # TRANS: http://en.wikipedia.org/wiki/Cow
        0, 0, 0, 0.7, nameTooltip=_('Cow'))
_addInstrument('cricket', INST_SIMP, MID, 'animals',
        0, 0, 0, 0.5,
        # TRANS: The sound made by this animal
        # TRANS: http://en.wikipedia.org/wiki/Cricket_%28insect%29
        nameTooltip=_('Cricket'))
_addInstrument('duck2', INST_SIMP, MID, 'animals',
        0, 0, 0, 1,
        # TRANS: The sound made by this animal
        # TRANS: http://en.wikipedia.org/wiki/Duck
        nameTooltip=_('Duck'))
_addInstrument('bottle', INST_TIED, MID, 'concret',
        .20532, .41064, .05292, 0.8,
        # TRANS: The sound of a bottle being hit
        # TRANS: http://en.wikipedia.org/wiki/Bottle
        nameTooltip=_('Bottle'))
_addInstrument('clang', INST_SIMP, MID, 'concret',
        0, 0, 0, 0.8,
        # TRANS: The sound of a garbage can
        nameTooltip=_('Dump'))
_addInstrument('clang2', INST_SIMP, MID, 'percussions',
        0, 0, 0, 0.6,
        # TRANS: The sound made by this instrument
        # TRANS: http://en.wikipedia.org/wiki/Cymbal
        nameTooltip=_('Cymbal'))
_addInstrument('ow', INST_SIMP, MID, 'people',
        0, 0, 0, 1,
        # TRANS: The sound of a person being hit
        nameTooltip=_('Ow'))
_addInstrument('hey', INST_SIMP, MID, 'people',
        0, 0, 0, 0.5,
        # TRANS: A surprised shout
        nameTooltip=_('Hey'))
_addInstrument('sheep', INST_SIMP, MID, 'animals',
        0, 0, 0, 1,
        # TRANS: The sound made by this animal
        # TRANS: http://en.wikipedia.org/wiki/Sheep
        nameTooltip=_('Sheep'))
_addInstrument('water', INST_SIMP, MID, 'concret',
        0, 0, 0, 1,
        # TRANS: The sound of water splashing
        # TRANS: http://en.wikipedia.org/wiki/Water
        nameTooltip=_('Water'))
_addInstrument('zap', INST_TIED, MID, 'concret',
        .299, .7323, .09895, 0.8,
        # TRANS: A science-fiction ray gun sound
        nameTooltip=_('Ray Gun'))
_addInstrument('trumpet', INST_TIED, MID, 'winds',
        .91195, 1.652909375, .05375, 0.3,
        # TRANS: The sound made by this instrument
        # TRANS: http://en.wikipedia.org/wiki/Trumpet
        nameTooltip=_('Trumpet'))
_addInstrument('clavinet', INST_TIED, MID, 'keyboard',
        .6398328125, .9401625, .094, 0.4,
        # TRANS: The sound made by this instrument
        # TRANS: http://en.wikipedia.org/wiki/Clavinet
        nameTooltip=_('Clavinet'))
_addInstrument('flugel', INST_TIED, MID, 'winds',
        1.291740625, 2.37588007813, .065, 0.3,
        # TRANS: The sound made by this instrument
        # TRANS: http://en.wikipedia.org/wiki/Flugelhorn
        nameTooltip=_('Flugelhorn'))
_addInstrument('foghorn', INST_TIED, LOW, 'winds',
        2.07005, 3.758775, .2, 0.5,
        # TRANS: The sound of a fog horn or ship horn
        nameTooltip=_('Foghorn'))
_addInstrument('bubbles', INST_TIED, MID, 'concret',
        0.02, 1.177, 0.02, 0.7,
        # TRANS: The sound of air bubbling through water
        nameTooltip=_('Bubbles'))
_addInstrument('marimba', INST_TIED, MID, 'percussions',
        .18883789, .343623047, .07625, 0.4,
        # TRANS: The sound made by this instrument
        # TRANS: http://en.wikipedia.org/wiki/Marimba
        nameTooltip=_('Marimba'))
_addInstrument('triangle', INST_TIED, MID, 'percussions',
        2.27261836, 3.2965453, .2, 0.6,
        # TRANS: The sound made by this instrument
        # TRANS: http://en.wikipedia.org/wiki/Triangle_%28instrument%29
        nameTooltip=_('Triangle'))
_addInstrument('fingercymbals', INST_TIED, HIGH, 'percussions',
        1.29635195312, 1.92448125, .094, 0.6,
        # TRANS: The sound made by this instrument
        # TRANS: http://en.wikipedia.org/wiki/Finger_cymbals
        nameTooltip=_('Fingercymbals'))
_addInstrument('laugh', INST_SIMP, MID, 'people',
        0, 0, 0, 1,
        # TRANS: The sound of a laugh
        nameTooltip=_('Laugh'))
_addInstrument('babylaugh', INST_TIED, MID, 'people',
        0.72920078, 1.63253906, 0.01, 0.3,
        # TRANS: The sound of a baby laughing
        nameTooltip=_('Baby Laugh'))
_addInstrument('babyuhoh', INST_SIMP, MID, 'people',
        0, 0, 0, 0.3,
        # TRANS: The sound of a child making a mistake
        nameTooltip=_('Baby Uh-oh'))
_addInstrument('voix', INST_TIED, MID, 'people',
        .89608, .96092, .02343, 0.8,
        # TRANS: A synthesized voice sound
        nameTooltip=_('Voice'))
_addInstrument('cling', INST_TIED, MID, 'concret',
        .09096, .7878, .18026, 0.7,
        # TRANS: A tinkling sound
        nameTooltip=_('Cling'))
_addInstrument('byke', INST_SIMP, MID, 'concret',
        0, 0, 0, 1,
        # TRANS: The sound of a bicycle bell
        # TRANS: http://en.wikipedia.org/wiki/Bicycle
        nameTooltip=_('Bicycle bell'))
_addInstrument('door', INST_SIMP, MID, 'concret',
        0, 0, 0, 1,
        # TRANS: The sound of a door slamming shut
        nameTooltip=_('Door'))
_addInstrument('basse', INST_TIED, MID, 'strings',
        0.50470875, 0.833315, 0.09375, 1.4,
        # TRANS: The sound made by this instrument
        # TRANS: http://en.wikipedia.org/wiki/Electric_bass
        nameTooltip=_('Electric Bass'))
_addInstrument('acguit', INST_TIED, MID, 'strings',
        0.5123225, 0.7491675, 0.08475, 0.5,
        # TRANS: The sound made by this instrument
        # TRANS: http://en.wikipedia.org/wiki/Acoustic_guitar
        nameTooltip=_('Acoustic Guitar'))
_addInstrument('diceinst', INST_SIMP, MID, 'concret',
        0, 0, 0, 1.3,
        # TRANS: The sound of tumbling
        # TRANS: http://en.wikipedia.org/wiki/Dice
        nameTooltip=_('Dice'))
_addInstrument('didjeridu', INST_TIED, LOW, 'winds',
        .55669, 1.73704, .09178, 1.5,
        # TRANS: The sound made by this instrument
        # TRANS: http://en.wikipedia.org/wiki/Didjeridu
        nameTooltip=_('Didjeridu'))
_addInstrument('harmonium', INST_TIED, MID, 'keyboard',
        .242032, .898165625, .2, 0.6,
        # TRANS: The sound made by this instrument
        # TRANS: http://en.wikipedia.org/wiki/Harmonium
        nameTooltip=_('Harmonium'))
_addInstrument('horse', INST_SIMP, MID, 'animals',
        0, 0, 0, 0.6,
        # TRANS: The sound made by this animal
        # TRANS: http://en.wikipedia.org/wiki/Horse
        nameTooltip=_('Horse'))
_addInstrument('kalimba', INST_TIED, MID, 'percussions',
        .20751, .30161, .04658, 1.3,
        # TRANS: The sound made by this instrument
        # TRANS: http://en.wikipedia.org/wiki/Thumb_piano
        nameTooltip=_('Kalimba'))
_addInstrument('mando', INST_TIED, MID, 'strings',
        0.507107031, 0.934144531, 0.2, 0.5,
        # TRANS: The sound made by this instrument
        # TRANS: http://en.wikipedia.org/wiki/Mandolin
        nameTooltip=_('Mandolin'))
_addInstrument('ocarina', INST_TIED, MID, 'winds',
        .06612, .19033, .01776, 0.8,
        # TRANS: The sound made by this instrument
        # TRANS: http://en.wikipedia.org/wiki/Ocarina
        nameTooltip=_('Ocarina'))
_addInstrument('rhodes', INST_TIED, MID, 'keyboard',
        0.58100625, 0.821625, 0.067, 0.7,
        # TRANS: The sound made by this instrument
        # TRANS: http://en.wikipedia.org/wiki/Rhodes_piano
        nameTooltip=_('Rhodes'))
_addInstrument('saxo', INST_TIED, MID, 'winds',
        .53722, .6583, .05264, 0.25,
        # TRANS: The sound made by this instrument
        # TRANS: http://en.wikipedia.org/wiki/Saxophone
        nameTooltip=_('Saxophone'))
_addInstrument('saxsoprano', INST_TIED, HIGH, 'winds',
        .90721015625, 1.71199335938, .07675, 0.25,
        # TRANS: The sound made by this instrument
        # TRANS: http://en.wikipedia.org/wiki/Soprano_saxophone
        nameTooltip=_('Soprano Saxophone'))
_addInstrument('shenai', INST_TIED, MID, 'winds',
        .29003, .33072, .00634, 0.5,
        # TRANS: The sound made by this instrument
        # TRANS: http://en.wikipedia.org/wiki/Shehnai
        nameTooltip=_('Shehnai'))
_addInstrument('sitar', INST_TIED, MID, 'strings',
        1.1361625, 1.575134375, .183, 0.3,
        # TRANS: The sound made by this instrument
        # TRANS: http://en.wikipedia.org/wiki/Sitar
        nameTooltip=_('Sitar'))
_addInstrument('tuba', INST_TIED, LOW, 'winds',
        .51063, .58384, .035, 1.2,
        # TRANS: The sound made by this instrument
        # TRANS: http://en.wikipedia.org/wiki/Tuba
        nameTooltip=_('Tuba'))
_addInstrument('violin', INST_TIED, MID, 'strings',
        .105, .30656, .028, 1,
        # TRANS: The sound made by this instrument
        # TRANS: http://en.wikipedia.org/wiki/Violin
        nameTooltip=_('Violin'))
_addInstrument("guidice1", INST_SIMP, MID, 'concret',
        0, 0, 0, 1, kitStage=True)
_addInstrument("guidice2", INST_SIMP, MID, 'concret',
        0, 0, 0, 1, kitStage=True)
_addInstrument("guidice3", INST_SIMP, MID, 'concret',
        0, 0, 0, 1, kitStage=True)
_addInstrument("guidice4", INST_SIMP, MID, 'concret',
        0, 0, 0, 1, kitStage=True)
_addInstrument("guidice5", INST_SIMP, MID, 'concret',
        0, 0, 0, 1, kitStage=True)
_addInstrument("guidice6", INST_SIMP, MID, 'concret',
        0, 0, 0, 1, kitStage=True)
_addInstrument("guidice7", INST_SIMP, MID, 'concret',
        0, 0, 0, 1, kitStage=True)
_addInstrument("guidice8", INST_SIMP, MID, 'concret',
        0, 0, 0, 1, kitStage=True)
_addInstrument("guidice9", INST_SIMP, MID, 'concret',
        0, 0, 0, 1, kitStage=True)
_addInstrument("guidice10", INST_SIMP, MID, 'concret',
        0, 0, 0, 1, kitStage=True)
_addInstrument("drum4afrofeet", INST_SIMP, LOW, 'percussions',
        0, 0, 0, 1, kitStage=True)
_addInstrument("drum4fingersn", INST_SIMP, HIGH, 'percussions',
        0, 0, 0, 1, kitStage=True)
_addInstrument("drum4mutecuic", INST_SIMP, PUNCH, 'percussions',
        0, 0, 0, 1, kitStage=True)
_addInstrument("drum4stompbass", INST_SIMP, PUNCH, 'percussions',
        0, 0, 0, 1, kitStage=True)
_addInstrument("drum4tambouri", INST_SIMP, HIGH, 'percussions',
        0, 0, 0, 1, kitStage=True)
_addInstrument("drum4tr707clap", INST_SIMP, MID, 'percussions',
        0, 0, 0, 1, kitStage=True)
_addInstrument("drum4tr707open", INST_SIMP, PUNCH, 'percussions',
        0, 0, 0, 1, kitStage=True)
_addInstrument("drum4tr808closed", INST_SIMP, HIGH, 'percussions',
        0, 0, 0, 1, kitStage=True)
_addInstrument("drum4tr808sn", INST_SIMP, MID, 'percussions',
        0, 0, 0, 1, kitStage=True)
_addInstrument("drum4tr909bass", INST_SIMP, LOW, 'percussions',
        0, 0, 0, 1, kitStage=True)
_addInstrument("drum4tr909kick", INST_SIMP, LOW, 'percussions',
        0, 0, 0, 1, kitStage=True)
_addInstrument("drum4tr909sn", INST_SIMP, MID, 'percussions',
        0, 0, 0, 1, kitStage=True)
_addInstrument("drum5timablesslap", INST_SIMP, LOW, 'percussions',
        0, 0, 0, 1, kitStage=True)
_addInstrument("drum5congagraveouvert", INST_SIMP, LOW, 'percussions',
        0, 0, 0, 1, kitStage=True)
_addInstrument("drum5timablesaiguslap", INST_SIMP, LOW, 'percussions',
        0, 0, 0, 1, kitStage=True)
_addInstrument("drum5congagraveferme", INST_SIMP, MID, 'percussions',
        0, 0, 0, 1, kitStage=True)
_addInstrument("drum5guiroretour", INST_SIMP, PUNCH, 'percussions',
        0, 0, 0, 1, kitStage=True)
_addInstrument("drum5vibraslap", INST_SIMP, PUNCH, 'percussions',
        0, 0, 0, 1, kitStage=True)
_addInstrument("drum5congaaiguouvert", INST_SIMP, MID, 'percussions',
        0, 0, 0, 1, kitStage=True)
_addInstrument("drum5quicamedium", INST_SIMP, PUNCH, 'percussions',
        0, 0, 0, 1, kitStage=True)
_addInstrument("drum5quicaaigu", INST_SIMP, MID, 'percussions',
        0, 0, 0, 1, kitStage=True)
_addInstrument("drum5agogograve", INST_SIMP, HIGH, 'percussions',
        0, 0, 0, 1, kitStage=True)
_addInstrument("drum5bongoaiguouvert", INST_SIMP, HIGH, 'percussions',
        0, 0, 0, 1, kitStage=True)
_addInstrument("drum5agogoaigu", INST_SIMP, HIGH, 'percussions',
        0, 0, 0, 1, kitStage=True)
_addInstrument("drum5bongograveouvert", INST_SIMP, HIGH, 'percussions',
        0, 0, 0, 1, kitStage=True)
_addInstrument('camera', INST_SIMP, MID, 'concret',
        0, 0, 0, 1,
        # TRANS: The sound of a camera shutter
        # TRANS: http://en.wikipedia.org/wiki/Camera
        nameTooltip=_('Camera'))
_addInstrument('car', INST_TIED, MID, 'concret',
        .67, 1.05761, .01, 0.6,
        # TRANS: The sound of a car starting
        nameTooltip=_('Car'))
_addInstrument('carhorn', INST_SIMP, MID, 'concret',
        0, 0, 0, 0.4,
        # TRANS: The sound of a car horn honking
        nameTooltip=_('Car Horn'))
_addInstrument('cello', INST_TIED, MID, 'strings',
        0.4761, 0.92244375, 0.19125, .6,
        # TRANS: The sound made by this instrument
        # TRANS: http://en.wikipedia.org/wiki/Cello
        nameTooltip=_('Cello'))
_addInstrument('chimes', INST_TIED, MID, 'percussions',
        4.104825, 5.644134375, .02, 1,
        # TRANS: The sound made by this instrument
        # TRANS: http://en.wikipedia.org/wiki/Chimes
        nameTooltip=_('Chimes'))
_addInstrument("crash", INST_SIMP, MID, 'concret',
        0, 0, 0, 1,
        # TRANS: The sound of glass breaking
        nameTooltip=_("Crash"))
_addInstrument("guit2", INST_TIED, MID, 'strings',
        1.186341406, 1.929568266, .2, 0.25,
        # TRANS: The sound made by this instrument
        # TRANS: http://en.wikipedia.org/wiki/Electric_guitar
        nameTooltip=_("Electric Guitar"))
_addInstrument('plane', INST_SIMP, MID, 'concret',
        0, 0, 0, 0.6,
        # TRANS: The sound of this vehicle
        # TRANS: http://en.wikipedia.org/wiki/Airplane
        nameTooltip=_('Plane'))
_addInstrument('slap', INST_SIMP, MID, 'concret',
        0, 0, 0, 0.7,
        # TRANS: The sound of something being hit
        nameTooltip=_('Slap'))
_addInstrument('templebell', INST_SIMP, MID, 'percussions',
        0, 0, 0, 1,
        # TRANS: The sound made by a bell
        nameTooltip=_('Temple Bell'))
_addInstrument('sarangi', INST_SIMP, MID, 'strings',
        0, 0, 0, 1,
        # TRANS: The sound made by this instrument
        # TRANS: http://en.wikipedia.org/wiki/Sarangi
        nameTooltip=_('Sarangi'))
_addInstrument("drum6madal00", INST_SIMP, LOW, 'percussions',
        0, 0, 0, 1, kitStage=True)
_addInstrument("drum6madal01", INST_SIMP, LOW, 'percussions',
        0, 0, 0, 1, kitStage=True)
_addInstrument("drum6madal02", INST_SIMP, LOW, 'percussions',
        0, 0, 0, 1, kitStage=True)
_addInstrument("drum6madal03", INST_SIMP, LOW, 'percussions',
        0, 0, 0, 1, kitStage=True)
_addInstrument("drum6madal04", INST_SIMP, LOW, 'percussions',
        0, 0, 0, 1, kitStage=True)
_addInstrument("drum6madal05", INST_SIMP, LOW, 'percussions',
        0, 0, 0, 1, kitStage=True)
_addInstrument("drum6madal06", INST_SIMP, LOW, 'percussions',
        0, 0, 0, 1, kitStage=True)
_addInstrument("drum6madal07", INST_SIMP, LOW, 'percussions',
        0, 0, 0, 1, kitStage=True)
_addInstrument("drum6madal08", INST_SIMP, LOW, 'percussions',
        0, 0, 0, 1, kitStage=True)
_addInstrument("drum6madal09", INST_SIMP, LOW, 'percussions',
        0, 0, 0, 1, kitStage=True)
_addInstrument("drum6madal10", INST_SIMP, LOW, 'percussions',
        0, 0, 0, 1, kitStage=True)
_addInstrument("drum6madal11", INST_SIMP, LOW, 'percussions',
        0, 0, 0, 1, kitStage=True)
_addInstrument("drum6madal12", INST_SIMP, LOW, 'percussions',
        0, 0, 0, 1, kitStage=True)
_addInstrument('au_pipes', INST_TIED, MID, 'winds',
        0, 1, 0, 0.9,
        # TRANS: The sound of a Solomon Islands pipe, named "'au tahana"
        # TRANS: http://www.jstor.org/pss/851365
        nameTooltip=_('\'au tahana'))
#HFOSS 4/10/2013
_addInstrument('ticktack1', INST_SIMP, LOW, 'percussions',
		0, 0, 0, 1, kitStage=True)

_addInstrument('ticktack2', INST_SIMP, LOW, 'percussions',
		0, 0, 0, 1, kitStage=True)	

_addInstrument('ticktack3', INST_SIMP, LOW, 'percussions',
		0, 0, 0, 1, kitStage=True)

_addInstrument('ticktack4', INST_SIMP, LOW, 'percussions',
		0, 0, 0, 1, kitStage=True)

_addInstrument('ticktack5', INST_SIMP, LOW, 'percussions',
		0, 0, 0, 1, kitStage=True)

_addInstrument('ticktack6', INST_SIMP, LOW, 'percussions',
		0, 0, 0, 1, kitStage=True)

if Config.FEATURES_NEWSOUNDS:
    try:
        files = os.listdir(Config.SNDS_INFO_DIR)
        for file in files:
            instrumentDB.addInstrument(Config.SNDS_INFO_DIR + '/' + file)
    except:
        pass

#jamId = os.path.split(os.path.realpath("/home/olpc/isolation/1/bundle_id_to_gid/org.laptop.TamTamJam"))[1]


DRUM1KIT = {24: "drum1kick",
                 26: "drum1floortom",
                 28: "drum1tom",
                 30: "drum1chine",
                 32: "drum1splash",
                 34: "drum1crash",
                 36: "drum1snaresidestick",
                 38: "drum1snaresidestick",
                 40: "drum1snare",
                 42: "drum1ridebell",
                 44: "drum1hardride",
                 46: "drum1hatshoulder",
                 48: "drum1hatpedal"}

DRUM2KIT = {24: "drum2darbukadoom",
                 26: "drum2darbukapied",
                 28: "drum2darbukapiedsoft",
                 30: "drum2hatflanger",
                 32: "drum2darbukatak",
                 34: "drum2darbukatak",
                 36: "drum2darbukafinger",
                 38: "drum2darbukaroll",
                 40: "drum2darbukaslap",
                 42: "drum2hatpied",
                 44: "drum2tambourinepied",
                 46: "drum2hatpied2",
                 48: "drum2tambourinepiedsoft"}

DRUM3KIT = {24: "drum3djembelow",
                 26: "drum3pedalperc",
                 28: "drum3djembeslap",
                 30: "drum3tambourinehigh",
                 32: "drum3tambourinelow",
                 34: "drum3rainstick",
                 36: "drum3djembemid",
                 38: "drum3djembesidestick",
                 40: "drum3djembestickmid",
                 42: "drum3cowbell",
                 44: "drum3cowbelltip",
                 46: "drum3cup",
                 48: "drum3metalstand"}

DRUM4KIT = {24: "drum4afrofeet",
                 26: "drum4tr909kick",
                 28: "drum4tr909bass",
                 30: "drum4stompbass",
                 32: "drum4tr707open",
                 34: "drum4mutecuic",
                 36: "drum4tr808sn",
                 38: "drum4tr707clap",
                 40: "drum4tr909sn",
                 42: "drum4tambouri",
                 44: "drum4fingersn",
                 46: "drum4fingersn",
                 48: "drum4tr808closed"}

DRUM5KIT = {24: "drum5timablesslap",
                 26: "drum5timablesaiguslap",
                 28: "drum5congagraveouvert",
                 30: "drum5quicamedium",
                 32: "drum5guiroretour",
                 34: "drum5vibraslap",
                 36: "drum5congagraveferme",
                 38: "drum5quicaaigu",
                 40: "drum5congaaiguouvert",
                 42: "drum5agogoaigu",
                 44: "drum5bongograveouvert",
                 46: "drum5agogograve",
                 48: "drum5bongoaiguouvert"}

DRUM6KIT = {24: "drum6madal00",
                 26: "drum6madal01",
                 28: "drum6madal02",
                 30: "drum6madal03",
                 32: "drum6madal04",
                 34: "drum6madal05",
                 36: "drum6madal06",
                 38: "drum6madal07",
                 40: "drum6madal08",
                 42: "drum6madal09",
                 44: "drum6madal10",
                 46: "drum6madal11",
                 48: "drum6madal12"}
#HFOSS                 
DRUM7KIT = {24: "ticktack1",
				26: "ticktack2",
				28: "ticktack3",
				30: "ticktack4",
				32: "ticktack5",
				34: "ticktack6"}

_addInstrument("drum1kit", 0, 0, "percussions", 0, 0, 0, 1, DRUM1KIT,
        # TRANS: http://en.wikipedia.org/wiki/Drum_set
        nameTooltip=_('Jazz / Rock Kit'))
_addInstrument("drum2kit", 0, 0, "percussions", 0, 0, 0, 1, DRUM2KIT,
        nameTooltip=_('African Kit'))
_addInstrument("drum3kit", 0, 0, "percussions", 0, 0, 0, 1, DRUM3KIT,
        nameTooltip=_('Arabic Kit'))
_addInstrument("drum4kit", 0, 0, "percussions", 0, 0, 0, 1, DRUM4KIT,
        nameTooltip=_('Electronic Kit'))
_addInstrument("drum5kit", 0, 0, "percussions", 0, 0, 0, 1, DRUM5KIT,
        nameTooltip=_('South American Kit'))
_addInstrument("drum6kit", 0, 0, "percussions", 0, 0, 0, 1, DRUM6KIT,
        nameTooltip=_('Nepali'))
_addInstrument("drum7kit", 0, 0, "percussions", 0, 0, 0, 1, DRUM7KIT,
		nameTooltip=_('

DRUMCOUNT = 6