PIANO ROLL integrated in Pattern Editor! A Advanced Pattern Editor

Another separate issuewhich relates to this topic (#43).Here:Help LUA: function to create a Group with two Tracks, one collapsed???

This topic has history, because it ends right where I wanted ( create a LUA script to sort the notes by octaves )

I have been opening the way to create a scriptto order the notes per octaves based on a selected track (“Original Track”).Selecting a track with a complex melody notes, the notes are ordered in 120 columns of note, 10 tracks “of octave” (octave 0 to octave 9) within 1 group. Finally, the octave tracks are empty, are erased.For me, this tool or script is very advantageous!

Currently, the script is deadlocked, due to “a bug” (rather lack of more code,I have called, “parameters lost”), caused by lines with “parameters lost” in column notes in the Original Trackbefore converting. joule has done a great job helping me in this concept.Basically joule just created the necessary code, he alone.He has been very kind!

Please, any forum member who knows LUA,are invited to examine the code to improve it.So far, the code can sort all notes and their parameters on the same line.If there is a lost parameter, without a note on the same line, it returns error:


C-4 00 50 40 FF …

OFF


Is ok!


C-4 00 50 40 FF …

… 40 <----- error (“lost parameter”)

OFF


This script is used to play notes in live with a midi keyboard first,and then order these clean notes in octaves… If there are not “lost parameters”, works!

Thanks to any member that helps! :slight_smile:

This screenshot reflects the idea (the blue columns is the same as all white columns after conversion):

[sharedmedia=core:attachments:6762]

In the white columns, you can visually understand the melody, and even find errors composition (Pattern Matrix in maximum zoom to better understand).