OSDN Git Service

#30333 [DTXC] インポートをほんの少しだけ高速化
authoryyagi <yyagi@16f42ceb-6dc6-49c8-ba94-f2d53467949d>
Sun, 3 Apr 2016 18:33:47 +0000 (18:33 +0000)
committeryyagi <yyagi@16f42ceb-6dc6-49c8-ba94-f2d53467949d>
Sun, 3 Apr 2016 18:33:47 +0000 (18:33 +0000)
git-svn-id: http://svn.osdn.jp/svnroot/dtxmania/branches/160321(DTXCreator%20with%20MIDI%20Import)@962 16f42ceb-6dc6-49c8-ba94-f2d53467949d

DTXCreatorプロジェクト/コード/07.MIDIインポート/CMIDIトラック.cs
実行時フォルダ(DTXCreator)/DTXCreator.exe
実行時フォルダ(DTXCreator)/ja-JP/DTXCreator.resources.dll

index 2a0f9dd..783147c 100644 (file)
@@ -69,11 +69,13 @@ namespace DTXCreator.MIDIインポート
                                                cMIDI.lチャンネル毎のノート数1to16[this.nチャンネル] ++;\r
                                                bool bAdd = false;\r
 \r
-                                               for (int i = 1; i <= 16; i++)\r
-                                               {\r
-                                                       if ( (bool)cMIDI.dgvチャンネル一覧.Rows[i-1].Cells["ChLoad"].Value && this.nチャンネル == i )\r
-                                                               bAdd = true;\r
-                                               }\r
+                                               //for (int i = 1; i <= 16; i++)\r
+                                               //{\r
+                                               //      if ( (bool)cMIDI.dgvチャンネル一覧.Rows[i-1].Cells["ChLoad"].Value && this.nチャンネル == i )\r
+                                               //              bAdd = true;\r
+                                               //}\r
+                                               if ( (bool)cMIDI.dgvチャンネル一覧.Rows[this.nチャンネル-1].Cells["ChLoad"].Value )\r
+                                                       bAdd = true;\r
 \r
                                                if ( bAdd )\r
                         {\r
index 7b70c42..5e37396 100644 (file)
Binary files a/実行時フォルダ(DTXCreator)/DTXCreator.exe and b/実行時フォルダ(DTXCreator)/DTXCreator.exe differ
index cc318b5..45be5ae 100644 (file)
Binary files a/実行時フォルダ(DTXCreator)/ja-JP/DTXCreator.resources.dll and b/実行時フォルダ(DTXCreator)/ja-JP/DTXCreator.resources.dll differ