@@ -5,7 +5,7 @@ unit ClipboardUtils; |
| 5 |
interface |
5 |
interface |
| 6 |
|
6 |
|
| 7 |
uses |
7 |
uses |
| 8 |
Classes, SysUtils, Constants, Clipbrd, HugeDatatypes, Utils; |
8 |
Classes, SysUtils, Constants, Clipbrd, HugeDatatypes, Utils, Math; |
| 9 |
|
9 |
|
| 10 |
type |
10 |
type |
| 11 |
EClipboardFormatException = class(Exception); |
11 |
EClipboardFormatException = class(Exception); |
@@ -123,6 +123,13 @@ function GetFamitrackerPastedCells: TSelection; |
| 123 |
Result.EffectCode := FTM_EFFECTS[Note.EffNumber[0]]; |
123 |
Result.EffectCode := FTM_EFFECTS[Note.EffNumber[0]]; |
| 124 |
Result.EffectParams.Value := Note.EffParam[0]; |
124 |
Result.EffectParams.Value := Note.EffParam[0]; |
| 125 |
end; |
125 |
end; |
|
|
126 |
|
|
|
127 |
if (Result.EffectCode = 0) |
|
|
128 |
and (Result.EffectParams.Value = 0) |
|
|
129 |
and InRange(Note.Vol, 0, $F) then begin |
|
|
130 |
Result.EffectCode := $C; |
|
|
131 |
Result.EffectParams.Param2 := Note.Vol; |
|
|
132 |
end; |
| 126 |
end; |
133 |
end; |
| 127 |
function FTMColumnToPart(Col: TFTMColumn): TCellPart; |
134 |
function FTMColumnToPart(Col: TFTMColumn): TCellPart; |
| 128 |
begin |
135 |
begin |