GNU social JP
  • FAQ
  • Login
GNU social JPは日本のGNU socialサーバーです。
Usage/ToS/admin/test/Pleroma FE
  • Public

    • Public
    • Network
    • Groups
    • Featured
    • Popular
    • People

Conversation

Notices

  1. Embed this notice
    allison (aparrish@friend.camp)'s status on Thursday, 09-Jan-2025 14:34:54 JST allison allison

    and now, to AT LAST silence your persistent clamoring, a brief thread about game boy tones and tuning. ahem. the frequency of each of the three tone-generating oscillators on the game boy are set with an 11-bit value (eight bits in one memory-mapped register, three in the other). that means there are 2048 possible frequencies. here's a chart showing a scatterplot of the frequency of each of the GB's oscillator values, along with a scatterplot of the frequency of all 128 possible midi notes

    In conversation about 6 months ago from friend.camp permalink

    Attachments


    1. https://friend.camp/system/media_attachments/files/113/794/283/931/603/832/original/9763b00f07bd2112.png
    • Embed this notice
      allison (aparrish@friend.camp)'s status on Thursday, 09-Jan-2025 14:34:50 JST allison allison
      in reply to

      here's the reason I was thinking about all of this. now that I can send values back and forth between game boy software and the microcontroller on my custom game boy cart, i did what anyone in my situation would do: i made a game boy photoresistor theremin

      In conversation about 6 months ago permalink

      Attachments


      Haelwenn /элвэн/ :triskell: likes this.
    • Embed this notice
      allison (aparrish@friend.camp)'s status on Thursday, 09-Jan-2025 14:34:51 JST allison allison
      in reply to

      and only now is it occurring to me that i should have graphed differences in percentage, rather than absolute hertz difference. oh well. anyway, that's all, i just thought that it was interesting to look at these differences! more on the math and underlying hardware here https://gbdev.io/pandocs/Audio_Registers.html and i used this table http://www.devrs.com/gb/files/sndtab.html to check my work. the end!

      In conversation about 6 months ago permalink

      Attachments

      1. Domain not in remote thumbnail source whitelist: gbdev.io
        Audio Registers
        The single, most comprehensive technical reference to Game Boy available to the public.
      2. No result found on File_thumbnail lookup.
        GameBoy Sound Table
      Paul Cantrell, Steve's Place and Puniko ? repeated this.
    • Embed this notice
      allison (aparrish@friend.camp)'s status on Thursday, 09-Jan-2025 14:34:52 JST allison allison
      in reply to

      however! here's a chart showing the difference in frequency between each midi note and the frequency of the tone *nearest* to that midi note that it's possible for the game boy to generate. you can see that there's actually a fairly small range of midi notes that can be approximated by the game boy without sounding "out of tune" (depending on what you consider to be out of tune. no one except whiplash guy is going to notice 2–3Hz, but 100Hz is obviously going to not sound right)

      In conversation about 6 months ago permalink

      Attachments


      1. https://friend.camp/system/media_attachments/files/113/794/347/131/294/924/original/fc361b60d35a6835.png
    • Embed this notice
      allison (aparrish@friend.camp)'s status on Thursday, 09-Jan-2025 14:34:52 JST allison allison
      in reply to

      if we zoom in on the values in the C-3 to C-7 range (two octaves below middle C + two octaves above), you see that the difference in frequency there is pretty minimal (note that this chart is using a linear scale on the Y axis, not log like the previous two). above this range, I think the game boy will sound significantly out of tune with other MIDI-tuned instruments. makes me wonder if some of what we hear as the distinctive "sound" of authentic chiptunes comes from this aberration in tuning!

      In conversation about 6 months ago permalink

      Attachments


      1. https://friend.camp/system/media_attachments/files/113/794/370/845/655/411/original/ef718af32a552fde.png
    • Embed this notice
      allison (aparrish@friend.camp)'s status on Thursday, 09-Jan-2025 14:34:53 JST allison allison
      in reply to

      this chart shows some weirdnesses, e.g., that the bottom 35 MIDI notes are too low in frequency for the game boy to generate, and some of the game boy's frequencies are above MIDI range. but for the most part, it looks like the curve of game boy frequencies lines up with and is in "tune" with the "correct" frequencies, which is kind of a cool trick (i'm using MIDI note frequencies as a proxy here for "correct" frequencies, which I know is debatable!)

      In conversation about 6 months ago permalink
      tadpole slurper repeated this.

Feeds

  • Activity Streams
  • RSS 2.0
  • Atom
  • Help
  • About
  • FAQ
  • TOS
  • Privacy
  • Source
  • Version
  • Contact

GNU social JP is a social network, courtesy of GNU social JP管理人. It runs on GNU social, version 2.0.2-dev, available under the GNU Affero General Public License.

Creative Commons Attribution 3.0 All GNU social JP content and data are available under the Creative Commons Attribution 3.0 license.