This repository has been archived by the owner on Apr 5, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 11
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
f8c490e
commit 34c1e3c
Showing
4 changed files
with
74 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
{ | ||
"name": "pacer-editor", | ||
"version": "0.8.2", | ||
"version": "0.8.3", | ||
"author": "François Georgy <[email protected]> (http://sysex.io)", | ||
"license": "GPL-3.0-or-later", | ||
"private": true, | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,48 @@ | ||
import React from "react"; | ||
import {hs} from "../utils/hexstring"; | ||
|
||
/* | ||
{ | ||
17: { | ||
controls: { | ||
13: Array(13) [ | ||
0: (9) [127, 1, 1, 17, 13, 96, 1, 0, 127] | ||
1: (29) [127, 1, 1, 17, 13, 1, 1, 0, 0, 2, 1, 71, 0, 3, 1, 22, 0, 4, 1, 127, 0, 5, 1, 0, 0, 6, 1, 1, 104] | ||
{ | ||
1: | ||
midi: Array(0) | ||
dummy: Array(1) | ||
0: Array(29) | ||
0: 127 | ||
1: 1 | ||
2: 1 | ||
*/ | ||
|
||
const UpdateMessagesBytes = ({ messages }) => | ||
<div className="message-to-send"> | ||
{ | ||
//FIXME: allow object or array | ||
Object.getOwnPropertyNames(messages).map( // preset | ||
(presetId, i) => { | ||
return Object.getOwnPropertyNames(messages[presetId]).map( // control type | ||
(ctrlType, j) => { | ||
return Object.getOwnPropertyNames(messages[presetId][ctrlType]).map( // control | ||
(ctrl, k) => { | ||
return messages[presetId][ctrlType][ctrl].map( | ||
(msg, h) => { | ||
return (<div key={`${i}-${j}-${k}-${h}`} className="code">{hs(msg)}</div>); | ||
} | ||
); | ||
} | ||
); | ||
} | ||
); | ||
} | ||
) | ||
} | ||
</div>; | ||
|
||
export default UpdateMessagesBytes; |