]> CRI, Mines Paris - PSL - minwii.git/blobdiff - src/app/config.py
Ajout description midi des instruments et sélection au niveau de fluidsynth.
[minwii.git] / src / app / config.py
index 34a5f7f2141fd1a70cefd1a14182dac185579543..00d0b89b6123db76bbcdb5ba7042fde28831cf39 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('/')