PokittoLib is the library needed for programming the Pokitto DIY game console (www.pokitto.com)
Dependents: YATTT sd_map_test cPong SnowDemo ... more
PokittoLib
Library for programming Pokitto hardware
How to Use
- Import this library to online compiler (see button "import" on the right hand side
- DO NOT import mbed-src anymore, a better version is now included inside PokittoLib
- Change My_settings.h according to your project
- Start coding!
Diff: POKITTO_LIBS/Synth/Synth_mixfuncs.cpp
- Revision:
- 17:10609a82d462
- Parent:
- 6:72f87b7c7400
--- a/POKITTO_LIBS/Synth/Synth_mixfuncs.cpp Fri Oct 20 19:08:39 2017 +0000 +++ b/POKITTO_LIBS/Synth/Synth_mixfuncs.cpp Sat Oct 21 17:22:35 2017 +0000 @@ -62,7 +62,7 @@ osc1.output = soundbyte; #else //OCR2B = osc1.output>>8; - #if POK_ENABLE_SOUND > 1 + #if POK_ENABLE_SOUND > 0 soundbyte = (((osc1.output>>8) * (osc1.adsrvol >>8 )) >> 8) >> osc1.echodiv; // To output, shift back to 8-bit if (osc1.overdrive) soundbyte *= OVERDRIVE; if (osc1.kick ) soundbyte >>= 2; @@ -83,7 +83,7 @@ osc2.output = soundbyte; #else //OCR2B = osc2.output>>8; - #if POK_ENABLE_SOUND > 1 + #if POK_ENABLE_SOUND > 0 soundbyte = (((osc2.output>>8) * (osc2.adsrvol >>8 )) >> 8) >> osc2.echodiv; if (osc2.overdrive) soundbyte *= OVERDRIVE; if (osc2.kick ) soundbyte >>= 2; @@ -104,7 +104,7 @@ osc3.output = soundbyte; #else //OCR2B = osc3.output>>8; - #if POK_ENABLE_SOUND > 1 + #if POK_ENABLE_SOUND > 0 soundbyte = (((osc3.output>>8) * (osc3.adsrvol >>8 )) >> 8) >> osc3.echodiv; if (osc3.overdrive) soundbyte *= OVERDRIVE; if (osc3.kick ) soundbyte >>= 2;