This commit is contained in:
@@ -63,6 +63,9 @@ export default function Menu() {
|
|||||||
.join(' ')
|
.join(' ')
|
||||||
);
|
);
|
||||||
const parsedStoreData = return_store_from_file(rawSysExBytes);
|
const parsedStoreData = return_store_from_file(rawSysExBytes);
|
||||||
|
if (!parsedStoreData.patch.name.trim()) {
|
||||||
|
parsedStoreData.patch.name = '------------';
|
||||||
|
}
|
||||||
console.log('[MIDI] patch décodé:', parsedStoreData.patch);
|
console.log('[MIDI] patch décodé:', parsedStoreData.patch);
|
||||||
console.log('[MIDI] entités:', Object.keys(parsedStoreData));
|
console.log('[MIDI] entités:', Object.keys(parsedStoreData));
|
||||||
// Injection explicite sous forme de tableau d'entités
|
// Injection explicite sous forme de tableau d'entités
|
||||||
@@ -103,9 +106,6 @@ export default function Menu() {
|
|||||||
useEffect(() => {
|
useEffect(() => {
|
||||||
if (file) {
|
if (file) {
|
||||||
dispatch(parameterFromFile(return_store_from_file(file)));
|
dispatch(parameterFromFile(return_store_from_file(file)));
|
||||||
if (!parsedStoreData.patch.name.trim()) {
|
|
||||||
parsedStoreData.patch.name = '------------';
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}, [file, dispatch]);
|
}, [file, dispatch]);
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user