Skip to content

Commit

Permalink
1.3.0
Browse files Browse the repository at this point in the history
- Fix track order
  • Loading branch information
Kaydax committed Mar 28, 2021
1 parent 5a4225e commit 7c76f0d
Showing 1 changed file with 11 additions and 9 deletions.
20 changes: 11 additions & 9 deletions Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ static void Main(string[] args)
var streams = new ParallelStream(File.Open(tempFile, FileMode.Create));


Console.WriteLine("flp2midi | Version: 1.2.2");
Console.WriteLine("flp2midi | Version: 1.3.0");
Console.WriteLine("Loading FL Studio project file...");

Project proj = Project.Load(filePath, false);
Expand Down Expand Up @@ -128,14 +128,16 @@ static void Main(string[] args)

//MemoryStream[] streams = new MemoryStream[proj.Tracks.Length];

var tracks = proj.Tracks.Where(t => t.Items.Count != 0).OrderBy(t =>
t.Items.Select(i =>
{
var pi = i as PatternPlaylistItem;
if(pi == null) return 0;
return -patternDict[pi.Pattern.Id].Select(p => p.Value.Length).Sum();
}).Sum()
).ToArray();
//var tracks = proj.Tracks.Where(t => t.Items.Count != 0).OrderBy(t =>
// t.Items.Select(i =>
// {
// var pi = i as PatternPlaylistItem;
// if(pi == null) return 0;
// return -patternDict[pi.Pattern.Id].Select(p => p.Value.Length).Sum();
// }).Sum()
//).ToArray();

var tracks = proj.Tracks.Where(t => t.Items.Count != 0).ToArray();

//var automations = proj.Channels.Where(c => c.Data is AutomationData).ToArray();

Expand Down

2 comments on commit 7c76f0d

@CotoDude
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hello! I am trying to make a cover of the Deltarune Chapter 3 UST secret boss theme: "SKATING TOWARDS HEAVEN". I have an flp for it, but use garageband for my music, and cannot figure out how to download the exe file from here? Thank you for your time.

@Kaydax
Copy link
Owner Author

@Kaydax Kaydax commented on 7c76f0d Jun 10, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hello! I am trying to make a cover of the Deltarune Chapter 3 UST secret boss theme: "SKATING TOWARDS HEAVEN". I have an flp for it, but use garageband for my music, and cannot figure out how to download the exe file from here? Thank you for your time.

Look at the releases

Please sign in to comment.