Skip to content

Commit

Permalink
Merge pull request #39 from jamiefaye/dev
Browse files Browse the repository at this point in the history
dont convert midi cc in Midian yet
  • Loading branch information
jamiefaye authored Sep 18, 2019
2 parents 0816c93 + 521d71f commit ad47613
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 1 deletion.
2 changes: 2 additions & 0 deletions midian/src/MidiConversion.js
Original file line number Diff line number Diff line change
Expand Up @@ -238,11 +238,13 @@ class MidiConversion {
trout.midiChannel = chanNum;
trout.trackLength = clipMax;

/* Until fixed someday:
// Control codes if present
let ccMap = track.controlChanges;
if (ccMap) {
this.convertTrackCCsToDeluge(trout, track, ccMap, (n)=>hexLZ32(Math.round(normTo32Fn(n.value))), context);
}
*/

const bendList = track.channelEvents['pitchBend'];
if (bendList !== undefined && bendList.length > 0) {
Expand Down
2 changes: 1 addition & 1 deletion xmlView/src/Arranger.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ class Instrument extends React.Component {
let trackTab = getClipArray(song);
let arrangeOnlyTab = [];
if (song.arrangementOnlyTracks) {
arrangeOnlyTab = forceArray(song.arrangementOnlyTracks.track);
arrangeOnlyTab = forceArray(song.arrangementOnlyTracks);
}

let maxTrack = trackTab.length;
Expand Down
5 changes: 5 additions & 0 deletions xmlView/src/keyOrderTab.js
Original file line number Diff line number Diff line change
Expand Up @@ -435,6 +435,10 @@
"lpf",
"hpf",
"equalizer"
],
"param": [
"cc",
"value"
]
};

Expand Down Expand Up @@ -502,6 +506,7 @@ var heteroArrays = new Set();
heteroArrays.add('instruments');
heteroArrays.add('soundSources');
heteroArrays.add('sessionClips');
heteroArrays.add('arrangementOnlyTracks');

var dontEncodeAsAttributes = new Set();
dontEncodeAsAttributes.add("midiKnobs");
Expand Down

0 comments on commit ad47613

Please sign in to comment.