Peace Synthesizer Framework  0.02
Cross Platform Scriptable Real-Time Visualization & Sound !!
tu_005a_NES_Famicom_sound_emulation.py

Play sequence data of NES (famicom) sound emulation

Click on each functions for more detail

1 ##\example tu_005a_NES_Famicom_sound_emulation.py
2 #Play sequence data of NES (famicom) sound emulation
3 #
4 #\n\n <small>Click on each functions for more detail </small>\n
5 #
6 
7 import peaceaudio
8 import song.nes.sidepocket_test as demosong
9 
10 buffersize = 128
11 peaceaudio.init_peaceaudio(sample_rate = 44100, inch = 0, outch=2, framesPerBuffer = buffersize)
13 
15 
16 def callback():
19  return 1
20 
21 
22 
23 mixer = peaceaudio.createMixer()
24 mixer.addTrack(track)
25 
27 peaceaudio.setCallback(callback)
29 
30 peaceaudio.playNESFromString(track,demosong.text)
32 print "exit"