Game Logic: getSpectrum

getSpectrum()
  • Returns a 512 point list from the sound card.

Return Type:

  • list [ float ]
Note:
  • This only works if the fmod sound driver is being used.
Sample Code

# import bge
import bge

# get a 512 point list from the sound card
scene = bge.logic.getSpectrum()