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

VRC7 instrument editor fixes and features #60

Merged
merged 6 commits into from
Jun 23, 2021

Conversation

Gumball2415
Copy link
Collaborator

No description provided.

This adds a textbox next to the combo box that shows the current VRC7
patch in realtime. The format is the same as in the copy/paste buttons.
Patch editing within the textbox is not yet implemented.
Before the emulator core update, the VRC7 hardware patches were stored
in a 1D byte array, where each patch is followed by eight 0x00 bytes.
The instrument editor code compensates for the extra eight bytes by
skipping over them.

Since the VRC7 emulator core update, the hardware patch header file
is now replaced by multiple ones that are part of NSFPlay's emu2413.
However, the new hardware patch header files don't have the extra eight
bytes, so the instrument editor skips over every other patch instead.
To fix this, the code used to extract individual patches out of the
array has been modified to not skip over every other eight bytes.

This fixes issue #50.
This adds the following editing funtionality for the patch textbox in
the VRC7 instrument editor:

- The textbox modifies the instrument patch when you press enter.
- The textbox automatically updates whenever you modify the sliders.
- Upon pressing enter while selecting a hardware patch, it copies the
   current patch to patch 0 and switches to it.
With the addition of YM2413 and YMF281B patches, the instrument names and patch bytes within the instrument editor now change based on the hardware patch bank selected.
@Gumball2415 Gumball2415 marked this pull request as ready for review June 13, 2021 18:27
@Gumball2415 Gumball2415 force-pushed the vrc7-inst-editor-feature branch from f1f111c to a10aad2 Compare June 23, 2021 11:28
@Gumball2415 Gumball2415 merged commit 40e3a0e into master Jun 23, 2021
@Gumball2415 Gumball2415 deleted the vrc7-inst-editor-feature branch June 25, 2021 08:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants