Fix midi ordering.
This commit is contained in:
parent
25830345ef
commit
a8141f741e
1 changed files with 1 additions and 1 deletions
|
@ -3,7 +3,7 @@ defmodule MIDITools.Schedule do
|
||||||
events
|
events
|
||||||
|> Enum.flat_map(&MIDITools.Event.convert/1)
|
|> Enum.flat_map(&MIDITools.Event.convert/1)
|
||||||
|> Enum.reduce(%{}, fn {time, midi}, acc ->
|
|> Enum.reduce(%{}, fn {time, midi}, acc ->
|
||||||
Map.update(acc, time, midi, &<<midi::binary, &1::binary>>)
|
Map.update(acc, time, midi, &<<&1::binary, midi::binary>>)
|
||||||
end)
|
end)
|
||||||
|> Enum.sort()
|
|> Enum.sort()
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in a new issue