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

wave channel seems to pitch shift down after conversion #23

Closed
dm-colin opened this issue Jul 13, 2021 · 1 comment
Closed

wave channel seems to pitch shift down after conversion #23

dm-colin opened this issue Jul 13, 2021 · 1 comment
Labels
bug Something isn't working
Milestone

Comments

@dm-colin
Copy link

dm-colin commented Jul 13, 2021

lsdj.sav.zip (v8.5.1)
lsdj-7_0_2.sav.zip (v7.0.2)

Following steps from the README:

$ lsdpack -g lsdj-7_0_2.gb
.gbs mode enabled
Loaded lsdj-7_0_2.gb
Playing song 1...
Recording to 'lsdj-7_0_2-1.s'
Wrote 16 samples
Song 1: 266 bytes
OK
$ rgbasm -o lsdj-7_0_2-1.o lsdj-7_0_2-1.s
$ rgblink -o player-1.gb boot.o player.o lsdj-7_0_2-1.o
$ rgbfix -v -m 0x19 -p 0xff player-1.gb
$

Running the result in emulator results in something very pitch-shifted down.

Tested with:

  • Big Sur
  • rgbds v0.5.1
  • lsdj v8.5.1 (lsdj.sav.zip) and lsdj v7.0.2 (lsdf-7_0_2.sav.zip)
  • OpenEmu's gameboy emulator which seems to be Gambatte

I can post MP3s of what I'm expecting vs what I'm hearing if needed.

Commenting out the body of the transform function in https://github.com/jkotlinski/lsdpack/blob/master/rules/rule_pitch.cpp seems to handle this issue.

@jkotlinski jkotlinski added the bug Something isn't working label Aug 27, 2021
@jkotlinski jkotlinski added this to the v0.0.5 milestone Aug 27, 2021
@jkotlinski
Copy link
Owner

should be fine now, thanks for report!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants