Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

JSON export now includes note mapping for dpcm key #105

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion Source/Clipboard.h
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,7 @@ class CMemoryLock {
};

bool CopyToClipboard(CWnd *parent, CLIPFORMAT ClipboardID, const CBinarySerializableInterface &ser);
bool ReadGlobalMemory(CBinarySerializableInterface& ser, HGLOBAL hMem);

template <typename T>
std::optional<T> RestoreFromClipboard(CWnd *parent, CLIPFORMAT ClipboardID) {
Expand All @@ -77,7 +78,6 @@ std::optional<T> RestoreFromClipboard(CWnd *parent, CLIPFORMAT ClipboardID) {
return std::nullopt;
}

bool ReadGlobalMemory(CBinarySerializableInterface &ser, HGLOBAL hMem);
DROPEFFECT DragDropTransfer(const CBinarySerializableInterface &ser, CLIPFORMAT clipboardID, DWORD effects);

} // namespace CClipboard
1 change: 1 addition & 0 deletions Source/FamiTrackerDocIOJson.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -412,6 +412,7 @@ void to_json(json &j, const CInstrument2A03 &inst) {
{"pitch", inst.GetSamplePitch(n) & 0x0Fu},
{"loop", inst.GetSampleLoop(n)},
{"delta", inst.GetSampleDeltaValue(n)},
{"note", n},
});
}

Expand Down