title: python pygame how to fade in the volume?
body: <pre><code>song = "choy_san_dou.ogg"
  pygame.init()
  pygame.display.set_mode((200,100))
  pygame.mixer.init()
  pygame.mixer.music.load(song)
  pygame.mixer.music.set_volume(0.1)
  pygame.mixer.music.play(0)
  </code></pre>
  
  <p>I am unable to find a way to fade in the volume when the song is loaded, means to have the volume of the song slowly increase until a max volume instead of blasting it off full volume from the very beginning. How to do it?</p>
  
  <p>Another problem is this, I must declare </p>
  
  <pre><code>pygame.display.set_mode((200,100))
  </code></pre>
  
  <p>or the sound won't play. The program is actually running because after time of the sound has elapsed, the subsequent steps in the program continues. Why is it this way? I am testing it on windows pc, with the intention of transferring it to a raspberry pi later.</p>