Ajout description midi des instruments et sélection au niveau de fluidsynth.
[minwii.git] / src / app / config.py
index 34a5f7f..00d0b89 100755 (executable)
@@ -28,6 +28,45 @@ DEFAULT_MIDI_VELOCITY = 96
 
 SONG_FILE_PATH = '../../chansons'
 
+INSTRUMENTS = (
+    {'name'   : 'accordeon',
+     'bank'   : 0,
+     'preset' : 23
+    },
+    {'name' : 'celesta',
+     'bank'   : 0,
+     'preset' : 8
+    },
+    {'name' : 'flute',
+     'bank'   : 0,
+     'preset' : 74
+    },
+    {'name' : 'guitare',
+     'bank'   : 0,
+     'preset' : 24
+    },
+    {'name' : 'orgue',
+     'bank'   : 0,
+     'preset' : 19
+    },
+    {'name' : 'piano',
+     'bank'   : 0,
+     'preset' : 0
+    },
+    {'name' : 'tuba',
+     'bank'   : 0,
+     'preset' : 58
+    },
+    {'name' : 'violon',
+     'bank'   : 0,
+     'preset' : 40
+    },
+    {'name' : 'violoncelle',
+     'bank'   : 0,
+     'preset' : 42
+    },
+)
+
 # cuisine : ne pas modifier
 _here = os.path.abspath(__file__).split(os.path.sep)[:-1]
 SONG_FILE_PATH = SONG_FILE_PATH.split('/')