Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGonzalo Odiard <godiard@gmail.com>2012-10-08 22:37:06 (GMT)
committer Gonzalo Odiard <godiard@gmail.com>2012-10-09 02:35:54 (GMT)
commit70f861a21b026057b5642ca9c7c9b125acf62be8 (patch)
treef92476f078b61d1ba0a73b5c19a605b4066685dd
parent98a0e16b7d8edae472770dbbc4383029edb844de (diff)
First try to add code from tamtammini to play sounds
Play notes with physucal keyboard, not with the screen keyboard yet. Signed-off-by: Gonzalo Odiard <gonzalo@laptop.org>
-rw-r--r--KeyboardStandAlone.py142
-rw-r--r--Loop.py227
-rw-r--r--MiniSequencer.py137
-rw-r--r--activity.py111
-rw-r--r--common/Config.py342
-rw-r--r--common/Generation/Drunk.py162
-rw-r--r--common/Generation/GenerationConstants.py185
-rw-r--r--common/Generation/__init__.py0
-rw-r--r--common/Resources/Loops/loop02_0.ttl9
-rw-r--r--common/Resources/Loops/loop02_1.ttl8
-rw-r--r--common/Resources/Loops/loop02_2.ttl5
-rw-r--r--common/Resources/Loops/loop02_3.ttl2
-rw-r--r--common/Resources/Loops/loop02_4.ttl3
-rw-r--r--common/Resources/Loops/loop03_0.ttl13
-rw-r--r--common/Resources/Loops/loop03_1.ttl11
-rw-r--r--common/Resources/Loops/loop03_2.ttl5
-rw-r--r--common/Resources/Loops/loop03_3.ttl4
-rw-r--r--common/Resources/Loops/loop03_4.ttl5
-rw-r--r--common/Resources/Loops/loop04_0.ttl17
-rw-r--r--common/Resources/Loops/loop04_1.ttl7
-rw-r--r--common/Resources/Loops/loop04_2.ttl6
-rw-r--r--common/Resources/Loops/loop04_3.ttl4
-rw-r--r--common/Resources/Loops/loop04_4.ttl10
-rw-r--r--common/Resources/Loops/loop05_0.ttl21
-rw-r--r--common/Resources/Loops/loop05_1.ttl15
-rw-r--r--common/Resources/Loops/loop05_2.ttl8
-rw-r--r--common/Resources/Loops/loop05_3.ttl5
-rw-r--r--common/Resources/Loops/loop05_4.ttl8
-rw-r--r--common/Resources/Loops/loop06_0.ttl25
-rw-r--r--common/Resources/Loops/loop06_1.ttl14
-rw-r--r--common/Resources/Loops/loop06_2.ttl8
-rw-r--r--common/Resources/Loops/loop06_3.ttl7
-rw-r--r--common/Resources/Loops/loop06_4.ttl12
-rw-r--r--common/Resources/Loops/loop07_0.ttl29
-rw-r--r--common/Resources/Loops/loop07_1.ttl16
-rw-r--r--common/Resources/Loops/loop07_2.ttl10
-rw-r--r--common/Resources/Loops/loop07_3.ttl9
-rw-r--r--common/Resources/Loops/loop07_4.ttl11
-rw-r--r--common/Resources/Loops/loop08_0.ttl33
-rw-r--r--common/Resources/Loops/loop08_1.ttl19
-rw-r--r--common/Resources/Loops/loop08_2.ttl8
-rw-r--r--common/Resources/Loops/loop08_3.ttl9
-rw-r--r--common/Resources/Loops/loop08_4.ttl20
-rw-r--r--common/Resources/Loops/loop09_0.ttl37
-rw-r--r--common/Resources/Loops/loop09_1.ttl19
-rw-r--r--common/Resources/Loops/loop09_2.ttl10
-rw-r--r--common/Resources/Loops/loop09_3.ttl13
-rw-r--r--common/Resources/Loops/loop09_4.ttl18
-rw-r--r--common/Resources/Loops/loop10_0.ttl41
-rw-r--r--common/Resources/Loops/loop10_1.ttl19
-rw-r--r--common/Resources/Loops/loop10_2.ttl11
-rw-r--r--common/Resources/Loops/loop10_3.ttl12
-rw-r--r--common/Resources/Loops/loop10_4.ttl15
-rw-r--r--common/Resources/Loops/loop11_0.ttl45
-rw-r--r--common/Resources/Loops/loop11_1.ttl23
-rw-r--r--common/Resources/Loops/loop11_2.ttl14
-rw-r--r--common/Resources/Loops/loop11_3.ttl12
-rw-r--r--common/Resources/Loops/loop11_4.ttl15
-rw-r--r--common/Resources/Loops/loop12_0.ttl49
-rw-r--r--common/Resources/Loops/loop12_1.ttl29
-rw-r--r--common/Resources/Loops/loop12_2.ttl17
-rw-r--r--common/Resources/Loops/loop12_3.ttl13
-rw-r--r--common/Resources/Loops/loop12_4.ttl20
-rw-r--r--common/Resources/Sounds/acguitbin0 -> 32360 bytes
-rw-r--r--common/Resources/Sounds/alarmbin0 -> 71140 bytes
-rw-r--r--common/Resources/Sounds/armbonebin0 -> 5154 bytes
-rw-r--r--common/Resources/Sounds/au_pipesbin0 -> 29340 bytes
-rw-r--r--common/Resources/Sounds/babylaughbin0 -> 55724 bytes
-rw-r--r--common/Resources/Sounds/babyuhohbin0 -> 37630 bytes
-rw-r--r--common/Resources/Sounds/banjobin0 -> 69260 bytes
-rw-r--r--common/Resources/Sounds/bassebin0 -> 32516 bytes
-rw-r--r--common/Resources/Sounds/basse2bin0 -> 11206 bytes
-rw-r--r--common/Resources/Sounds/birdbin0 -> 32804 bytes
-rw-r--r--common/Resources/Sounds/bottlebin0 -> 19206 bytes
-rw-r--r--common/Resources/Sounds/bubblesbin0 -> 40364 bytes
-rw-r--r--common/Resources/Sounds/bykebin0 -> 32726 bytes
-rw-r--r--common/Resources/Sounds/camerabin0 -> 22564 bytes
-rw-r--r--common/Resources/Sounds/carbin0 -> 63940 bytes
-rw-r--r--common/Resources/Sounds/carhornbin0 -> 79844 bytes
-rw-r--r--common/Resources/Sounds/catbin0 -> 18160 bytes
-rw-r--r--common/Resources/Sounds/cellobin0 -> 152352 bytes
-rw-r--r--common/Resources/Sounds/chikenbin0 -> 31554 bytes
-rw-r--r--common/Resources/Sounds/chimesbin0 -> 218924 bytes
-rw-r--r--common/Resources/Sounds/clangbin0 -> 41150 bytes
-rw-r--r--common/Resources/Sounds/clang2bin0 -> 46210 bytes
-rw-r--r--common/Resources/Sounds/clarinettebin0 -> 105078 bytes
-rw-r--r--common/Resources/Sounds/clavinetbin0 -> 33428 bytes
-rw-r--r--common/Resources/Sounds/clingbin0 -> 31758 bytes
-rw-r--r--common/Resources/Sounds/cowbin0 -> 52060 bytes
-rw-r--r--common/Resources/Sounds/crashbin0 -> 20352 bytes
-rw-r--r--common/Resources/Sounds/cricketbin0 -> 5304 bytes
-rw-r--r--common/Resources/Sounds/diceinstbin0 -> 12658 bytes
-rw-r--r--common/Resources/Sounds/didjeridubin0 -> 60788 bytes
-rw-r--r--common/Resources/Sounds/dogbin0 -> 22332 bytes
-rw-r--r--common/Resources/Sounds/doorbin0 -> 33640 bytes
-rw-r--r--common/Resources/Sounds/drum1chinebin0 -> 20480 bytes
-rw-r--r--common/Resources/Sounds/drum1crashbin0 -> 64044 bytes
-rw-r--r--common/Resources/Sounds/drum1floortombin0 -> 38498 bytes
-rw-r--r--common/Resources/Sounds/drum1hardridebin0 -> 80044 bytes
-rw-r--r--common/Resources/Sounds/drum1hatpedalbin0 -> 23022 bytes
-rw-r--r--common/Resources/Sounds/drum1hatshoulderbin0 -> 28508 bytes
-rw-r--r--common/Resources/Sounds/drum1kickbin0 -> 32044 bytes
l---------common/Resources/Sounds/drum1kit1
-rw-r--r--common/Resources/Sounds/drum1ridebellbin0 -> 80044 bytes
-rw-r--r--common/Resources/Sounds/drum1snarebin0 -> 32044 bytes
-rw-r--r--common/Resources/Sounds/drum1snaresidestickbin0 -> 5726 bytes
-rw-r--r--common/Resources/Sounds/drum1splashbin0 -> 48044 bytes
-rw-r--r--common/Resources/Sounds/drum1tombin0 -> 37152 bytes
-rw-r--r--common/Resources/Sounds/drum2darbukadoombin0 -> 38652 bytes
-rw-r--r--common/Resources/Sounds/drum2darbukafingerbin0 -> 22470 bytes
-rw-r--r--common/Resources/Sounds/drum2darbukapiedbin0 -> 32106 bytes
-rw-r--r--common/Resources/Sounds/drum2darbukapiedsoftbin0 -> 24454 bytes
-rw-r--r--common/Resources/Sounds/drum2darbukarollbin0 -> 27176 bytes
-rw-r--r--common/Resources/Sounds/drum2darbukaslapbin0 -> 25672 bytes
-rw-r--r--common/Resources/Sounds/drum2darbukatakbin0 -> 12882 bytes
-rw-r--r--common/Resources/Sounds/drum2hatflangerbin0 -> 64246 bytes
-rw-r--r--common/Resources/Sounds/drum2hatpiedbin0 -> 14638 bytes
-rw-r--r--common/Resources/Sounds/drum2hatpied2bin0 -> 14460 bytes
l---------common/Resources/Sounds/drum2kit1
-rw-r--r--common/Resources/Sounds/drum2tambourinepiedbin0 -> 33262 bytes
-rw-r--r--common/Resources/Sounds/drum2tambourinepiedsoftbin0 -> 19470 bytes
-rw-r--r--common/Resources/Sounds/drum3cowbellbin0 -> 15950 bytes
-rw-r--r--common/Resources/Sounds/drum3cowbelltipbin0 -> 12872 bytes
-rw-r--r--common/Resources/Sounds/drum3cupbin0 -> 15926 bytes
-rw-r--r--common/Resources/Sounds/drum3djembelowbin0 -> 32080 bytes
-rw-r--r--common/Resources/Sounds/drum3djembemidbin0 -> 15050 bytes
-rw-r--r--common/Resources/Sounds/drum3djembesidestickbin0 -> 13602 bytes
-rw-r--r--common/Resources/Sounds/drum3djembeslapbin0 -> 24090 bytes
-rw-r--r--common/Resources/Sounds/drum3djembestickmidbin0 -> 25722 bytes
l---------common/Resources/Sounds/drum3kit1
-rw-r--r--common/Resources/Sounds/drum3metalstandbin0 -> 16108 bytes
-rw-r--r--common/Resources/Sounds/drum3pedalpercbin0 -> 16160 bytes
-rw-r--r--common/Resources/Sounds/drum3rainstickbin0 -> 56454 bytes
-rw-r--r--common/Resources/Sounds/drum3tambourinehighbin0 -> 15996 bytes
-rw-r--r--common/Resources/Sounds/drum3tambourinelowbin0 -> 15506 bytes
-rw-r--r--common/Resources/Sounds/drum4afrofeetbin0 -> 23774 bytes
-rw-r--r--common/Resources/Sounds/drum4fingersnbin0 -> 33644 bytes
l---------common/Resources/Sounds/drum4kit1
-rw-r--r--common/Resources/Sounds/drum4mutecuicbin0 -> 12738 bytes
-rw-r--r--common/Resources/Sounds/drum4stompbassbin0 -> 22026 bytes
-rw-r--r--common/Resources/Sounds/drum4tambouribin0 -> 21382 bytes
-rw-r--r--common/Resources/Sounds/drum4tr707clapbin0 -> 11456 bytes
-rw-r--r--common/Resources/Sounds/drum4tr707openbin0 -> 29702 bytes
-rw-r--r--common/Resources/Sounds/drum4tr808closedbin0 -> 7530 bytes
-rw-r--r--common/Resources/Sounds/drum4tr808snbin0 -> 17474 bytes
-rw-r--r--common/Resources/Sounds/drum4tr909bassbin0 -> 61846 bytes
-rw-r--r--common/Resources/Sounds/drum4tr909kickbin0 -> 27516 bytes
-rw-r--r--common/Resources/Sounds/drum4tr909snbin0 -> 20920 bytes
-rw-r--r--common/Resources/Sounds/drum5agogoaigubin0 -> 22366 bytes
-rw-r--r--common/Resources/Sounds/drum5agogogravebin0 -> 19796 bytes
-rw-r--r--common/Resources/Sounds/drum5bongoaiguouvertbin0 -> 11418 bytes
-rw-r--r--common/Resources/Sounds/drum5bongograveouvertbin0 -> 14442 bytes
-rw-r--r--common/Resources/Sounds/drum5congaaiguouvertbin0 -> 16146 bytes
-rw-r--r--common/Resources/Sounds/drum5congagravefermebin0 -> 9674 bytes
-rw-r--r--common/Resources/Sounds/drum5congagraveouvertbin0 -> 14490 bytes
-rw-r--r--common/Resources/Sounds/drum5guiroretourbin0 -> 14462 bytes
l---------common/Resources/Sounds/drum5kit1
-rw-r--r--common/Resources/Sounds/drum5quicaaigubin0 -> 10410 bytes
-rw-r--r--common/Resources/Sounds/drum5quicamediumbin0 -> 11398 bytes
-rw-r--r--common/Resources/Sounds/drum5timablesaiguslapbin0 -> 33698 bytes
-rw-r--r--common/Resources/Sounds/drum5timablesslapbin0 -> 37170 bytes
-rw-r--r--common/Resources/Sounds/drum5vibraslapbin0 -> 52238 bytes
l---------common/Resources/Sounds/drum6kit1
-rw-r--r--common/Resources/Sounds/drum6madal00bin0 -> 14382 bytes
-rw-r--r--common/Resources/Sounds/drum6madal01bin0 -> 11532 bytes
-rw-r--r--common/Resources/Sounds/drum6madal02bin0 -> 10530 bytes
-rw-r--r--common/Resources/Sounds/drum6madal03bin0 -> 8982 bytes
-rw-r--r--common/Resources/Sounds/drum6madal04bin0 -> 11852 bytes
-rw-r--r--common/Resources/Sounds/drum6madal05bin0 -> 21504 bytes
-rw-r--r--common/Resources/Sounds/drum6madal06bin0 -> 16148 bytes
-rw-r--r--common/Resources/Sounds/drum6madal07bin0 -> 16090 bytes
-rw-r--r--common/Resources/Sounds/drum6madal08bin0 -> 11878 bytes
-rw-r--r--common/Resources/Sounds/drum6madal09bin0 -> 21474 bytes
-rw-r--r--common/Resources/Sounds/drum6madal10bin0 -> 11352 bytes
-rw-r--r--common/Resources/Sounds/drum6madal11bin0 -> 15914 bytes
-rw-r--r--common/Resources/Sounds/drum6madal12bin0 -> 32700 bytes
-rw-r--r--common/Resources/Sounds/duckbin0 -> 12942 bytes
-rw-r--r--common/Resources/Sounds/duck2bin0 -> 7840 bytes
-rw-r--r--common/Resources/Sounds/fingercymbalsbin0 -> 68426 bytes
-rw-r--r--common/Resources/Sounds/flugelbin0 -> 118102 bytes
-rw-r--r--common/Resources/Sounds/flutebin0 -> 26902 bytes
-rw-r--r--common/Resources/Sounds/foghornbin0 -> 139456 bytes
-rw-r--r--common/Resources/Sounds/frogsbin0 -> 161400 bytes
-rw-r--r--common/Resources/Sounds/gambin0 -> 31848 bytes
-rw-r--r--common/Resources/Sounds/guidice1bin0 -> 10610 bytes
-rw-r--r--common/Resources/Sounds/guidice10bin0 -> 12298 bytes
-rw-r--r--common/Resources/Sounds/guidice2bin0 -> 16130 bytes
-rw-r--r--common/Resources/Sounds/guidice3bin0 -> 14980 bytes
-rw-r--r--common/Resources/Sounds/guidice4bin0 -> 14128 bytes
-rw-r--r--common/Resources/Sounds/guidice5bin0 -> 9760 bytes
-rw-r--r--common/Resources/Sounds/guidice6bin0 -> 12658 bytes
-rw-r--r--common/Resources/Sounds/guidice7bin0 -> 11148 bytes
-rw-r--r--common/Resources/Sounds/guidice8bin0 -> 11720 bytes
-rw-r--r--common/Resources/Sounds/guidice9bin0 -> 12376 bytes
-rw-r--r--common/Resources/Sounds/guitbin0 -> 32432 bytes
-rw-r--r--common/Resources/Sounds/guit2bin0 -> 82082 bytes
-rw-r--r--common/Resources/Sounds/guitmutebin0 -> 15700 bytes
-rw-r--r--common/Resources/Sounds/guitshortbin0 -> 8666 bytes
-rw-r--r--common/Resources/Sounds/harmonicabin0 -> 10396 bytes
-rw-r--r--common/Resources/Sounds/harmoniumbin0 -> 34576 bytes
-rw-r--r--common/Resources/Sounds/harpsichordbin0 -> 49924 bytes
-rw-r--r--common/Resources/Sounds/heybin0 -> 14508 bytes
-rw-r--r--common/Resources/Sounds/horsebin0 -> 36966 bytes
-rw-r--r--common/Resources/Sounds/kalimbabin0 -> 14496 bytes
-rw-r--r--common/Resources/Sounds/kotobin0 -> 29288 bytes
-rw-r--r--common/Resources/Sounds/laughbin0 -> 18112 bytes
-rw-r--r--common/Resources/Sounds/mandobin0 -> 68326 bytes
-rw-r--r--common/Resources/Sounds/marimbabin0 -> 15850 bytes
-rw-r--r--common/Resources/Sounds/mic1bin0 -> 44 bytes
-rw-r--r--common/Resources/Sounds/mic2bin0 -> 44 bytes
-rw-r--r--common/Resources/Sounds/mic3bin0 -> 44 bytes
-rw-r--r--common/Resources/Sounds/mic4bin0 -> 44 bytes
-rw-r--r--common/Resources/Sounds/ocarinabin0 -> 8610 bytes
-rw-r--r--common/Resources/Sounds/ounkbin0 -> 15232 bytes
-rw-r--r--common/Resources/Sounds/owbin0 -> 20300 bytes
-rw-r--r--common/Resources/Sounds/pianobin0 -> 96828 bytes
-rw-r--r--common/Resources/Sounds/planebin0 -> 69662 bytes
-rw-r--r--common/Resources/Sounds/rhodesbin0 -> 30080 bytes
-rw-r--r--common/Resources/Sounds/sarangibin0 -> 49132 bytes
-rw-r--r--common/Resources/Sounds/saxobin0 -> 29702 bytes
-rw-r--r--common/Resources/Sounds/saxsopranobin0 -> 74918 bytes
-rw-r--r--common/Resources/Sounds/sheepbin0 -> 39768 bytes
-rw-r--r--common/Resources/Sounds/shenaibin0 -> 14716 bytes
-rw-r--r--common/Resources/Sounds/sitarbin0 -> 66104 bytes
-rw-r--r--common/Resources/Sounds/slapbin0 -> 17534 bytes
-rw-r--r--common/Resources/Sounds/templebellbin0 -> 23804 bytes
-rw-r--r--common/Resources/Sounds/trianglebin0 -> 127866 bytes
-rw-r--r--common/Resources/Sounds/trumpetbin0 -> 72956 bytes
-rw-r--r--common/Resources/Sounds/tubabin0 -> 25876 bytes
-rw-r--r--common/Resources/Sounds/ukulelebin0 -> 60594 bytes
-rw-r--r--common/Resources/Sounds/violinbin0 -> 21884 bytes
-rw-r--r--common/Resources/Sounds/voixbin0 -> 39052 bytes
-rw-r--r--common/Resources/Sounds/waterbin0 -> 19512 bytes
-rw-r--r--common/Resources/Sounds/zapbin0 -> 24218 bytes
-rw-r--r--common/Resources/crop.csd78
-rw-r--r--common/Resources/cropSynthLab.csd77
-rw-r--r--common/Resources/tamtamorc.csd1125
-rw-r--r--common/Tooltips.py155
-rw-r--r--common/Util/CSoundClient.py414
-rw-r--r--common/Util/CSoundNote.py80
-rw-r--r--common/Util/Clooper/Makefile31
-rw-r--r--common/Util/Clooper/SoundClient.i14
-rw-r--r--common/Util/Clooper/__init__.py21
-rw-r--r--common/Util/Clooper/aclient.cpp1089
-rw-r--r--common/Util/Clooper/armv7l_510/__init__.py0
-rwxr-xr-xcommon/Util/Clooper/armv7l_510/aclient.sobin0 -> 226576 bytes
-rw-r--r--common/Util/Clooper/audio.cpp237
-rw-r--r--common/Util/Clooper/cmd_csound.cpp22
-rw-r--r--common/Util/Clooper/linux32_508/__init__.py0
-rwxr-xr-xcommon/Util/Clooper/linux32_508/aclient.sobin0 -> 253214 bytes
-rw-r--r--common/Util/Clooper/linux32_510/__init__.py0
-rwxr-xr-xcommon/Util/Clooper/linux32_510/aclient.sobin0 -> 230425 bytes
-rw-r--r--common/Util/Clooper/linux32_511_deb/__init__.py0
-rwxr-xr-xcommon/Util/Clooper/linux32_511_deb/aclient.sobin0 -> 197919 bytes
-rw-r--r--common/Util/Clooper/linux64_/__init__.py0
-rwxr-xr-xcommon/Util/Clooper/linux64_/aclient.sobin0 -> 275125 bytes
-rw-r--r--common/Util/Clooper/linux64_510/__init__.py0
-rwxr-xr-xcommon/Util/Clooper/linux64_510/aclient.sobin0 -> 279291 bytes
-rw-r--r--common/Util/Clooper/linux64_511_deb/__init__.py0
-rwxr-xr-xcommon/Util/Clooper/linux64_511_deb/aclient.sobin0 -> 294580 bytes
-rw-r--r--common/Util/Clooper/log.cpp52
-rw-r--r--common/Util/Clooper/ttest.c53
-rw-r--r--common/Util/Clooper/ttest.h15
-rw-r--r--common/Util/Clooper/ttest.i15
-rw-r--r--common/Util/Clooper/ttest.py54
-rw-r--r--common/Util/Clooper/ttest_wrap.c3042
-rw-r--r--common/Util/InstrumentDB.py140
-rw-r--r--common/Util/Instruments.py680
-rw-r--r--common/Util/NoteDB.py813
-rw-r--r--common/Util/__init__.py0
-rw-r--r--common/__init__.py0
-rw-r--r--lps.py242
272 files changed, 10564 insertions, 25 deletions
diff --git a/KeyboardStandAlone.py b/KeyboardStandAlone.py
new file mode 100644
index 0000000..6a8272a
--- /dev/null
+++ b/KeyboardStandAlone.py
@@ -0,0 +1,142 @@
+from gi.repository import Gdk
+
+import common.Config as Config
+from common.Generation.GenerationConstants import GenerationConstants
+from common.Util.NoteDB import Note
+from common.Util.CSoundNote import CSoundNote
+from common.Util.CSoundClient import new_csound_client
+from common.Util import InstrumentDB
+
+KEY_MAP_PIANO = Config.KEY_MAP_PIANO
+
+#log = file('/home/olpc/log.tamtam','w')
+
+class KeyboardStandAlone:
+ def __init__( self, recordingFunction, adjustDurationFunction, getCurrentTick, getPlayState, loop ):
+ self.instrumentDB = InstrumentDB.getRef()
+ self.csnd = new_csound_client()
+ self.recording = recordingFunction
+ self.adjustDuration = adjustDurationFunction
+ self.getPlayState = getPlayState
+ self.key_dict = dict()
+ self.onset_dict = dict()
+ self.trackCount = 0
+ self.instrument = 'flute'
+ self.reverb = 0
+ self.loop = loop
+ self.loopSustain = False
+ self.sustainedLoop = []
+
+ def setInstrument( self , instrument ):
+ self.instrument = instrument
+
+ def setReverb(self , reverb):
+ self.reverb = reverb
+
+ def onKeyPress(self,widget,event, volume):
+ key = event.hardware_keycode
+ if key == 50 or key == 62: #Left Shift
+ self.loopSustain = True
+
+ # If the key is already in the dictionnary, exit function (to avoir key repeats)
+ if self.key_dict.has_key(key):
+ return
+
+ if key in Config.LOOP_KEYS:
+ if key in self.sustainedLoop:
+ self.loop.stop(key)
+ self.sustainedLoop.remove(key)
+ elif self.loopSustain:
+ self.loop.start(key, self.instrument, self.reverb)
+ self.sustainedLoop.append(key)
+ else:
+ self.loop.start(key, self.instrument, self.reverb)
+ return
+
+ # Assign on which track the note will be created according to the number of keys pressed
+ if self.trackCount >= 9:
+ self.trackCount = 1
+ track = self.trackCount
+ self.trackCount += 1
+ # If the pressed key is in the keymap
+ if KEY_MAP_PIANO.has_key(key):
+ def playkey(pitch,duration,instrument):
+ # Create and play the note
+ self.key_dict[key] = CSoundNote(onset = 0,
+ pitch = pitch,
+ amplitude = volume,
+ pan = 0.5,
+ duration = duration,
+ trackId = track,
+ instrumentId = instrument.instrumentId,
+ reverbSend = self.reverb,
+ tied = True,
+ mode = 'mini')
+ self.csnd.play(self.key_dict[key], 0.3)
+ if self.getPlayState():
+ recOnset = int(self.csnd.loopGetTick())
+ self.onset_dict[key] = recOnset
+ self.recording( CSoundNote(
+ onset = recOnset,
+ pitch = pitch,
+ amplitude = volume,
+ pan = 0.5,
+ duration = 100,
+ trackId = 0,
+ decay = .1,
+ instrumentId = instrument.instrumentId,
+ reverbSend = self.reverb,
+ tied = False,
+ mode = 'mini'))
+
+ instrumentName = self.instrument
+ #print >>log, 'instrumentName:', instrumentName
+ pitch = KEY_MAP_PIANO[key]
+
+ if self.instrumentDB.instNamed[instrumentName].kit != None:
+ if pitch in GenerationConstants.DRUMPITCH:
+ pitch = GenerationConstants.DRUMPITCH[pitch]
+ #print >>log, 'kit_element: ', Config.KIT_ELEMENT[pitch]
+ playkey(36,100, self.instrumentDB.instNamed[instrumentName].kit[pitch])
+
+ else:
+ if event.state == Gdk.ModifierType.MOD1_MASK:
+ pitch += 5
+
+ instrument = self.instrumentDB.instNamed[ instrumentName ]
+ if instrument.csoundInstrumentId == Config.INST_PERC: #Percussions resonance
+ playkey( pitch, 60, instrument)
+ else:
+ playkey( pitch, -1, instrument)
+
+
+ def onKeyRelease(self,widget,event):
+ key = event.hardware_keycode
+ if key == 50 or key == 62:
+ self.loopSustain = False
+
+ if key in Config.LOOP_KEYS:
+ if key in self.sustainedLoop:
+ return
+ else:
+ self.loop.stop(key)
+ return
+
+ if KEY_MAP_PIANO.has_key(key):
+ csnote = self.key_dict[key]
+ if self.instrumentDB.instId[ csnote.instrumentId ].csoundInstrumentId == Config.INST_TIED:
+ csnote.duration = .5
+ csnote.decay = 0.7
+ #csnote.amplitude = 1
+ csnote.tied = False
+ csnote.mode = 'mini'
+ self.csnd.play(csnote, 0.3)
+ if self.getPlayState():
+ self.adjustDuration(csnote.pitch, self.onset_dict[key])
+ del self.key_dict[key]
+ if self.getPlayState():
+ if self.onset_dict.has_key(key):
+ del self.onset_dict[key]
+
+ def onButtonPress( self, widget, event ):
+ pass
diff --git a/Loop.py b/Loop.py
new file mode 100644
index 0000000..348b465
--- /dev/null
+++ b/Loop.py
@@ -0,0 +1,227 @@
+import common.Config as Config
+import random
+import lps
+from common.Generation.Drunk import *
+from common.Util.CSoundNote import CSoundNote
+from common.Util.CSoundClient import new_csound_client
+from common.Util.NoteDB import Note
+from common.Util.NoteDB import PARAMETER
+from common.Generation.GenerationConstants import GenerationConstants
+from common.Util import InstrumentDB
+
+class Loop:
+ def __init__( self, beat, volume ):
+ self.instrumentDB = InstrumentDB.getRef()
+ self.notesDict = {}
+ self.notesList = []
+ self.beat = beat
+ self.volume = volume
+ self.id = 4000
+ self.csnd = new_csound_client()
+
+ def stop( self, key ):
+ if (Config.DEBUG > 3): print 'stop loop at key: ' + str(key)
+ for n in self.notesDict[key]:
+ self.csnd.loopDelete(n)
+ del self.notesDict[key]
+ if (Config.DEBUG > 3): print self.notesDict
+
+ def start(self, key, instrument, reverb):
+ if self.notesDict.has_key(key):
+ return
+ self.notesList = []
+ for i in lps.LOOPS[key][self.beat-2]:
+ note = self.createCsNote(i, instrument, reverb)
+ n = Note(0, note.trackId, self.id, note)
+ self.notesList.append(n)
+ self.id = self.id + 1
+ self.csnd.loopPlay(n,1) #add as active
+ if (Config.DEBUG > 3): print 'play loop at key: ' + str(key)
+ self.notesDict[key] = self.notesList
+ if (Config.DEBUG > 3): print self.notesDict
+
+ def adjustLoopVolume(self, volume):
+ self.volume = volume
+ for k in self.notesDict.keys():
+ for n in self.notesDict[k]:
+ self.csnd.loopUpdate(n, PARAMETER.AMPLITUDE, n.cs.amplitude*self.volume, 1)
+
+ def createCsNote(self, i, instrument, reverb):
+ onset = i[0]
+ pitch = i[1]
+ gain = i[2]*self.volume
+ duration = i[3]
+ if self.instrumentDB.instNamed[instrument].kit != None:
+ if GenerationConstants.DRUMPITCH.has_key(pitch):
+ pitch = GenerationConstants.DRUMPITCH[pitch]
+ instrument = self.instrumentDB.instNamed[ instrument ].kit[pitch].name
+ pitch = 36
+ return CSoundNote( onset = onset,
+ pitch = pitch,
+ amplitude = gain,
+ pan = 0.5,
+ duration = duration,
+ trackId = 0,
+ instrumentId = self.instrumentDB.instNamed[instrument].instrumentId,
+ reverbSend = reverb,
+ tied = False,
+ mode = 'mini')
+
+
+################ precompose all loops and write a dictionary #################
+
+ def precompose(self, maxbeat):
+ def makeGainSequence(onsetList):
+ gainSequence = []
+ append = gainSequence.append
+ for onset in onsetList:
+ if onset == 0:
+ gain = random.uniform(GenerationConstants.GAIN_MID_MAX_BOUNDARY, GenerationConstants.GAIN_MAX_BOUNDARY)
+ elif ( onset % Config.TICKS_PER_BEAT) == 0:
+ gain = random.uniform(GenerationConstants.GAIN_MID_MIN_BOUNDARY, GenerationConstants.GAIN_MID_MAX_BOUNDARY)
+ else:
+ gain = random.uniform(GenerationConstants.GAIN_MIN_BOUNDARY, GenerationConstants.GAIN_MID_MIN_BOUNDARY)
+ append(gain)
+ return gainSequence
+
+ def makeDurationSequence(onsetList, barLength):
+ durationSequence = []
+ append = durationSequence.append
+ if len( onsetList ) > 1:
+ for i in range(len(onsetList) - 1):
+ append((onsetList[i+1] - onsetList[i]))
+ append(( barLength - onsetList[-1]))
+ elif len( onsetList ) == 1:
+ append( ( barLength - onsetList[0] ))
+ return durationSequence
+
+ def makePitchSequence(length, pitchRegularity, step, table_pitch, pitchMethod):
+ pitchSequence = []
+ append = pitchSequence.append
+ numberOfPitch = int( ( 1 - (regularity*.8) ) * 10 + 1 )
+ step = -(8 - (int(step * 8)))
+ max = len(table_pitch)-1
+ nextValue = pitchMethod.getNextValue
+ tonique = GenerationConstants.DEFAULT_TONIQUE
+ for i in range(numberOfPitch):
+ append((table_pitch[nextValue(step, max)]) + tonique)
+ restOfNotes = range( length - numberOfPitch )
+ for i in restOfNotes:
+ position = i % numberOfPitch
+ append( pitchSequence[ position ] )
+ return pitchSequence
+
+
+ def makeRythmSequence(barLength, density, regularity ):
+ rythmSequence = [0, ]
+ self.count = 0
+ lastOnsetTime = 0
+ onsetLen = len(GenerationConstants.LOOP_TABLE_ONSET_VALUES)
+
+ onsetValue = int( ( 1 - density ) * onsetLen )
+ onsetDeviation = int( ( 1 - regularity ) * 20 )
+ currentOnsetValue = onsetValue + ( random.randint( 0, onsetDeviation ) - ( onsetDeviation / 2 ) )
+ if currentOnsetValue < 0:
+ currentOnsetValue = 0
+ elif currentOnsetValue > onsetLen:
+ currentOnsetValue = onsetLen
+ else:
+ currentOnsetValue = currentOnsetValue
+
+ onsetDelta = GenerationConstants.LOOP_TABLE_ONSET_VALUES[ currentOnsetValue ]
+ listLen = range( int( barLength / Config.TICKS_PER_BEAT * 8 ) )
+ randInt = random.randint
+ for i in listLen:
+ if self.count == 0:
+ currentOnsetValue = onsetValue + ( randInt( 0, onsetDeviation ) - ( onsetDeviation / 2 ) )
+ if currentOnsetValue < 0:
+ currentOnsetValue = 0
+ elif currentOnsetValue > onsetLen:
+ currentOnsetValue = onsetLen
+ else:
+ currentOnsetValue = currentOnsetValue
+ onsetDelta = GenerationConstants.LOOP_TABLE_ONSET_VALUES[ currentOnsetValue ]
+
+ if onsetDelta == GenerationConstants.DOUBLE_TICK_DUR:
+ if self.count < (GenerationConstants.DOUBLE_HOW_MANY - 1):
+ self.count += 1
+ else:
+ self.count = 0
+ onsetTime = onsetDelta + lastOnsetTime
+ lastOnsetTime = onsetTime
+ if onsetTime < barLength:
+ rythmSequence.append(onsetTime)
+ continue
+ else:
+ break
+
+ onsetTime = onsetDelta + lastOnsetTime
+ lastOnsetTime = onsetTime
+ if onsetTime < barLength:
+ rythmSequence.append(onsetTime)
+ else:
+ break
+ return rythmSequence
+
+############ begin generate #####################
+ #file = open(Config.TAM_TAM_ROOT + '/miniTamTam/lps.py', 'w')
+ #file.write('LOOPS = {\n')
+
+ counter = 0
+ table_pitch = [-12, -10, -12, -7, -5, -4, -2, 0, 2, 0, 5, 7, 8, 10, 12]
+ table_density = [1., .92, .84, .76, .68, .6, .52, .46, .4, .46, .52, .6, .68, .76, .84, .95]
+ table_regularity = [1., .96, .9, .84, .78, .72, .66, .6, .54, .48, .42, .36, .3, .24, .18, .1]
+ table_pitchRegularity = [1., .96, .9, .84, .78, .72, .66, .6, .54, .48, .42, .36, .3, .24, .18, .1]
+ table_step = [2, 4, 3, 2, 4, 6, 5, 4, 6, 8, 7, 6, 8, 9, 8, 10]
+ table_pitchMethod = [0, 3, 0, 3, 0, 3, 0, 3, 0, 3, 0, 3, 0, 3, 0, 3]
+
+ names = ['', '', '02', '03', '04', '05', '06', '07', '08', '09', '10', '11', '12']
+ numKeys = 5 #len(Config.LOOP_KEYS)
+ for key in range(numKeys):
+ #file.write(str(Config.LOOP_KEYS[key]) + ': [')
+ for beat in range(2, maxbeat+1):
+ density = table_density[key*3]
+ regularity = table_regularity[key*3]
+ pitchRegularity = table_pitchRegularity[key*3]
+ step = table_step[key*3]
+ pattern = table_pitchMethod[key*3]
+ if pattern == 0:
+ pitchMethod = Drunk( 5, 10 )
+ elif pattern == 1:
+ pitchMethod = DroneAndJump( 5, 10 )
+ elif pattern == 2:
+ pitchMethod = Repeter( 5, 10 )
+ elif pattern == 3:
+ pitchMethod = Loopseg( 5, 10 )
+
+ barLength = Config.TICKS_PER_BEAT * beat
+ loopList = []
+
+ rythmSequence = makeRythmSequence(barLength, density, regularity)
+ pitchSequence = makePitchSequence(len(rythmSequence), pitchRegularity, step, table_pitch, pitchMethod )
+ gainSequence = makeGainSequence(rythmSequence)
+ durationSequence = makeDurationSequence(rythmSequence, barLength)
+
+ for k in range(len(rythmSequence)):
+ loopList.append([rythmSequence[k], pitchSequence[k], gainSequence[k], durationSequence[k]])
+
+
+ f = open(Config.INSTANCE_DIR + '/loops/loop' + names[beat] + '_' + str(counter) + '.ttl', 'w')
+ print "open file"
+ f.write('page_add 1 ' + str(beat) + ' 0 [1, 1, 1, 1, 1]\n')
+ print "write page_add"
+ noteIdCount = 0
+ for l in loopList:
+ f.write('note_add %s 1 0 %s %s %s 0.5 %s 0 1 0.005 0.098 0.1 0 1000 0 edit\n' % (str(counter + noteIdCount + 1000), str(l[0]), str(l[1]), str(l[2]), str(l[3])))
+ noteIdCount += 1
+ f.close()
+ counter += 1
+
+ #if beat == maxbeat and key == (numKeys-1):
+ #file.write(str(loopList) + ']\n')
+ #elif beat != maxbeat:
+ #file.write(str(loopList) + ',\n')
+ #else:
+ #file.write(str(loopList) + '],\n')
+ #file.write('}')
+ #file.close()
diff --git a/MiniSequencer.py b/MiniSequencer.py
new file mode 100644
index 0000000..1b96758
--- /dev/null
+++ b/MiniSequencer.py
@@ -0,0 +1,137 @@
+from gi.repository import GObject
+import time
+import common.Config as Config
+from common.Util.CSoundNote import CSoundNote
+from common.Util.CSoundClient import new_csound_client
+from common.Util.NoteDB import Note
+from common.Util.NoteDB import PARAMETER
+
+class MiniSequencer:
+ def __init__( self, recordButtonState, recordOverSensitivity ):
+ self.notesList = []
+ self.sequencer = []
+ self.pitchs = []
+ self.beat = 4
+ self.volume = 0.5
+ self.tempo = Config.PLAYER_TEMPO
+ self.checkOk = 0
+ self.tick = 0
+ self.id = 1000
+ self.csnd = new_csound_client()
+ self.startLooking = 0
+ self.recordState = 0
+ self.startPoint = 0
+ self.recordButtonState = recordButtonState
+ self.recordOverSensitivity = recordOverSensitivity
+ self.playbackTimeout = None
+ self.playState = 0
+
+ def setTempo( self, tempo ):
+ self.tempo = tempo
+ GObject.source_remove( self.playBackTimeout )
+ self.playState = 0
+
+ def handleRecordButton( self, widget, data=None ):
+ if not self.startLooking:
+ if widget.get_active() == True and not self.recordState:
+ self.button = 1
+ self.recordOverSensitivity( True )
+ self.beats = [i*4 for i in range(self.beat)]
+ self.upBeats = [i+2 for i in self.beats]
+ self.realTick = [i for i in range(self.beat*4)]
+ self.clearSequencer()
+ self.startLooking = 1
+ self.startPlayback()
+
+ def handleOverButton( self, widget, data=None ):
+ if not self.startLooking:
+ if widget.get_active() == True and not self.recordState:
+ self.button = 2
+ self.startLooking = 1
+ self.startPlayback()
+
+ def clearSequencer( self, widget=None ):
+ for n in self.notesList:
+ self.csnd.loopDelete(n)
+ self.notesList = []
+
+ def getPlayState( self ):
+ return self.playState
+
+ def startPlayback( self ):
+ if not self.playState:
+ self.playbackTimeout = GObject.timeout_add(int(60000/self.tempo/12),
+ self.handleClock)
+ self.handleClock()
+ self.playState = 1
+
+ def stopPlayback( self ):
+ if self.playbackTimeout != None:
+ GObject.source_remove( self.playbackTimeout )
+ self.playbackTimeout = None
+ self.playState = 0
+
+ def recording( self, note ):
+ if self.startLooking:
+ self.sequencer = []
+ self.pitchs = []
+ self.recordState = 1
+ self.startLooking = 0
+ self.recordButtonState(self.button, True)
+ self.startPoint = int(self.csnd.loopGetTick())
+ if self.startPoint == 0:
+ self.startPoint = self.beat * Config.TICKS_PER_BEAT - 1
+ if self.recordState:
+ self.pitchs.append( note.pitch )
+ self.sequencer.append( note )
+
+ def quantize( self, onset ):
+ if ( onset % 3 ) == 0:
+ return onset
+ elif ( onset % 3 ) == 1:
+ return ( onset // 3 ) * 3
+ elif ( onset % 3 ) == 2:
+ return ( ( onset // 3 ) + 1 ) * 3
+
+ def adjustDuration( self, pitch, onset ):
+ if pitch in self.pitchs:
+ offset = int(self.csnd.loopGetTick())
+ for note in self.sequencer:
+ if note.pitch == pitch and note.onset == onset:
+ if offset > note.onset:
+ note.duration = ( offset - note.onset ) + 4
+ else:
+ note.duration = ( (offset+(self.beat*Config.TICKS_PER_BEAT)) - note.onset ) + 4
+ note.onset = self.quantize( note.onset )
+ n = Note(0, note.trackId, self.id, note)
+ self.notesList.append(n)
+ self.id = self.id + 1
+ self.csnd.loopPlay(n,1) #add as active
+
+ self.pitchs.remove( pitch )
+
+ def adjustSequencerVolume(self, volume):
+ self.volume = volume
+ for n in self.notesList:
+ self.csnd.loopUpdate(n, PARAMETER.AMPLITUDE, n.cs.amplitude*self.volume, 1)
+
+ def handleClock( self ):
+ currentTick = int(self.csnd.loopGetTick())
+ t = currentTick / 3
+ if self.tick != t:
+ self.tick = t
+ if self.startLooking:
+ if self.tick in self.beats:
+ self.recordButtonState(self.button, True)
+ if self.tick in self.upBeats:
+ self.recordButtonState(self.button, False)
+
+ if self.recordState:
+ if currentTick < self.startPoint:
+ self.checkOk = 1
+ if currentTick >= self.startPoint and self.checkOk:
+ self.checkOk = 0
+ self.recordState = 0
+ self.recordButtonState(self.button, False)
+
+ return True
diff --git a/activity.py b/activity.py
index c31ec3b..c140112 100644
--- a/activity.py
+++ b/activity.py
@@ -15,6 +15,7 @@
# Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
from gi.repository import Gtk
+from gi.repository import Gdk
import logging
from gettext import gettext as _
@@ -26,9 +27,17 @@ from sugar3.graphics.radiotoolbutton import RadioToolButton
from sugar3.activity.widgets import StopButton
from draw_piano import PianoKeyboard
-from gi.repository import Gst
import math
+import time
+import common.Util.Instruments
+from common.Util import InstrumentDB
+from common.Util.CSoundClient import new_csound_client
+from KeyboardStandAlone import KeyboardStandAlone
+from MiniSequencer import MiniSequencer
+from Loop import Loop
+import common.Config as Config
+
class SimplePianoActivity(activity.Activity):
"""SimplePianoActivity class as specified in activity.info"""
@@ -73,8 +82,6 @@ class SimplePianoActivity(activity.Activity):
self.set_toolbar_box(toolbar_box)
toolbar_box.show_all()
- #self.tone_generator = GstToneGenerator()
-
self.keyboard_letters = ['Q2W3ER5T6Y7UI', 'ZSXDCVGBHNJM', ',']
notes = ['DO', 'DO#', 'RE', 'RE#', 'MI', 'FA', 'FA#', 'SOL',
@@ -83,6 +90,50 @@ class SimplePianoActivity(activity.Activity):
self.piano = PianoKeyboard(octaves=2, add_c=True,
labels=self.keyboard_letters)
+
+ # init csound
+ self.instrumentDB = InstrumentDB.getRef()
+ self.firstTime = False
+ self.playing = False
+ self.csnd = new_csound_client()
+ self.timeout_ms = 50
+ self.instVolume = 50
+ self.drumVolume = 0.5
+ self.instrument = 'piano'
+ self.regularity = 0.75
+ self.beat = 4
+ self.reverb = 0.1
+ self.tempo = Config.PLAYER_TEMPO
+ self.beatDuration = 60.0/self.tempo
+ self.ticksPerSecond = Config.TICKS_PER_BEAT*self.tempo/60.0
+ #self.rythmInstrument = 'drum1kit'
+ #self.csnd.load_drumkit(self.rythmInstrument)
+ self.sequencer= MiniSequencer(self.recordStateButton,
+ self.recordOverSensitivity)
+ self.loop = Loop(self.beat, math.sqrt(self.instVolume * 0.01))
+
+ self.muteInst = False
+ self.csnd.setTempo(self.tempo)
+ self.noteList = []
+ time.sleep(0.001) # why?
+ for i in range(21):
+ self.csnd.setTrackVolume( 100, i )
+
+ for i in range(10):
+ r = str(i+1)
+ self.csnd.load_instrument('guidice' + r)
+
+ self.volume = 100
+ self.csnd.setMasterVolume(self.volume)
+
+ self.enableKeyboard()
+ self.setInstrument(self.instrument)
+
+ self.connect('key-press-event', self.onKeyPress)
+ self.connect('key-release-event', self.onKeyRelease)
+ # finish csount init
+
+
self.piano.connect('key_pressed', self.__key_pressed_cb)
self.piano.connect('key_released', self.__key_released_cb)
self.piano.show()
@@ -96,6 +147,28 @@ class SimplePianoActivity(activity.Activity):
self.piano.font_size = 20
self.piano.set_labels(self.keyboard_letters)
+ def enableKeyboard(self):
+ self.keyboardStandAlone = KeyboardStandAlone(self.sequencer.recording,
+ self.sequencer.adjustDuration, self.csnd.loopGetTick,
+ self.sequencer.getPlayState, self.loop)
+ self.add_events(Gdk.EventMask.BUTTON_PRESS_MASK)
+
+ def setInstrument(self , instrument):
+ self.instrument = instrument
+ self.keyboardStandAlone.setInstrument(instrument)
+ self.csnd.load_instrument(instrument)
+
+ def recordStateButton( self, button, state ):
+ pass
+# if button == 1:
+# self._recordToolbar.keyboardRecButton.set_active( state )
+# else:
+# self._recordToolbar.keyboardRecOverButton.set_active( state )
+
+ def recordOverSensitivity( self, state ):
+ pass
+ #self._recordToolbar.keyboardRecOverButton.set_sensitive( state )
+
def __key_pressed_cb(self, widget, octave_clicked, key_clicked, letter):
logging.debug('Pressed Octave: %d Key: %d Letter: %s' %
(octave_clicked, key_clicked, letter))
@@ -115,28 +188,16 @@ class SimplePianoActivity(activity.Activity):
def __key_released_cb(self, widget, octave_clicked, key_clicked, letter):
self.tone_generator.stop()
+ def onKeyPress(self, widget, event):
-class GstToneGenerator(object):
- """Gstreamer based tone generator.
- from https://github.com/iamFIREcracker/py-tone-generator/
- """
-
- def __init__(self):
- str_pipe = '''audiotestsrc name=source !autoaudiosink'''
- self.pipeline = Gst.parse_launch(str_pipe)
- self.source = self.pipeline.get_by_name('source')
-
- def start(self):
- self.pipeline.set_state(Gst.STATE_PLAYING)
+ if event.hardware_keycode == 37:
+ if self.muteInst:
+ self.muteInst = False
+ else:
+ self.muteInst = True
- def stop(self):
- self.pipeline.set_state(Gst.STATE_NULL)
+ self.keyboardStandAlone.onKeyPress(widget, event,
+ math.sqrt(self.instVolume * 0.01))
- def set_values(self, freq, volume):
- """Change the frequency and volume values of the sound source.
- Keywords:
- freq frequency value between 0 and 20k.
- volume volume value between 0 and 1.
- """
- self.source.set_property('freq', max(0, min(freq, 20000)))
- self.source.set_property('volume', max(0, min(volume, 1)))
+ def onKeyRelease(self, widget, event):
+ self.keyboardStandAlone.onKeyRelease(widget, event)
diff --git a/common/Config.py b/common/Config.py
new file mode 100644
index 0000000..7fa0ae5
--- /dev/null
+++ b/common/Config.py
@@ -0,0 +1,342 @@
+# -*- coding: utf-8 -*-
+import os
+import sys
+import time
+import gettext
+import logging
+from os.path import join
+
+from gi.repository import Gdk
+
+from sugar3.activity.activity import get_bundle_path, get_activity_root
+from sugar3 import env
+
+
+#QUICKLOAD = os.path.isfile("QUICKLOAD") # skip loading inessential comenents to speed things up
+
+FEATURES_OGG = True
+FEATURES_MIC = None
+FEATURES_LAB = None
+FEATURES_NEWSOUNDS = None
+FEATURES_GRAB_MOUSE = None
+
+if os.path.isfile("DEBUG"):
+ f = open("DEBUG")
+ l = f.read(10)
+ f.close()
+ if len(l):
+ DEBUG = int(l)
+ else:
+ DEBUG = 99
+else:
+ DEBUG = int(os.getenv("TAMTAM_DEBUG", "0"))
+
+logging.debug("Debug Level %d" % (DEBUG))
+
+#PATHS
+
+TAM_TAM_ROOT = get_bundle_path()
+INSTANCE_DIR = join(get_activity_root(), 'instance')
+TMP_DIR = join(get_activity_root(), 'tmp')
+
+logging.debug('INFO: loaded TAMTAM_ROOT=%s' % TAM_TAM_ROOT)
+
+DATA_DIR = join(get_activity_root(), 'data')
+SNDS_INFO_DIR = join(get_activity_root(), 'data', 'snds_info')
+FILES_DIR = join(TAM_TAM_ROOT, "common", "Resources")
+SOUNDS_DIR = join(FILES_DIR, "Sounds", "")
+IMAGE_ROOT = join(FILES_DIR, "Images", "")
+
+for i in (INSTANCE_DIR, DATA_DIR, SNDS_INFO_DIR, TMP_DIR):
+ if not os.path.isdir(i):
+ os.makedirs(i)
+
+#PLUGIN
+PLUGIN_DEBUG = os.getenv("CSOUND_LOGFILE", "")
+PLUGIN_VERBOSE = DEBUG
+PLUGIN_UNIVORC = join(FILES_DIR, "tamtamorc.csd")
+PLUGIN_KSMPS = 64
+PLUGIN_RATE = 16000
+
+## PLUGIN ALSA PARAMETERS:
+PLUGIN_PERIOD = 256 # 512
+PLUGIN_NPERIODS = 2
+
+try:
+ from sugar3.graphics.toolbarbox import ToolbarBox, ToolbarButton
+ HAVE_TOOLBOX = True
+except ImportError:
+ HAVE_TOOLBOX = False
+
+##############
+## SOUNDS
+##############
+
+ARECORD = "arecord " + os.getenv("TAMTAM_ARECORD",
+ "-f S16_LE -t wav -r 16000 -c2 -D hw:0,0")
+
+LOW, MID, HIGH, PUNCH = range(4)
+
+INSTRUMENT_TABLE_OFFSET = 5000
+INST_FREE = 5000
+INST_TIED = 5001
+INST_SIMP = 5011
+INST_PERC = 5021
+
+CATEGORIES = ['all', 'animals', 'concret', 'keyboard', 'people', 'percussions', 'strings', 'winds']
+
+if FEATURES_MIC or FEATURES_LAB:
+ CATEGORIES.append('mysounds')
+
+#CSOUND COMMANDS
+CSOUND_LOAD_INSTRUMENT = 'f%d 0 0 -1 "%s" 0 0 0'
+CSOUND_MIC_RECORD = 'i5201 0 5 %d'
+CSOUND_UNLOAD_TABLES = 'i%d 0 0.1 %d' % (INST_FREE, 150) # removed magic number
+CSOUND_NOTE_OFF = 'i %s.%s .2 0.01 1. 0. 0. 0.5 %d 0 0 0 0' % ('%d', '%d', INSTRUMENT_TABLE_OFFSET)
+CSOUND_LOAD_LS_INSTRUMENT = 'f4999 0 0 -1 \"%s\" 0 0 0'
+CSOUND_PLAY_LS_NOTE = 'i %i 0 -1'
+CSOUND_STOP_LS_NOTE = 'i 5022 0 0.5'
+CSOUND_RECORD_PERF = 'i5400 0 -1 "%s"'
+CSOUND_STOP_RECORD_PERF = 'i5401 4 1 "%s"'
+
+
+#################
+## GUI CONSTANTS
+#################
+
+if max(Gdk.Screen.width(), Gdk.Screen.height()) <= 800:
+ # Images created using `convert $i -resize 73%` command
+ IMAGE_ROOT_SCALED = join(IMAGE_ROOT, '73', '')
+ scale = lambda x: int(x * .73)
+else:
+ IMAGE_ROOT_SCALED = IMAGE_ROOT
+ scale = lambda x: x
+
+LANGUAGE = 'En'
+MAIN_WINDOW_PADDING = 5
+
+BG_COLOR = '#404040'
+FG_COLOR = '#818286'
+
+NOTE_HEIGHT = scale(9) # pixels
+NOTE_IMAGE_PADDING = scale(6)
+NOTE_IMAGE_PADDING_MUL2 = NOTE_IMAGE_PADDING * 2
+NOTE_IMAGE_TAIL = scale(1059)
+NOTE_IMAGE_ENDLENGTH = scale(12)
+HIT_HEIGHT = scale(13) # pixels
+HIT_IMAGE_PADDING = scale(6)
+HIT_IMAGE_PADDING_MUL2 = HIT_IMAGE_PADDING * 2
+TRACK_SPACING = scale(4)
+TRACK_SPACING_DIV2 = TRACK_SPACING//2
+TRACK_COLORS = [("#00290B", "#00E847"), \
+ ("#3F0200", "#E72500"), \
+ ("#002642", "#0090EA"), \
+ ("#313D00", "#F9EF00"), \
+ ("#17083B", "#4A00ED")]
+#TRACK_COLORS = [ ( "#00591B", "#00E847" ), \
+# ( "#6F1200", "#E72500" ), \
+# ( "#004682", "#0090EA" ), \
+# ( "#716D00", "#F9EF00" ), \
+# ( "#37187B", "#4A00ED" ) ]
+BEAT_COLOR = "#999999"
+BEAT_LINE_SIZE = 2
+PLAYHEAD_COLOR = "#666666"
+PLAYHEAD_SIZE = 2
+PLAYHEAD_SIZE_DIV2 = PLAYHEAD_SIZE / 2.0
+MARQUEE_COLOR = "#FFFFFF"
+MARQUEE_SIZE = 2
+
+PAGE_BORDER_SIZE = 2
+PAGE_SELECTED_BORDER_SIZE = 5
+PAGE_WIDTH = scale(100)
+PAGE_HEIGHT = scale(25)
+
+PAGE_THUMBNAIL_WIDTH = scale(92)
+PAGE_THUMBNAIL_WIDTH_DIV2 = PAGE_THUMBNAIL_WIDTH / 2
+PAGE_THUMBNAIL_HEIGHT = scale(65)
+
+THUMBNAIL_TRACK_RECT = [
+ (scale(2), scale(4), scale(83), scale(10)),
+ (scale(2), scale(14), scale(83), scale(10)),
+ (scale(2), scale(24), scale(83), scale(10)),
+ (scale(2), scale(34), scale(83), scale(10)),
+ (scale(2), scale(44), scale(83), scale(13)),
+ ]
+THUMBNAIL_DRAG_COLOR = "#000000"
+THUMBNAIL_TRACK_COLOR = "#FF0000"
+THUMBNAIL_SELECTED_COLOR = "#2266FF"
+THUMBNAIL_DISPLAYED_COLOR = "#CC1133"
+
+TOOLBAR_BCK_COLOR = '#404040'
+WHITE_COLOR = '#FFFFFF'
+### miniTamTam/SYNTHLAB SPECIFIC ###
+INST_BCK_COLOR = '#999999'
+PANEL_BCK_COLOR = '#CCCCCC'
+PANEL_COLOR = '#CCCCCC'
+SL_LINE_COLOR = "#666666"
+SL_HIGHLIGHT_COLOR = "#FFFFFF"
+SL_OVER_WIRE_COLOR = "#FFFFFF"
+SL_OVER_GATE_COLOR = "#00FF18"
+SL_OVER_GATE_REJECT_COLOR = "#B30000"
+PANEL_RADIUS = 10
+PANEL_SPACING = 2
+
+###Instrument Panel###
+CATEGORY_BCK_COLOR = '#222222'
+INSTRUMENT_GRID_COLOR = '#CCCCCC'
+
+###Welcome Screen Specific###
+WS_PANEL_COLOR = '#404040'
+WS_BCK_COLOR = '#CCCCCC'
+
+# hardware keycodes for mod keys
+MOD_LSHIFT = 50
+MOD_RSHIFT = 62
+MOD_LCTRL = 37
+MOD_RCTRL = 109
+MOD_LALT = 64
+MOD_RALT = 113
+
+########
+## Things that don't belong!
+#######
+
+
+class _ModKeys:
+
+ def __init__(self):
+ self.shiftDown = False
+ self.ctrlDown = False
+ self.altDown = False
+
+ def keyPress(self, code):
+ if code == MOD_LSHIFT or code == MOD_RSHIFT:
+ self.shiftDown = True
+ elif code == MOD_LCTRL or code == MOD_RCTRL:
+ self.ctrlDown = True
+ elif code == MOD_LALT or code == MOD_RALT:
+ self.altDown = True
+
+ def keyRelease(self, code):
+ if code == MOD_LSHIFT or code == MOD_RSHIFT:
+ self.shiftDown = False
+ elif code == MOD_LCTRL or code == MOD_RCTRL:
+ self.ctrlDown = False
+ elif code == MOD_LALT or code == MOD_RALT:
+ self.altDown = False
+
+ModKeys = _ModKeys()
+
+
+############
+## EDIT DEFAULTS
+############
+
+#DEFAULTS
+PLAYER_TEMPO = 100
+PLAYER_TEMPO_LOWER = 30
+PLAYER_TEMPO_UPPER = 160
+DEFAULT_VOLUME = 50
+
+#NUMERICAL CONSTANTS
+NUMBER_OF_POSSIBLE_PITCHES = 25
+MINIMUM_PITCH = 24
+MAXIMUM_PITCH = MINIMUM_PITCH + NUMBER_OF_POSSIBLE_PITCHES - 1
+NUMBER_OF_POSSIBLE_PITCHES_DRUM = 13
+PITCH_STEP_DRUM = 2
+MINIMUM_PITCH_DRUM = 24
+MAXIMUM_PITCH_DRUM = MINIMUM_PITCH_DRUM + PITCH_STEP_DRUM*(NUMBER_OF_POSSIBLE_PITCHES_DRUM - 1)
+MINIMUM_NOTE_DURATION = 1 # ticks
+MS_PER_MINUTE = 60000.0
+TICKS_PER_BEAT = 12
+TICKS_PER_BEAT_DIV2 = TICKS_PER_BEAT/2
+MAXIMUM_BEATS = 12 # maximum beats per page
+NUMBER_OF_TRACKS = 5
+NUMBER_OF_PAGES = 2
+
+MINIMUM_AMPLITUDE = 0
+MAXIMUM_AMPLITUDE = 1
+
+DEFAULT_GRID = 3
+DEFAULT_GRID_DIV2 = DEFAULT_GRID / 2.0
+
+
+####################
+## ToolTips
+####################
+from Tooltips import Tooltips
+
+
+####################
+## KeyMapping
+####################
+
+LOOP_KEYS = [17, 18, 19, 20, 21, 32, 33, 34, 35, 45, 46, 47, 48, 51, 60, 61]
+# Key = Hardware Keycode Value = Note
+
+KEY_MAP_PIANO = {24: 36, # Q
+ 25: 38, # W
+ 26: 40, # E
+ 27: 41, # R
+ 28: 43, # T
+ 29: 45, # Y
+ 30: 47, # U
+ 31: 48, # I
+
+ 11: 37, # 2
+ 12: 39, # 3
+ 14: 42, # 5
+ 15: 44, # 6
+ 16: 46, # 7
+
+ 39: 25, # S
+ 40: 27, # D
+ 42: 30, # G
+ 43: 32, # H
+ 44: 34, # J
+ 46: 37, # L
+
+ 52: 24, # Z
+ 53: 26, # X
+ 54: 28, # C
+ 55: 29, # V
+ 56: 31, # B
+ 57: 33, # N
+ 58: 35, # M
+ 59: 36} # ,
+
+KEY_MAP_NOTPIANO = {24: 24, # Q
+ 25: 25, # W
+ 26: 26, # E
+ 27: 27, # R
+ 28: 28, # T
+ 29: 29, # Y
+ 30: 30, # U
+ 31: 31, # I
+ 32: 32, # O
+ 33: 33, # P
+
+ 38: 34, # A
+ 39: 35, # S
+ 40: 36, # D
+ 41: 37, # F
+ 42: 38, # G
+ 43: 39, # H
+ 44: 40, # J
+ 45: 41, # K
+ 46: 42, # L
+
+ 52: 43, # Z
+ 53: 44, # X
+ 54: 45, # C
+ 55: 46, # V
+ 56: 47, # B
+ 57: 48} # N
+
+KEY_MAP = KEY_MAP_PIANO
+
+
+def imagefile(filename):
+ if filename and not filename.startswith(os.sep):
+ filename = IMAGE_ROOT_SCALED + filename
+ return filename
diff --git a/common/Generation/Drunk.py b/common/Generation/Drunk.py
new file mode 100644
index 0000000..fb7b765
--- /dev/null
+++ b/common/Generation/Drunk.py
@@ -0,0 +1,162 @@
+# Random:
+# Randomly choose, within a certain range, a new next value
+# arg 1: maxStepSize (negative value not allowed stepSize == 0)
+# arg 2: maximum value allowed
+
+import random
+
+class Drunk:
+ def __init__( self, minValue, maxValue, trackLength=None ):
+ self.minValue = min(minValue, maxValue)
+ self.maxValue = max(minValue, maxValue)
+ self.lastValue = random.randint( self.minValue, self.maxValue )
+
+
+ def getNextValue( self, maxStepSize, maxValue ):
+ if self.lastValue < 0 or self.lastValue > maxValue:
+ return random.randint( self.minValue, maxValue )
+
+ direction = self.getDirection( maxValue )
+ stepSize = self.getStepSize( direction, abs(maxStepSize), maxValue )
+
+ if maxStepSize < 0:
+ minStepSize = 1
+ else:
+ minStepSize = 0
+
+ self.lastValue += direction * random.randint( minStepSize, stepSize )
+
+ if self.lastValue < self.minValue:
+ self.lastValue = self.minValue
+ elif self.lastValue > maxValue: #instead of 14...
+ self.lastValue = maxValue
+ else:
+ self.lastValue = self.lastValue
+
+ return self.lastValue
+
+ def getDirection( self, maxValue ):
+ if self.lastValue == 0:
+ return 1
+ elif self.lastValue == maxValue:
+ return -1
+ else:
+ return random.choice( [ 1, -1 ] )
+
+ def getStepSize( self, direction, maxStepSize, maxValue, ):
+ if direction == -1:
+ return min( maxStepSize, self.lastValue )
+ else:
+ return min( maxStepSize, maxValue - self.lastValue )
+
+class DroneAndJump( Drunk ):
+ def __init__( self, minValue, maxValue, trackLength=None ):
+ Drunk.__init__( self, minValue, maxValue, trackLength=None )
+ self.minValue = min(minValue, maxValue)
+ self.maxValue = max(minValue, maxValue)
+ self.beforeLastValue = random.randint( self.minValue, self.maxValue ) #self.minValue
+ self.lastValue = self.beforeLastValue + 1
+
+ def getNextValue( self, maxStepSize, maxValue ):
+ if self.beforeLastValue != self.lastValue:
+ self.lastValue = self.beforeLastValue
+ return self.beforeLastValue
+
+ self.beforeLastValue = self.lastValue
+ self.lastValue = Drunk.getNextValue( self, abs(maxStepSize), maxValue )
+ return self.lastValue
+
+ def getStepSize( self, direction, maxStepSize, maxValue ):
+ if random.randint( 0, 100 ) < 42:
+ return Drunk.getStepSize( self, direction, maxStepSize, maxValue )
+ else:
+ return Drunk.getStepSize( self, direction, 0, maxValue )
+
+class Repeter( Drunk ):
+ def __init__( self, minValue, maxValue, trackLength=None ):
+ Drunk.__init__( self, minValue, maxValue, trackLength=None)
+ self.minValue = min(minValue, maxValue)
+ self.maxValue = max(minValue, maxValue)
+ self.lastValue = random.randint( self.minValue, self.maxValue)
+
+ def getNextValue( self, maxStepSize, maxValue ):
+ self.lastValue = Drunk.getNextValue( self, abs(maxStepSize), maxValue )
+ return self.lastValue
+
+ def getStepSize( self, direction, maxStepSize, maxValue ):
+ if random.randint( 0, 100 ) < 35:
+ return Drunk.getStepSize( self, direction, maxStepSize, maxValue )
+ else:
+ return Drunk.getStepSize( self, direction, 0, maxValue )
+
+class Loopseg( Drunk ):
+ def __init__( self, minValue, maxValue, trackLength=None ):
+ Drunk.__init__( self, minValue, maxValue, trackLength=None )
+ self.recordedValues = []
+ self.recordState = 2
+ self.recordPlayback = 0
+ self.loopPlayback = 1
+ self.recordLength = random.randint( 3, 6 )
+ self.recordLoopTime = random.randint( 1, 4 )
+
+ def getNextValue( self, maxStepSize, maxValue ):
+ if self.recordState == 2:
+ self.lastValue = Drunk.getNextValue( self, maxStepSize, maxValue )
+ self.recordState = random.choice([2, 2, 2, 1])
+
+ if len(self.recordedValues) != self.recordLength and self.recordState == 1:
+ self.lastValue = Drunk.getNextValue( self, maxStepSize, maxValue )
+ self.recordedValues.append( self.lastValue )
+ elif self.recordState == 1 or self.recordState == 0:
+ self.recordState = 0
+ if self.recordPlayback < self.recordLength:
+ self.loopAround()
+ else:
+ if self.loopPlayback < self.recordLoopTime:
+ self.recordPlayback = 0
+ self.loopPlayback += 1
+ self.loopAround()
+ else:
+ self.recordedValues = []
+ self.recordState = 2
+ self.recordPlayback = 0
+ self.loopPlayback = 1
+ self.recordLength = random.randint( 3, 6 )
+ self.recordLoopTime = random.randint( 1, 4 )
+ self.lastValue = Drunk.getNextValue( self, maxStepSize, maxValue )
+ self.recordedValues = [self.lastValue]
+ return self.lastValue
+
+ def loopAround( self ):
+ self.lastValue = self.recordedValues[self.recordPlayback]
+ self.recordPlayback += 1
+
+class Line:
+ def __init__(self, minValue, maxValue, trackLength=20):
+ maxVal = max(minValue, maxValue)
+ if maxVal == minValue:
+ self.reverse = True
+ minVal = maxValue
+ self.lastValue = maxVal
+ else:
+ self.reverse = False
+ minVal = minValue
+ self.lastValue = minVal
+
+ scale = float(maxVal - minVal)
+ if self.reverse:
+ self.inc = -scale/trackLength
+ else:
+ self.inc = scale/trackLength
+
+ def getNextValue(self, rand, maxValue):
+ self.val = self.lastValue + int(random.randint(0, rand)*random.choice([-0.5,0.5]))
+ if self.val < 0:
+ self.val = 0
+ elif self.val > maxValue:
+ self.val = maxValue
+ else:
+ self.val = self.val
+ self.lastValue = self.val+self.inc
+ return self.val
+
diff --git a/common/Generation/GenerationConstants.py b/common/Generation/GenerationConstants.py
new file mode 100644
index 0000000..9704048
--- /dev/null
+++ b/common/Generation/GenerationConstants.py
@@ -0,0 +1,185 @@
+import random
+
+class GenerationConstants:
+
+ TWO_ROOT_TWELVE = pow( 2, 1./12 )
+ MAX_NOTES_PER_BAR = 12
+
+ PHRASE_LENGTH = 4
+ PHRASE_COMPLEXITY = .5
+
+ TABLE_ONSET_VALUES = [ 3, 3, 6, 3, 6, 12, 4, 3, 6, 6, 12, 6, 12, 18, 8, 6, 12, 18, 12, 24, 12, 18, 36, 24, 36, 24, 48 ]
+ LOOP_TABLE_ONSET_VALUES = [ 3, 3, 6, 3, 6, 12, 6, 3, 6, 6, 12, 6, 12, 18, 12, 6, 12, 18, 12, 24, 12, 18, 12, 24, 18, 24, 24 ]
+
+ # scaling constants
+ MAJOR = 0
+ HARMONIC_MINOR = 1
+ NATURAL_MINOR = 2
+ PHRYGIEN = 3
+ DORIEN = 4
+ LYDIEN = 5
+ MYXOLYDIEN = 6
+
+ SCALES = { MAJOR : [ -12, -10, -8, -7, -5, -3, -1, 0, 2, 4, 5, 7, 9, 11, 12 ],
+ HARMONIC_MINOR : [ -12, -10, -9, -7, -5, -4, -1, 0, 2, 3, 5, 7, 8, 11, 12 ],
+ NATURAL_MINOR : [ -12, -10, -9, -7, -5, -4, -2, 0, 2, 3, 5, 7, 8, 10, 12 ],
+ PHRYGIEN : [ -12, -11, -9, -7, -5, -4, -2, 0, 1, 3, 5, 7, 8, 10, 12 ],
+ DORIEN : [ -12, -10, -9, -7, -5, -3, -2, 0, 2, 3, 5, 7, 9, 10, 12 ],
+ LYDIEN : [ -12, -10, -8, -6, -5, -3, -1, 0, 2, 4, 6, 7, 9, 11, 12 ],
+ MYXOLYDIEN : [ -12, -10, -8, -7, -5, -3, -2, 0, 2, 4, 5, 7, 9, 10, 12 ]}
+
+
+ # Default parameters for algorithmic generation
+
+ RYTHM_DENSITY_BANK = [.38, .26, .82, .48, .56, 1, 1, .91, 1, .91, .91, .32, 1, 1, .83, .6, .88]
+ RYTHM_REGU_BANK = [.94, .95, .89, .73, .8, 1, 1, .75, 1, .75, .84, .93, 1, 1, .87, .62, .8]
+ PITCH_REGU_BANK = [.04, 0, 0, .22, 0, .36, .35, .57, 0, 0, 0, 0, .28, .77, 0, 0, 0]
+ PITCH_STEP_BANK = [.28, .48, .39, .38, .27, .4, 1, .55, .29, .15, .4, .26, .25, 1, .33, .22, .27]
+ DURATION_BANK = [1, 1, 1, .97, 1, 1, 1, 1, 1, 1, .65, .86, 1, 1, .82, 1, .78]
+ SILENCE_BANK = [.07, 0, .17, .28, .21, 0, .17, .17, .2, .32, .33, .08, .06, .11, .11, .06, .37]
+ PATTERN_BANK = [0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,3]
+ SCALE_BANK = [MAJOR, NATURAL_MINOR, LYDIEN, HARMONIC_MINOR, MYXOLYDIEN]
+
+ chooseDefault = random.randint(0,4)
+ DEFAULT_DENSITY = [.25, .88, .72, .25] #RYTHM_DENSITY_BANK[chooseDefault]
+ DEFAULT_RYTHM_REGULARITY = [.75, .8, .85, .5] #RYTHM_REGU_BANK[chooseDefault]
+ DEFAULT_PITCH_REGULARITY = [.5, .8, 0, .9] #PITCH_REGU_BANK[chooseDefault]
+ DEFAULT_STEP = [.5, .3, 1, .85] #PITCH_STEP_BANK[chooseDefault]
+ DEFAULT_DURATION = [.8, 1, .8, 1] #DURATION_BANK[chooseDefault]
+ DEFAULT_SILENCE = [.2, .5, .25, .12] #SILENCE_BANK[chooseDefault]
+ DEFAULT_PATTERN = [random.randint(0,3) for x in range(4)]
+ DEFAULT_SCALE = SCALE_BANK[chooseDefault]
+
+ DEFAULT_RYTHM_METHOD = 0
+ DEFAULT_PITCH_METHOD = 0
+ DEFAULT_PAN = 0.5
+
+ DEFAULT_PITCH_VARIATION = 0 # 0 = 'melodic' 1 = 'harmonic'
+ DEFAULT_RYTHM_VARIATION = 0 # 0 = 'Cellule' 1 = 'Xnoise'
+
+ DEFAULT_TONIQUE = 36
+
+ I = [ 0, 2, 4, 7, 9, 11, 14 ]
+ II = [ 1, 3, 5, 8, 10, 12 ]
+ III = [ 2, 4, 6, 9, 11, 13 ]
+ IV = [ 0, 3, 5, 7, 10, 12, 14 ]
+ V = [ 1, 4, 6, 8, 11, 13 ]
+ VI = [ 0, 2, 5, 7, 9, 12, 14 ]
+ VII = [ 1, 3, 6, 8, 10, 13 ]
+
+ CHORDS_TABLE = [ I, V, I, II, V, I, VI, II, V, I, IV, VI, II, V, I, V, VI ]
+# CHORDS_TABLE = [I, V, I, V, I, V, I, V, I, V, I, V, I, V ]
+ # pitch patterns constants
+ # PITCH_PATTERNS = [ 'Drunk', 'DroneAndJump', 'Repeter', 'Loopseg' ]
+
+ # Parameters for probability scaling function
+ REPETITION_SCALE_MIN_MAPPING = 0
+ REPETITION_SCALE_MAX_MAPPING = 25
+ REPETITION_SCALE_STEPS = 25
+ DENSITY_SCALE_MIN_MAPPING = 0
+ DENSITY_SCALE_MAX_MAPPING = 38
+ DENSITY_SCALE_STEPS = 38
+ ARTICULATION_SCALE_MIN_MAPPING = .6
+ ARTICULATION_SCALE_MAX_MAPPING = 1
+ ARTICULATION_SCALE_STEPS = 10
+
+ # Rythmic durations, in ticks, and how many to complete figure (celluleRythmSequence)
+ DOUBLE_TICK_DUR = 3
+ DOUBLE_HOW_MANY = 2
+ HALF_TRIPLET_TICK_DUR = 4
+ HALF_TRIPLET_HOW_MANY = 3
+ HOLE_TRIPLET_TICK_DUR = 8
+ HOLE_TRIPLET_HOW_MANY = 3
+
+ # Random generators default values (xnoiseRythmSequence)
+ RANDOM_BETA_PARAM = 0.004
+ RANDOM_EXPO_PARAM = 5
+ RANDOM_GAUSS_PARAM1 = 0.5
+ RANDOM_GAUSS_PARAM2 = 0.1
+ RANDOM_WEIBULL_PARAM1 = 0.5
+
+ RANDOM_WEIBULL_PARAM2 = 2.5
+
+ # Onsets probability tables (drumRythmSequence)
+
+ PUNCH_ACCENTS = [ [],
+ [ 0 ],
+ [ 0, 1 ],
+ [ 0, 2, 1 ],
+ [ 0, 2, 3, 1 ],
+ [ 0, 3, 2, 4, 1],
+ [ 0, 3, 2, 5, 1, 4 ],
+ [ 0, 2, 4, 6, 5, 3, 1 ],
+ [ 0, 4, 2, 6, 3, 7, 5, 1 ],
+ [ 0, 4, 6, 2, 8, 5, 3, 7, 1],
+ [ 0, 6, 4, 8, 2, 5, 7, 3, 9, 1],
+ [ 0, 4, 6, 10, 8, 2, 5, 7, 9, 3, 1],
+ [0, 6, 4, 2, 8, 10, 7, 5, 3, 9, 11, 1] ]
+
+
+ LOW_ACCENTS = [ [],
+ [ 0 ],
+ [ 0, 1 ],
+ [ 0, 2, 1 ],
+ [ 0, 2, 3, 1 ],
+ [ 0, 3, 2, 4, 1 ],
+ [ 0, 3, 2, 5, 1, 4 ],
+ [ 0, 2, 4, 6, 5, 3, 1 ],
+ [ 0, 4, 2, 6, 3, 7, 5, 1 ],
+ [ 0, 4, 6, 2, 8, 5, 3, 7, 1 ],
+ [ 0, 6, 4, 8, 2, 5, 7, 3, 9, 1 ],
+ [ 0, 4, 6, 10, 8, 2, 5, 7, 9, 3, 1 ],
+ [0, 6, 4, 2, 8, 10, 7, 5, 3, 9, 11, 1 ] ]
+
+ MID_ACCENTS = [ [],
+ [ 0, 1 ],
+ [ 0, 2, 3, 1 ],
+ [ 0, 2, 4, 3, 1, 5 ],
+ [ 0, 4, 6, 2, 7, 1, 3, 5 ],
+ [ 0, 6, 4, 8, 2, 1, 5, 3, 9, 7 ],
+ [ 0, 6, 11, 5, 3, 9, 10, 2, 8, 7, 1, 4 ],
+ [ 0, 4, 8, 12, 10, 13, 11, 9, 3, 2, 6, 5, 7, 1 ],
+ [ 0, 8, 4, 12, 6, 14, 2, 10, 7, 15, 1, 9, 3, 11, 5, 13 ],
+ [ 0, 8, 16, 4, 12, 14, 6, 2, 10, 7, 15, 1, 9, 3, 17, 11, 5, 13],
+ [ 0, 10, 8, 4, 16, 12, 6, 14, 18, 2, 7, 9, 15, 3, 1, 19, 5, 11, 13, 17],
+ [ 0, 8, 10, 16, 4, 20, 6, 12, 18, 14, 2, 9, 7, 3, 15, 21, 19, 1, 5, 11, 17, 13],
+ [ 0, 10, 8, 4, 16, 6, 20, 22, 18, 12, 2, 14, 7, 9, 15, 3, 19, 1, 21, 5, 23, 17, 11, 13] ]
+
+ HIGH_ACCENTS = [ [],
+ [ 1, 0 ],
+ [ 1, 3, 2, 0 ],
+ [ 5, 1, 3, 4, 2, 0 ],
+ [ 5, 3, 1, 7, 2, 6, 4, 0 ],
+ [ 7, 9, 3, 5, 1, 2, 8, 4, 6, 0 ],
+ [ 4, 1, 7, 5, 3, 9, 10, 2, 8, 11, 6, 0 ],
+ [ 1, 7, 8, 5, 10, 13, 11, 9, 3, 2, 6, 12, 4, 0 ],
+ [ 13, 5, 11, 3, 9, 1, 15, 10, 7, 2, 14, 6, 12, 4, 8, 0 ],
+ [ 13, 5, 11, 17, 3, 9, 1, 15, 7, 10, 2, 6, 14, 12, 4, 16, 8, 0 ],
+ [ 17, 13, 11, 5, 19, 1, 3, 15, 9, 7, 2, 18, 14, 6, 12, 16, 4, 8, 10, 0 ],
+ [ 13, 17, 11, 5, 1, 19, 21, 15, 3, 7, 9, 2, 14, 18, 12, 6, 20, 4, 16, 10, 8, 0 ],
+ [ 13, 11, 17, 23, 5, 21, 1, 19, 3, 15, 9, 7, 14, 2, 12, 18, 22, 20, 6, 16, 4, 8, 10, 0 ] ]
+
+ DRUM_PUNCH_ACCENTS = [[], [0], [0, 12], [0, 24, 12], [0, 24, 36, 12], [0, 36, 24, 48, 12], [0, 36, 24, 60, 12, 48], [0, 24, 48, 72, 60, 36, 12], [0, 48, 24, 72, 36, 84, 60, 12], [0, 48, 72, 24, 96, 60, 36, 84, 12], [0, 72, 48, 96, 24, 60, 84, 36, 108, 12], [0, 48, 72, 120, 96, 24, 60, 84, 108, 36, 12], [0, 72, 48, 24, 96, 120, 84, 60, 36, 108, 132, 12]]
+ DRUM_LOW_ACCENTS = [[], [0], [0, 12], [0, 24, 12], [0, 24, 36, 12], [0, 36, 24, 48, 12], [0, 36, 24, 60, 12, 48], [0, 24, 48, 72, 60, 36, 12], [0, 48, 24, 72, 36, 84, 60, 12], [0, 48, 72, 24, 96, 60, 36, 84, 12], [0, 72, 48, 96, 24, 60, 84, 36, 108, 12], [0, 48, 72, 120, 96, 24, 60, 84, 108, 36, 12], [0, 72, 48, 24, 96, 120, 84, 60, 36, 108, 132, 12]]
+ DRUM_MID_ACCENTS = [[], [0, 6], [0, 12, 18, 6], [0, 12, 24, 18, 6, 30], [0, 24, 36, 12, 42, 6, 18, 30], [0, 36, 24, 48, 12, 6, 30, 18, 54, 42], [0, 36, 66, 30, 18, 54, 60, 12, 48, 42, 6, 24], [0, 24, 48, 72, 60, 78, 66, 54, 18, 12, 36, 30, 42, 6], [0, 48, 24, 72, 36, 84, 12, 60, 42, 90, 6, 54, 18, 66, 30, 78], [0, 48, 96, 24, 72, 84, 36, 12, 60, 42, 90, 6, 54, 18, 102, 66, 30, 78], [0, 60, 48, 24, 96, 72, 36, 84, 108, 12, 42, 54, 90, 18, 6, 114, 30, 66, 78, 102], [0, 48, 60, 96, 24, 120, 36, 72, 108, 84, 12, 54, 42, 18, 90, 126, 114, 6, 30, 66, 102, 78], [0, 60, 48, 24, 96, 36, 120, 132, 108, 72, 12, 84, 42, 54, 90, 18, 114, 6, 126, 30, 138, 102, 66, 78]]
+ DRUM_HIGH_ACCENTS = [[], [6, 0], [6, 18, 12, 0], [30, 6, 18, 24, 12, 0], [30, 18, 6, 42, 12, 36, 24, 0], [42, 54, 18, 30, 6, 12, 48, 24, 36, 0], [24, 6, 42, 30, 18, 54, 60, 12, 48, 66, 36, 0], [6, 42, 48, 30, 60, 78, 66, 54, 18, 12, 36, 72, 24, 0], [78, 30, 66, 18, 54, 6, 90, 60, 42, 12, 84, 36, 72, 24, 48, 0], [78, 30, 66, 102, 18, 54, 6, 90, 42, 60, 12, 36, 84, 72, 24, 96, 48, 0], [102, 78, 66, 30, 114, 6, 18, 90, 54, 42, 12, 108, 84, 36, 72, 96, 24, 48, 60, 0], [78, 102, 66, 30, 6, 114, 126, 90, 18, 42, 54, 12, 84, 108, 72, 36, 120, 24, 96, 60, 48, 0], [78, 66, 102, 138, 30, 126, 6, 114, 18, 90, 54, 42, 84, 12, 72, 108, 132, 120, 36, 96, 24, 48, 60, 0]]
+
+ # Gain boundaries
+ GAIN_MAX_BOUNDARY = 1.
+ GAIN_MID_MAX_BOUNDARY = .9
+ GAIN_MID_MIN_BOUNDARY = .75
+ GAIN_MIN_BOUNDARY = .65
+
+ # pitch mapping for drum kit
+ DRUMPITCH = {25: 24, 27: 26, 29: 28, 31: 30, 33: 32, 35: 34, 37: 36, 39: 38, 41: 40, 43: 42, 45: 44, 47: 46 }
+
+ DRUM_COMPLEXITY1 = [ [ 24 ], [30] , [ 40 ], [ 46 ] ]
+ DRUM_COMPLEXITY2 = [ [ 24, 28 ], [ 30, 32 ], [ 36, 40 ], [ 46, 48 ] ]
+ DRUM_COMPLEXITY3 = [ [ 24, 26, 28 ], [ 30, 32, 34 ], [ 36, 38, 40 ], [ 42, 46, 48 ] ]
+ DRUM_COMPLEXITY4 = [ [ 24, 26, 28 ], [ 30, 32, 34 ], [ 36, 38, 40 ], [ 42, 44, 46, 48 ] ]
+
+ TRANSPOSE = [0.5, 0.52973154717964765, 0.56123102415468651, 0.59460355750136051, 0.6299605249474366, 0.66741992708501718, 0.70710678118654757, 0.74915353843834076, 0.79370052598409979, 0.8408964152537145, 0.89089871814033927, 0.94387431268169353, 1.0, 1.0594630943592953, 1.122462048309373, 1.189207115002721, 1.2599210498948732, 1.3348398541700344, 1.4142135623730951, 1.4983070768766815, 1.5874010519681994, 1.681792830507429, 1.7817974362806785, 1.8877486253633868, 2.0]
+
+ CELLULES_MARKERS = [ 8, 16, 21, 24 ]
+ CELLULES = [ [ 3, 3, 3, 3 ], [ 3, 3, 6 ], [ 3, 6, 3 ], [ 6, 3, 3 ], [ 4, 4, 4 ], [ 4, 8 ], [ 8, 4 ], [ 6, 6 ], [ 12 ], [ 6, 12, 6 ], [ 8, 8, 8 ], [ 8, 16 ], [ 16, 8 ], [ 12, 12 ], [ 18, 6 ],
+ [ 6, 18 ], [ 24 ], [ 12, 12, 12 ], [ 18, 18 ], [ 24, 12 ], [ 12, 24 ], [ 36 ], [ 12, 24, 12 ], [ 24, 24 ], [ 48 ] ]
diff --git a/common/Generation/__init__.py b/common/Generation/__init__.py
new file mode 100644
index 0000000..e69de29
--- /dev/null
+++ b/common/Generation/__init__.py
diff --git a/common/Resources/Loops/loop02_0.ttl b/common/Resources/Loops/loop02_0.ttl
new file mode 100644
index 0000000..2612e8a
--- /dev/null
+++ b/common/Resources/Loops/loop02_0.ttl
@@ -0,0 +1,9 @@
+page_add 1 2 0 []
+note_add 1000 1 0 0 32 0.99985928761 0.5 3 0 1 0.005 0.098 0.1 0 1000 0 edit
+note_add 1000 1 0 3 38 0.682939553831 0.5 3 0 1 0.005 0.098 0.1 0 1000 0 edit
+note_add 1000 1 0 6 32 0.651752076192 0.5 3 0 1 0.005 0.098 0.1 0 1000 0 edit
+note_add 1000 1 0 9 38 0.668591772162 0.5 3 0 1 0.005 0.098 0.1 0 1000 0 edit
+note_add 1000 1 0 12 32 0.889173942414 0.5 3 0 1 0.005 0.098 0.1 0 1000 0 edit
+note_add 1000 1 0 15 38 0.669841961652 0.5 3 0 1 0.005 0.098 0.1 0 1000 0 edit
+note_add 1000 1 0 18 32 0.655526380723 0.5 3 0 1 0.005 0.098 0.1 0 1000 0 edit
+note_add 1000 1 0 21 38 0.718481783236 0.5 3 0 1 0.005 0.098 0.1 0 1000 0 edit
diff --git a/common/Resources/Loops/loop02_1.ttl b/common/Resources/Loops/loop02_1.ttl
new file mode 100644
index 0000000..9a245cc
--- /dev/null
+++ b/common/Resources/Loops/loop02_1.ttl
@@ -0,0 +1,8 @@
+page_add 1 2 0 []
+note_add 1001 1 0 0 36 0.910316671284 0.5 3 0 1 0.005 0.098 0.1 0 1000 0 edit
+note_add 1001 1 0 3 46 0.747296697473 0.5 3 0 1 0.005 0.098 0.1 0 1000 0 edit
+note_add 1001 1 0 6 38 0.692085319728 0.5 3 0 1 0.005 0.098 0.1 0 1000 0 edit
+note_add 1001 1 0 9 44 0.708999458584 0.5 3 0 1 0.005 0.098 0.1 0 1000 0 edit
+note_add 1001 1 0 12 36 0.79152160722 0.5 3 0 1 0.005 0.098 0.1 0 1000 0 edit
+note_add 1001 1 0 15 46 0.728970030437 0.5 3 0 1 0.005 0.098 0.1 0 1000 0 edit
+note_add 1001 1 0 18 38 0.714205938315 0.5 6 0 1 0.005 0.098 0.1 0 1000 0 edit
diff --git a/common/Resources/Loops/loop02_2.ttl b/common/Resources/Loops/loop02_2.ttl
new file mode 100644
index 0000000..7953da6
--- /dev/null
+++ b/common/Resources/Loops/loop02_2.ttl
@@ -0,0 +1,5 @@
+page_add 1 2 0 []
+note_add 1002 1 0 0 32 0.947424486254 0.5 6 0 1 0.005 0.098 0.1 0 1000 0 edit
+note_add 1002 1 0 6 32 0.721472651996 0.5 6 0 1 0.005 0.098 0.1 0 1000 0 edit
+note_add 1002 1 0 12 32 0.831937627917 0.5 6 0 1 0.005 0.098 0.1 0 1000 0 edit
+note_add 1002 1 0 18 32 0.692257845757 0.5 6 0 1 0.005 0.098 0.1 0 1000 0 edit
diff --git a/common/Resources/Loops/loop02_3.ttl b/common/Resources/Loops/loop02_3.ttl
new file mode 100644
index 0000000..6514dc1
--- /dev/null
+++ b/common/Resources/Loops/loop02_3.ttl
@@ -0,0 +1,2 @@
+page_add 1 2 0 []
+note_add 1003 1 0 0 32 0.906061777827 0.5 24 0 1 0.005 0.098 0.1 0 1000 0 edit
diff --git a/common/Resources/Loops/loop02_4.ttl b/common/Resources/Loops/loop02_4.ttl
new file mode 100644
index 0000000..fb44d69
--- /dev/null
+++ b/common/Resources/Loops/loop02_4.ttl
@@ -0,0 +1,3 @@
+page_add 1 2 0 []
+note_add 1004 1 0 0 44 0.999710890606 0.5 6 0 1 0.005 0.098 0.1 0 1000 0 edit
+note_add 1004 1 0 6 46 0.673732534575 0.5 18 0 1 0.005 0.098 0.1 0 1000 0 edit
diff --git a/common/Resources/Loops/loop03_0.ttl b/common/Resources/Loops/loop03_0.ttl
new file mode 100644
index 0000000..ecb71b0
--- /dev/null
+++ b/common/Resources/Loops/loop03_0.ttl
@@ -0,0 +1,13 @@
+page_add 1 3 0 []
+note_add 1000 1 0 0 32 0.989366069205 0.5 3 0 1 0.005 0.098 0.1 0 1000 0 edit
+note_add 1000 1 0 3 32 0.720801833684 0.5 3 0 1 0.005 0.098 0.1 0 1000 0 edit
+note_add 1000 1 0 6 32 0.749287810628 0.5 3 0 1 0.005 0.098 0.1 0 1000 0 edit
+note_add 1000 1 0 9 32 0.742196634139 0.5 3 0 1 0.005 0.098 0.1 0 1000 0 edit
+note_add 1000 1 0 12 32 0.815042129891 0.5 3 0 1 0.005 0.098 0.1 0 1000 0 edit
+note_add 1000 1 0 15 32 0.687728921021 0.5 3 0 1 0.005 0.098 0.1 0 1000 0 edit
+note_add 1000 1 0 18 32 0.701443840182 0.5 3 0 1 0.005 0.098 0.1 0 1000 0 edit
+note_add 1000 1 0 21 32 0.678818282301 0.5 3 0 1 0.005 0.098 0.1 0 1000 0 edit
+note_add 1000 1 0 24 32 0.81446439672 0.5 3 0 1 0.005 0.098 0.1 0 1000 0 edit
+note_add 1000 1 0 27 32 0.707508318321 0.5 3 0 1 0.005 0.098 0.1 0 1000 0 edit
+note_add 1000 1 0 30 32 0.699388479165 0.5 3 0 1 0.005 0.098 0.1 0 1000 0 edit
+note_add 1000 1 0 33 32 0.711786418725 0.5 3 0 1 0.005 0.098 0.1 0 1000 0 edit
diff --git a/common/Resources/Loops/loop03_1.ttl b/common/Resources/Loops/loop03_1.ttl
new file mode 100644
index 0000000..f9ad6c3
--- /dev/null
+++ b/common/Resources/Loops/loop03_1.ttl
@@ -0,0 +1,11 @@
+page_add 1 3 0 []
+note_add 1001 1 0 0 36 0.982563337001 0.5 6 0 1 0.005 0.098 0.1 0 1000 0 edit
+note_add 1001 1 0 6 48 0.677869216687 0.5 3 0 1 0.005 0.098 0.1 0 1000 0 edit
+note_add 1001 1 0 9 43 0.684561864618 0.5 3 0 1 0.005 0.098 0.1 0 1000 0 edit
+note_add 1001 1 0 12 43 0.790931552908 0.5 3 0 1 0.005 0.098 0.1 0 1000 0 edit
+note_add 1001 1 0 15 36 0.684015006275 0.5 3 0 1 0.005 0.098 0.1 0 1000 0 edit
+note_add 1001 1 0 18 48 0.673900066009 0.5 6 0 1 0.005 0.098 0.1 0 1000 0 edit
+note_add 1001 1 0 24 43 0.785080465123 0.5 3 0 1 0.005 0.098 0.1 0 1000 0 edit
+note_add 1001 1 0 27 43 0.705954629686 0.5 3 0 1 0.005 0.098 0.1 0 1000 0 edit
+note_add 1001 1 0 30 36 0.730218556481 0.5 3 0 1 0.005 0.098 0.1 0 1000 0 edit
+note_add 1001 1 0 33 48 0.732122018719 0.5 3 0 1 0.005 0.098 0.1 0 1000 0 edit
diff --git a/common/Resources/Loops/loop03_2.ttl b/common/Resources/Loops/loop03_2.ttl
new file mode 100644
index 0000000..fdc3c34
--- /dev/null
+++ b/common/Resources/Loops/loop03_2.ttl
@@ -0,0 +1,5 @@
+page_add 1 3 0 []
+note_add 1002 1 0 0 38 0.908581041036 0.5 12 0 1 0.005 0.098 0.1 0 1000 0 edit
+note_add 1002 1 0 12 32 0.88973063854 0.5 6 0 1 0.005 0.098 0.1 0 1000 0 edit
+note_add 1002 1 0 18 32 0.69634792235 0.5 6 0 1 0.005 0.098 0.1 0 1000 0 edit
+note_add 1002 1 0 24 36 0.792724331664 0.5 12 0 1 0.005 0.098 0.1 0 1000 0 edit
diff --git a/common/Resources/Loops/loop03_3.ttl b/common/Resources/Loops/loop03_3.ttl
new file mode 100644
index 0000000..c9766ac
--- /dev/null
+++ b/common/Resources/Loops/loop03_3.ttl
@@ -0,0 +1,4 @@
+page_add 1 3 0 []
+note_add 1003 1 0 0 32 0.977428103603 0.5 12 0 1 0.005 0.098 0.1 0 1000 0 edit
+note_add 1003 1 0 12 32 0.892916232237 0.5 6 0 1 0.005 0.098 0.1 0 1000 0 edit
+note_add 1003 1 0 18 36 0.746267101548 0.5 18 0 1 0.005 0.098 0.1 0 1000 0 edit
diff --git a/common/Resources/Loops/loop03_4.ttl b/common/Resources/Loops/loop03_4.ttl
new file mode 100644
index 0000000..fa83771
--- /dev/null
+++ b/common/Resources/Loops/loop03_4.ttl
@@ -0,0 +1,5 @@
+page_add 1 3 0 []
+note_add 1004 1 0 0 36 0.984833132684 0.5 6 0 1 0.005 0.098 0.1 0 1000 0 edit
+note_add 1004 1 0 6 46 0.718419403505 0.5 18 0 1 0.005 0.098 0.1 0 1000 0 edit
+note_add 1004 1 0 24 41 0.789388809938 0.5 6 0 1 0.005 0.098 0.1 0 1000 0 edit
+note_add 1004 1 0 30 32 0.727520306786 0.5 6 0 1 0.005 0.098 0.1 0 1000 0 edit
diff --git a/common/Resources/Loops/loop04_0.ttl b/common/Resources/Loops/loop04_0.ttl
new file mode 100644
index 0000000..78c1f25
--- /dev/null
+++ b/common/Resources/Loops/loop04_0.ttl
@@ -0,0 +1,17 @@
+page_add 1 4 0 []
+note_add 1000 1 0 0 36 0.95430647582 0.5 3 0 1 0.005 0.098 0.1 0 1000 0 edit
+note_add 1000 1 0 3 32 0.658691939837 0.5 3 0 1 0.005 0.098 0.1 0 1000 0 edit
+note_add 1000 1 0 6 36 0.747252681193 0.5 3 0 1 0.005 0.098 0.1 0 1000 0 edit
+note_add 1000 1 0 9 32 0.704895028464 0.5 3 0 1 0.005 0.098 0.1 0 1000 0 edit
+note_add 1000 1 0 12 36 0.758460247167 0.5 3 0 1 0.005 0.098 0.1 0 1000 0 edit
+note_add 1000 1 0 15 32 0.743618641081 0.5 3 0 1 0.005 0.098 0.1 0 1000 0 edit
+note_add 1000 1 0 18 36 0.721716943061 0.5 3 0 1 0.005 0.098 0.1 0 1000 0 edit
+note_add 1000 1 0 21 32 0.695172159459 0.5 3 0 1 0.005 0.098 0.1 0 1000 0 edit
+note_add 1000 1 0 24 36 0.792625787357 0.5 3 0 1 0.005 0.098 0.1 0 1000 0 edit
+note_add 1000 1 0 27 32 0.67165239417 0.5 3 0 1 0.005 0.098 0.1 0 1000 0 edit
+note_add 1000 1 0 30 36 0.692209994937 0.5 3 0 1 0.005 0.098 0.1 0 1000 0 edit
+note_add 1000 1 0 33 32 0.681830813385 0.5 3 0 1 0.005 0.098 0.1 0 1000 0 edit
+note_add 1000 1 0 36 36 0.812239275177 0.5 3 0 1 0.005 0.098 0.1 0 1000 0 edit
+note_add 1000 1 0 39 32 0.746191340695 0.5 3 0 1 0.005 0.098 0.1 0 1000 0 edit
+note_add 1000 1 0 42 36 0.743615433014 0.5 3 0 1 0.005 0.098 0.1 0 1000 0 edit
+note_add 1000 1 0 45 32 0.747473175282 0.5 3 0 1 0.005 0.098 0.1 0 1000 0 edit
diff --git a/common/Resources/Loops/loop04_1.ttl b/common/Resources/Loops/loop04_1.ttl
new file mode 100644
index 0000000..0fa0ffd
--- /dev/null
+++ b/common/Resources/Loops/loop04_1.ttl
@@ -0,0 +1,7 @@
+page_add 1 4 0 []
+note_add 1001 1 0 0 44 0.989486016936 0.5 6 0 1 0.005 0.098 0.1 0 1000 0 edit
+note_add 1001 1 0 6 44 0.698418925898 0.5 6 0 1 0.005 0.098 0.1 0 1000 0 edit
+note_add 1001 1 0 12 32 0.874028022809 0.5 6 0 1 0.005 0.098 0.1 0 1000 0 edit
+note_add 1001 1 0 18 41 0.730441737037 0.5 12 0 1 0.005 0.098 0.1 0 1000 0 edit
+note_add 1001 1 0 30 44 0.67006630257 0.5 12 0 1 0.005 0.098 0.1 0 1000 0 edit
+note_add 1001 1 0 42 44 0.674727483023 0.5 6 0 1 0.005 0.098 0.1 0 1000 0 edit
diff --git a/common/Resources/Loops/loop04_2.ttl b/common/Resources/Loops/loop04_2.ttl
new file mode 100644
index 0000000..67b0366
--- /dev/null
+++ b/common/Resources/Loops/loop04_2.ttl
@@ -0,0 +1,6 @@
+page_add 1 4 0 []
+note_add 1002 1 0 0 46 0.912012070336 0.5 12 0 1 0.005 0.098 0.1 0 1000 0 edit
+note_add 1002 1 0 12 41 0.763762485784 0.5 6 0 1 0.005 0.098 0.1 0 1000 0 edit
+note_add 1002 1 0 18 32 0.736126045512 0.5 12 0 1 0.005 0.098 0.1 0 1000 0 edit
+note_add 1002 1 0 30 32 0.657320116366 0.5 12 0 1 0.005 0.098 0.1 0 1000 0 edit
+note_add 1002 1 0 42 48 0.714130787772 0.5 6 0 1 0.005 0.098 0.1 0 1000 0 edit
diff --git a/common/Resources/Loops/loop04_3.ttl b/common/Resources/Loops/loop04_3.ttl
new file mode 100644
index 0000000..117a4ad
--- /dev/null
+++ b/common/Resources/Loops/loop04_3.ttl
@@ -0,0 +1,4 @@
+page_add 1 4 0 []
+note_add 1003 1 0 0 48 0.953281741061 0.5 6 0 1 0.005 0.098 0.1 0 1000 0 edit
+note_add 1003 1 0 6 32 0.738512846816 0.5 24 0 1 0.005 0.098 0.1 0 1000 0 edit
+note_add 1003 1 0 30 36 0.741532470152 0.5 18 0 1 0.005 0.098 0.1 0 1000 0 edit
diff --git a/common/Resources/Loops/loop04_4.ttl b/common/Resources/Loops/loop04_4.ttl
new file mode 100644
index 0000000..1b34256
--- /dev/null
+++ b/common/Resources/Loops/loop04_4.ttl
@@ -0,0 +1,10 @@
+page_add 1 4 0 []
+note_add 1004 1 0 0 48 0.943528178544 0.5 3 0 1 0.005 0.098 0.1 0 1000 0 edit
+note_add 1004 1 0 3 36 0.715139169634 0.5 3 0 1 0.005 0.098 0.1 0 1000 0 edit
+note_add 1004 1 0 6 32 0.694654106567 0.5 6 0 1 0.005 0.098 0.1 0 1000 0 edit
+note_add 1004 1 0 12 46 0.876023546144 0.5 12 0 1 0.005 0.098 0.1 0 1000 0 edit
+note_add 1004 1 0 24 48 0.782578989044 0.5 6 0 1 0.005 0.098 0.1 0 1000 0 edit
+note_add 1004 1 0 30 43 0.72836708845 0.5 6 0 1 0.005 0.098 0.1 0 1000 0 edit
+note_add 1004 1 0 36 32 0.872559774103 0.5 3 0 1 0.005 0.098 0.1 0 1000 0 edit
+note_add 1004 1 0 39 44 0.691343365943 0.5 3 0 1 0.005 0.098 0.1 0 1000 0 edit
+note_add 1004 1 0 42 48 0.734594689768 0.5 6 0 1 0.005 0.098 0.1 0 1000 0 edit
diff --git a/common/Resources/Loops/loop05_0.ttl b/common/Resources/Loops/loop05_0.ttl
new file mode 100644
index 0000000..a700c70
--- /dev/null
+++ b/common/Resources/Loops/loop05_0.ttl
@@ -0,0 +1,21 @@
+page_add 1 5 0 []
+note_add 1000 1 0 0 36 0.932107581794 0.5 3 0 1 0.005 0.098 0.1 0 1000 0 edit
+note_add 1000 1 0 3 32 0.675577577824 0.5 3 0 1 0.005 0.098 0.1 0 1000 0 edit
+note_add 1000 1 0 6 36 0.684383784407 0.5 3 0 1 0.005 0.098 0.1 0 1000 0 edit
+note_add 1000 1 0 9 32 0.669389472795 0.5 3 0 1 0.005 0.098 0.1 0 1000 0 edit
+note_add 1000 1 0 12 36 0.856030361038 0.5 3 0 1 0.005 0.098 0.1 0 1000 0 edit
+note_add 1000 1 0 15 32 0.652798697108 0.5 3 0 1 0.005 0.098 0.1 0 1000 0 edit
+note_add 1000 1 0 18 36 0.682363327642 0.5 3 0 1 0.005 0.098 0.1 0 1000 0 edit
+note_add 1000 1 0 21 32 0.671184148029 0.5 3 0 1 0.005 0.098 0.1 0 1000 0 edit
+note_add 1000 1 0 24 36 0.85918561812 0.5 3 0 1 0.005 0.098 0.1 0 1000 0 edit
+note_add 1000 1 0 27 32 0.709884331451 0.5 3 0 1 0.005 0.098 0.1 0 1000 0 edit
+note_add 1000 1 0 30 36 0.6741801568 0.5 3 0 1 0.005 0.098 0.1 0 1000 0 edit
+note_add 1000 1 0 33 32 0.743932183841 0.5 3 0 1 0.005 0.098 0.1 0 1000 0 edit
+note_add 1000 1 0 36 36 0.843770324432 0.5 3 0 1 0.005 0.098 0.1 0 1000 0 edit
+note_add 1000 1 0 39 32 0.690697076684 0.5 3 0 1 0.005 0.098 0.1 0 1000 0 edit
+note_add 1000 1 0 42 36 0.719467342962 0.5 3 0 1 0.005 0.098 0.1 0 1000 0 edit
+note_add 1000 1 0 45 32 0.745708669546 0.5 3 0 1 0.005 0.098 0.1 0 1000 0 edit
+note_add 1000 1 0 48 36 0.854533128609 0.5 3 0 1 0.005 0.098 0.1 0 1000 0 edit
+note_add 1000 1 0 51 32 0.678610427404 0.5 3 0 1 0.005 0.098 0.1 0 1000 0 edit
+note_add 1000 1 0 54 36 0.670702992431 0.5 3 0 1 0.005 0.098 0.1 0 1000 0 edit
+note_add 1000 1 0 57 32 0.688640068104 0.5 3 0 1 0.005 0.098 0.1 0 1000 0 edit
diff --git a/common/Resources/Loops/loop05_1.ttl b/common/Resources/Loops/loop05_1.ttl
new file mode 100644
index 0000000..67ac7da
--- /dev/null
+++ b/common/Resources/Loops/loop05_1.ttl
@@ -0,0 +1,15 @@
+page_add 1 5 0 []
+note_add 1001 1 0 0 32 0.967893135243 0.5 6 0 1 0.005 0.098 0.1 0 1000 0 edit
+note_add 1001 1 0 6 46 0.687125890161 0.5 3 0 1 0.005 0.098 0.1 0 1000 0 edit
+note_add 1001 1 0 9 48 0.718087610473 0.5 3 0 1 0.005 0.098 0.1 0 1000 0 edit
+note_add 1001 1 0 12 46 0.764511375074 0.5 3 0 1 0.005 0.098 0.1 0 1000 0 edit
+note_add 1001 1 0 15 32 0.747719304646 0.5 3 0 1 0.005 0.098 0.1 0 1000 0 edit
+note_add 1001 1 0 18 46 0.710069874156 0.5 12 0 1 0.005 0.098 0.1 0 1000 0 edit
+note_add 1001 1 0 30 48 0.670818778808 0.5 6 0 1 0.005 0.098 0.1 0 1000 0 edit
+note_add 1001 1 0 36 46 0.76718554892 0.5 3 0 1 0.005 0.098 0.1 0 1000 0 edit
+note_add 1001 1 0 39 32 0.674955363526 0.5 3 0 1 0.005 0.098 0.1 0 1000 0 edit
+note_add 1001 1 0 42 46 0.666988194077 0.5 3 0 1 0.005 0.098 0.1 0 1000 0 edit
+note_add 1001 1 0 45 48 0.733962679855 0.5 3 0 1 0.005 0.098 0.1 0 1000 0 edit
+note_add 1001 1 0 48 46 0.790478232949 0.5 6 0 1 0.005 0.098 0.1 0 1000 0 edit
+note_add 1001 1 0 54 32 0.654033702519 0.5 3 0 1 0.005 0.098 0.1 0 1000 0 edit
+note_add 1001 1 0 57 46 0.685576842626 0.5 3 0 1 0.005 0.098 0.1 0 1000 0 edit
diff --git a/common/Resources/Loops/loop05_2.ttl b/common/Resources/Loops/loop05_2.ttl
new file mode 100644
index 0000000..938dca0
--- /dev/null
+++ b/common/Resources/Loops/loop05_2.ttl
@@ -0,0 +1,8 @@
+page_add 1 5 0 []
+note_add 1002 1 0 0 32 0.953975113794 0.5 6 0 1 0.005 0.098 0.1 0 1000 0 edit
+note_add 1002 1 0 6 48 0.73996191673 0.5 12 0 1 0.005 0.098 0.1 0 1000 0 edit
+note_add 1002 1 0 18 32 0.662372909235 0.5 6 0 1 0.005 0.098 0.1 0 1000 0 edit
+note_add 1002 1 0 24 36 0.872159062195 0.5 6 0 1 0.005 0.098 0.1 0 1000 0 edit
+note_add 1002 1 0 30 36 0.718019324126 0.5 18 0 1 0.005 0.098 0.1 0 1000 0 edit
+note_add 1002 1 0 48 32 0.834029446459 0.5 6 0 1 0.005 0.098 0.1 0 1000 0 edit
+note_add 1002 1 0 54 48 0.736099698032 0.5 6 0 1 0.005 0.098 0.1 0 1000 0 edit
diff --git a/common/Resources/Loops/loop05_3.ttl b/common/Resources/Loops/loop05_3.ttl
new file mode 100644
index 0000000..4f2ef84
--- /dev/null
+++ b/common/Resources/Loops/loop05_3.ttl
@@ -0,0 +1,5 @@
+page_add 1 5 0 []
+note_add 1003 1 0 0 32 0.981548028673 0.5 24 0 1 0.005 0.098 0.1 0 1000 0 edit
+note_add 1003 1 0 24 32 0.844742084481 0.5 12 0 1 0.005 0.098 0.1 0 1000 0 edit
+note_add 1003 1 0 36 41 0.822468509957 0.5 12 0 1 0.005 0.098 0.1 0 1000 0 edit
+note_add 1003 1 0 48 32 0.882417824406 0.5 12 0 1 0.005 0.098 0.1 0 1000 0 edit
diff --git a/common/Resources/Loops/loop05_4.ttl b/common/Resources/Loops/loop05_4.ttl
new file mode 100644
index 0000000..baf2be2
--- /dev/null
+++ b/common/Resources/Loops/loop05_4.ttl
@@ -0,0 +1,8 @@
+page_add 1 5 0 []
+note_add 1004 1 0 0 32 0.90735368789 0.5 12 0 1 0.005 0.098 0.1 0 1000 0 edit
+note_add 1004 1 0 12 32 0.850828621275 0.5 3 0 1 0.005 0.098 0.1 0 1000 0 edit
+note_add 1004 1 0 15 43 0.712169838398 0.5 3 0 1 0.005 0.098 0.1 0 1000 0 edit
+note_add 1004 1 0 18 43 0.715862350703 0.5 18 0 1 0.005 0.098 0.1 0 1000 0 edit
+note_add 1004 1 0 36 34 0.887297930958 0.5 3 0 1 0.005 0.098 0.1 0 1000 0 edit
+note_add 1004 1 0 39 32 0.720284426596 0.5 3 0 1 0.005 0.098 0.1 0 1000 0 edit
+note_add 1004 1 0 42 32 0.698011766494 0.5 18 0 1 0.005 0.098 0.1 0 1000 0 edit
diff --git a/common/Resources/Loops/loop06_0.ttl b/common/Resources/Loops/loop06_0.ttl
new file mode 100644
index 0000000..d2f7dba
--- /dev/null
+++ b/common/Resources/Loops/loop06_0.ttl
@@ -0,0 +1,25 @@
+page_add 1 6 0 []
+note_add 1000 1 0 0 32 0.921114733322 0.5 3 0 1 0.005 0.098 0.1 0 1000 0 edit
+note_add 1000 1 0 3 32 0.655957694556 0.5 3 0 1 0.005 0.098 0.1 0 1000 0 edit
+note_add 1000 1 0 6 32 0.671270807728 0.5 3 0 1 0.005 0.098 0.1 0 1000 0 edit
+note_add 1000 1 0 9 32 0.694768801244 0.5 3 0 1 0.005 0.098 0.1 0 1000 0 edit
+note_add 1000 1 0 12 32 0.780227603486 0.5 3 0 1 0.005 0.098 0.1 0 1000 0 edit
+note_add 1000 1 0 15 32 0.723746292918 0.5 3 0 1 0.005 0.098 0.1 0 1000 0 edit
+note_add 1000 1 0 18 32 0.711968467875 0.5 3 0 1 0.005 0.098 0.1 0 1000 0 edit
+note_add 1000 1 0 21 32 0.654953733777 0.5 3 0 1 0.005 0.098 0.1 0 1000 0 edit
+note_add 1000 1 0 24 32 0.864831875594 0.5 3 0 1 0.005 0.098 0.1 0 1000 0 edit
+note_add 1000 1 0 27 32 0.709684598698 0.5 3 0 1 0.005 0.098 0.1 0 1000 0 edit
+note_add 1000 1 0 30 32 0.680162142542 0.5 3 0 1 0.005 0.098 0.1 0 1000 0 edit
+note_add 1000 1 0 33 32 0.674253527689 0.5 3 0 1 0.005 0.098 0.1 0 1000 0 edit
+note_add 1000 1 0 36 32 0.816207401937 0.5 3 0 1 0.005 0.098 0.1 0 1000 0 edit
+note_add 1000 1 0 39 32 0.683594143543 0.5 3 0 1 0.005 0.098 0.1 0 1000 0 edit
+note_add 1000 1 0 42 32 0.741697357887 0.5 3 0 1 0.005 0.098 0.1 0 1000 0 edit
+note_add 1000 1 0 45 32 0.71839862066 0.5 3 0 1 0.005 0.098 0.1 0 1000 0 edit
+note_add 1000 1 0 48 32 0.899849073174 0.5 3 0 1 0.005 0.098 0.1 0 1000 0 edit
+note_add 1000 1 0 51 32 0.668486947306 0.5 3 0 1 0.005 0.098 0.1 0 1000 0 edit
+note_add 1000 1 0 54 32 0.68402101838 0.5 3 0 1 0.005 0.098 0.1 0 1000 0 edit
+note_add 1000 1 0 57 32 0.696405215255 0.5 3 0 1 0.005 0.098 0.1 0 1000 0 edit
+note_add 1000 1 0 60 32 0.760683240228 0.5 3 0 1 0.005 0.098 0.1 0 1000 0 edit
+note_add 1000 1 0 63 32 0.675900317636 0.5 3 0 1 0.005 0.098 0.1 0 1000 0 edit
+note_add 1000 1 0 66 32 0.749191996222 0.5 3 0 1 0.005 0.098 0.1 0 1000 0 edit
+note_add 1000 1 0 69 32 0.651821036499 0.5 3 0 1 0.005 0.098 0.1 0 1000 0 edit
diff --git a/common/Resources/Loops/loop06_1.ttl b/common/Resources/Loops/loop06_1.ttl
new file mode 100644
index 0000000..17bb12f
--- /dev/null
+++ b/common/Resources/Loops/loop06_1.ttl
@@ -0,0 +1,14 @@
+page_add 1 6 0 []
+note_add 1001 1 0 0 34 0.977138938499 0.5 6 0 1 0.005 0.098 0.1 0 1000 0 edit
+note_add 1001 1 0 6 32 0.747551297965 0.5 6 0 1 0.005 0.098 0.1 0 1000 0 edit
+note_add 1001 1 0 12 32 0.810093246414 0.5 3 0 1 0.005 0.098 0.1 0 1000 0 edit
+note_add 1001 1 0 15 36 0.655551676233 0.5 3 0 1 0.005 0.098 0.1 0 1000 0 edit
+note_add 1001 1 0 18 34 0.681352673984 0.5 3 0 1 0.005 0.098 0.1 0 1000 0 edit
+note_add 1001 1 0 21 32 0.67154506976 0.5 3 0 1 0.005 0.098 0.1 0 1000 0 edit
+note_add 1001 1 0 24 32 0.891965567701 0.5 3 0 1 0.005 0.098 0.1 0 1000 0 edit
+note_add 1001 1 0 27 36 0.749518897533 0.5 3 0 1 0.005 0.098 0.1 0 1000 0 edit
+note_add 1001 1 0 30 34 0.701924693814 0.5 6 0 1 0.005 0.098 0.1 0 1000 0 edit
+note_add 1001 1 0 36 32 0.797169334375 0.5 12 0 1 0.005 0.098 0.1 0 1000 0 edit
+note_add 1001 1 0 48 32 0.861794600346 0.5 6 0 1 0.005 0.098 0.1 0 1000 0 edit
+note_add 1001 1 0 54 36 0.706317436925 0.5 12 0 1 0.005 0.098 0.1 0 1000 0 edit
+note_add 1001 1 0 66 34 0.666747699849 0.5 6 0 1 0.005 0.098 0.1 0 1000 0 edit
diff --git a/common/Resources/Loops/loop06_2.ttl b/common/Resources/Loops/loop06_2.ttl
new file mode 100644
index 0000000..46bf0c9
--- /dev/null
+++ b/common/Resources/Loops/loop06_2.ttl
@@ -0,0 +1,8 @@
+page_add 1 6 0 []
+note_add 1002 1 0 0 32 0.971945764101 0.5 18 0 1 0.005 0.098 0.1 0 1000 0 edit
+note_add 1002 1 0 18 43 0.65049456657 0.5 6 0 1 0.005 0.098 0.1 0 1000 0 edit
+note_add 1002 1 0 24 44 0.841740492595 0.5 6 0 1 0.005 0.098 0.1 0 1000 0 edit
+note_add 1002 1 0 30 44 0.689062735826 0.5 12 0 1 0.005 0.098 0.1 0 1000 0 edit
+note_add 1002 1 0 42 32 0.739870281493 0.5 18 0 1 0.005 0.098 0.1 0 1000 0 edit
+note_add 1002 1 0 60 32 0.767222578817 0.5 6 0 1 0.005 0.098 0.1 0 1000 0 edit
+note_add 1002 1 0 66 43 0.69553127697 0.5 6 0 1 0.005 0.098 0.1 0 1000 0 edit
diff --git a/common/Resources/Loops/loop06_3.ttl b/common/Resources/Loops/loop06_3.ttl
new file mode 100644
index 0000000..90df0da
--- /dev/null
+++ b/common/Resources/Loops/loop06_3.ttl
@@ -0,0 +1,7 @@
+page_add 1 6 0 []
+note_add 1003 1 0 0 46 0.996839737936 0.5 6 0 1 0.005 0.098 0.1 0 1000 0 edit
+note_add 1003 1 0 6 32 0.655370478695 0.5 6 0 1 0.005 0.098 0.1 0 1000 0 edit
+note_add 1003 1 0 12 32 0.808561080003 0.5 12 0 1 0.005 0.098 0.1 0 1000 0 edit
+note_add 1003 1 0 24 34 0.79703642146 0.5 12 0 1 0.005 0.098 0.1 0 1000 0 edit
+note_add 1003 1 0 36 32 0.83096184728 0.5 24 0 1 0.005 0.098 0.1 0 1000 0 edit
+note_add 1003 1 0 60 32 0.774074064347 0.5 12 0 1 0.005 0.098 0.1 0 1000 0 edit
diff --git a/common/Resources/Loops/loop06_4.ttl b/common/Resources/Loops/loop06_4.ttl
new file mode 100644
index 0000000..e5e9543
--- /dev/null
+++ b/common/Resources/Loops/loop06_4.ttl
@@ -0,0 +1,12 @@
+page_add 1 6 0 []
+note_add 1004 1 0 0 41 0.99226300143 0.5 12 0 1 0.005 0.098 0.1 0 1000 0 edit
+note_add 1004 1 0 12 48 0.833675122603 0.5 3 0 1 0.005 0.098 0.1 0 1000 0 edit
+note_add 1004 1 0 15 46 0.731299021867 0.5 3 0 1 0.005 0.098 0.1 0 1000 0 edit
+note_add 1004 1 0 18 46 0.748477899167 0.5 12 0 1 0.005 0.098 0.1 0 1000 0 edit
+note_add 1004 1 0 30 48 0.735857780115 0.5 6 0 1 0.005 0.098 0.1 0 1000 0 edit
+note_add 1004 1 0 36 32 0.849709660981 0.5 3 0 1 0.005 0.098 0.1 0 1000 0 edit
+note_add 1004 1 0 39 38 0.686967953375 0.5 3 0 1 0.005 0.098 0.1 0 1000 0 edit
+note_add 1004 1 0 42 44 0.698163010873 0.5 3 0 1 0.005 0.098 0.1 0 1000 0 edit
+note_add 1004 1 0 45 41 0.659557550294 0.5 3 0 1 0.005 0.098 0.1 0 1000 0 edit
+note_add 1004 1 0 48 48 0.857262323945 0.5 12 0 1 0.005 0.098 0.1 0 1000 0 edit
+note_add 1004 1 0 60 46 0.779519440212 0.5 12 0 1 0.005 0.098 0.1 0 1000 0 edit
diff --git a/common/Resources/Loops/loop07_0.ttl b/common/Resources/Loops/loop07_0.ttl
new file mode 100644
index 0000000..e7b9ee4
--- /dev/null
+++ b/common/Resources/Loops/loop07_0.ttl
@@ -0,0 +1,29 @@
+page_add 1 7 0 []
+note_add 1000 1 0 0 44 0.960668250867 0.5 3 0 1 0.005 0.098 0.1 0 1000 0 edit
+note_add 1000 1 0 3 41 0.674207321488 0.5 3 0 1 0.005 0.098 0.1 0 1000 0 edit
+note_add 1000 1 0 6 44 0.734362222586 0.5 3 0 1 0.005 0.098 0.1 0 1000 0 edit
+note_add 1000 1 0 9 41 0.654866474165 0.5 3 0 1 0.005 0.098 0.1 0 1000 0 edit
+note_add 1000 1 0 12 44 0.868643464616 0.5 3 0 1 0.005 0.098 0.1 0 1000 0 edit
+note_add 1000 1 0 15 41 0.696937523027 0.5 3 0 1 0.005 0.098 0.1 0 1000 0 edit
+note_add 1000 1 0 18 44 0.66148762383 0.5 3 0 1 0.005 0.098 0.1 0 1000 0 edit
+note_add 1000 1 0 21 41 0.655993591676 0.5 3 0 1 0.005 0.098 0.1 0 1000 0 edit
+note_add 1000 1 0 24 44 0.873564876668 0.5 3 0 1 0.005 0.098 0.1 0 1000 0 edit
+note_add 1000 1 0 27 41 0.657079017965 0.5 3 0 1 0.005 0.098 0.1 0 1000 0 edit
+note_add 1000 1 0 30 44 0.741003605834 0.5 3 0 1 0.005 0.098 0.1 0 1000 0 edit
+note_add 1000 1 0 33 41 0.703264182119 0.5 3 0 1 0.005 0.098 0.1 0 1000 0 edit
+note_add 1000 1 0 36 44 0.814119223327 0.5 3 0 1 0.005 0.098 0.1 0 1000 0 edit
+note_add 1000 1 0 39 41 0.66936374141 0.5 3 0 1 0.005 0.098 0.1 0 1000 0 edit
+note_add 1000 1 0 42 44 0.679955978904 0.5 3 0 1 0.005 0.098 0.1 0 1000 0 edit
+note_add 1000 1 0 45 41 0.70856336316 0.5 3 0 1 0.005 0.098 0.1 0 1000 0 edit
+note_add 1000 1 0 48 44 0.759341048304 0.5 3 0 1 0.005 0.098 0.1 0 1000 0 edit
+note_add 1000 1 0 51 41 0.746547256267 0.5 3 0 1 0.005 0.098 0.1 0 1000 0 edit
+note_add 1000 1 0 54 44 0.676933444871 0.5 3 0 1 0.005 0.098 0.1 0 1000 0 edit
+note_add 1000 1 0 57 41 0.720471098726 0.5 3 0 1 0.005 0.098 0.1 0 1000 0 edit
+note_add 1000 1 0 60 44 0.86755339579 0.5 3 0 1 0.005 0.098 0.1 0 1000 0 edit
+note_add 1000 1 0 63 41 0.683523913426 0.5 3 0 1 0.005 0.098 0.1 0 1000 0 edit
+note_add 1000 1 0 66 44 0.657608601991 0.5 3 0 1 0.005 0.098 0.1 0 1000 0 edit
+note_add 1000 1 0 69 41 0.653374462124 0.5 3 0 1 0.005 0.098 0.1 0 1000 0 edit
+note_add 1000 1 0 72 44 0.894314312377 0.5 3 0 1 0.005 0.098 0.1 0 1000 0 edit
+note_add 1000 1 0 75 41 0.736867494683 0.5 3 0 1 0.005 0.098 0.1 0 1000 0 edit
+note_add 1000 1 0 78 44 0.666250541746 0.5 3 0 1 0.005 0.098 0.1 0 1000 0 edit
+note_add 1000 1 0 81 41 0.747987059432 0.5 3 0 1 0.005 0.098 0.1 0 1000 0 edit
diff --git a/common/Resources/Loops/loop07_1.ttl b/common/Resources/Loops/loop07_1.ttl
new file mode 100644
index 0000000..708f514
--- /dev/null
+++ b/common/Resources/Loops/loop07_1.ttl
@@ -0,0 +1,16 @@
+page_add 1 7 0 []
+note_add 1001 1 0 0 32 0.977474510439 0.5 6 0 1 0.005 0.098 0.1 0 1000 0 edit
+note_add 1001 1 0 6 32 0.707918813499 0.5 12 0 1 0.005 0.098 0.1 0 1000 0 edit
+note_add 1001 1 0 18 32 0.733850711992 0.5 6 0 1 0.005 0.098 0.1 0 1000 0 edit
+note_add 1001 1 0 24 34 0.857051574163 0.5 6 0 1 0.005 0.098 0.1 0 1000 0 edit
+note_add 1001 1 0 30 32 0.668454750857 0.5 6 0 1 0.005 0.098 0.1 0 1000 0 edit
+note_add 1001 1 0 36 32 0.788716541461 0.5 12 0 1 0.005 0.098 0.1 0 1000 0 edit
+note_add 1001 1 0 48 32 0.86697793635 0.5 3 0 1 0.005 0.098 0.1 0 1000 0 edit
+note_add 1001 1 0 51 34 0.688630466836 0.5 3 0 1 0.005 0.098 0.1 0 1000 0 edit
+note_add 1001 1 0 54 32 0.67683408959 0.5 6 0 1 0.005 0.098 0.1 0 1000 0 edit
+note_add 1001 1 0 60 32 0.80114956131 0.5 6 0 1 0.005 0.098 0.1 0 1000 0 edit
+note_add 1001 1 0 66 32 0.706614786384 0.5 6 0 1 0.005 0.098 0.1 0 1000 0 edit
+note_add 1001 1 0 72 34 0.87371723136 0.5 3 0 1 0.005 0.098 0.1 0 1000 0 edit
+note_add 1001 1 0 75 32 0.723553578301 0.5 3 0 1 0.005 0.098 0.1 0 1000 0 edit
+note_add 1001 1 0 78 32 0.67938094618 0.5 3 0 1 0.005 0.098 0.1 0 1000 0 edit
+note_add 1001 1 0 81 32 0.651122275732 0.5 3 0 1 0.005 0.098 0.1 0 1000 0 edit
diff --git a/common/Resources/Loops/loop07_2.ttl b/common/Resources/Loops/loop07_2.ttl
new file mode 100644
index 0000000..72fa05e
--- /dev/null
+++ b/common/Resources/Loops/loop07_2.ttl
@@ -0,0 +1,10 @@
+page_add 1 7 0 []
+note_add 1002 1 0 0 32 0.994299643073 0.5 6 0 1 0.005 0.098 0.1 0 1000 0 edit
+note_add 1002 1 0 6 46 0.738402962047 0.5 6 0 1 0.005 0.098 0.1 0 1000 0 edit
+note_add 1002 1 0 12 32 0.834643979888 0.5 6 0 1 0.005 0.098 0.1 0 1000 0 edit
+note_add 1002 1 0 18 41 0.709677800192 0.5 6 0 1 0.005 0.098 0.1 0 1000 0 edit
+note_add 1002 1 0 24 32 0.792564704361 0.5 18 0 1 0.005 0.098 0.1 0 1000 0 edit
+note_add 1002 1 0 42 32 0.736310799475 0.5 12 0 1 0.005 0.098 0.1 0 1000 0 edit
+note_add 1002 1 0 54 46 0.735363369615 0.5 12 0 1 0.005 0.098 0.1 0 1000 0 edit
+note_add 1002 1 0 66 32 0.686480691914 0.5 6 0 1 0.005 0.098 0.1 0 1000 0 edit
+note_add 1002 1 0 72 41 0.813155491409 0.5 12 0 1 0.005 0.098 0.1 0 1000 0 edit
diff --git a/common/Resources/Loops/loop07_3.ttl b/common/Resources/Loops/loop07_3.ttl
new file mode 100644
index 0000000..09898fa
--- /dev/null
+++ b/common/Resources/Loops/loop07_3.ttl
@@ -0,0 +1,9 @@
+page_add 1 7 0 []
+note_add 1003 1 0 0 44 0.950684130482 0.5 6 0 1 0.005 0.098 0.1 0 1000 0 edit
+note_add 1003 1 0 6 38 0.743923505744 0.5 12 0 1 0.005 0.098 0.1 0 1000 0 edit
+note_add 1003 1 0 18 44 0.674226869975 0.5 18 0 1 0.005 0.098 0.1 0 1000 0 edit
+note_add 1003 1 0 36 41 0.894204673681 0.5 6 0 1 0.005 0.098 0.1 0 1000 0 edit
+note_add 1003 1 0 42 48 0.653172057252 0.5 6 0 1 0.005 0.098 0.1 0 1000 0 edit
+note_add 1003 1 0 48 32 0.869912247789 0.5 18 0 1 0.005 0.098 0.1 0 1000 0 edit
+note_add 1003 1 0 66 43 0.707500105747 0.5 12 0 1 0.005 0.098 0.1 0 1000 0 edit
+note_add 1003 1 0 78 44 0.712916834774 0.5 6 0 1 0.005 0.098 0.1 0 1000 0 edit
diff --git a/common/Resources/Loops/loop07_4.ttl b/common/Resources/Loops/loop07_4.ttl
new file mode 100644
index 0000000..41829c5
--- /dev/null
+++ b/common/Resources/Loops/loop07_4.ttl
@@ -0,0 +1,11 @@
+page_add 1 7 0 []
+note_add 1004 1 0 0 32 0.929137794329 0.5 6 0 1 0.005 0.098 0.1 0 1000 0 edit
+note_add 1004 1 0 6 32 0.658516835329 0.5 12 0 1 0.005 0.098 0.1 0 1000 0 edit
+note_add 1004 1 0 18 38 0.681658393996 0.5 12 0 1 0.005 0.098 0.1 0 1000 0 edit
+note_add 1004 1 0 30 32 0.699822449365 0.5 6 0 1 0.005 0.098 0.1 0 1000 0 edit
+note_add 1004 1 0 36 32 0.817283176061 0.5 12 0 1 0.005 0.098 0.1 0 1000 0 edit
+note_add 1004 1 0 48 44 0.774057810069 0.5 18 0 1 0.005 0.098 0.1 0 1000 0 edit
+note_add 1004 1 0 66 48 0.747100920691 0.5 6 0 1 0.005 0.098 0.1 0 1000 0 edit
+note_add 1004 1 0 72 48 0.812377589911 0.5 3 0 1 0.005 0.098 0.1 0 1000 0 edit
+note_add 1004 1 0 75 32 0.681312168088 0.5 3 0 1 0.005 0.098 0.1 0 1000 0 edit
+note_add 1004 1 0 78 32 0.733215412992 0.5 6 0 1 0.005 0.098 0.1 0 1000 0 edit
diff --git a/common/Resources/Loops/loop08_0.ttl b/common/Resources/Loops/loop08_0.ttl
new file mode 100644
index 0000000..a9e7c4a
--- /dev/null
+++ b/common/Resources/Loops/loop08_0.ttl
@@ -0,0 +1,33 @@
+page_add 1 8 0 []
+note_add 1000 1 0 0 44 0.964205483761 0.5 3 0 1 0.005 0.098 0.1 0 1000 0 edit
+note_add 1000 1 0 3 44 0.651865744001 0.5 3 0 1 0.005 0.098 0.1 0 1000 0 edit
+note_add 1000 1 0 6 44 0.653396642859 0.5 3 0 1 0.005 0.098 0.1 0 1000 0 edit
+note_add 1000 1 0 9 44 0.688558247992 0.5 3 0 1 0.005 0.098 0.1 0 1000 0 edit
+note_add 1000 1 0 12 44 0.78652120346 0.5 3 0 1 0.005 0.098 0.1 0 1000 0 edit
+note_add 1000 1 0 15 44 0.659055701164 0.5 3 0 1 0.005 0.098 0.1 0 1000 0 edit
+note_add 1000 1 0 18 44 0.744066005297 0.5 3 0 1 0.005 0.098 0.1 0 1000 0 edit
+note_add 1000 1 0 21 44 0.669903086442 0.5 3 0 1 0.005 0.098 0.1 0 1000 0 edit
+note_add 1000 1 0 24 44 0.757356687106 0.5 3 0 1 0.005 0.098 0.1 0 1000 0 edit
+note_add 1000 1 0 27 44 0.713679510091 0.5 3 0 1 0.005 0.098 0.1 0 1000 0 edit
+note_add 1000 1 0 30 44 0.680212916118 0.5 3 0 1 0.005 0.098 0.1 0 1000 0 edit
+note_add 1000 1 0 33 44 0.702425459646 0.5 3 0 1 0.005 0.098 0.1 0 1000 0 edit
+note_add 1000 1 0 36 44 0.756115689115 0.5 3 0 1 0.005 0.098 0.1 0 1000 0 edit
+note_add 1000 1 0 39 44 0.711131722344 0.5 3 0 1 0.005 0.098 0.1 0 1000 0 edit
+note_add 1000 1 0 42 44 0.723075036701 0.5 3 0 1 0.005 0.098 0.1 0 1000 0 edit
+note_add 1000 1 0 45 44 0.692765358115 0.5 3 0 1 0.005 0.098 0.1 0 1000 0 edit
+note_add 1000 1 0 48 44 0.808823848013 0.5 3 0 1 0.005 0.098 0.1 0 1000 0 edit
+note_add 1000 1 0 51 44 0.668223705544 0.5 3 0 1 0.005 0.098 0.1 0 1000 0 edit
+note_add 1000 1 0 54 44 0.692958195306 0.5 3 0 1 0.005 0.098 0.1 0 1000 0 edit
+note_add 1000 1 0 57 44 0.671325742653 0.5 3 0 1 0.005 0.098 0.1 0 1000 0 edit
+note_add 1000 1 0 60 44 0.840218398486 0.5 3 0 1 0.005 0.098 0.1 0 1000 0 edit
+note_add 1000 1 0 63 44 0.74449136697 0.5 3 0 1 0.005 0.098 0.1 0 1000 0 edit
+note_add 1000 1 0 66 44 0.677903075922 0.5 3 0 1 0.005 0.098 0.1 0 1000 0 edit
+note_add 1000 1 0 69 44 0.685621355598 0.5 3 0 1 0.005 0.098 0.1 0 1000 0 edit
+note_add 1000 1 0 72 44 0.806256032 0.5 3 0 1 0.005 0.098 0.1 0 1000 0 edit
+note_add 1000 1 0 75 44 0.663346781982 0.5 3 0 1 0.005 0.098 0.1 0 1000 0 edit
+note_add 1000 1 0 78 44 0.691827856997 0.5 3 0 1 0.005 0.098 0.1 0 1000 0 edit
+note_add 1000 1 0 81 44 0.68135753616 0.5 3 0 1 0.005 0.098 0.1 0 1000 0 edit
+note_add 1000 1 0 84 44 0.806191023604 0.5 3 0 1 0.005 0.098 0.1 0 1000 0 edit
+note_add 1000 1 0 87 44 0.730719749924 0.5 3 0 1 0.005 0.098 0.1 0 1000 0 edit
+note_add 1000 1 0 90 44 0.733946176916 0.5 3 0 1 0.005 0.098 0.1 0 1000 0 edit
+note_add 1000 1 0 93 44 0.651926437205 0.5 3 0 1 0.005 0.098 0.1 0 1000 0 edit
diff --git a/common/Resources/Loops/loop08_1.ttl b/common/Resources/Loops/loop08_1.ttl
new file mode 100644
index 0000000..98cc806
--- /dev/null
+++ b/common/Resources/Loops/loop08_1.ttl
@@ -0,0 +1,19 @@
+page_add 1 8 0 []
+note_add 1001 1 0 0 44 0.944269056188 0.5 6 0 1 0.005 0.098 0.1 0 1000 0 edit
+note_add 1001 1 0 6 46 0.729319114859 0.5 6 0 1 0.005 0.098 0.1 0 1000 0 edit
+note_add 1001 1 0 12 48 0.760543989618 0.5 3 0 1 0.005 0.098 0.1 0 1000 0 edit
+note_add 1001 1 0 15 36 0.722123755241 0.5 3 0 1 0.005 0.098 0.1 0 1000 0 edit
+note_add 1001 1 0 18 44 0.708072119865 0.5 6 0 1 0.005 0.098 0.1 0 1000 0 edit
+note_add 1001 1 0 24 46 0.894221345157 0.5 6 0 1 0.005 0.098 0.1 0 1000 0 edit
+note_add 1001 1 0 30 48 0.68244237846 0.5 6 0 1 0.005 0.098 0.1 0 1000 0 edit
+note_add 1001 1 0 36 36 0.777443117101 0.5 6 0 1 0.005 0.098 0.1 0 1000 0 edit
+note_add 1001 1 0 42 44 0.706365814249 0.5 6 0 1 0.005 0.098 0.1 0 1000 0 edit
+note_add 1001 1 0 48 46 0.831627419172 0.5 6 0 1 0.005 0.098 0.1 0 1000 0 edit
+note_add 1001 1 0 54 48 0.721992835095 0.5 6 0 1 0.005 0.098 0.1 0 1000 0 edit
+note_add 1001 1 0 60 36 0.803478459144 0.5 6 0 1 0.005 0.098 0.1 0 1000 0 edit
+note_add 1001 1 0 66 44 0.724597112713 0.5 6 0 1 0.005 0.098 0.1 0 1000 0 edit
+note_add 1001 1 0 72 46 0.823442728538 0.5 12 0 1 0.005 0.098 0.1 0 1000 0 edit
+note_add 1001 1 0 84 48 0.808131071659 0.5 3 0 1 0.005 0.098 0.1 0 1000 0 edit
+note_add 1001 1 0 87 36 0.65670209975 0.5 3 0 1 0.005 0.098 0.1 0 1000 0 edit
+note_add 1001 1 0 90 44 0.736655313059 0.5 3 0 1 0.005 0.098 0.1 0 1000 0 edit
+note_add 1001 1 0 93 46 0.707173856125 0.5 3 0 1 0.005 0.098 0.1 0 1000 0 edit
diff --git a/common/Resources/Loops/loop08_2.ttl b/common/Resources/Loops/loop08_2.ttl
new file mode 100644
index 0000000..a2ba262
--- /dev/null
+++ b/common/Resources/Loops/loop08_2.ttl
@@ -0,0 +1,8 @@
+page_add 1 8 0 []
+note_add 1002 1 0 0 32 0.936290994236 0.5 18 0 1 0.005 0.098 0.1 0 1000 0 edit
+note_add 1002 1 0 18 32 0.747613725209 0.5 6 0 1 0.005 0.098 0.1 0 1000 0 edit
+note_add 1002 1 0 24 32 0.837035115234 0.5 12 0 1 0.005 0.098 0.1 0 1000 0 edit
+note_add 1002 1 0 36 32 0.861361469314 0.5 18 0 1 0.005 0.098 0.1 0 1000 0 edit
+note_add 1002 1 0 54 32 0.715305330981 0.5 18 0 1 0.005 0.098 0.1 0 1000 0 edit
+note_add 1002 1 0 72 32 0.805101422804 0.5 18 0 1 0.005 0.098 0.1 0 1000 0 edit
+note_add 1002 1 0 90 32 0.736154980793 0.5 6 0 1 0.005 0.098 0.1 0 1000 0 edit
diff --git a/common/Resources/Loops/loop08_3.ttl b/common/Resources/Loops/loop08_3.ttl
new file mode 100644
index 0000000..207632b
--- /dev/null
+++ b/common/Resources/Loops/loop08_3.ttl
@@ -0,0 +1,9 @@
+page_add 1 8 0 []
+note_add 1003 1 0 0 46 0.929352843013 0.5 12 0 1 0.005 0.098 0.1 0 1000 0 edit
+note_add 1003 1 0 12 46 0.836915427418 0.5 12 0 1 0.005 0.098 0.1 0 1000 0 edit
+note_add 1003 1 0 24 32 0.790263155895 0.5 12 0 1 0.005 0.098 0.1 0 1000 0 edit
+note_add 1003 1 0 36 43 0.784494030562 0.5 24 0 1 0.005 0.098 0.1 0 1000 0 edit
+note_add 1003 1 0 60 46 0.893530007497 0.5 12 0 1 0.005 0.098 0.1 0 1000 0 edit
+note_add 1003 1 0 72 46 0.809622907273 0.5 6 0 1 0.005 0.098 0.1 0 1000 0 edit
+note_add 1003 1 0 78 32 0.694420741809 0.5 6 0 1 0.005 0.098 0.1 0 1000 0 edit
+note_add 1003 1 0 84 46 0.795226231834 0.5 12 0 1 0.005 0.098 0.1 0 1000 0 edit
diff --git a/common/Resources/Loops/loop08_4.ttl b/common/Resources/Loops/loop08_4.ttl
new file mode 100644
index 0000000..02e777c
--- /dev/null
+++ b/common/Resources/Loops/loop08_4.ttl
@@ -0,0 +1,20 @@
+page_add 1 8 0 []
+note_add 1004 1 0 0 32 0.925659868182 0.5 6 0 1 0.005 0.098 0.1 0 1000 0 edit
+note_add 1004 1 0 6 32 0.6911667398 0.5 3 0 1 0.005 0.098 0.1 0 1000 0 edit
+note_add 1004 1 0 9 34 0.673847362322 0.5 3 0 1 0.005 0.098 0.1 0 1000 0 edit
+note_add 1004 1 0 12 34 0.869535420663 0.5 3 0 1 0.005 0.098 0.1 0 1000 0 edit
+note_add 1004 1 0 15 32 0.668348323168 0.5 3 0 1 0.005 0.098 0.1 0 1000 0 edit
+note_add 1004 1 0 18 32 0.709778522529 0.5 6 0 1 0.005 0.098 0.1 0 1000 0 edit
+note_add 1004 1 0 24 32 0.849447146337 0.5 6 0 1 0.005 0.098 0.1 0 1000 0 edit
+note_add 1004 1 0 30 32 0.711729398878 0.5 6 0 1 0.005 0.098 0.1 0 1000 0 edit
+note_add 1004 1 0 36 32 0.866612182294 0.5 3 0 1 0.005 0.098 0.1 0 1000 0 edit
+note_add 1004 1 0 39 32 0.657459654993 0.5 3 0 1 0.005 0.098 0.1 0 1000 0 edit
+note_add 1004 1 0 42 34 0.666975606662 0.5 6 0 1 0.005 0.098 0.1 0 1000 0 edit
+note_add 1004 1 0 48 34 0.789575824644 0.5 3 0 1 0.005 0.098 0.1 0 1000 0 edit
+note_add 1004 1 0 51 32 0.67884164747 0.5 3 0 1 0.005 0.098 0.1 0 1000 0 edit
+note_add 1004 1 0 54 32 0.744742212122 0.5 6 0 1 0.005 0.098 0.1 0 1000 0 edit
+note_add 1004 1 0 60 32 0.864169727314 0.5 3 0 1 0.005 0.098 0.1 0 1000 0 edit
+note_add 1004 1 0 63 32 0.654127259721 0.5 3 0 1 0.005 0.098 0.1 0 1000 0 edit
+note_add 1004 1 0 66 32 0.677590723757 0.5 12 0 1 0.005 0.098 0.1 0 1000 0 edit
+note_add 1004 1 0 78 32 0.693244118701 0.5 12 0 1 0.005 0.098 0.1 0 1000 0 edit
+note_add 1004 1 0 90 34 0.682008906013 0.5 6 0 1 0.005 0.098 0.1 0 1000 0 edit
diff --git a/common/Resources/Loops/loop09_0.ttl b/common/Resources/Loops/loop09_0.ttl
new file mode 100644
index 0000000..a2a2875
--- /dev/null
+++ b/common/Resources/Loops/loop09_0.ttl
@@ -0,0 +1,37 @@
+page_add 1 9 0 []
+note_add 1000 1 0 0 46 0.947764415438 0.5 3 0 1 0.005 0.098 0.1 0 1000 0 edit
+note_add 1000 1 0 3 43 0.658715330453 0.5 3 0 1 0.005 0.098 0.1 0 1000 0 edit
+note_add 1000 1 0 6 46 0.731517704933 0.5 3 0 1 0.005 0.098 0.1 0 1000 0 edit
+note_add 1000 1 0 9 43 0.675263974808 0.5 3 0 1 0.005 0.098 0.1 0 1000 0 edit
+note_add 1000 1 0 12 46 0.87154899892 0.5 3 0 1 0.005 0.098 0.1 0 1000 0 edit
+note_add 1000 1 0 15 43 0.696613793749 0.5 3 0 1 0.005 0.098 0.1 0 1000 0 edit
+note_add 1000 1 0 18 46 0.729844473846 0.5 3 0 1 0.005 0.098 0.1 0 1000 0 edit
+note_add 1000 1 0 21 43 0.708347115296 0.5 3 0 1 0.005 0.098 0.1 0 1000 0 edit
+note_add 1000 1 0 24 46 0.829761577762 0.5 3 0 1 0.005 0.098 0.1 0 1000 0 edit
+note_add 1000 1 0 27 43 0.663388505786 0.5 3 0 1 0.005 0.098 0.1 0 1000 0 edit
+note_add 1000 1 0 30 46 0.723426166448 0.5 3 0 1 0.005 0.098 0.1 0 1000 0 edit
+note_add 1000 1 0 33 43 0.668570704132 0.5 3 0 1 0.005 0.098 0.1 0 1000 0 edit
+note_add 1000 1 0 36 46 0.862246548679 0.5 3 0 1 0.005 0.098 0.1 0 1000 0 edit
+note_add 1000 1 0 39 43 0.748631476403 0.5 3 0 1 0.005 0.098 0.1 0 1000 0 edit
+note_add 1000 1 0 42 46 0.711571455222 0.5 3 0 1 0.005 0.098 0.1 0 1000 0 edit
+note_add 1000 1 0 45 43 0.703930487754 0.5 3 0 1 0.005 0.098 0.1 0 1000 0 edit
+note_add 1000 1 0 48 46 0.859544195395 0.5 3 0 1 0.005 0.098 0.1 0 1000 0 edit
+note_add 1000 1 0 51 43 0.674156640881 0.5 3 0 1 0.005 0.098 0.1 0 1000 0 edit
+note_add 1000 1 0 54 46 0.729937128229 0.5 3 0 1 0.005 0.098 0.1 0 1000 0 edit
+note_add 1000 1 0 57 43 0.685638635438 0.5 3 0 1 0.005 0.098 0.1 0 1000 0 edit
+note_add 1000 1 0 60 46 0.887943715646 0.5 3 0 1 0.005 0.098 0.1 0 1000 0 edit
+note_add 1000 1 0 63 43 0.70357448061 0.5 3 0 1 0.005 0.098 0.1 0 1000 0 edit
+note_add 1000 1 0 66 46 0.706780754681 0.5 3 0 1 0.005 0.098 0.1 0 1000 0 edit
+note_add 1000 1 0 69 43 0.702266767734 0.5 3 0 1 0.005 0.098 0.1 0 1000 0 edit
+note_add 1000 1 0 72 46 0.803494224643 0.5 3 0 1 0.005 0.098 0.1 0 1000 0 edit
+note_add 1000 1 0 75 43 0.721963084996 0.5 3 0 1 0.005 0.098 0.1 0 1000 0 edit
+note_add 1000 1 0 78 46 0.733358551729 0.5 3 0 1 0.005 0.098 0.1 0 1000 0 edit
+note_add 1000 1 0 81 43 0.704391573465 0.5 3 0 1 0.005 0.098 0.1 0 1000 0 edit
+note_add 1000 1 0 84 46 0.789515426435 0.5 3 0 1 0.005 0.098 0.1 0 1000 0 edit
+note_add 1000 1 0 87 43 0.723108940538 0.5 3 0 1 0.005 0.098 0.1 0 1000 0 edit
+note_add 1000 1 0 90 46 0.710938024252 0.5 3 0 1 0.005 0.098 0.1 0 1000 0 edit
+note_add 1000 1 0 93 43 0.678002862829 0.5 3 0 1 0.005 0.098 0.1 0 1000 0 edit
+note_add 1000 1 0 96 46 0.766596988979 0.5 3 0 1 0.005 0.098 0.1 0 1000 0 edit
+note_add 1000 1 0 99 43 0.738497715805 0.5 3 0 1 0.005 0.098 0.1 0 1000 0 edit
+note_add 1000 1 0 102 46 0.721669110661 0.5 3 0 1 0.005 0.098 0.1 0 1000 0 edit
+note_add 1000 1 0 105 43 0.656578021764 0.5 3 0 1 0.005 0.098 0.1 0 1000 0 edit
diff --git a/common/Resources/Loops/loop09_1.ttl b/common/Resources/Loops/loop09_1.ttl
new file mode 100644
index 0000000..8291a32
--- /dev/null
+++ b/common/Resources/Loops/loop09_1.ttl
@@ -0,0 +1,19 @@
+page_add 1 9 0 []
+note_add 1001 1 0 0 32 0.937141355284 0.5 3 0 1 0.005 0.098 0.1 0 1000 0 edit
+note_add 1001 1 0 3 32 0.719478462207 0.5 3 0 1 0.005 0.098 0.1 0 1000 0 edit
+note_add 1001 1 0 6 48 0.720884133263 0.5 3 0 1 0.005 0.098 0.1 0 1000 0 edit
+note_add 1001 1 0 9 43 0.713174231886 0.5 3 0 1 0.005 0.098 0.1 0 1000 0 edit
+note_add 1001 1 0 12 32 0.761717535633 0.5 6 0 1 0.005 0.098 0.1 0 1000 0 edit
+note_add 1001 1 0 18 32 0.681606973286 0.5 6 0 1 0.005 0.098 0.1 0 1000 0 edit
+note_add 1001 1 0 24 48 0.758114518196 0.5 12 0 1 0.005 0.098 0.1 0 1000 0 edit
+note_add 1001 1 0 36 43 0.839564832276 0.5 6 0 1 0.005 0.098 0.1 0 1000 0 edit
+note_add 1001 1 0 42 32 0.734985216027 0.5 6 0 1 0.005 0.098 0.1 0 1000 0 edit
+note_add 1001 1 0 48 32 0.793625294525 0.5 3 0 1 0.005 0.098 0.1 0 1000 0 edit
+note_add 1001 1 0 51 48 0.717544016903 0.5 3 0 1 0.005 0.098 0.1 0 1000 0 edit
+note_add 1001 1 0 54 43 0.742042480865 0.5 12 0 1 0.005 0.098 0.1 0 1000 0 edit
+note_add 1001 1 0 66 32 0.73577642886 0.5 6 0 1 0.005 0.098 0.1 0 1000 0 edit
+note_add 1001 1 0 72 32 0.753007731694 0.5 3 0 1 0.005 0.098 0.1 0 1000 0 edit
+note_add 1001 1 0 75 48 0.686873730756 0.5 3 0 1 0.005 0.098 0.1 0 1000 0 edit
+note_add 1001 1 0 78 43 0.68995193264 0.5 12 0 1 0.005 0.098 0.1 0 1000 0 edit
+note_add 1001 1 0 90 32 0.65180674643 0.5 6 0 1 0.005 0.098 0.1 0 1000 0 edit
+note_add 1001 1 0 96 32 0.757800092461 0.5 12 0 1 0.005 0.098 0.1 0 1000 0 edit
diff --git a/common/Resources/Loops/loop09_2.ttl b/common/Resources/Loops/loop09_2.ttl
new file mode 100644
index 0000000..48d797c
--- /dev/null
+++ b/common/Resources/Loops/loop09_2.ttl
@@ -0,0 +1,10 @@
+page_add 1 9 0 []
+note_add 1002 1 0 0 32 0.99576286255 0.5 12 0 1 0.005 0.098 0.1 0 1000 0 edit
+note_add 1002 1 0 12 43 0.752795807489 0.5 6 0 1 0.005 0.098 0.1 0 1000 0 edit
+note_add 1002 1 0 18 36 0.66906332588 0.5 18 0 1 0.005 0.098 0.1 0 1000 0 edit
+note_add 1002 1 0 36 32 0.755741418425 0.5 6 0 1 0.005 0.098 0.1 0 1000 0 edit
+note_add 1002 1 0 42 44 0.661876936235 0.5 6 0 1 0.005 0.098 0.1 0 1000 0 edit
+note_add 1002 1 0 48 32 0.847153152159 0.5 18 0 1 0.005 0.098 0.1 0 1000 0 edit
+note_add 1002 1 0 66 43 0.678761285868 0.5 12 0 1 0.005 0.098 0.1 0 1000 0 edit
+note_add 1002 1 0 78 36 0.738364766254 0.5 12 0 1 0.005 0.098 0.1 0 1000 0 edit
+note_add 1002 1 0 90 32 0.712907949451 0.5 18 0 1 0.005 0.098 0.1 0 1000 0 edit
diff --git a/common/Resources/Loops/loop09_3.ttl b/common/Resources/Loops/loop09_3.ttl
new file mode 100644
index 0000000..9a9a012
--- /dev/null
+++ b/common/Resources/Loops/loop09_3.ttl
@@ -0,0 +1,13 @@
+page_add 1 9 0 []
+note_add 1003 1 0 0 38 0.996033240789 0.5 6 0 1 0.005 0.098 0.1 0 1000 0 edit
+note_add 1003 1 0 6 32 0.745776812216 0.5 6 0 1 0.005 0.098 0.1 0 1000 0 edit
+note_add 1003 1 0 12 32 0.827835616589 0.5 12 0 1 0.005 0.098 0.1 0 1000 0 edit
+note_add 1003 1 0 24 32 0.79249257228 0.5 12 0 1 0.005 0.098 0.1 0 1000 0 edit
+note_add 1003 1 0 36 38 0.847804948167 0.5 12 0 1 0.005 0.098 0.1 0 1000 0 edit
+note_add 1003 1 0 48 32 0.799010380796 0.5 18 0 1 0.005 0.098 0.1 0 1000 0 edit
+note_add 1003 1 0 66 32 0.739630347495 0.5 6 0 1 0.005 0.098 0.1 0 1000 0 edit
+note_add 1003 1 0 72 38 0.780463490871 0.5 6 0 1 0.005 0.098 0.1 0 1000 0 edit
+note_add 1003 1 0 78 32 0.666004883967 0.5 6 0 1 0.005 0.098 0.1 0 1000 0 edit
+note_add 1003 1 0 84 32 0.762447888193 0.5 12 0 1 0.005 0.098 0.1 0 1000 0 edit
+note_add 1003 1 0 96 32 0.80956287506 0.5 6 0 1 0.005 0.098 0.1 0 1000 0 edit
+note_add 1003 1 0 102 38 0.703028499787 0.5 6 0 1 0.005 0.098 0.1 0 1000 0 edit
diff --git a/common/Resources/Loops/loop09_4.ttl b/common/Resources/Loops/loop09_4.ttl
new file mode 100644
index 0000000..082b216
--- /dev/null
+++ b/common/Resources/Loops/loop09_4.ttl
@@ -0,0 +1,18 @@
+page_add 1 9 0 []
+note_add 1004 1 0 0 32 0.915832699564 0.5 6 0 1 0.005 0.098 0.1 0 1000 0 edit
+note_add 1004 1 0 6 32 0.742663054845 0.5 6 0 1 0.005 0.098 0.1 0 1000 0 edit
+note_add 1004 1 0 12 32 0.875390486038 0.5 18 0 1 0.005 0.098 0.1 0 1000 0 edit
+note_add 1004 1 0 30 34 0.748210563485 0.5 6 0 1 0.005 0.098 0.1 0 1000 0 edit
+note_add 1004 1 0 36 34 0.836488278848 0.5 12 0 1 0.005 0.098 0.1 0 1000 0 edit
+note_add 1004 1 0 48 32 0.865767152798 0.5 6 0 1 0.005 0.098 0.1 0 1000 0 edit
+note_add 1004 1 0 54 46 0.650642284496 0.5 6 0 1 0.005 0.098 0.1 0 1000 0 edit
+note_add 1004 1 0 60 32 0.792115476415 0.5 12 0 1 0.005 0.098 0.1 0 1000 0 edit
+note_add 1004 1 0 72 32 0.782035718153 0.5 6 0 1 0.005 0.098 0.1 0 1000 0 edit
+note_add 1004 1 0 78 32 0.651385601751 0.5 3 0 1 0.005 0.098 0.1 0 1000 0 edit
+note_add 1004 1 0 81 32 0.723715657424 0.5 3 0 1 0.005 0.098 0.1 0 1000 0 edit
+note_add 1004 1 0 84 34 0.793024551054 0.5 6 0 1 0.005 0.098 0.1 0 1000 0 edit
+note_add 1004 1 0 90 34 0.687013359717 0.5 6 0 1 0.005 0.098 0.1 0 1000 0 edit
+note_add 1004 1 0 96 32 0.871123790865 0.5 3 0 1 0.005 0.098 0.1 0 1000 0 edit
+note_add 1004 1 0 99 46 0.747308141007 0.5 3 0 1 0.005 0.098 0.1 0 1000 0 edit
+note_add 1004 1 0 102 32 0.679192160091 0.5 3 0 1 0.005 0.098 0.1 0 1000 0 edit
+note_add 1004 1 0 105 32 0.670293110114 0.5 3 0 1 0.005 0.098 0.1 0 1000 0 edit
diff --git a/common/Resources/Loops/loop10_0.ttl b/common/Resources/Loops/loop10_0.ttl
new file mode 100644
index 0000000..eea484f
--- /dev/null
+++ b/common/Resources/Loops/loop10_0.ttl
@@ -0,0 +1,41 @@
+page_add 1 10 0 []
+note_add 1000 1 0 0 48 0.979891880558 0.5 3 0 1 0.005 0.098 0.1 0 1000 0 edit
+note_add 1000 1 0 3 36 0.653076003778 0.5 3 0 1 0.005 0.098 0.1 0 1000 0 edit
+note_add 1000 1 0 6 48 0.680309821502 0.5 3 0 1 0.005 0.098 0.1 0 1000 0 edit
+note_add 1000 1 0 9 36 0.732764225227 0.5 3 0 1 0.005 0.098 0.1 0 1000 0 edit
+note_add 1000 1 0 12 48 0.769826352246 0.5 3 0 1 0.005 0.098 0.1 0 1000 0 edit
+note_add 1000 1 0 15 36 0.678786909709 0.5 3 0 1 0.005 0.098 0.1 0 1000 0 edit
+note_add 1000 1 0 18 48 0.664885298095 0.5 3 0 1 0.005 0.098 0.1 0 1000 0 edit
+note_add 1000 1 0 21 36 0.698420420141 0.5 3 0 1 0.005 0.098 0.1 0 1000 0 edit
+note_add 1000 1 0 24 48 0.878552200587 0.5 3 0 1 0.005 0.098 0.1 0 1000 0 edit
+note_add 1000 1 0 27 36 0.662090560587 0.5 3 0 1 0.005 0.098 0.1 0 1000 0 edit
+note_add 1000 1 0 30 48 0.738971944787 0.5 3 0 1 0.005 0.098 0.1 0 1000 0 edit
+note_add 1000 1 0 33 36 0.667129605877 0.5 3 0 1 0.005 0.098 0.1 0 1000 0 edit
+note_add 1000 1 0 36 48 0.803116894964 0.5 3 0 1 0.005 0.098 0.1 0 1000 0 edit
+note_add 1000 1 0 39 36 0.716572754547 0.5 3 0 1 0.005 0.098 0.1 0 1000 0 edit
+note_add 1000 1 0 42 48 0.731258823897 0.5 3 0 1 0.005 0.098 0.1 0 1000 0 edit
+note_add 1000 1 0 45 36 0.712155634947 0.5 3 0 1 0.005 0.098 0.1 0 1000 0 edit
+note_add 1000 1 0 48 48 0.840071620981 0.5 3 0 1 0.005 0.098 0.1 0 1000 0 edit
+note_add 1000 1 0 51 36 0.660040151104 0.5 3 0 1 0.005 0.098 0.1 0 1000 0 edit
+note_add 1000 1 0 54 48 0.7434367206 0.5 3 0 1 0.005 0.098 0.1 0 1000 0 edit
+note_add 1000 1 0 57 36 0.703695191148 0.5 3 0 1 0.005 0.098 0.1 0 1000 0 edit
+note_add 1000 1 0 60 48 0.763280464574 0.5 3 0 1 0.005 0.098 0.1 0 1000 0 edit
+note_add 1000 1 0 63 36 0.66340948072 0.5 3 0 1 0.005 0.098 0.1 0 1000 0 edit
+note_add 1000 1 0 66 48 0.717965633538 0.5 3 0 1 0.005 0.098 0.1 0 1000 0 edit
+note_add 1000 1 0 69 36 0.698255623472 0.5 3 0 1 0.005 0.098 0.1 0 1000 0 edit
+note_add 1000 1 0 72 48 0.870481837423 0.5 3 0 1 0.005 0.098 0.1 0 1000 0 edit
+note_add 1000 1 0 75 36 0.70292879052 0.5 3 0 1 0.005 0.098 0.1 0 1000 0 edit
+note_add 1000 1 0 78 48 0.701239054462 0.5 3 0 1 0.005 0.098 0.1 0 1000 0 edit
+note_add 1000 1 0 81 36 0.707280218411 0.5 3 0 1 0.005 0.098 0.1 0 1000 0 edit
+note_add 1000 1 0 84 48 0.824319636365 0.5 3 0 1 0.005 0.098 0.1 0 1000 0 edit
+note_add 1000 1 0 87 36 0.652493438877 0.5 3 0 1 0.005 0.098 0.1 0 1000 0 edit
+note_add 1000 1 0 90 48 0.691791347032 0.5 3 0 1 0.005 0.098 0.1 0 1000 0 edit
+note_add 1000 1 0 93 36 0.674363442563 0.5 3 0 1 0.005 0.098 0.1 0 1000 0 edit
+note_add 1000 1 0 96 48 0.830719213625 0.5 3 0 1 0.005 0.098 0.1 0 1000 0 edit
+note_add 1000 1 0 99 36 0.661428250271 0.5 3 0 1 0.005 0.098 0.1 0 1000 0 edit
+note_add 1000 1 0 102 48 0.733125395714 0.5 3 0 1 0.005 0.098 0.1 0 1000 0 edit
+note_add 1000 1 0 105 36 0.726819629927 0.5 3 0 1 0.005 0.098 0.1 0 1000 0 edit
+note_add 1000 1 0 108 48 0.78346763842 0.5 3 0 1 0.005 0.098 0.1 0 1000 0 edit
+note_add 1000 1 0 111 36 0.69729234269 0.5 3 0 1 0.005 0.098 0.1 0 1000 0 edit
+note_add 1000 1 0 114 48 0.734224587843 0.5 3 0 1 0.005 0.098 0.1 0 1000 0 edit
+note_add 1000 1 0 117 36 0.654777125602 0.5 3 0 1 0.005 0.098 0.1 0 1000 0 edit
diff --git a/common/Resources/Loops/loop10_1.ttl b/common/Resources/Loops/loop10_1.ttl
new file mode 100644
index 0000000..994b3c8
--- /dev/null
+++ b/common/Resources/Loops/loop10_1.ttl
@@ -0,0 +1,19 @@
+page_add 1 10 0 []
+note_add 1001 1 0 0 34 0.997748569928 0.5 3 0 1 0.005 0.098 0.1 0 1000 0 edit
+note_add 1001 1 0 3 44 0.723576813399 0.5 3 0 1 0.005 0.098 0.1 0 1000 0 edit
+note_add 1001 1 0 6 44 0.741871004859 0.5 12 0 1 0.005 0.098 0.1 0 1000 0 edit
+note_add 1001 1 0 18 38 0.689398479169 0.5 12 0 1 0.005 0.098 0.1 0 1000 0 edit
+note_add 1001 1 0 30 34 0.660355615404 0.5 6 0 1 0.005 0.098 0.1 0 1000 0 edit
+note_add 1001 1 0 36 44 0.82625049286 0.5 6 0 1 0.005 0.098 0.1 0 1000 0 edit
+note_add 1001 1 0 42 44 0.741988630551 0.5 6 0 1 0.005 0.098 0.1 0 1000 0 edit
+note_add 1001 1 0 48 38 0.775260691012 0.5 6 0 1 0.005 0.098 0.1 0 1000 0 edit
+note_add 1001 1 0 54 34 0.7332263108 0.5 3 0 1 0.005 0.098 0.1 0 1000 0 edit
+note_add 1001 1 0 57 44 0.703461223395 0.5 3 0 1 0.005 0.098 0.1 0 1000 0 edit
+note_add 1001 1 0 60 44 0.832207143811 0.5 12 0 1 0.005 0.098 0.1 0 1000 0 edit
+note_add 1001 1 0 72 38 0.808919522624 0.5 12 0 1 0.005 0.098 0.1 0 1000 0 edit
+note_add 1001 1 0 84 34 0.809984476763 0.5 6 0 1 0.005 0.098 0.1 0 1000 0 edit
+note_add 1001 1 0 90 44 0.661661695398 0.5 6 0 1 0.005 0.098 0.1 0 1000 0 edit
+note_add 1001 1 0 96 44 0.7522709434 0.5 6 0 1 0.005 0.098 0.1 0 1000 0 edit
+note_add 1001 1 0 102 38 0.651370296265 0.5 6 0 1 0.005 0.098 0.1 0 1000 0 edit
+note_add 1001 1 0 108 34 0.88308853473 0.5 6 0 1 0.005 0.098 0.1 0 1000 0 edit
+note_add 1001 1 0 114 44 0.656056171207 0.5 6 0 1 0.005 0.098 0.1 0 1000 0 edit
diff --git a/common/Resources/Loops/loop10_2.ttl b/common/Resources/Loops/loop10_2.ttl
new file mode 100644
index 0000000..cd3615c
--- /dev/null
+++ b/common/Resources/Loops/loop10_2.ttl
@@ -0,0 +1,11 @@
+page_add 1 10 0 []
+note_add 1002 1 0 0 44 0.95139538384 0.5 18 0 1 0.005 0.098 0.1 0 1000 0 edit
+note_add 1002 1 0 18 48 0.723914992791 0.5 12 0 1 0.005 0.098 0.1 0 1000 0 edit
+note_add 1002 1 0 30 32 0.72952006514 0.5 18 0 1 0.005 0.098 0.1 0 1000 0 edit
+note_add 1002 1 0 48 46 0.789405290609 0.5 12 0 1 0.005 0.098 0.1 0 1000 0 edit
+note_add 1002 1 0 60 32 0.8646752285 0.5 6 0 1 0.005 0.098 0.1 0 1000 0 edit
+note_add 1002 1 0 66 44 0.717710545482 0.5 6 0 1 0.005 0.098 0.1 0 1000 0 edit
+note_add 1002 1 0 72 48 0.751895182545 0.5 12 0 1 0.005 0.098 0.1 0 1000 0 edit
+note_add 1002 1 0 84 32 0.807500121395 0.5 18 0 1 0.005 0.098 0.1 0 1000 0 edit
+note_add 1002 1 0 102 46 0.721952453815 0.5 12 0 1 0.005 0.098 0.1 0 1000 0 edit
+note_add 1002 1 0 114 32 0.670629591428 0.5 6 0 1 0.005 0.098 0.1 0 1000 0 edit
diff --git a/common/Resources/Loops/loop10_3.ttl b/common/Resources/Loops/loop10_3.ttl
new file mode 100644
index 0000000..1188351
--- /dev/null
+++ b/common/Resources/Loops/loop10_3.ttl
@@ -0,0 +1,12 @@
+page_add 1 10 0 []
+note_add 1003 1 0 0 32 0.918429565796 0.5 12 0 1 0.005 0.098 0.1 0 1000 0 edit
+note_add 1003 1 0 12 32 0.896238657828 0.5 12 0 1 0.005 0.098 0.1 0 1000 0 edit
+note_add 1003 1 0 24 43 0.859990108109 0.5 12 0 1 0.005 0.098 0.1 0 1000 0 edit
+note_add 1003 1 0 36 36 0.780084722939 0.5 18 0 1 0.005 0.098 0.1 0 1000 0 edit
+note_add 1003 1 0 54 38 0.727509225141 0.5 12 0 1 0.005 0.098 0.1 0 1000 0 edit
+note_add 1003 1 0 66 48 0.677444860539 0.5 12 0 1 0.005 0.098 0.1 0 1000 0 edit
+note_add 1003 1 0 78 32 0.704849216477 0.5 6 0 1 0.005 0.098 0.1 0 1000 0 edit
+note_add 1003 1 0 84 32 0.834177866777 0.5 12 0 1 0.005 0.098 0.1 0 1000 0 edit
+note_add 1003 1 0 96 32 0.776622928055 0.5 12 0 1 0.005 0.098 0.1 0 1000 0 edit
+note_add 1003 1 0 108 43 0.750845342026 0.5 6 0 1 0.005 0.098 0.1 0 1000 0 edit
+note_add 1003 1 0 114 36 0.706362269841 0.5 6 0 1 0.005 0.098 0.1 0 1000 0 edit
diff --git a/common/Resources/Loops/loop10_4.ttl b/common/Resources/Loops/loop10_4.ttl
new file mode 100644
index 0000000..b97ea29
--- /dev/null
+++ b/common/Resources/Loops/loop10_4.ttl
@@ -0,0 +1,15 @@
+page_add 1 10 0 []
+note_add 1004 1 0 0 36 0.974377774474 0.5 12 0 1 0.005 0.098 0.1 0 1000 0 edit
+note_add 1004 1 0 12 44 0.753857800625 0.5 3 0 1 0.005 0.098 0.1 0 1000 0 edit
+note_add 1004 1 0 15 48 0.685571400538 0.5 3 0 1 0.005 0.098 0.1 0 1000 0 edit
+note_add 1004 1 0 18 32 0.67559477477 0.5 12 0 1 0.005 0.098 0.1 0 1000 0 edit
+note_add 1004 1 0 30 32 0.743901397279 0.5 3 0 1 0.005 0.098 0.1 0 1000 0 edit
+note_add 1004 1 0 33 36 0.734213988726 0.5 3 0 1 0.005 0.098 0.1 0 1000 0 edit
+note_add 1004 1 0 36 48 0.801032243062 0.5 18 0 1 0.005 0.098 0.1 0 1000 0 edit
+note_add 1004 1 0 54 32 0.68263985716 0.5 6 0 1 0.005 0.098 0.1 0 1000 0 edit
+note_add 1004 1 0 60 36 0.799444369922 0.5 6 0 1 0.005 0.098 0.1 0 1000 0 edit
+note_add 1004 1 0 66 44 0.656926424107 0.5 6 0 1 0.005 0.098 0.1 0 1000 0 edit
+note_add 1004 1 0 72 48 0.785283513034 0.5 12 0 1 0.005 0.098 0.1 0 1000 0 edit
+note_add 1004 1 0 84 32 0.819419200446 0.5 12 0 1 0.005 0.098 0.1 0 1000 0 edit
+note_add 1004 1 0 96 32 0.873983991491 0.5 18 0 1 0.005 0.098 0.1 0 1000 0 edit
+note_add 1004 1 0 114 36 0.736440156657 0.5 6 0 1 0.005 0.098 0.1 0 1000 0 edit
diff --git a/common/Resources/Loops/loop11_0.ttl b/common/Resources/Loops/loop11_0.ttl
new file mode 100644
index 0000000..abeea45
--- /dev/null
+++ b/common/Resources/Loops/loop11_0.ttl
@@ -0,0 +1,45 @@
+page_add 1 11 0 []
+note_add 1000 1 0 0 36 0.974634285682 0.5 3 0 1 0.005 0.098 0.1 0 1000 0 edit
+note_add 1000 1 0 3 38 0.673218797384 0.5 3 0 1 0.005 0.098 0.1 0 1000 0 edit
+note_add 1000 1 0 6 36 0.747316415913 0.5 3 0 1 0.005 0.098 0.1 0 1000 0 edit
+note_add 1000 1 0 9 38 0.735031186526 0.5 3 0 1 0.005 0.098 0.1 0 1000 0 edit
+note_add 1000 1 0 12 36 0.792657089029 0.5 3 0 1 0.005 0.098 0.1 0 1000 0 edit
+note_add 1000 1 0 15 38 0.708314889372 0.5 3 0 1 0.005 0.098 0.1 0 1000 0 edit
+note_add 1000 1 0 18 36 0.699847328328 0.5 3 0 1 0.005 0.098 0.1 0 1000 0 edit
+note_add 1000 1 0 21 38 0.742779567047 0.5 3 0 1 0.005 0.098 0.1 0 1000 0 edit
+note_add 1000 1 0 24 36 0.755033182447 0.5 3 0 1 0.005 0.098 0.1 0 1000 0 edit
+note_add 1000 1 0 27 38 0.715603611197 0.5 3 0 1 0.005 0.098 0.1 0 1000 0 edit
+note_add 1000 1 0 30 36 0.726677112176 0.5 3 0 1 0.005 0.098 0.1 0 1000 0 edit
+note_add 1000 1 0 33 38 0.69062307368 0.5 3 0 1 0.005 0.098 0.1 0 1000 0 edit
+note_add 1000 1 0 36 36 0.888706194279 0.5 3 0 1 0.005 0.098 0.1 0 1000 0 edit
+note_add 1000 1 0 39 38 0.747272625347 0.5 3 0 1 0.005 0.098 0.1 0 1000 0 edit
+note_add 1000 1 0 42 36 0.688903817409 0.5 3 0 1 0.005 0.098 0.1 0 1000 0 edit
+note_add 1000 1 0 45 38 0.730027384767 0.5 3 0 1 0.005 0.098 0.1 0 1000 0 edit
+note_add 1000 1 0 48 36 0.767287283844 0.5 3 0 1 0.005 0.098 0.1 0 1000 0 edit
+note_add 1000 1 0 51 38 0.699532687227 0.5 3 0 1 0.005 0.098 0.1 0 1000 0 edit
+note_add 1000 1 0 54 36 0.675524597551 0.5 3 0 1 0.005 0.098 0.1 0 1000 0 edit
+note_add 1000 1 0 57 38 0.658223950464 0.5 3 0 1 0.005 0.098 0.1 0 1000 0 edit
+note_add 1000 1 0 60 36 0.867450964995 0.5 3 0 1 0.005 0.098 0.1 0 1000 0 edit
+note_add 1000 1 0 63 38 0.7495509036 0.5 3 0 1 0.005 0.098 0.1 0 1000 0 edit
+note_add 1000 1 0 66 36 0.749049330818 0.5 3 0 1 0.005 0.098 0.1 0 1000 0 edit
+note_add 1000 1 0 69 38 0.746446874509 0.5 3 0 1 0.005 0.098 0.1 0 1000 0 edit
+note_add 1000 1 0 72 36 0.865760071835 0.5 3 0 1 0.005 0.098 0.1 0 1000 0 edit
+note_add 1000 1 0 75 38 0.657124977406 0.5 3 0 1 0.005 0.098 0.1 0 1000 0 edit
+note_add 1000 1 0 78 36 0.694812492205 0.5 3 0 1 0.005 0.098 0.1 0 1000 0 edit
+note_add 1000 1 0 81 38 0.747782147274 0.5 3 0 1 0.005 0.098 0.1 0 1000 0 edit
+note_add 1000 1 0 84 36 0.846127569948 0.5 3 0 1 0.005 0.098 0.1 0 1000 0 edit
+note_add 1000 1 0 87 38 0.685257570694 0.5 3 0 1 0.005 0.098 0.1 0 1000 0 edit
+note_add 1000 1 0 90 36 0.685048422213 0.5 3 0 1 0.005 0.098 0.1 0 1000 0 edit
+note_add 1000 1 0 93 38 0.73231586802 0.5 3 0 1 0.005 0.098 0.1 0 1000 0 edit
+note_add 1000 1 0 96 36 0.884601979406 0.5 3 0 1 0.005 0.098 0.1 0 1000 0 edit
+note_add 1000 1 0 99 38 0.734779574708 0.5 3 0 1 0.005 0.098 0.1 0 1000 0 edit
+note_add 1000 1 0 102 36 0.691485138954 0.5 3 0 1 0.005 0.098 0.1 0 1000 0 edit
+note_add 1000 1 0 105 38 0.701989583699 0.5 3 0 1 0.005 0.098 0.1 0 1000 0 edit
+note_add 1000 1 0 108 36 0.791414806938 0.5 3 0 1 0.005 0.098 0.1 0 1000 0 edit
+note_add 1000 1 0 111 38 0.746642528046 0.5 3 0 1 0.005 0.098 0.1 0 1000 0 edit
+note_add 1000 1 0 114 36 0.746693851449 0.5 3 0 1 0.005 0.098 0.1 0 1000 0 edit
+note_add 1000 1 0 117 38 0.674224536557 0.5 3 0 1 0.005 0.098 0.1 0 1000 0 edit
+note_add 1000 1 0 120 36 0.820459199538 0.5 3 0 1 0.005 0.098 0.1 0 1000 0 edit
+note_add 1000 1 0 123 38 0.67092960404 0.5 3 0 1 0.005 0.098 0.1 0 1000 0 edit
+note_add 1000 1 0 126 36 0.687376413318 0.5 3 0 1 0.005 0.098 0.1 0 1000 0 edit
+note_add 1000 1 0 129 38 0.71222115059 0.5 3 0 1 0.005 0.098 0.1 0 1000 0 edit
diff --git a/common/Resources/Loops/loop11_1.ttl b/common/Resources/Loops/loop11_1.ttl
new file mode 100644
index 0000000..c39f1c4
--- /dev/null
+++ b/common/Resources/Loops/loop11_1.ttl
@@ -0,0 +1,23 @@
+page_add 1 11 0 []
+note_add 1001 1 0 0 36 0.941898753203 0.5 12 0 1 0.005 0.098 0.1 0 1000 0 edit
+note_add 1001 1 0 12 32 0.785087753325 0.5 12 0 1 0.005 0.098 0.1 0 1000 0 edit
+note_add 1001 1 0 24 43 0.824557786201 0.5 6 0 1 0.005 0.098 0.1 0 1000 0 edit
+note_add 1001 1 0 30 44 0.716901825825 0.5 12 0 1 0.005 0.098 0.1 0 1000 0 edit
+note_add 1001 1 0 42 36 0.690092006379 0.5 3 0 1 0.005 0.098 0.1 0 1000 0 edit
+note_add 1001 1 0 45 32 0.722995861311 0.5 3 0 1 0.005 0.098 0.1 0 1000 0 edit
+note_add 1001 1 0 48 43 0.78432267112 0.5 12 0 1 0.005 0.098 0.1 0 1000 0 edit
+note_add 1001 1 0 60 44 0.858051777889 0.5 6 0 1 0.005 0.098 0.1 0 1000 0 edit
+note_add 1001 1 0 66 36 0.743693985084 0.5 3 0 1 0.005 0.098 0.1 0 1000 0 edit
+note_add 1001 1 0 69 32 0.657227900767 0.5 3 0 1 0.005 0.098 0.1 0 1000 0 edit
+note_add 1001 1 0 72 43 0.759573320592 0.5 12 0 1 0.005 0.098 0.1 0 1000 0 edit
+note_add 1001 1 0 84 44 0.882338848874 0.5 3 0 1 0.005 0.098 0.1 0 1000 0 edit
+note_add 1001 1 0 87 36 0.651051750015 0.5 3 0 1 0.005 0.098 0.1 0 1000 0 edit
+note_add 1001 1 0 90 32 0.707705322523 0.5 6 0 1 0.005 0.098 0.1 0 1000 0 edit
+note_add 1001 1 0 96 43 0.899243600614 0.5 3 0 1 0.005 0.098 0.1 0 1000 0 edit
+note_add 1001 1 0 99 44 0.712717212473 0.5 3 0 1 0.005 0.098 0.1 0 1000 0 edit
+note_add 1001 1 0 102 36 0.709697770717 0.5 3 0 1 0.005 0.098 0.1 0 1000 0 edit
+note_add 1001 1 0 105 32 0.740699865621 0.5 3 0 1 0.005 0.098 0.1 0 1000 0 edit
+note_add 1001 1 0 108 43 0.816120650387 0.5 3 0 1 0.005 0.098 0.1 0 1000 0 edit
+note_add 1001 1 0 111 44 0.737603961779 0.5 3 0 1 0.005 0.098 0.1 0 1000 0 edit
+note_add 1001 1 0 114 36 0.696177906281 0.5 12 0 1 0.005 0.098 0.1 0 1000 0 edit
+note_add 1001 1 0 126 32 0.721640187578 0.5 6 0 1 0.005 0.098 0.1 0 1000 0 edit
diff --git a/common/Resources/Loops/loop11_2.ttl b/common/Resources/Loops/loop11_2.ttl
new file mode 100644
index 0000000..33be92c
--- /dev/null
+++ b/common/Resources/Loops/loop11_2.ttl
@@ -0,0 +1,14 @@
+page_add 1 11 0 []
+note_add 1002 1 0 0 32 0.932892286323 0.5 12 0 1 0.005 0.098 0.1 0 1000 0 edit
+note_add 1002 1 0 12 32 0.863832221538 0.5 12 0 1 0.005 0.098 0.1 0 1000 0 edit
+note_add 1002 1 0 24 32 0.787489418868 0.5 6 0 1 0.005 0.098 0.1 0 1000 0 edit
+note_add 1002 1 0 30 32 0.708435753041 0.5 18 0 1 0.005 0.098 0.1 0 1000 0 edit
+note_add 1002 1 0 48 32 0.839307723839 0.5 6 0 1 0.005 0.098 0.1 0 1000 0 edit
+note_add 1002 1 0 54 32 0.684927262126 0.5 12 0 1 0.005 0.098 0.1 0 1000 0 edit
+note_add 1002 1 0 66 32 0.744329704618 0.5 6 0 1 0.005 0.098 0.1 0 1000 0 edit
+note_add 1002 1 0 72 32 0.884621164701 0.5 6 0 1 0.005 0.098 0.1 0 1000 0 edit
+note_add 1002 1 0 78 32 0.6930467573 0.5 6 0 1 0.005 0.098 0.1 0 1000 0 edit
+note_add 1002 1 0 84 32 0.792391292267 0.5 18 0 1 0.005 0.098 0.1 0 1000 0 edit
+note_add 1002 1 0 102 32 0.733672222962 0.5 6 0 1 0.005 0.098 0.1 0 1000 0 edit
+note_add 1002 1 0 108 32 0.78807633069 0.5 18 0 1 0.005 0.098 0.1 0 1000 0 edit
+note_add 1002 1 0 126 32 0.73862649862 0.5 6 0 1 0.005 0.098 0.1 0 1000 0 edit
diff --git a/common/Resources/Loops/loop11_3.ttl b/common/Resources/Loops/loop11_3.ttl
new file mode 100644
index 0000000..232f3e8
--- /dev/null
+++ b/common/Resources/Loops/loop11_3.ttl
@@ -0,0 +1,12 @@
+page_add 1 11 0 []
+note_add 1003 1 0 0 41 0.97013767245 0.5 12 0 1 0.005 0.098 0.1 0 1000 0 edit
+note_add 1003 1 0 12 43 0.822035108795 0.5 12 0 1 0.005 0.098 0.1 0 1000 0 edit
+note_add 1003 1 0 24 48 0.889989168626 0.5 6 0 1 0.005 0.098 0.1 0 1000 0 edit
+note_add 1003 1 0 30 32 0.701126454681 0.5 12 0 1 0.005 0.098 0.1 0 1000 0 edit
+note_add 1003 1 0 42 32 0.739055337576 0.5 18 0 1 0.005 0.098 0.1 0 1000 0 edit
+note_add 1003 1 0 60 34 0.764608983725 0.5 6 0 1 0.005 0.098 0.1 0 1000 0 edit
+note_add 1003 1 0 66 41 0.695357420564 0.5 18 0 1 0.005 0.098 0.1 0 1000 0 edit
+note_add 1003 1 0 84 41 0.837910768334 0.5 18 0 1 0.005 0.098 0.1 0 1000 0 edit
+note_add 1003 1 0 102 43 0.737348803423 0.5 12 0 1 0.005 0.098 0.1 0 1000 0 edit
+note_add 1003 1 0 114 48 0.691485917531 0.5 12 0 1 0.005 0.098 0.1 0 1000 0 edit
+note_add 1003 1 0 126 32 0.657815450394 0.5 6 0 1 0.005 0.098 0.1 0 1000 0 edit
diff --git a/common/Resources/Loops/loop11_4.ttl b/common/Resources/Loops/loop11_4.ttl
new file mode 100644
index 0000000..7bea87c
--- /dev/null
+++ b/common/Resources/Loops/loop11_4.ttl
@@ -0,0 +1,15 @@
+page_add 1 11 0 []
+note_add 1004 1 0 0 32 0.939733299728 0.5 18 0 1 0.005 0.098 0.1 0 1000 0 edit
+note_add 1004 1 0 18 38 0.656413766467 0.5 18 0 1 0.005 0.098 0.1 0 1000 0 edit
+note_add 1004 1 0 36 32 0.880054467734 0.5 6 0 1 0.005 0.098 0.1 0 1000 0 edit
+note_add 1004 1 0 42 32 0.675041861362 0.5 3 0 1 0.005 0.098 0.1 0 1000 0 edit
+note_add 1004 1 0 45 44 0.725655372163 0.5 3 0 1 0.005 0.098 0.1 0 1000 0 edit
+note_add 1004 1 0 48 48 0.786593314089 0.5 12 0 1 0.005 0.098 0.1 0 1000 0 edit
+note_add 1004 1 0 60 36 0.822791398686 0.5 18 0 1 0.005 0.098 0.1 0 1000 0 edit
+note_add 1004 1 0 78 46 0.702175101524 0.5 6 0 1 0.005 0.098 0.1 0 1000 0 edit
+note_add 1004 1 0 84 32 0.758226862517 0.5 3 0 1 0.005 0.098 0.1 0 1000 0 edit
+note_add 1004 1 0 87 38 0.658139823066 0.5 3 0 1 0.005 0.098 0.1 0 1000 0 edit
+note_add 1004 1 0 90 32 0.668170127276 0.5 12 0 1 0.005 0.098 0.1 0 1000 0 edit
+note_add 1004 1 0 102 32 0.722681824748 0.5 6 0 1 0.005 0.098 0.1 0 1000 0 edit
+note_add 1004 1 0 108 44 0.836571624545 0.5 6 0 1 0.005 0.098 0.1 0 1000 0 edit
+note_add 1004 1 0 114 48 0.667576972982 0.5 18 0 1 0.005 0.098 0.1 0 1000 0 edit
diff --git a/common/Resources/Loops/loop12_0.ttl b/common/Resources/Loops/loop12_0.ttl
new file mode 100644
index 0000000..e49f5fb
--- /dev/null
+++ b/common/Resources/Loops/loop12_0.ttl
@@ -0,0 +1,49 @@
+page_add 1 12 0 []
+note_add 1000 1 0 0 41 0.922155761946 0.5 3 0 1 0.005 0.098 0.1 0 1000 0 edit
+note_add 1000 1 0 3 44 0.65350045039 0.5 3 0 1 0.005 0.098 0.1 0 1000 0 edit
+note_add 1000 1 0 6 41 0.657022496954 0.5 3 0 1 0.005 0.098 0.1 0 1000 0 edit
+note_add 1000 1 0 9 44 0.714751727313 0.5 3 0 1 0.005 0.098 0.1 0 1000 0 edit
+note_add 1000 1 0 12 41 0.85354349634 0.5 3 0 1 0.005 0.098 0.1 0 1000 0 edit
+note_add 1000 1 0 15 44 0.662294123372 0.5 3 0 1 0.005 0.098 0.1 0 1000 0 edit
+note_add 1000 1 0 18 41 0.727452922651 0.5 3 0 1 0.005 0.098 0.1 0 1000 0 edit
+note_add 1000 1 0 21 44 0.723569523495 0.5 3 0 1 0.005 0.098 0.1 0 1000 0 edit
+note_add 1000 1 0 24 41 0.833200297055 0.5 3 0 1 0.005 0.098 0.1 0 1000 0 edit
+note_add 1000 1 0 27 44 0.658504944959 0.5 3 0 1 0.005 0.098 0.1 0 1000 0 edit
+note_add 1000 1 0 30 41 0.662973869637 0.5 3 0 1 0.005 0.098 0.1 0 1000 0 edit
+note_add 1000 1 0 33 44 0.721346962099 0.5 3 0 1 0.005 0.098 0.1 0 1000 0 edit
+note_add 1000 1 0 36 41 0.833218537208 0.5 3 0 1 0.005 0.098 0.1 0 1000 0 edit
+note_add 1000 1 0 39 44 0.698601325063 0.5 3 0 1 0.005 0.098 0.1 0 1000 0 edit
+note_add 1000 1 0 42 41 0.689483454263 0.5 3 0 1 0.005 0.098 0.1 0 1000 0 edit
+note_add 1000 1 0 45 44 0.666183054395 0.5 3 0 1 0.005 0.098 0.1 0 1000 0 edit
+note_add 1000 1 0 48 41 0.816037781142 0.5 3 0 1 0.005 0.098 0.1 0 1000 0 edit
+note_add 1000 1 0 51 44 0.725250491697 0.5 3 0 1 0.005 0.098 0.1 0 1000 0 edit
+note_add 1000 1 0 54 41 0.656159719867 0.5 3 0 1 0.005 0.098 0.1 0 1000 0 edit
+note_add 1000 1 0 57 44 0.731945713157 0.5 3 0 1 0.005 0.098 0.1 0 1000 0 edit
+note_add 1000 1 0 60 41 0.821999860726 0.5 3 0 1 0.005 0.098 0.1 0 1000 0 edit
+note_add 1000 1 0 63 44 0.722186626397 0.5 3 0 1 0.005 0.098 0.1 0 1000 0 edit
+note_add 1000 1 0 66 41 0.701696400982 0.5 3 0 1 0.005 0.098 0.1 0 1000 0 edit
+note_add 1000 1 0 69 44 0.709734770938 0.5 3 0 1 0.005 0.098 0.1 0 1000 0 edit
+note_add 1000 1 0 72 41 0.862084602452 0.5 3 0 1 0.005 0.098 0.1 0 1000 0 edit
+note_add 1000 1 0 75 44 0.739586673346 0.5 3 0 1 0.005 0.098 0.1 0 1000 0 edit
+note_add 1000 1 0 78 41 0.684178756537 0.5 3 0 1 0.005 0.098 0.1 0 1000 0 edit
+note_add 1000 1 0 81 44 0.670494640759 0.5 3 0 1 0.005 0.098 0.1 0 1000 0 edit
+note_add 1000 1 0 84 41 0.809983681538 0.5 3 0 1 0.005 0.098 0.1 0 1000 0 edit
+note_add 1000 1 0 87 44 0.678563779847 0.5 3 0 1 0.005 0.098 0.1 0 1000 0 edit
+note_add 1000 1 0 90 41 0.680514820478 0.5 3 0 1 0.005 0.098 0.1 0 1000 0 edit
+note_add 1000 1 0 93 44 0.690880754953 0.5 3 0 1 0.005 0.098 0.1 0 1000 0 edit
+note_add 1000 1 0 96 41 0.874115164798 0.5 3 0 1 0.005 0.098 0.1 0 1000 0 edit
+note_add 1000 1 0 99 44 0.731705174476 0.5 3 0 1 0.005 0.098 0.1 0 1000 0 edit
+note_add 1000 1 0 102 41 0.68378231818 0.5 3 0 1 0.005 0.098 0.1 0 1000 0 edit
+note_add 1000 1 0 105 44 0.701359883096 0.5 3 0 1 0.005 0.098 0.1 0 1000 0 edit
+note_add 1000 1 0 108 41 0.856592797609 0.5 3 0 1 0.005 0.098 0.1 0 1000 0 edit
+note_add 1000 1 0 111 44 0.676599792138 0.5 3 0 1 0.005 0.098 0.1 0 1000 0 edit
+note_add 1000 1 0 114 41 0.703632532775 0.5 3 0 1 0.005 0.098 0.1 0 1000 0 edit
+note_add 1000 1 0 117 44 0.663629203217 0.5 3 0 1 0.005 0.098 0.1 0 1000 0 edit
+note_add 1000 1 0 120 41 0.806365437944 0.5 3 0 1 0.005 0.098 0.1 0 1000 0 edit
+note_add 1000 1 0 123 44 0.722292379583 0.5 3 0 1 0.005 0.098 0.1 0 1000 0 edit
+note_add 1000 1 0 126 41 0.658115890813 0.5 3 0 1 0.005 0.098 0.1 0 1000 0 edit
+note_add 1000 1 0 129 44 0.659717223548 0.5 3 0 1 0.005 0.098 0.1 0 1000 0 edit
+note_add 1000 1 0 132 41 0.828661376132 0.5 3 0 1 0.005 0.098 0.1 0 1000 0 edit
+note_add 1000 1 0 135 44 0.686035070327 0.5 3 0 1 0.005 0.098 0.1 0 1000 0 edit
+note_add 1000 1 0 138 41 0.714063553705 0.5 3 0 1 0.005 0.098 0.1 0 1000 0 edit
+note_add 1000 1 0 141 44 0.678090439045 0.5 3 0 1 0.005 0.098 0.1 0 1000 0 edit
diff --git a/common/Resources/Loops/loop12_1.ttl b/common/Resources/Loops/loop12_1.ttl
new file mode 100644
index 0000000..6050064
--- /dev/null
+++ b/common/Resources/Loops/loop12_1.ttl
@@ -0,0 +1,29 @@
+page_add 1 12 0 []
+note_add 1001 1 0 0 41 0.990798818122 0.5 6 0 1 0.005 0.098 0.1 0 1000 0 edit
+note_add 1001 1 0 6 48 0.728222618336 0.5 12 0 1 0.005 0.098 0.1 0 1000 0 edit
+note_add 1001 1 0 18 44 0.720020221419 0.5 6 0 1 0.005 0.098 0.1 0 1000 0 edit
+note_add 1001 1 0 24 48 0.820706617647 0.5 12 0 1 0.005 0.098 0.1 0 1000 0 edit
+note_add 1001 1 0 36 41 0.754280833629 0.5 6 0 1 0.005 0.098 0.1 0 1000 0 edit
+note_add 1001 1 0 42 48 0.650837405159 0.5 6 0 1 0.005 0.098 0.1 0 1000 0 edit
+note_add 1001 1 0 48 44 0.866938100559 0.5 3 0 1 0.005 0.098 0.1 0 1000 0 edit
+note_add 1001 1 0 51 48 0.736567529887 0.5 3 0 1 0.005 0.098 0.1 0 1000 0 edit
+note_add 1001 1 0 54 41 0.656020489483 0.5 6 0 1 0.005 0.098 0.1 0 1000 0 edit
+note_add 1001 1 0 60 48 0.809392385769 0.5 6 0 1 0.005 0.098 0.1 0 1000 0 edit
+note_add 1001 1 0 66 44 0.653434163747 0.5 6 0 1 0.005 0.098 0.1 0 1000 0 edit
+note_add 1001 1 0 72 48 0.874087463664 0.5 6 0 1 0.005 0.098 0.1 0 1000 0 edit
+note_add 1001 1 0 78 41 0.660855905785 0.5 6 0 1 0.005 0.098 0.1 0 1000 0 edit
+note_add 1001 1 0 84 48 0.833722200168 0.5 3 0 1 0.005 0.098 0.1 0 1000 0 edit
+note_add 1001 1 0 87 44 0.688419803681 0.5 3 0 1 0.005 0.098 0.1 0 1000 0 edit
+note_add 1001 1 0 90 48 0.670022997837 0.5 3 0 1 0.005 0.098 0.1 0 1000 0 edit
+note_add 1001 1 0 93 41 0.658388832978 0.5 3 0 1 0.005 0.098 0.1 0 1000 0 edit
+note_add 1001 1 0 96 48 0.805544753099 0.5 3 0 1 0.005 0.098 0.1 0 1000 0 edit
+note_add 1001 1 0 99 44 0.699618040652 0.5 3 0 1 0.005 0.098 0.1 0 1000 0 edit
+note_add 1001 1 0 102 48 0.690339349793 0.5 6 0 1 0.005 0.098 0.1 0 1000 0 edit
+note_add 1001 1 0 108 41 0.803971677644 0.5 6 0 1 0.005 0.098 0.1 0 1000 0 edit
+note_add 1001 1 0 114 48 0.68052067326 0.5 3 0 1 0.005 0.098 0.1 0 1000 0 edit
+note_add 1001 1 0 117 44 0.675471950593 0.5 3 0 1 0.005 0.098 0.1 0 1000 0 edit
+note_add 1001 1 0 120 48 0.823756409447 0.5 6 0 1 0.005 0.098 0.1 0 1000 0 edit
+note_add 1001 1 0 126 41 0.734161745439 0.5 3 0 1 0.005 0.098 0.1 0 1000 0 edit
+note_add 1001 1 0 129 48 0.698206882543 0.5 3 0 1 0.005 0.098 0.1 0 1000 0 edit
+note_add 1001 1 0 132 44 0.803254657959 0.5 6 0 1 0.005 0.098 0.1 0 1000 0 edit
+note_add 1001 1 0 138 48 0.672000324737 0.5 6 0 1 0.005 0.098 0.1 0 1000 0 edit
diff --git a/common/Resources/Loops/loop12_2.ttl b/common/Resources/Loops/loop12_2.ttl
new file mode 100644
index 0000000..638ffd9
--- /dev/null
+++ b/common/Resources/Loops/loop12_2.ttl
@@ -0,0 +1,17 @@
+page_add 1 12 0 []
+note_add 1002 1 0 0 32 0.992822719235 0.5 18 0 1 0.005 0.098 0.1 0 1000 0 edit
+note_add 1002 1 0 18 46 0.683065344763 0.5 6 0 1 0.005 0.098 0.1 0 1000 0 edit
+note_add 1002 1 0 24 32 0.854953231044 0.5 18 0 1 0.005 0.098 0.1 0 1000 0 edit
+note_add 1002 1 0 42 48 0.720690803169 0.5 6 0 1 0.005 0.098 0.1 0 1000 0 edit
+note_add 1002 1 0 48 36 0.858725947789 0.5 12 0 1 0.005 0.098 0.1 0 1000 0 edit
+note_add 1002 1 0 60 32 0.849123576607 0.5 6 0 1 0.005 0.098 0.1 0 1000 0 edit
+note_add 1002 1 0 66 46 0.690526197115 0.5 6 0 1 0.005 0.098 0.1 0 1000 0 edit
+note_add 1002 1 0 72 32 0.799919027209 0.5 12 0 1 0.005 0.098 0.1 0 1000 0 edit
+note_add 1002 1 0 84 48 0.799461741675 0.5 6 0 1 0.005 0.098 0.1 0 1000 0 edit
+note_add 1002 1 0 90 36 0.743540955168 0.5 6 0 1 0.005 0.098 0.1 0 1000 0 edit
+note_add 1002 1 0 96 32 0.765305209963 0.5 6 0 1 0.005 0.098 0.1 0 1000 0 edit
+note_add 1002 1 0 102 46 0.711305174906 0.5 6 0 1 0.005 0.098 0.1 0 1000 0 edit
+note_add 1002 1 0 108 32 0.87175080938 0.5 12 0 1 0.005 0.098 0.1 0 1000 0 edit
+note_add 1002 1 0 120 48 0.852562099733 0.5 12 0 1 0.005 0.098 0.1 0 1000 0 edit
+note_add 1002 1 0 132 36 0.759057589787 0.5 6 0 1 0.005 0.098 0.1 0 1000 0 edit
+note_add 1002 1 0 138 32 0.651613398376 0.5 6 0 1 0.005 0.098 0.1 0 1000 0 edit
diff --git a/common/Resources/Loops/loop12_3.ttl b/common/Resources/Loops/loop12_3.ttl
new file mode 100644
index 0000000..cf582d1
--- /dev/null
+++ b/common/Resources/Loops/loop12_3.ttl
@@ -0,0 +1,13 @@
+page_add 1 12 0 []
+note_add 1003 1 0 0 41 0.905963287418 0.5 18 0 1 0.005 0.098 0.1 0 1000 0 edit
+note_add 1003 1 0 18 48 0.653981664043 0.5 12 0 1 0.005 0.098 0.1 0 1000 0 edit
+note_add 1003 1 0 30 44 0.717492007744 0.5 6 0 1 0.005 0.098 0.1 0 1000 0 edit
+note_add 1003 1 0 36 48 0.759163240751 0.5 12 0 1 0.005 0.098 0.1 0 1000 0 edit
+note_add 1003 1 0 48 32 0.847283474108 0.5 18 0 1 0.005 0.098 0.1 0 1000 0 edit
+note_add 1003 1 0 66 34 0.723148245474 0.5 6 0 1 0.005 0.098 0.1 0 1000 0 edit
+note_add 1003 1 0 72 41 0.805396504679 0.5 12 0 1 0.005 0.098 0.1 0 1000 0 edit
+note_add 1003 1 0 84 41 0.824886727128 0.5 6 0 1 0.005 0.098 0.1 0 1000 0 edit
+note_add 1003 1 0 90 48 0.695498873295 0.5 12 0 1 0.005 0.098 0.1 0 1000 0 edit
+note_add 1003 1 0 102 44 0.681381863923 0.5 6 0 1 0.005 0.098 0.1 0 1000 0 edit
+note_add 1003 1 0 108 48 0.82969480232 0.5 12 0 1 0.005 0.098 0.1 0 1000 0 edit
+note_add 1003 1 0 120 32 0.759419195855 0.5 24 0 1 0.005 0.098 0.1 0 1000 0 edit
diff --git a/common/Resources/Loops/loop12_4.ttl b/common/Resources/Loops/loop12_4.ttl
new file mode 100644
index 0000000..5ebf102
--- /dev/null
+++ b/common/Resources/Loops/loop12_4.ttl
@@ -0,0 +1,20 @@
+page_add 1 12 0 []
+note_add 1004 1 0 0 38 0.982488423346 0.5 6 0 1 0.005 0.098 0.1 0 1000 0 edit
+note_add 1004 1 0 6 32 0.746497368612 0.5 18 0 1 0.005 0.098 0.1 0 1000 0 edit
+note_add 1004 1 0 24 46 0.84791183248 0.5 18 0 1 0.005 0.098 0.1 0 1000 0 edit
+note_add 1004 1 0 42 48 0.742155800286 0.5 3 0 1 0.005 0.098 0.1 0 1000 0 edit
+note_add 1004 1 0 45 32 0.705971538547 0.5 3 0 1 0.005 0.098 0.1 0 1000 0 edit
+note_add 1004 1 0 48 32 0.890978181258 0.5 18 0 1 0.005 0.098 0.1 0 1000 0 edit
+note_add 1004 1 0 66 46 0.704742764765 0.5 6 0 1 0.005 0.098 0.1 0 1000 0 edit
+note_add 1004 1 0 72 48 0.886736349118 0.5 6 0 1 0.005 0.098 0.1 0 1000 0 edit
+note_add 1004 1 0 78 38 0.714276723016 0.5 6 0 1 0.005 0.098 0.1 0 1000 0 edit
+note_add 1004 1 0 84 32 0.852158007953 0.5 3 0 1 0.005 0.098 0.1 0 1000 0 edit
+note_add 1004 1 0 87 46 0.697063459875 0.5 3 0 1 0.005 0.098 0.1 0 1000 0 edit
+note_add 1004 1 0 90 48 0.656877774714 0.5 12 0 1 0.005 0.098 0.1 0 1000 0 edit
+note_add 1004 1 0 102 32 0.73965562793 0.5 6 0 1 0.005 0.098 0.1 0 1000 0 edit
+note_add 1004 1 0 108 32 0.767961495682 0.5 6 0 1 0.005 0.098 0.1 0 1000 0 edit
+note_add 1004 1 0 114 46 0.654603393702 0.5 6 0 1 0.005 0.098 0.1 0 1000 0 edit
+note_add 1004 1 0 120 48 0.868872298326 0.5 6 0 1 0.005 0.098 0.1 0 1000 0 edit
+note_add 1004 1 0 126 38 0.652928638258 0.5 6 0 1 0.005 0.098 0.1 0 1000 0 edit
+note_add 1004 1 0 132 32 0.842574221551 0.5 6 0 1 0.005 0.098 0.1 0 1000 0 edit
+note_add 1004 1 0 138 46 0.654273808088 0.5 6 0 1 0.005 0.098 0.1 0 1000 0 edit
diff --git a/common/Resources/Sounds/acguit b/common/Resources/Sounds/acguit
new file mode 100644
index 0000000..2e28014
--- /dev/null
+++ b/common/Resources/Sounds/acguit
Binary files differ
diff --git a/common/Resources/Sounds/alarm b/common/Resources/Sounds/alarm
new file mode 100644
index 0000000..73b7628
--- /dev/null
+++ b/common/Resources/Sounds/alarm
Binary files differ
diff --git a/common/Resources/Sounds/armbone b/common/Resources/Sounds/armbone
new file mode 100644
index 0000000..38fc68a
--- /dev/null
+++ b/common/Resources/Sounds/armbone
Binary files differ
diff --git a/common/Resources/Sounds/au_pipes b/common/Resources/Sounds/au_pipes
new file mode 100644
index 0000000..0284d11
--- /dev/null
+++ b/common/Resources/Sounds/au_pipes
Binary files differ
diff --git a/common/Resources/Sounds/babylaugh b/common/Resources/Sounds/babylaugh
new file mode 100644
index 0000000..9c72bd3
--- /dev/null
+++ b/common/Resources/Sounds/babylaugh
Binary files differ
diff --git a/common/Resources/Sounds/babyuhoh b/common/Resources/Sounds/babyuhoh
new file mode 100644
index 0000000..705f61a
--- /dev/null
+++ b/common/Resources/Sounds/babyuhoh
Binary files differ
diff --git a/common/Resources/Sounds/banjo b/common/Resources/Sounds/banjo
new file mode 100644
index 0000000..f15278d
--- /dev/null
+++ b/common/Resources/Sounds/banjo
Binary files differ
diff --git a/common/Resources/Sounds/basse b/common/Resources/Sounds/basse
new file mode 100644
index 0000000..2bc1571
--- /dev/null
+++ b/common/Resources/Sounds/basse
Binary files differ
diff --git a/common/Resources/Sounds/basse2 b/common/Resources/Sounds/basse2
new file mode 100644
index 0000000..744d196
--- /dev/null
+++ b/common/Resources/Sounds/basse2
Binary files differ
diff --git a/common/Resources/Sounds/bird b/common/Resources/Sounds/bird
new file mode 100644
index 0000000..fbe8a29
--- /dev/null
+++ b/common/Resources/Sounds/bird
Binary files differ
diff --git a/common/Resources/Sounds/bottle b/common/Resources/Sounds/bottle
new file mode 100644
index 0000000..8f3d680
--- /dev/null
+++ b/common/Resources/Sounds/bottle
Binary files differ
diff --git a/common/Resources/Sounds/bubbles b/common/Resources/Sounds/bubbles
new file mode 100644
index 0000000..849ff02
--- /dev/null
+++ b/common/Resources/Sounds/bubbles
Binary files differ
diff --git a/common/Resources/Sounds/byke b/common/Resources/Sounds/byke
new file mode 100644
index 0000000..6f428b8
--- /dev/null
+++ b/common/Resources/Sounds/byke
Binary files differ
diff --git a/common/Resources/Sounds/camera b/common/Resources/Sounds/camera
new file mode 100644
index 0000000..8eaa5b5
--- /dev/null
+++ b/common/Resources/Sounds/camera
Binary files differ
diff --git a/common/Resources/Sounds/car b/common/Resources/Sounds/car
new file mode 100644
index 0000000..66e42ae
--- /dev/null
+++ b/common/Resources/Sounds/car
Binary files differ
diff --git a/common/Resources/Sounds/carhorn b/common/Resources/Sounds/carhorn
new file mode 100644
index 0000000..fbbd02b
--- /dev/null
+++ b/common/Resources/Sounds/carhorn
Binary files differ
diff --git a/common/Resources/Sounds/cat b/common/Resources/Sounds/cat
new file mode 100644
index 0000000..845ee8e
--- /dev/null
+++ b/common/Resources/Sounds/cat
Binary files differ
diff --git a/common/Resources/Sounds/cello b/common/Resources/Sounds/cello
new file mode 100644
index 0000000..31720df
--- /dev/null
+++ b/common/Resources/Sounds/cello
Binary files differ
diff --git a/common/Resources/Sounds/chiken b/common/Resources/Sounds/chiken
new file mode 100644
index 0000000..736bfd0
--- /dev/null
+++ b/common/Resources/Sounds/chiken
Binary files differ
diff --git a/common/Resources/Sounds/chimes b/common/Resources/Sounds/chimes
new file mode 100644
index 0000000..01c80e4
--- /dev/null
+++ b/common/Resources/Sounds/chimes
Binary files differ
diff --git a/common/Resources/Sounds/clang b/common/Resources/Sounds/clang
new file mode 100644
index 0000000..01476fc
--- /dev/null
+++ b/common/Resources/Sounds/clang
Binary files differ
diff --git a/common/Resources/Sounds/clang2 b/common/Resources/Sounds/clang2
new file mode 100644
index 0000000..cb1fed2
--- /dev/null
+++ b/common/Resources/Sounds/clang2
Binary files differ
diff --git a/common/Resources/Sounds/clarinette b/common/Resources/Sounds/clarinette
new file mode 100644
index 0000000..5ed08c2
--- /dev/null
+++ b/common/Resources/Sounds/clarinette
Binary files differ
diff --git a/common/Resources/Sounds/clavinet b/common/Resources/Sounds/clavinet
new file mode 100644
index 0000000..db88314
--- /dev/null
+++ b/common/Resources/Sounds/clavinet
Binary files differ
diff --git a/common/Resources/Sounds/cling b/common/Resources/Sounds/cling
new file mode 100644
index 0000000..db3525f
--- /dev/null
+++ b/common/Resources/Sounds/cling
Binary files differ
diff --git a/common/Resources/Sounds/cow b/common/Resources/Sounds/cow
new file mode 100644
index 0000000..5d31cf5
--- /dev/null
+++ b/common/Resources/Sounds/cow
Binary files differ
diff --git a/common/Resources/Sounds/crash b/common/Resources/Sounds/crash
new file mode 100644
index 0000000..8408175
--- /dev/null
+++ b/common/Resources/Sounds/crash
Binary files differ
diff --git a/common/Resources/Sounds/cricket b/common/Resources/Sounds/cricket
new file mode 100644
index 0000000..cb3504c
--- /dev/null
+++ b/common/Resources/Sounds/cricket
Binary files differ
diff --git a/common/Resources/Sounds/diceinst b/common/Resources/Sounds/diceinst
new file mode 100644
index 0000000..5a41341
--- /dev/null
+++ b/common/Resources/Sounds/diceinst
Binary files differ
diff --git a/common/Resources/Sounds/didjeridu b/common/Resources/Sounds/didjeridu
new file mode 100644
index 0000000..d7556e7
--- /dev/null
+++ b/common/Resources/Sounds/didjeridu
Binary files differ
diff --git a/common/Resources/Sounds/dog b/common/Resources/Sounds/dog
new file mode 100644
index 0000000..c1e8e22
--- /dev/null
+++ b/common/Resources/Sounds/dog
Binary files differ
diff --git a/common/Resources/Sounds/door b/common/Resources/Sounds/door
new file mode 100644
index 0000000..2b3b21a
--- /dev/null
+++ b/common/Resources/Sounds/door
Binary files differ
diff --git a/common/Resources/Sounds/drum1chine b/common/Resources/Sounds/drum1chine
new file mode 100644
index 0000000..bb29f18
--- /dev/null
+++ b/common/Resources/Sounds/drum1chine
Binary files differ
diff --git a/common/Resources/Sounds/drum1crash b/common/Resources/Sounds/drum1crash
new file mode 100644
index 0000000..5f520c2
--- /dev/null
+++ b/common/Resources/Sounds/drum1crash
Binary files differ
diff --git a/common/Resources/Sounds/drum1floortom b/common/Resources/Sounds/drum1floortom
new file mode 100644
index 0000000..f43cb2b
--- /dev/null
+++ b/common/Resources/Sounds/drum1floortom
Binary files differ
diff --git a/common/Resources/Sounds/drum1hardride b/common/Resources/Sounds/drum1hardride
new file mode 100644
index 0000000..94f052f
--- /dev/null
+++ b/common/Resources/Sounds/drum1hardride
Binary files differ
diff --git a/common/Resources/Sounds/drum1hatpedal b/common/Resources/Sounds/drum1hatpedal
new file mode 100644
index 0000000..0c0afe6
--- /dev/null
+++ b/common/Resources/Sounds/drum1hatpedal
Binary files differ
diff --git a/common/Resources/Sounds/drum1hatshoulder b/common/Resources/Sounds/drum1hatshoulder
new file mode 100644
index 0000000..395ef0b
--- /dev/null
+++ b/common/Resources/Sounds/drum1hatshoulder
Binary files differ
diff --git a/common/Resources/Sounds/drum1kick b/common/Resources/Sounds/drum1kick
new file mode 100644
index 0000000..0acfb56
--- /dev/null
+++ b/common/Resources/Sounds/drum1kick
Binary files differ
diff --git a/common/Resources/Sounds/drum1kit b/common/Resources/Sounds/drum1kit
new file mode 120000
index 0000000..f9dad7e
--- /dev/null
+++ b/common/Resources/Sounds/drum1kit
@@ -0,0 +1 @@
+drum1kick \ No newline at end of file
diff --git a/common/Resources/Sounds/drum1ridebell b/common/Resources/Sounds/drum1ridebell
new file mode 100644
index 0000000..6f6b6ce
--- /dev/null
+++ b/common/Resources/Sounds/drum1ridebell
Binary files differ
diff --git a/common/Resources/Sounds/drum1snare b/common/Resources/Sounds/drum1snare
new file mode 100644
index 0000000..54a6372
--- /dev/null
+++ b/common/Resources/Sounds/drum1snare
Binary files differ
diff --git a/common/Resources/Sounds/drum1snaresidestick b/common/Resources/Sounds/drum1snaresidestick
new file mode 100644
index 0000000..a99e846
--- /dev/null
+++ b/common/Resources/Sounds/drum1snaresidestick
Binary files differ
diff --git a/common/Resources/Sounds/drum1splash b/common/Resources/Sounds/drum1splash
new file mode 100644
index 0000000..49a334e
--- /dev/null
+++ b/common/Resources/Sounds/drum1splash
Binary files differ
diff --git a/common/Resources/Sounds/drum1tom b/common/Resources/Sounds/drum1tom
new file mode 100644
index 0000000..ed1464c
--- /dev/null
+++ b/common/Resources/Sounds/drum1tom
Binary files differ
diff --git a/common/Resources/Sounds/drum2darbukadoom b/common/Resources/Sounds/drum2darbukadoom
new file mode 100644
index 0000000..5a90725
--- /dev/null
+++ b/common/Resources/Sounds/drum2darbukadoom
Binary files differ
diff --git a/common/Resources/Sounds/drum2darbukafinger b/common/Resources/Sounds/drum2darbukafinger
new file mode 100644
index 0000000..163aa3c
--- /dev/null
+++ b/common/Resources/Sounds/drum2darbukafinger
Binary files differ
diff --git a/common/Resources/Sounds/drum2darbukapied b/common/Resources/Sounds/drum2darbukapied
new file mode 100644
index 0000000..006586a
--- /dev/null
+++ b/common/Resources/Sounds/drum2darbukapied
Binary files differ
diff --git a/common/Resources/Sounds/drum2darbukapiedsoft b/common/Resources/Sounds/drum2darbukapiedsoft
new file mode 100644
index 0000000..cf2aaa8
--- /dev/null
+++ b/common/Resources/Sounds/drum2darbukapiedsoft
Binary files differ
diff --git a/common/Resources/Sounds/drum2darbukaroll b/common/Resources/Sounds/drum2darbukaroll
new file mode 100644
index 0000000..ded7a31
--- /dev/null
+++ b/common/Resources/Sounds/drum2darbukaroll
Binary files differ
diff --git a/common/Resources/Sounds/drum2darbukaslap b/common/Resources/Sounds/drum2darbukaslap
new file mode 100644
index 0000000..fd70b88
--- /dev/null
+++ b/common/Resources/Sounds/drum2darbukaslap
Binary files differ
diff --git a/common/Resources/Sounds/drum2darbukatak b/common/Resources/Sounds/drum2darbukatak
new file mode 100644
index 0000000..329f619
--- /dev/null
+++ b/common/Resources/Sounds/drum2darbukatak
Binary files differ
diff --git a/common/Resources/Sounds/drum2hatflanger b/common/Resources/Sounds/drum2hatflanger
new file mode 100644
index 0000000..9dd9389
--- /dev/null
+++ b/common/Resources/Sounds/drum2hatflanger
Binary files differ
diff --git a/common/Resources/Sounds/drum2hatpied b/common/Resources/Sounds/drum2hatpied
new file mode 100644
index 0000000..84e774e
--- /dev/null
+++ b/common/Resources/Sounds/drum2hatpied
Binary files differ
diff --git a/common/Resources/Sounds/drum2hatpied2 b/common/Resources/Sounds/drum2hatpied2
new file mode 100644
index 0000000..cd21b17
--- /dev/null
+++ b/common/Resources/Sounds/drum2hatpied2
Binary files differ
diff --git a/common/Resources/Sounds/drum2kit b/common/Resources/Sounds/drum2kit
new file mode 120000
index 0000000..abe57a3
--- /dev/null
+++ b/common/Resources/Sounds/drum2kit
@@ -0,0 +1 @@
+drum2darbukadoom \ No newline at end of file
diff --git a/common/Resources/Sounds/drum2tambourinepied b/common/Resources/Sounds/drum2tambourinepied
new file mode 100644
index 0000000..d6b566a
--- /dev/null
+++ b/common/Resources/Sounds/drum2tambourinepied
Binary files differ
diff --git a/common/Resources/Sounds/drum2tambourinepiedsoft b/common/Resources/Sounds/drum2tambourinepiedsoft
new file mode 100644
index 0000000..4da2ea6
--- /dev/null
+++ b/common/Resources/Sounds/drum2tambourinepiedsoft
Binary files differ
diff --git a/common/Resources/Sounds/drum3cowbell b/common/Resources/Sounds/drum3cowbell
new file mode 100644
index 0000000..3c52687
--- /dev/null
+++ b/common/Resources/Sounds/drum3cowbell
Binary files differ
diff --git a/common/Resources/Sounds/drum3cowbelltip b/common/Resources/Sounds/drum3cowbelltip
new file mode 100644
index 0000000..7b79fe2
--- /dev/null
+++ b/common/Resources/Sounds/drum3cowbelltip
Binary files differ
diff --git a/common/Resources/Sounds/drum3cup b/common/Resources/Sounds/drum3cup
new file mode 100644
index 0000000..6cf6da2
--- /dev/null
+++ b/common/Resources/Sounds/drum3cup
Binary files differ
diff --git a/common/Resources/Sounds/drum3djembelow b/common/Resources/Sounds/drum3djembelow
new file mode 100644
index 0000000..ad5fd0a
--- /dev/null
+++ b/common/Resources/Sounds/drum3djembelow
Binary files differ
diff --git a/common/Resources/Sounds/drum3djembemid b/common/Resources/Sounds/drum3djembemid
new file mode 100644
index 0000000..55b6d9f
--- /dev/null
+++ b/common/Resources/Sounds/drum3djembemid
Binary files differ
diff --git a/common/Resources/Sounds/drum3djembesidestick b/common/Resources/Sounds/drum3djembesidestick
new file mode 100644
index 0000000..94c29e6
--- /dev/null
+++ b/common/Resources/Sounds/drum3djembesidestick
Binary files differ
diff --git a/common/Resources/Sounds/drum3djembeslap b/common/Resources/Sounds/drum3djembeslap
new file mode 100644
index 0000000..d201e52
--- /dev/null
+++ b/common/Resources/Sounds/drum3djembeslap
Binary files differ
diff --git a/common/Resources/Sounds/drum3djembestickmid b/common/Resources/Sounds/drum3djembestickmid
new file mode 100644
index 0000000..9da83ba
--- /dev/null
+++ b/common/Resources/Sounds/drum3djembestickmid
Binary files differ
diff --git a/common/Resources/Sounds/drum3kit b/common/Resources/Sounds/drum3kit
new file mode 120000
index 0000000..2e6cdc8
--- /dev/null
+++ b/common/Resources/Sounds/drum3kit
@@ -0,0 +1 @@
+drum3djembesidestick \ No newline at end of file
diff --git a/common/Resources/Sounds/drum3metalstand b/common/Resources/Sounds/drum3metalstand
new file mode 100644
index 0000000..059efcc
--- /dev/null
+++ b/common/Resources/Sounds/drum3metalstand
Binary files differ
diff --git a/common/Resources/Sounds/drum3pedalperc b/common/Resources/Sounds/drum3pedalperc
new file mode 100644
index 0000000..c271d66
--- /dev/null
+++ b/common/Resources/Sounds/drum3pedalperc
Binary files differ
diff --git a/common/Resources/Sounds/drum3rainstick b/common/Resources/Sounds/drum3rainstick
new file mode 100644
index 0000000..561d0d9
--- /dev/null
+++ b/common/Resources/Sounds/drum3rainstick
Binary files differ
diff --git a/common/Resources/Sounds/drum3tambourinehigh b/common/Resources/Sounds/drum3tambourinehigh
new file mode 100644
index 0000000..cf2c61e
--- /dev/null
+++ b/common/Resources/Sounds/drum3tambourinehigh
Binary files differ
diff --git a/common/Resources/Sounds/drum3tambourinelow b/common/Resources/Sounds/drum3tambourinelow
new file mode 100644
index 0000000..ff8e278
--- /dev/null
+++ b/common/Resources/Sounds/drum3tambourinelow
Binary files differ
diff --git a/common/Resources/Sounds/drum4afrofeet b/common/Resources/Sounds/drum4afrofeet
new file mode 100644
index 0000000..b2044da
--- /dev/null
+++ b/common/Resources/Sounds/drum4afrofeet
Binary files differ
diff --git a/common/Resources/Sounds/drum4fingersn b/common/Resources/Sounds/drum4fingersn
new file mode 100644
index 0000000..e6b60a5
--- /dev/null
+++ b/common/Resources/Sounds/drum4fingersn
Binary files differ
diff --git a/common/Resources/Sounds/drum4kit b/common/Resources/Sounds/drum4kit
new file mode 120000
index 0000000..5f87174
--- /dev/null
+++ b/common/Resources/Sounds/drum4kit
@@ -0,0 +1 @@
+drum4tr909sn \ No newline at end of file
diff --git a/common/Resources/Sounds/drum4mutecuic b/common/Resources/Sounds/drum4mutecuic
new file mode 100644
index 0000000..ef0c0c0
--- /dev/null
+++ b/common/Resources/Sounds/drum4mutecuic
Binary files differ
diff --git a/common/Resources/Sounds/drum4stompbass b/common/Resources/Sounds/drum4stompbass
new file mode 100644
index 0000000..68dd316
--- /dev/null
+++ b/common/Resources/Sounds/drum4stompbass
Binary files differ
diff --git a/common/Resources/Sounds/drum4tambouri b/common/Resources/Sounds/drum4tambouri
new file mode 100644
index 0000000..5b32be2
--- /dev/null
+++ b/common/Resources/Sounds/drum4tambouri
Binary files differ
diff --git a/common/Resources/Sounds/drum4tr707clap b/common/Resources/Sounds/drum4tr707clap
new file mode 100644
index 0000000..f9ea03e
--- /dev/null
+++ b/common/Resources/Sounds/drum4tr707clap
Binary files differ
diff --git a/common/Resources/Sounds/drum4tr707open b/common/Resources/Sounds/drum4tr707open
new file mode 100644
index 0000000..f7d54bf
--- /dev/null
+++ b/common/Resources/Sounds/drum4tr707open
Binary files differ
diff --git a/common/Resources/Sounds/drum4tr808closed b/common/Resources/Sounds/drum4tr808closed
new file mode 100644
index 0000000..8995edd
--- /dev/null
+++ b/common/Resources/Sounds/drum4tr808closed
Binary files differ
diff --git a/common/Resources/Sounds/drum4tr808sn b/common/Resources/Sounds/drum4tr808sn
new file mode 100644
index 0000000..adde850
--- /dev/null
+++ b/common/Resources/Sounds/drum4tr808sn
Binary files differ
diff --git a/common/Resources/Sounds/drum4tr909bass b/common/Resources/Sounds/drum4tr909bass
new file mode 100644
index 0000000..6420213
--- /dev/null
+++ b/common/Resources/Sounds/drum4tr909bass
Binary files differ
diff --git a/common/Resources/Sounds/drum4tr909kick b/common/Resources/Sounds/drum4tr909kick
new file mode 100644
index 0000000..6e33dd3
--- /dev/null
+++ b/common/Resources/Sounds/drum4tr909kick
Binary files differ
diff --git a/common/Resources/Sounds/drum4tr909sn b/common/Resources/Sounds/drum4tr909sn
new file mode 100644
index 0000000..486ed42
--- /dev/null
+++ b/common/Resources/Sounds/drum4tr909sn
Binary files differ
diff --git a/common/Resources/Sounds/drum5agogoaigu b/common/Resources/Sounds/drum5agogoaigu
new file mode 100644
index 0000000..3889332
--- /dev/null
+++ b/common/Resources/Sounds/drum5agogoaigu
Binary files differ
diff --git a/common/Resources/Sounds/drum5agogograve b/common/Resources/Sounds/drum5agogograve
new file mode 100644
index 0000000..5717751
--- /dev/null
+++ b/common/Resources/Sounds/drum5agogograve
Binary files differ
diff --git a/common/Resources/Sounds/drum5bongoaiguouvert b/common/Resources/Sounds/drum5bongoaiguouvert
new file mode 100644
index 0000000..95aba33
--- /dev/null
+++ b/common/Resources/Sounds/drum5bongoaiguouvert
Binary files differ
diff --git a/common/Resources/Sounds/drum5bongograveouvert b/common/Resources/Sounds/drum5bongograveouvert
new file mode 100644
index 0000000..d7d1e58
--- /dev/null
+++ b/common/Resources/Sounds/drum5bongograveouvert
Binary files differ
diff --git a/common/Resources/Sounds/drum5congaaiguouvert b/common/Resources/Sounds/drum5congaaiguouvert
new file mode 100644
index 0000000..a59ce75
--- /dev/null
+++ b/common/Resources/Sounds/drum5congaaiguouvert
Binary files differ
diff --git a/common/Resources/Sounds/drum5congagraveferme b/common/Resources/Sounds/drum5congagraveferme
new file mode 100644
index 0000000..a49c459
--- /dev/null
+++ b/common/Resources/Sounds/drum5congagraveferme
Binary files differ
diff --git a/common/Resources/Sounds/drum5congagraveouvert b/common/Resources/Sounds/drum5congagraveouvert
new file mode 100644
index 0000000..3b9503c
--- /dev/null
+++ b/common/Resources/Sounds/drum5congagraveouvert
Binary files differ
diff --git a/common/Resources/Sounds/drum5guiroretour b/common/Resources/Sounds/drum5guiroretour
new file mode 100644
index 0000000..025ebfb
--- /dev/null
+++ b/common/Resources/Sounds/drum5guiroretour
Binary files differ
diff --git a/common/Resources/Sounds/drum5kit b/common/Resources/Sounds/drum5kit
new file mode 120000
index 0000000..e1400d6
--- /dev/null
+++ b/common/Resources/Sounds/drum5kit
@@ -0,0 +1 @@
+drum5bongoaiguouvert \ No newline at end of file
diff --git a/common/Resources/Sounds/drum5quicaaigu b/common/Resources/Sounds/drum5quicaaigu
new file mode 100644
index 0000000..d952c8c
--- /dev/null
+++ b/common/Resources/Sounds/drum5quicaaigu
Binary files differ
diff --git a/common/Resources/Sounds/drum5quicamedium b/common/Resources/Sounds/drum5quicamedium
new file mode 100644
index 0000000..57e92e6
--- /dev/null
+++ b/common/Resources/Sounds/drum5quicamedium
Binary files differ
diff --git a/common/Resources/Sounds/drum5timablesaiguslap b/common/Resources/Sounds/drum5timablesaiguslap
new file mode 100644
index 0000000..1b531b0
--- /dev/null
+++ b/common/Resources/Sounds/drum5timablesaiguslap
Binary files differ
diff --git a/common/Resources/Sounds/drum5timablesslap b/common/Resources/Sounds/drum5timablesslap
new file mode 100644
index 0000000..1e5ec3e
--- /dev/null
+++ b/common/Resources/Sounds/drum5timablesslap
Binary files differ
diff --git a/common/Resources/Sounds/drum5vibraslap b/common/Resources/Sounds/drum5vibraslap
new file mode 100644
index 0000000..e539891
--- /dev/null
+++ b/common/Resources/Sounds/drum5vibraslap
Binary files differ
diff --git a/common/Resources/Sounds/drum6kit b/common/Resources/Sounds/drum6kit
new file mode 120000
index 0000000..332b551
--- /dev/null
+++ b/common/Resources/Sounds/drum6kit
@@ -0,0 +1 @@
+drum6madal05 \ No newline at end of file
diff --git a/common/Resources/Sounds/drum6madal00 b/common/Resources/Sounds/drum6madal00
new file mode 100644
index 0000000..6af692f
--- /dev/null
+++ b/common/Resources/Sounds/drum6madal00
Binary files differ
diff --git a/common/Resources/Sounds/drum6madal01 b/common/Resources/Sounds/drum6madal01
new file mode 100644
index 0000000..0a7dbdb
--- /dev/null
+++ b/common/Resources/Sounds/drum6madal01
Binary files differ
diff --git a/common/Resources/Sounds/drum6madal02 b/common/Resources/Sounds/drum6madal02
new file mode 100644
index 0000000..e12a412
--- /dev/null
+++ b/common/Resources/Sounds/drum6madal02
Binary files differ
diff --git a/common/Resources/Sounds/drum6madal03 b/common/Resources/Sounds/drum6madal03
new file mode 100644
index 0000000..b3a210e
--- /dev/null
+++ b/common/Resources/Sounds/drum6madal03
Binary files differ
diff --git a/common/Resources/Sounds/drum6madal04 b/common/Resources/Sounds/drum6madal04
new file mode 100644
index 0000000..fcef18f
--- /dev/null
+++ b/common/Resources/Sounds/drum6madal04
Binary files differ
diff --git a/common/Resources/Sounds/drum6madal05 b/common/Resources/Sounds/drum6madal05
new file mode 100644
index 0000000..a409f6c
--- /dev/null
+++ b/common/Resources/Sounds/drum6madal05
Binary files differ
diff --git a/common/Resources/Sounds/drum6madal06 b/common/Resources/Sounds/drum6madal06
new file mode 100644
index 0000000..e7c307d
--- /dev/null
+++ b/common/Resources/Sounds/drum6madal06
Binary files differ
diff --git a/common/Resources/Sounds/drum6madal07 b/common/Resources/Sounds/drum6madal07
new file mode 100644
index 0000000..25bf251
--- /dev/null
+++ b/common/Resources/Sounds/drum6madal07
Binary files differ
diff --git a/common/Resources/Sounds/drum6madal08 b/common/Resources/Sounds/drum6madal08
new file mode 100644
index 0000000..4bcba5a
--- /dev/null
+++ b/common/Resources/Sounds/drum6madal08
Binary files differ
diff --git a/common/Resources/Sounds/drum6madal09 b/common/Resources/Sounds/drum6madal09
new file mode 100644
index 0000000..3cb92ee
--- /dev/null
+++ b/common/Resources/Sounds/drum6madal09
Binary files differ
diff --git a/common/Resources/Sounds/drum6madal10 b/common/Resources/Sounds/drum6madal10
new file mode 100644
index 0000000..af6f451
--- /dev/null
+++ b/common/Resources/Sounds/drum6madal10
Binary files differ
diff --git a/common/Resources/Sounds/drum6madal11 b/common/Resources/Sounds/drum6madal11
new file mode 100644
index 0000000..cddcf4a
--- /dev/null
+++ b/common/Resources/Sounds/drum6madal11
Binary files differ
diff --git a/common/Resources/Sounds/drum6madal12 b/common/Resources/Sounds/drum6madal12
new file mode 100644
index 0000000..1b3dc5b
--- /dev/null
+++ b/common/Resources/Sounds/drum6madal12
Binary files differ
diff --git a/common/Resources/Sounds/duck b/common/Resources/Sounds/duck
new file mode 100644
index 0000000..37b5f85
--- /dev/null
+++ b/common/Resources/Sounds/duck
Binary files differ
diff --git a/common/Resources/Sounds/duck2 b/common/Resources/Sounds/duck2
new file mode 100644
index 0000000..1c62622
--- /dev/null
+++ b/common/Resources/Sounds/duck2
Binary files differ
diff --git a/common/Resources/Sounds/fingercymbals b/common/Resources/Sounds/fingercymbals
new file mode 100644
index 0000000..aa1f221
--- /dev/null
+++ b/common/Resources/Sounds/fingercymbals
Binary files differ
diff --git a/common/Resources/Sounds/flugel b/common/Resources/Sounds/flugel
new file mode 100644
index 0000000..4367cc2
--- /dev/null
+++ b/common/Resources/Sounds/flugel
Binary files differ
diff --git a/common/Resources/Sounds/flute b/common/Resources/Sounds/flute
new file mode 100644
index 0000000..68a2580
--- /dev/null
+++ b/common/Resources/Sounds/flute
Binary files differ
diff --git a/common/Resources/Sounds/foghorn b/common/Resources/Sounds/foghorn
new file mode 100644
index 0000000..65549e6
--- /dev/null
+++ b/common/Resources/Sounds/foghorn
Binary files differ
diff --git a/common/Resources/Sounds/frogs b/common/Resources/Sounds/frogs
new file mode 100644
index 0000000..9b2831a
--- /dev/null
+++ b/common/Resources/Sounds/frogs
Binary files differ
diff --git a/common/Resources/Sounds/gam b/common/Resources/Sounds/gam
new file mode 100644
index 0000000..dca077b
--- /dev/null
+++ b/common/Resources/Sounds/gam
Binary files differ
diff --git a/common/Resources/Sounds/guidice1 b/common/Resources/Sounds/guidice1
new file mode 100644
index 0000000..9e48310
--- /dev/null
+++ b/common/Resources/Sounds/guidice1
Binary files differ
diff --git a/common/Resources/Sounds/guidice10 b/common/Resources/Sounds/guidice10
new file mode 100644
index 0000000..8da4267
--- /dev/null
+++ b/common/Resources/Sounds/guidice10
Binary files differ
diff --git a/common/Resources/Sounds/guidice2 b/common/Resources/Sounds/guidice2
new file mode 100644
index 0000000..7b12043
--- /dev/null
+++ b/common/Resources/Sounds/guidice2
Binary files differ
diff --git a/common/Resources/Sounds/guidice3 b/common/Resources/Sounds/guidice3
new file mode 100644
index 0000000..68d1f45
--- /dev/null
+++ b/common/Resources/Sounds/guidice3
Binary files differ
diff --git a/common/Resources/Sounds/guidice4 b/common/Resources/Sounds/guidice4
new file mode 100644
index 0000000..3d72119
--- /dev/null
+++ b/common/Resources/Sounds/guidice4
Binary files differ
diff --git a/common/Resources/Sounds/guidice5 b/common/Resources/Sounds/guidice5
new file mode 100644
index 0000000..79cc786
--- /dev/null
+++ b/common/Resources/Sounds/guidice5
Binary files differ
diff --git a/common/Resources/Sounds/guidice6 b/common/Resources/Sounds/guidice6
new file mode 100644
index 0000000..dc2f756
--- /dev/null
+++ b/common/Resources/Sounds/guidice6
Binary files differ
diff --git a/common/Resources/Sounds/guidice7 b/common/Resources/Sounds/guidice7
new file mode 100644
index 0000000..af341b7
--- /dev/null
+++ b/common/Resources/Sounds/guidice7
Binary files differ
diff --git a/common/Resources/Sounds/guidice8 b/common/Resources/Sounds/guidice8
new file mode 100644
index 0000000..9901020
--- /dev/null
+++ b/common/Resources/Sounds/guidice8
Binary files differ
diff --git a/common/Resources/Sounds/guidice9 b/common/Resources/Sounds/guidice9
new file mode 100644
index 0000000..8798781
--- /dev/null
+++ b/common/Resources/Sounds/guidice9
Binary files differ
diff --git a/common/Resources/Sounds/guit b/common/Resources/Sounds/guit
new file mode 100644
index 0000000..dfb1866
--- /dev/null
+++ b/common/Resources/Sounds/guit
Binary files differ
diff --git a/common/Resources/Sounds/guit2 b/common/Resources/Sounds/guit2
new file mode 100644
index 0000000..fcb9163
--- /dev/null
+++ b/common/Resources/Sounds/guit2
Binary files differ
diff --git a/common/Resources/Sounds/guitmute b/common/Resources/Sounds/guitmute
new file mode 100644
index 0000000..93026d6
--- /dev/null
+++ b/common/Resources/Sounds/guitmute
Binary files differ
diff --git a/common/Resources/Sounds/guitshort b/common/Resources/Sounds/guitshort
new file mode 100644
index 0000000..698364b
--- /dev/null
+++ b/common/Resources/Sounds/guitshort
Binary files differ
diff --git a/common/Resources/Sounds/harmonica b/common/Resources/Sounds/harmonica
new file mode 100644
index 0000000..7b0af9f
--- /dev/null
+++ b/common/Resources/Sounds/harmonica
Binary files differ
diff --git a/common/Resources/Sounds/harmonium b/common/Resources/Sounds/harmonium
new file mode 100644
index 0000000..5bc5fcb
--- /dev/null
+++ b/common/Resources/Sounds/harmonium
Binary files differ
diff --git a/common/Resources/Sounds/harpsichord b/common/Resources/Sounds/harpsichord
new file mode 100644
index 0000000..dac451f
--- /dev/null
+++ b/common/Resources/Sounds/harpsichord
Binary files differ
diff --git a/common/Resources/Sounds/hey b/common/Resources/Sounds/hey
new file mode 100644
index 0000000..0bd7b20
--- /dev/null
+++ b/common/Resources/Sounds/hey
Binary files differ
diff --git a/common/Resources/Sounds/horse b/common/Resources/Sounds/horse
new file mode 100644
index 0000000..b7756a3
--- /dev/null
+++ b/common/Resources/Sounds/horse
Binary files differ
diff --git a/common/Resources/Sounds/kalimba b/common/Resources/Sounds/kalimba
new file mode 100644
index 0000000..2e02b48
--- /dev/null
+++ b/common/Resources/Sounds/kalimba
Binary files differ
diff --git a/common/Resources/Sounds/koto b/common/Resources/Sounds/koto
new file mode 100644
index 0000000..9279a7f
--- /dev/null
+++ b/common/Resources/Sounds/koto
Binary files differ
diff --git a/common/Resources/Sounds/laugh b/common/Resources/Sounds/laugh
new file mode 100644
index 0000000..05483ce
--- /dev/null
+++ b/common/Resources/Sounds/laugh
Binary files differ
diff --git a/common/Resources/Sounds/mando b/common/Resources/Sounds/mando
new file mode 100644
index 0000000..092125b
--- /dev/null
+++ b/common/Resources/Sounds/mando
Binary files differ
diff --git a/common/Resources/Sounds/marimba b/common/Resources/Sounds/marimba
new file mode 100644
index 0000000..489ba71
--- /dev/null
+++ b/common/Resources/Sounds/marimba
Binary files differ
diff --git a/common/Resources/Sounds/mic1 b/common/Resources/Sounds/mic1
new file mode 100644
index 0000000..d26b87b
--- /dev/null
+++ b/common/Resources/Sounds/mic1
Binary files differ
diff --git a/common/Resources/Sounds/mic2 b/common/Resources/Sounds/mic2
new file mode 100644
index 0000000..d26b87b
--- /dev/null
+++ b/common/Resources/Sounds/mic2
Binary files differ
diff --git a/common/Resources/Sounds/mic3 b/common/Resources/Sounds/mic3
new file mode 100644
index 0000000..d26b87b
--- /dev/null
+++ b/common/Resources/Sounds/mic3
Binary files differ
diff --git a/common/Resources/Sounds/mic4 b/common/Resources/Sounds/mic4
new file mode 100644
index 0000000..d26b87b
--- /dev/null
+++ b/common/Resources/Sounds/mic4
Binary files differ
diff --git a/common/Resources/Sounds/ocarina b/common/Resources/Sounds/ocarina
new file mode 100644
index 0000000..7b00cc6
--- /dev/null
+++ b/common/Resources/Sounds/ocarina
Binary files differ
diff --git a/common/Resources/Sounds/ounk b/common/Resources/Sounds/ounk
new file mode 100644
index 0000000..1272c5f
--- /dev/null
+++ b/common/Resources/Sounds/ounk
Binary files differ
diff --git a/common/Resources/Sounds/ow b/common/Resources/Sounds/ow
new file mode 100644
index 0000000..8270199
--- /dev/null
+++ b/common/Resources/Sounds/ow
Binary files differ
diff --git a/common/Resources/Sounds/piano b/common/Resources/Sounds/piano
new file mode 100644
index 0000000..f98a513
--- /dev/null
+++ b/common/Resources/Sounds/piano
Binary files differ
diff --git a/common/Resources/Sounds/plane b/common/Resources/Sounds/plane
new file mode 100644
index 0000000..d20142a
--- /dev/null
+++ b/common/Resources/Sounds/plane
Binary files differ
diff --git a/common/Resources/Sounds/rhodes b/common/Resources/Sounds/rhodes
new file mode 100644
index 0000000..16cd8ec
--- /dev/null
+++ b/common/Resources/Sounds/rhodes
Binary files differ
diff --git a/common/Resources/Sounds/sarangi b/common/Resources/Sounds/sarangi
new file mode 100644
index 0000000..69bde54
--- /dev/null
+++ b/common/Resources/Sounds/sarangi
Binary files differ
diff --git a/common/Resources/Sounds/saxo b/common/Resources/Sounds/saxo
new file mode 100644
index 0000000..16de921
--- /dev/null
+++ b/common/Resources/Sounds/saxo
Binary files differ
diff --git a/common/Resources/Sounds/saxsoprano b/common/Resources/Sounds/saxsoprano
new file mode 100644
index 0000000..b9f63e9
--- /dev/null
+++ b/common/Resources/Sounds/saxsoprano
Binary files differ
diff --git a/common/Resources/Sounds/sheep b/common/Resources/Sounds/sheep
new file mode 100644
index 0000000..178bb43
--- /dev/null
+++ b/common/Resources/Sounds/sheep
Binary files differ
diff --git a/common/Resources/Sounds/shenai b/common/Resources/Sounds/shenai
new file mode 100644
index 0000000..115f125
--- /dev/null
+++ b/common/Resources/Sounds/shenai
Binary files differ
diff --git a/common/Resources/Sounds/sitar b/common/Resources/Sounds/sitar
new file mode 100644
index 0000000..6fdc321
--- /dev/null
+++ b/common/Resources/Sounds/sitar
Binary files differ
diff --git a/common/Resources/Sounds/slap b/common/Resources/Sounds/slap
new file mode 100644
index 0000000..6e1f375
--- /dev/null
+++ b/common/Resources/Sounds/slap
Binary files differ
diff --git a/common/Resources/Sounds/templebell b/common/Resources/Sounds/templebell
new file mode 100644
index 0000000..705fbbc
--- /dev/null
+++ b/common/Resources/Sounds/templebell
Binary files differ
diff --git a/common/Resources/Sounds/triangle b/common/Resources/Sounds/triangle
new file mode 100644
index 0000000..8c3c1b9
--- /dev/null
+++ b/common/Resources/Sounds/triangle
Binary files differ
diff --git a/common/Resources/Sounds/trumpet b/common/Resources/Sounds/trumpet
new file mode 100644
index 0000000..3ce006d
--- /dev/null
+++ b/common/Resources/Sounds/trumpet
Binary files differ
diff --git a/common/Resources/Sounds/tuba b/common/Resources/Sounds/tuba
new file mode 100644
index 0000000..9e47196
--- /dev/null
+++ b/common/Resources/Sounds/tuba
Binary files differ
diff --git a/common/Resources/Sounds/ukulele b/common/Resources/Sounds/ukulele
new file mode 100644
index 0000000..bfacc40
--- /dev/null
+++ b/common/Resources/Sounds/ukulele
Binary files differ
diff --git a/common/Resources/Sounds/violin b/common/Resources/Sounds/violin
new file mode 100644
index 0000000..f89733c
--- /dev/null
+++ b/common/Resources/Sounds/violin
Binary files differ
diff --git a/common/Resources/Sounds/voix b/common/Resources/Sounds/voix
new file mode 100644
index 0000000..87f6ca6
--- /dev/null
+++ b/common/Resources/Sounds/voix
Binary files differ
diff --git a/common/Resources/Sounds/water b/common/Resources/Sounds/water
new file mode 100644
index 0000000..c6cee2e
--- /dev/null
+++ b/common/Resources/Sounds/water
Binary files differ
diff --git a/common/Resources/Sounds/zap b/common/Resources/Sounds/zap
new file mode 100644
index 0000000..e401f6b
--- /dev/null
+++ b/common/Resources/Sounds/zap
Binary files differ
diff --git a/common/Resources/crop.csd b/common/Resources/crop.csd
new file mode 100644
index 0000000..483e578
--- /dev/null
+++ b/common/Resources/crop.csd
@@ -0,0 +1,78 @@
+<CsoundSynthesizer>
+
+<CsOptions>
+-W -d -n
+</CsOptions>
+
+<CsInstruments>
+
+sr=16000
+ksmps=64
+nchnls=1
+
+/****************************************************************
+Playing temp file
+****************************************************************/
+instr 1
+Spath strget 999
+Stempfile strcat Spath, "/tempMic.wav"
+asig diskin Stempfile, 1
+gasig dcblock asig
+
+endin
+
+/****************************************************************
+Crop silence at the beginning
+****************************************************************/
+instr 2
+ktimer timeinstk
+ain = gasig
+krms rms ain
+if ktimer > 40 then
+ ktrig trigger krms, 1500, 0
+ if ktrig == 1 then
+ event "i", 3, 0, 2
+ event "i", 4, 2, 0.01
+ turnoff
+ endif
+endif
+endin
+
+/****************************************************************
+recording
+****************************************************************/
+instr 3
+kenv adsr 0.01, 0.05, .9, 0.01
+
+adel delay gasig, .005
+
+Spath strget 999
+Sfile strcat Spath, "/micTemp.wav"
+
+ihandle fiopen Sfile, 2
+
+fout Sfile, 2, adel*kenv
+
+;out adel*kenv
+adel = 0
+endin
+
+/****************************************************************
+Audio input recording ( closing file )
+****************************************************************/
+instr 4
+Spath strget 999
+Sfile strcat Spath, "/micTemp.wav"
+ficlose Sfile
+endin
+
+
+</CsInstruments>
+
+<CsScore>
+f1 0 8192 10 1
+i1 0 4
+i2 0 4
+</CsScore>
+
+</CsoundSynthesizer>
diff --git a/common/Resources/cropSynthLab.csd b/common/Resources/cropSynthLab.csd
new file mode 100644
index 0000000..4abf203
--- /dev/null
+++ b/common/Resources/cropSynthLab.csd
@@ -0,0 +1,77 @@
+<CsoundSynthesizer>
+
+<CsOptions>
+-W -d -n
+</CsOptions>
+
+<CsInstruments>
+
+sr=16000
+ksmps=64
+nchnls=1
+
+/****************************************************************
+Playing temp file
+****************************************************************/
+instr 1
+
+Spath strget 999
+Stempfile strcat Spath, "/tempMic.wav"
+gilen filelen Stempfile
+p3 = gilen
+asig diskin Stempfile, 1
+gasig dcblock asig
+
+endin
+
+/****************************************************************
+Crop silence at the beginning
+****************************************************************/
+instr 2
+ktimer timeinstk
+ain = gasig
+if ktimer > 40 then
+ event "i", 3, 0, gilen - 0.2
+ event "i", 4, gilen - 0.2, 0.01
+ turnoff
+endif
+endin
+
+/****************************************************************
+recording
+****************************************************************/
+instr 3
+kenv adsr 0.01, 0.05, .9, 0.01
+
+adel delay gasig, .005
+
+Spath strget 999
+Sfile strcat Spath, "/micTemp.wav"
+
+ihandle fiopen Sfile, 2
+
+fout Sfile, 2, adel*kenv
+
+;out adel*kenv
+adel = 0
+endin
+
+/****************************************************************
+Audio input recording ( closing file )
+****************************************************************/
+instr 4
+Spath strget 999
+Sfile strcat Spath, "/micTemp.wav"
+ficlose Sfile
+endin
+
+
+</CsInstruments>
+
+<CsScore>
+f1 0 8192 10 1
+i1 0 4
+i2 0 4
+</CsScore>
+
+</CsoundSynthesizer>
diff --git a/common/Resources/tamtamorc.csd b/common/Resources/tamtamorc.csd
new file mode 100644
index 0000000..f0a63f1
--- /dev/null
+++ b/common/Resources/tamtamorc.csd
@@ -0,0 +1,1125 @@
+<CsoundSynthesizer>
+<CsOptions>
+-n -m0 -W -s -d
+</CsOptions>
+<CsInstruments>
+sr=16000
+ksmps=64
+nchnls=2
+giScale = 1/sr
+giAliasSr = sr/2.1
+
+gainrev init 0
+gaoutL init 0
+gaoutR init 0
+gasynth init 0
+gkTrackpadX init 0
+gkTrackpadY init 0
+gSpath strcpy " "
+
+/*****************************
+matrix for TamTam's SynthLab
+*****************************/
+zakinit 8, 32
+
+/*****************************
+opcodes needed by TamTam's SynthLab
+*****************************/
+
+opcode homeSine, a, kki
+kpitch, kspread, iTable xin
+
+kspread = kspread + 1
+
+kr1 randomi 0.99, 1.01, 3.45
+kr2 randomi 0.9901, 1.0101, 4.43
+kr3 randomi 0.9899, 1.0091, 5.25
+kr4 randomi 0.9889, 1.00921, 6.15
+
+kpit1 = kpitch
+kpit2 = kpit1*kspread
+kpit3 = kpit2*kspread
+kpit4 = kpit3*kspread
+kpit5 = kpit4*kspread
+kpit6 = kpit5*kspread
+kpit7 = kpit6*kspread
+kpit8 = kpit7*kspread
+
+a1 oscil 1000, kpit1*kr1, iTable
+a2 oscil 1000, kpit2*kr2, iTable
+a3 oscil 1000, kpit3*kr3, iTable
+a4 oscil 1000, kpit4*kr4, iTable
+a5 oscil 1000, kpit5*kr1, iTable
+a6 oscil 1000, kpit6*kr2, iTable
+a7 oscil 1000, kpit7*kr3, iTable
+a8 oscil 1000, kpit8*kr4, iTable
+
+aout = a1+a2+a3+a4+a5+a6+a7+a8
+xout aout
+endop
+
+opcode synthGrain, a, aaiiii
+aindex, atrans, ifreq, iphase itable, itabdur xin
+apha phasor ifreq, iphase
+aenv tab apha, 42, 1
+atrig = int(1-aenv)
+apos samphold aindex, atrig
+adur samphold atrans, atrig
+
+aline = apha * adur * sr + apos
+aline limit aline, 0 , itabdur
+ag tablei aline, itable, 0
+aout = ag * aenv
+
+xout aout
+endop
+
+
+opcode ControlMatrice, i, iikkkk
+iTable, iIndex, kc1, kc2, kc3, kc4 xin
+
+iSomme table iIndex, iTable+3
+
+if iSomme == 0 then
+goto noparams
+endif
+
+iPar table iIndex, iTable
+
+if iSomme == 1 then
+kp = iPar
+elseif iSomme == 3 then
+kp = iPar * kc1
+elseif iSomme == 5 then
+kp = iPar * kc2
+elseif iSomme == 7 then
+kp = iPar * ((kc1 + kc2)*.5)
+elseif iSomme == 9 then
+kp = iPar * kc3
+elseif iSomme == 11 then
+kp = iPar * ((kc1 + kc3)*.5)
+elseif iSomme == 13 then
+kp = iPar * ((kc2 + kc3)*.5)
+elseif iSomme == 15 then
+kp = iPar * ((kc1 + kc2 + kc3)*.33)
+elseif iSomme == 17 then
+kp = iPar * kc4
+elseif iSomme == 19 then
+kp = iPar * ((kc1 + kc4)*.5)
+elseif iSomme == 21 then
+kp = iPar * ((kc2 + kc4)*.5)
+elseif iSomme == 23 then
+kp = iPar * ((kc1 + kc2 + kc4)*.33)
+elseif iSomme == 25 then
+kp = iPar * ((kc3 + kc4)*.5)
+elseif iSomme == 27 then
+kp = iPar * ((kc1 + kc3 + kc4)*.5)
+elseif iSomme == 29 then
+kp = iPar * ((kc2 + kc3 + kc4)*.33)
+elseif iSomme == 31 then
+kp = iPar * ((kc1 + kc2 + kc3 + kc4)*.25)
+endif
+
+if iTable == 5201 then
+zkw kp, iIndex+1
+elseif iTable == 5202 then
+zkw kp, iIndex+17
+endif
+
+xout iIndex
+
+noparams:
+endop
+
+opcode SourceMatrice, i, iaaaa
+iIndex, as1, as2, as3, as4 xin
+
+iSomme table iIndex-1, 5206
+
+if iSomme == 0 then
+goto noparams
+endif
+
+if iSomme == 1 then
+as = as1
+elseif iSomme == 2 then
+as = as2
+elseif iSomme == 3 then
+as = as1 + as2
+elseif iSomme == 4 then
+as = as3
+elseif iSomme == 5 then
+as = as1 + as3
+elseif iSomme == 6 then
+as = as2 + as3
+elseif iSomme == 7 then
+as = as1 + as2 + as3
+elseif iSomme == 8 then
+as = as4
+elseif iSomme == 9 then
+as = as1 + as4
+elseif iSomme == 10 then
+as = as2 + as4
+elseif iSomme == 11 then
+as = as1 + as2 + as4
+elseif iSomme == 12 then
+as = as3 + as4
+elseif iSomme == 13 then
+as = as1 + as3 + as4
+elseif iSomme == 14 then
+as = as2 + as3 + as4
+elseif iSomme == 15 then
+as = as1 + as2 + as3 + as4
+endif
+
+zaw as, iIndex
+xout iIndex
+
+noparams:
+endop
+
+opcode FxMatrice, i, iaaaa
+iIndex, as1, as2, as3, as4 xin
+
+iSomme table iIndex-1, 5206
+
+if iSomme == 0 then
+goto noparams
+endif
+
+if iSomme == 1 then
+as = as1
+elseif iSomme == 2 then
+as = as2
+elseif iSomme == 3 then
+as = as1 + as2
+elseif iSomme == 4 then
+as = as3
+elseif iSomme == 5 then
+as = as1 + as3
+elseif iSomme == 6 then
+as = as2 + as3
+elseif iSomme == 7 then
+as = as1 + as2 + as3
+elseif iSomme == 8 then
+as = as4
+elseif iSomme == 9 then
+as = as1 + as4
+elseif iSomme == 10 then
+as = as2 + as4
+elseif iSomme == 11 then
+as = as1 + as2 + as4
+elseif iSomme == 12 then
+as = as3 + as4
+elseif iSomme == 13 then
+as = as1 + as3 + as4
+elseif iSomme == 14 then
+as = as2 + as3 + as4
+endif
+
+zaw as, iIndex
+xout iIndex
+
+noparams:
+endop
+
+opcode controller, k, ii
+iControlNum, idur xin
+
+iControlType table iControlNum-1, 5203
+
+if iControlType == 0 then
+goto nocontrol
+endif
+
+ioffset = (iControlNum-1)*4
+iPar1 table ioffset, 5200
+iPar2 table ioffset+1, 5200
+iPar3 table ioffset+2, 5200
+iPar4 table ioffset+3, 5200
+
+if iControlType == 1 then
+ kControl lfo iPar1, iPar2, int(iPar3)
+ kControl = kControl+iPar4
+elseif iControlType == 2 then
+ irange = (iPar2-iPar1)*.5
+ kControl randi irange, iPar3, iPar4-.001, 0, irange+iPar1
+elseif iControlType == 3 then
+ kControl adsr iPar1*idur+.0001, iPar2*idur, iPar3, iPar4*idur
+elseif iControlType == 4 then
+ if iPar3 == 0 then
+ kControl1 = ((gkTrackpadX+1)*.5)*(iPar2-iPar1)+iPar1
+ elseif iPar3 == 1 then
+ kval = (gkTrackpadX+1)*.5
+ kControl1 pow kval, 2
+ kControl1 = kControl1 * (iPar2-iPar1) + iPar1
+ endif
+ if iPar4 == 0 then
+ kControl = kControl1
+ else
+ ktrig oscil 1, 1/iPar4, 45
+ kControl samphold kControl1, ktrig, i(kControl1), 0
+ endif
+elseif iControlType == 5 then
+ if iPar3 == 0 then
+ kControl1 = ((gkTrackpadY+1)*.5)*(iPar2-iPar1)+iPar1
+ elseif iPar3 == 1 then
+ kval = (gkTrackpadY+1)*.5
+ kControl1 pow kval, 2
+ kControl1 = kControl1 * (iPar2-iPar1) + iPar1
+ endif
+ if iPar4 == 0 then
+ kControl = kControl1
+ else
+ ktrig oscil 1, 1/iPar4, 45
+ kControl samphold kControl1, ktrig, i(kControl1), 0
+ endif
+endif
+
+xout kControl
+
+nocontrol:
+endop
+
+opcode source, a, ii
+iSourceNum, ipitch xin
+
+iSourceType table iSourceNum+3, 5203
+
+if iSourceType == 0 then
+goto nosource
+endif
+
+ioffset = (iSourceNum-1)*4
+kpara1 zkr ioffset+1
+kpara2 zkr ioffset+2
+kpara3 zkr ioffset+3
+kpara4 zkr ioffset+4
+
+iPar1 table ioffset, 5201
+iPar2 table ioffset+1, 5201
+iPar3 table ioffset+2, 5201
+iPar4 table ioffset+3, 5201
+
+if iSourceType == 1 then
+ aSource foscil 2000*kpara4, ipitch, kpara1, kpara2, kpara3, 1
+elseif iSourceType == 2 then
+ aSource gbuzz 5000*kpara4, ipitch*kpara1, int(abs(kpara2))+5, 0, kpara3+0.01, 2
+elseif iSourceType == 3 then
+ iPar2 = int(iPar2)
+ if iPar2 == 0 then
+ imode = 0
+ elseif iPar2 == 1 then
+ imode = 10
+ elseif iPar2 == 2 then
+ imode = 12
+ endif
+ aSource vco2 2000*kpara4, ipitch*kpara1, imode, 0.1, 0, iPar3
+elseif iSourceType == 4 then
+ if iPar3 == 0 then
+ kvib = 0
+ goto novib
+ else
+ kvibenv linseg 0, .3, 1, p3-.3, 1
+ kvib oscil ipitch*.015, kpara3, 1
+ endif
+ novib:
+ aSource pluck 5000*kpara4, ipitch*(abs(kpara1))+.001+kvib, 40, 0, 6
+ aSource butterlp aSource, kpara2
+elseif iSourceType == 5 then
+ if int(iPar1) == 0 then
+ ar rand 5000*kpara4
+ elseif int(iPar1) == 1 then
+ ar pinkish 5000*kpara4
+ elseif int(iPar1) == 2 then
+ ar gauss 5000*kpara4
+ endif
+ knoisebandwith limit abs(kpara3), 1, sr/2
+ aSource butterbp ar, kpara2, knoisebandwith
+ aSource balance aSource, ar
+elseif iSourceType == 6 then
+ iSndpitch = p4/261.626
+ iLoopIndex = iPar2 * 3
+ ils table iLoopIndex, 5755
+ ile table iLoopIndex+1, 5755
+ icd table iLoopIndex+2, 5755
+ if ile == 0 then
+ ile = nsamp(5000+iPar2) * giScale - .01
+ endif
+ if icd == 0 then
+ icd = .01
+ endif
+ aSource flooper2 kpara4*.4, iSndpitch*abs(kpara1), ils, ile, icd, 5000+iPar2
+ aSource butterlp aSource, abs(kpara3)
+elseif iSourceType == 7 then
+ kvoy = int(kpara2*3)
+ kform1 table kvoy, 4
+ kform2 table kvoy+1, 4
+ kform3 table kvoy+2, 4
+ kform1 port kform1, .1, 500
+ kform2 port kform2, .1, 1500
+ kform3 port kform3, .1, 2500
+ kvibadev randomi -.0852, .0152, .5
+ kvibfdev randomi -.032, .032, .5
+ kvibfreqrand randomi kpara3-.75, kpara3+.75, .2
+ kvibfatt linseg 0, .3, 1, p3-.3, 1
+ kvib oscili (1+kvibadev)*kvibfatt, (kvibfreqrand+kvibfdev), 1
+ kharm randomi 40, 50, 1.34
+ kmul randomi .80, .84, 1.45
+ kbam randomi 480., 510., 2.07
+ kfunddev randomi -.0053, .0052, 1.05
+ ar gbuzz kbam, (p4*kpara1*(1+kfunddev)+kvib), int(kharm), 0, kmul, 2
+ a1 resonx ar, kform1, 140, 2, 1
+ a2 resonx ar, kform2, 180, 2, 1
+ a3 resonx ar, kform3, 220, 2 , 1
+ aSource = ((a1*80)+(a2*55)+(a3*40))*kpara4
+elseif iSourceType == 8 then
+ iSndPitch = p4/261.626
+ igrdur = .1
+ itable = 5000+iPar2
+ irealTable = 5500 + iSourceNum
+ itabdur = nsamp(itable)
+ ifreq = 1 / igrdur
+ kamp = kpara4 * .2
+ aindex upsamp abs(kpara3) * itabdur
+ atrans upsamp kpara1 * igrdur * iSndPitch
+
+ as1 synthGrain aindex, atrans, ifreq, 0.82, irealTable, itabdur
+ as2 synthGrain aindex, atrans, ifreq, .58, irealTable, itabdur
+ as3 synthGrain aindex, atrans, ifreq, .41, irealTable, itabdur
+ as4 synthGrain aindex, atrans, ifreq, 0.19, irealTable, itabdur
+ as5 synthGrain aindex, atrans, ifreq, 0, irealTable, itabdur
+ aSource = (as1+as2+as3+as4+as5)*kamp
+ aSource butterlp aSource, 7500
+elseif iSourceType == 9 then
+ aSource homeSine p4*kpara1, kpara2*0.1, iPar3+30
+ aSource = aSource*kpara4
+elseif iSourceType == 10 then
+ Sname sprintf "/labmic%d", iPar2
+ Sfullname strcat gSpath, Sname
+ iSndpitch = p4/261.626
+ aSource diskin Sfullname, iSndpitch*abs(kpara3), 0, 1
+ aSource = aSource * kpara4
+endif
+
+aSource dcblock aSource
+xout aSource
+
+nosource:
+endop
+
+opcode effects, a, ii
+iFxNum, ipitch xin
+
+iFxType table iFxNum+7, 5203
+
+if iFxType == 0 then
+goto nofx
+endif
+
+as1 zar iFxNum
+as2 zar iFxNum+4
+as = as1+as2
+
+ioffset = (iFxNum+3)*4
+kpara1 zkr ioffset+1
+kpara2 zkr ioffset+2
+kpara3 zkr ioffset+3
+kpara4 zkr ioffset+4
+
+ioffset2 = (iFxNum-1)*4
+iPar1 table ioffset2, 5202
+iPar2 table ioffset2+1, 5202
+iPar3 table ioffset2+2, 5202
+iPar4 table ioffset2+3, 5202
+
+if iFxType == 1 then
+ kwgfeed limit kpara3, 0, 1
+ aFx wguide1 as, abs(kpara1)+1, kpara2, kwgfeed
+ aFx = aFx*kpara4
+elseif iFxType == 2 then
+ aFx lpf18 as*.0005, abs(kpara1)+20, kpara2, kpara3
+ aFx = aFx*5000*kpara4
+elseif iFxType == 3 then
+ aFx bqrez as*kpara4, abs(kpara1)+20, abs(kpara2)+1, int(iPar3)
+ aFx balance aFx, as*kpara4
+elseif iFxType == 4 then
+ amod lfo 1, kpara1, int(iPar3)
+ aFx = ((as*amod*kpara2)+(as*(1-kpara2)))*kpara4
+elseif iFxType == 5 then
+ ain = as*kpara4
+ krevLength limit kpara1, 0.01, 10
+ arev reverb ain, krevLength
+ arev butterlp arev, kpara2
+ aFx = (arev*kpara3)+(as*(1-kpara3))
+elseif iFxType == 6 then
+ fsig pvsanal as, 1024, 256, 1024, 1
+ ftps1 pvscale fsig, kpara1
+ aFx pvsynth ftps1
+ adry delay as, iPar2
+ aFx = ((aFx*kpara3)+(adry*(1-kpara3)))*kpara4
+elseif iFxType == 7 then
+ aeq1 butterbp as, 700, 400
+ aeq2 butterbp as, 1500, 600
+ aeq3 butterbp as, 3000, 1000
+ aeq4 butterbp as, 5000, 2000
+ aFx = (aeq1*kpara1)+(aeq2*kpara2)+(aeq3*kpara3)+(aeq4*kpara4)
+elseif iFxType == 8 then
+ afeed init 0
+ adel oscil kpara1, kpara2, 1
+ adel = adel + kpara1 + kpara3
+ adel limit adel, 0, 50
+ aFx vdelay as+afeed, adel, 50
+ afeed = aFx * kpara4
+endif
+
+xout aFx
+
+nofx:
+endop
+
+
+/****************************************************************
+Reverb + master out
+*****************************************************************/
+instr 200
+
+gktime timek
+
+kTrackpadX chnget "trackpadX"
+gkTrackpadX = kTrackpadX / 600.
+gkTrackpadX limit gkTrackpadX, -1, 1
+
+kTrackpadY chnget "trackpadY"
+gkTrackpadY = kTrackpadY / 450.
+gkTrackpadY limit -gkTrackpadY, -1, 1
+
+koutGain chnget "masterVolume"
+koutGain = koutGain * 0.02
+gkduck init 1
+gkduck port gkduck, .03, 1.
+
+ain dcblock gainrev*0.05
+arev reverb ain, 2.5
+arev butterlp arev, 5000
+
+aLeft butterlp gaoutL, 7500
+aRight butterlp gaoutR, 7500
+
+aLeft eqfil aLeft, 4000, 1000, 0.125
+aRight eqfil aRight, 4000, 1000, 0.125
+
+;aLeft butterhp aLeft, 150
+;aRight butterhp aRight, 150
+
+aOutLeft dcblock (arev + aLeft) * koutGain * gkduck
+aOutRight dcblock (arev + aRight) * koutGain * gkduck
+gaRecL = aOutLeft
+gaRecR = aOutRight
+ outs aOutLeft, aOutRight
+
+ gaoutL = 0
+ gaoutR = 0
+ gainrev = 0
+
+endin
+
+/****************************************************************
+ducking
+****************************************************************/
+instr 5600
+gkduck linseg 1., 0.005, 0.05, 3.9, 0.05, 0.095, 1
+endin
+
+/****************************************************************
+Performance recording start
+*****************************************************************/
+instr 5400
+Sname strget p4
+ihandle fiopen Sname, 2
+fout Sname, 2, gaRecL, gaRecR
+clear gaRecL, gaRecR
+endin
+
+/****************************************************************
+Performance recording stop ( closing file )
+*****************************************************************/
+instr 5401
+Sname strget p4
+turnoff2 5400, 8, 0
+ficlose Sname
+endin
+
+/****************************************************************
+Handler audio input recording
+****************************************************************/
+instr 5201
+
+ktim timeinsts
+
+gkduck = .05
+itab = p4
+ain inch 1
+krms rms ain
+ktrig trigger krms, 1500, 0
+
+if ktrig == 1 then
+event "i", 5202, 0 , 1, itab
+turnoff
+endif
+
+ithresh = p3 - 1
+
+if ktim > ithresh then
+gkduck linseg .05, .8, .05, .2, 1
+endif
+
+endin
+
+/****************************************************************
+Audio input recording
+****************************************************************/
+instr 5202
+kenv adsr 0.005, 0.05, .9, 0.01
+gkduck linseg .05, .8, .05, .2, 1
+ain inch 1
+
+adel delay ain, .01
+
+Sname sprintf "/home/olpc/.sugar/default/tamtam/snds/mic%d", int(p4)-6
+ihandle fiopen Sname, 2
+event "i", 5212, 1 , .01, p4
+
+fout Sname, 2, adel*kenv
+adel = 0
+endin
+
+/****************************************************************
+Audio input recording ( closing file )
+****************************************************************/
+instr 5212
+Sname sprintf "/home/olpc/.sugar/default/tamtam/snds/mic%d", int(p4)-6
+ficlose Sname
+endin
+
+/****************************************************************
+SynthLab mic recording
+****************************************************************/
+instr 6000
+ain inch 1
+aindex phasor 1/p3
+tablew ain, aindex, 6000+p4, 1
+endin
+
+/****************************************************************
+SynthLab input recording
+****************************************************************/
+instr 5204
+
+Sname sprintf "/lab%d", int(p4)-85
+Sfile strcat gSpath, Sname
+fout Sfile, 2, gasynth
+clear gasynth
+endin
+
+/************************
+TamTam's SynthLab instrument
+************************/
+instr 5203
+
+gSpath strget p10
+
+if p5 != 0 then
+event_i "i", 5204, 0, p3, p5
+endif
+
+aSource1 init 0
+aSource2 init 0
+aSource3 init 0
+aSource4 init 0
+aFx1 init 0
+aFx2 init 0
+aFx3 init 0
+aFx4 init 0
+aout init 0
+
+ipitch = p4
+
+kc1 controller 1,p3
+kc2 controller 2,p3
+kc3 controller 3,p3
+kc4 controller 4,p3
+
+is1p1 ControlMatrice 5201, 0, kc1, kc2, kc3, kc4
+is1p2 ControlMatrice 5201, 1, kc1, kc2, kc3, kc4
+is1p3 ControlMatrice 5201, 2, kc1, kc2, kc3, kc4
+is1p4 ControlMatrice 5201, 3, kc1, kc2, kc3, kc4
+is2p1 ControlMatrice 5201, 4, kc1, kc2, kc3, kc4
+is2p2 ControlMatrice 5201, 5, kc1, kc2, kc3, kc4
+is2p3 ControlMatrice 5201, 6, kc1, kc2, kc3, kc4
+is2p4 ControlMatrice 5201, 7, kc1, kc2, kc3, kc4
+is3p1 ControlMatrice 5201, 8, kc1, kc2, kc3, kc4
+is3p2 ControlMatrice 5201, 9, kc1, kc2, kc3, kc4
+is3p3 ControlMatrice 5201, 10, kc1, kc2, kc3, kc4
+is3p4 ControlMatrice 5201, 11, kc1, kc2, kc3, kc4
+is4p1 ControlMatrice 5201, 12, kc1, kc2, kc3, kc4
+is4p2 ControlMatrice 5201, 13, kc1, kc2, kc3, kc4
+is4p3 ControlMatrice 5201, 14, kc1, kc2, kc3, kc4
+is4p4 ControlMatrice 5201, 15, kc1, kc2, kc3, kc4
+
+aSource1 source 1, ipitch*2
+aSource2 source 2, ipitch*2
+aSource3 source 3, ipitch*2
+aSource4 source 4, ipitch*2
+
+ifx1p1 ControlMatrice 5202, 0, kc1, kc2, kc3, kc4
+ifx1p2 ControlMatrice 5202, 1, kc1, kc2, kc3, kc4
+ifx1p3 ControlMatrice 5202, 2, kc1, kc2, kc3, kc4
+ifx1p4 ControlMatrice 5202, 3, kc1, kc2, kc3, kc4
+ifx2p1 ControlMatrice 5202, 4, kc1, kc2, kc3, kc4
+ifx2p2 ControlMatrice 5202, 5, kc1, kc2, kc3, kc4
+ifx2p3 ControlMatrice 5202, 6, kc1, kc2, kc3, kc4
+ifx2p4 ControlMatrice 5202, 7, kc1, kc2, kc3, kc4
+ifx3p1 ControlMatrice 5202, 8, kc1, kc2, kc3, kc4
+ifx3p2 ControlMatrice 5202, 9, kc1, kc2, kc3, kc4
+ifx3p3 ControlMatrice 5202, 10, kc1, kc2, kc3, kc4
+ifx3p4 ControlMatrice 5202, 11, kc1, kc2, kc3, kc4
+ifx4p1 ControlMatrice 5202, 12, kc1, kc2, kc3, kc4
+ifx4p2 ControlMatrice 5202, 13, kc1, kc2, kc3, kc4
+ifx4p3 ControlMatrice 5202, 14, kc1, kc2, kc3, kc4
+ifx4p4 ControlMatrice 5202, 15, kc1, kc2, kc3, kc4
+
+ifx1in SourceMatrice 1, aSource1, aSource2, aSource3, aSource4
+ifx2in SourceMatrice 2, aSource1, aSource2, aSource3, aSource4
+ifx3in SourceMatrice 3, aSource1, aSource2, aSource3, aSource4
+ifx4in SourceMatrice 4, aSource1, aSource2, aSource3, aSource4
+
+ifx1in1 FxMatrice 5, aFx1, aFx2, aFx3, aFx4
+ifx2in1 FxMatrice 6, aFx1, aFx2, aFx3, aFx4
+ifx3in1 FxMatrice 7, aFx1, aFx2, aFx3, aFx4
+ifx4in1 FxMatrice 8, aFx1, aFx2, aFx3, aFx4
+
+aFx1 effects 1, ipitch
+aFx2 effects 2, ipitch
+aFx3 effects 3, ipitch
+aFx4 effects 4, ipitch
+
+iSourceOut1 table 8, 5206
+iSourceOut2 table 9, 5206
+iSourceOut3 table 10, 5206
+iSourceOut4 table 11, 5206
+iFxOut1 table 12, 5206
+iFxOut2 table 13, 5206
+iFxOut3 table 14, 5206
+iFxOut4 table 15, 5206
+
+aout = (aSource1*iSourceOut1)+(aSource2*iSourceOut2)+(aSource3*iSourceOut3)+(aSource4*iSourceOut4)+(aFx1*iFxOut1)+(aFx2*iFxOut2)+(aFx3*iFxOut3)+(aFx4*iFxOut4)
+
+kenv adsr p3*p6+0.001, p3*p7, p8, p3*p9
+aout = aout*kenv
+
+vincr gasynth, aout
+
+ outs aout*.707, aout*.707
+
+zacl 0, 8
+
+endin
+
+/***********************
+DELETE RESOURCES
+************************/
+
+instr 5000
+
+icount init 0
+
+again:
+ftfree 5000+icount, 0
+icount = icount+1
+
+if icount < p4 goto again
+
+turnoff
+
+endin
+
+/*************************
+Loop points editor
+*************************/
+instr 5022
+
+kstart chnget "lstart"
+kend chnget "lend"
+kdur chnget "ldur"
+kvol chnget "lvol"
+
+idurfadein init 0.005
+idurfadeout init 0.095
+iampe0 init 1
+iampe1 init 1
+iampe2 init 1
+
+itie tival
+if itie == 1 igoto nofadein
+
+iampe0 init 0
+iskip = 1
+
+nofadein:
+iskip = 0
+igliss = 0.005
+
+if p3 < 0 igoto nofadeout
+
+iampe2 init 0
+
+nofadeout:
+
+idelta = idurfadein+idurfadeout
+if idelta > abs(p3) then
+idelta = abs(p3)
+endif
+
+iampe0 = iampe0
+iampe2 = iampe2
+kenv linseg iampe0, idurfadein, iampe1, abs(p3)-idelta, iampe1, idurfadeout, iampe2
+
+
+ivibRand random 4.1, 5.7
+
+kvibrato oscil .006, ivibRand, 1
+
+ tigoto tieskip
+
+a1 flooper2 0.5, 1+kvibrato, kstart, kend, kdur, 4999, 0, 0, 0, iskip
+
+a1 = a1*kenv*kvol
+
+gaoutL = a1*0.5+gaoutL
+gaoutR = a1*0.5+gaoutR
+
+gainrev = a1*0.05+gainrev
+
+ tieskip:
+endin
+
+/*************************
+Loop points editor, simple player
+*************************/
+instr 5023
+
+kvol chnget "lvol"
+
+p3 = nsamp(4999) * giScale
+
+a1 loscil 0.5, 1, 4999, 1
+
+kenv adsr 0.005, 0.05, .8, 0.1
+
+a1 = a1*kenv*kvol
+
+gaoutL = a1*0.5+gaoutL
+gaoutR = a1*0.5+gaoutR
+
+gainrev = a1*0.05+gainrev
+
+endin
+
+/****************************************************************
+Soundfile player with miniTamTam's tied notes
+****************************************************************/
+/*************************
+pitch, reverbGain, amp, pan, table, att, dec, filtType, cutoff, loopstart, loopend, crossdur
+*************************/
+instr 5001, 5002, 5003, 5004, 5005, 5006, 5007, 5008, 5009, 5010
+
+idump = p16
+idump2 = p17
+idump3 = p18
+idump4 = p19
+
+iTrackId = int(p1-5001)
+SvolTrackName sprintf "trackVolume%0d", iTrackId
+kvol chnget SvolTrackName
+kvol = kvol * 0.01
+kvol port kvol, .01, i(kvol)
+
+idurfadein init 0.005
+idurfadeout init 0.095
+iampe0 init 1
+iampe1 = p6
+iampe2 init 1
+
+itie tival
+if itie == 1 igoto nofadein
+
+idurfadein init p9
+iampe0 init 0
+iskip = 1
+kpitch init p4
+kamp init p6
+kpan init p7
+krg init p5
+
+nofadein:
+iskip = 0
+igliss = 0.005
+
+if p3 < 0 igoto nofadeout
+
+idurfadeout init p10
+iampe2 init 0
+
+nofadeout:
+
+idelta = idurfadein+idurfadeout
+if idelta > abs(p3) then
+idelta = abs(p3)
+endif
+
+iampe0 = iampe0 * p6
+iampe2 = iampe2 * p6
+kenv linseg iampe0, idurfadein, iampe1, abs(p3)-idelta, iampe1, idurfadeout, iampe2
+
+kpitchBend port gkTrackpadX, .03, i(gkTrackpadX)
+kpitchBend pow kpitchBend + 1, 5
+kampBend port gkTrackpadY, .03, i(gkTrackpadY)
+kampBend pow kampBend + 1, 5
+
+ivibRand random 4.1, 5.7
+
+kvibrato oscil .006*kampBend, ivibRand*kpitchBend, 1
+
+ tigoto tieskip
+
+kpitch portk p4, igliss, p4
+kpan portk p7, igliss, p7
+krg portk p5, igliss, p5
+kcutoff portk p12, igliss, p12
+kls portk p13, igliss, p13
+kle portk p14, igliss, p14
+kcd portk p15, igliss, p15
+
+a1 flooper2 1, kpitch+kvibrato, kls, kle, kcd, p8, 0, 0, 0, iskip
+
+if (p11-1) != -1 then
+acomp = a1
+a1 bqrez a1, kcutoff, 6, p11-1
+a1 balance a1, acomp
+endif
+
+if kpitch < 1 then
+kalias = giAliasSr*kpitch
+else
+kalias = giAliasSr
+endif
+
+a1 tone a1, kalias
+
+a1 = a1*kenv*kvol
+
+gaoutL = a1*(1-kpan)+gaoutL
+gaoutR = a1*kpan+gaoutR
+
+gainrev = a1*krg+gainrev
+
+ tieskip:
+endin
+
+
+/*************************
+Soundfile player with edit's looped notes
+*************************/
+instr 5101, 5102, 5103, 5104, 5105, 5106, 5107, 5108, 5109, 5110
+
+if p16 != -1 then
+ inum = frac(p16) * 10000
+ itable2 = int(p16)
+ event_i "i", inum, 0, p3, p4, p5, p6, p7, itable2, p9, p10, p11, p12, p17, p18, p19, -1
+endif
+
+ipitch random p4*.995, p4*1.005
+
+iTrackId = int(p1-5101)
+SvolTrackName2 sprintf "trackVolume%0d", iTrackId
+kvol chnget SvolTrackName2
+kvol = kvol * 0.01
+kvol port kvol, .01, 0 ;i(kvol)
+
+ivibRand random 4.1, 5.7
+
+kvibrato oscil .006, ivibRand, 1
+
+a1 flooper2 1, ipitch+kvibrato, p13, p14, p15, p8, 0, 0, 0
+
+if (p11-1) != -1 then
+acomp = a1
+a1 bqrez a1, p12, 6, p11-1
+a1 balance a1, acomp
+endif
+
+;if p4 < 1 then
+;ialias = giAliasSr*p4
+;else
+;ialias = giAliasSr
+;endif
+
+;a1 tone a1, ialias
+
+aenv adsr p9, 0.005, p6, p10
+a1 = a1*aenv*kvol
+
+gaoutL = a1*(1-p7)+gaoutL
+gaoutR = a1*p7+gaoutR
+
+gainrev = a1*p5+gainrev
+
+endin
+
+/**************************************************************
+Simple soundfile player (miniTamTam)
+**************************************************************/
+
+instr 5011, 5012, 5013, 5014, 5015, 5016, 5017, 5018, 5019, 5020
+
+idump = p16
+idump2 = p17
+idump3 = p18
+idump4 = p19
+
+iTrackId = int(p1-5011)
+SvolTrackName3 sprintf "trackVolume%0d", iTrackId
+kvol chnget SvolTrackName3
+kvol = kvol * 0.01
+kvol port kvol, .01
+
+p3 = nsamp(p8) * giScale / p4
+
+a1 loscil p6, p4, p8, 1
+
+if (p11-1) != -1 then
+acomp = a1
+a1 bqrez a1, p12, 6, p11-1
+a1 balance a1, acomp
+endif
+
+if p4 < 1 then
+ialias = giAliasSr*p4
+else
+ialias = giAliasSr
+endif
+
+a1 tone a1, ialias
+
+kenv adsr p9, 0.05, .8, p10
+a1 = a1*kenv*kvol
+
+gaoutL = a1*(1-p7)+gaoutL
+gaoutR = a1*p7+gaoutR
+
+gainrev = a1*p5+gainrev
+
+endin
+
+/**************************************************************
+Simple soundfile player (Edit)
+**************************************************************/
+
+instr 5111, 5112, 5113, 5114, 5115, 5116, 5117, 5118, 5119, 5120
+
+if p16 != -1 then
+ inum = frac(p16) * 10000
+ itable2 = int(p16)
+ event_i "i", inum, 0, p3, p4, p5, p6, p7, itable2, p9, p10, p11, p12, p17, p18, p19, -1
+endif
+
+iTrackId = int(p1-5111)
+SvolTrackName4 sprintf "trackVolume%0d", iTrackId
+kvol chnget SvolTrackName4
+kvol = kvol * 0.01
+kvol port kvol, .01
+
+a1 loscil p6, p4, p8, 1
+
+if (p11-1) != -1 then
+acomp = a1
+a1 bqrez a1, p12, 6, p11-1
+a1 balance a1, acomp
+endif
+
+;if p4 < 1 then
+;ialias = giAliasSr*p4
+;else
+;ialias = giAliasSr
+;endif
+
+;a1 tone a1, ialias
+
+kenv adsr p9, 0.05, .8, p10
+
+a1 = a1*kenv*kvol
+
+gaoutL = a1*(1-p7)+gaoutL
+gaoutR = a1*p7+gaoutR
+
+gainrev = a1*p5+gainrev
+
+endin
+
+
+
+/********************************************************************
+soundfile player for percussion - resonance notes
+********************************************************************/
+instr 5021
+
+a1 flooper2 1, p4, .25, .750, .2, p8
+
+if (p11-1) != -1 then
+acomp = a1
+a1 bqrez a1, p12, 6, p11-1
+a1 balance a1, acomp
+endif
+
+kenv expseg 0.001, .003, .6, p3 - .003, 0.001
+klocalenv adsr p8, 0.05, .8, p10
+
+a1 = a1*kenv*klocalenv
+
+gaoutL = a1*(1-p7)+gaoutL
+gaoutR = a1*p7+gaoutR
+
+gainrev = a1*p5+gainrev
+
+endin
+
+</CsInstruments>
+<CsScore>
+f1 0 8192 10 1
+f2 0 8192 11 1 1
+
+f4 0 32 -2 250 2250 2980 420 2050 2630 590 1770 2580
+ 750 1450 2590 290 750 2300 360 770 2530 520 900 2510 710 1230 2700 570 1560 2560 0 0 0 0 0
+f30 0 1024 10 1 0 .3 0 .1
+f31 0 1024 10 1 .5 .3 .25 .1
+f32 0 1024 10 1 0 .1 0 .3 .2 0 0 .1
+f33 0 1024 10 1 0 0 0 .1 0 0 .2 .1 0 0 .1
+f34 0 1024 10 1 .6 0 0 .4 .2 .1 0 0 .1
+f35 0 1024 10 1 .5 .3 0 .1 0 0 0 .1 .1
+f36 0 1024 10 1 0 .6 .4 .1 0 0 .2 .1 0 0 .1
+f37 0 1024 10 1 0 0 0 .1 .2 .1 0 0 0 .1 0 0 .1
+f38 0 1024 10 1 .4 .3 0 .1 .2 .1 .1 .1 0 0 0 0 .1 .05
+f39 0 1024 10 1 0 .5 0 0 .3 0 0 .2 0 .1 0 0 0 0 .2 0 0 0 .05 0 0 0 0 .03 ; ADDITIVE SYNTHESIS WAVE
+f41 0 8193 19 .5 .5 270 .5 ; SIGMOID FUNCTION
+f42 0 8192 -20 2 1
+f44 0 8192 5 1 8192 0.001 ; EXPONENTIAL FUNCTION
+f45 0 512 7 0 500 0 2 1 10 1
+f5150 0 32768 7 0 32768 0
+f6001 0 131072 7 0 131072 0
+f6002 0 131072 7 0 131072 0
+f6003 0 131072 7 0 131072 0
+f6004 0 131072 7 0 131072 0
+i200 0 600000
+</CsScore>
+</CsoundSynthesizer>
diff --git a/common/Tooltips.py b/common/Tooltips.py
new file mode 100644
index 0000000..61b496b
--- /dev/null
+++ b/common/Tooltips.py
@@ -0,0 +1,155 @@
+from gettext import gettext as _
+
+class Tooltips:
+ def __init__(self):
+ # Edit
+ self.Edit = {}
+ # tools
+ self.Edit["2toolPointerButton"] = _('Select tool')
+ self.Edit["2toolPencilButton"] = _('Draw tool')
+ self.Edit["2toolBrushButton"] = _('Paint tool')
+ # create tune
+ self.Edit["2generateBtn"] = _('Generate new tune')
+ # page
+ self.Edit["2pageGenerateButton"] = _('Generate page')
+ self.Edit["2pagePropertiesButton"] = _('Page properties')
+ self.Edit["2pageDeleteButton"] = _('Delete page(s)')
+ self.Edit["2pageDuplicateButton"] = _('Duplicate page(s)')
+ self.Edit["2pageNewButton"] = _('Add page')
+ self.Edit["2pageBeatsButton"] = _('Beats per page')
+ self.Edit["2saveButton"] = _('Save tune')
+ self.Edit["2loadButton"] = _('Load tune')
+ # track
+ self.Edit["2trackGenerateButton"] = _('Generate track')
+ self.Edit["2trackPropertiesButton"] = _('Track properties')
+ self.Edit["2trackDeleteButton"] = _('Clear track')
+ self.Edit["2trackDuplicateButton"] = _('Duplicate track')
+ # note
+ self.Edit["2notePropertiesButton"] = _('Note(s) properties')
+ self.Edit["2noteDeleteButton"] = _('Delete note(s)')
+ self.Edit["2noteDuplicateButton"] = _('Duplicate note(s)')
+ self.Edit["2noteOnsetMinusButton"] = _('Move note in time')
+ self.Edit["2noteOnsetPlusButton"] = _('Move note in time')
+ self.Edit["2notePitchMinusButton"] = _('Lower pitch')
+ self.Edit["2notePitchPlusButton"] = _('Raise pitch')
+ self.Edit["2noteDurationMinusButton"] = _('Modify duration')
+ self.Edit["2noteDurationPlusButton"] = _('Modify duration')
+ self.Edit["2noteVolumeMinusButton"] = _('Lower volume')
+ self.Edit["2noteVolumePlusButton"] = _('Raise volume')
+ # transport
+ self.Edit["2playButton"] = _('Play')
+ self.Edit["2pauseButton"] = _('Pause')
+ self.Edit["2stopButton"] = _('Stop')
+ self.Edit["2keyRecordButton"] = _('Keyboard recording')
+ self.Edit["2recordButton"] = _('Save as .ogg')
+ self.Edit["2rewindButton"] = _('Rewind')
+ self.Edit["2closeButton"] = _('Save to journal and quit')
+ # volume and tempo
+ self.Edit["2volumeSlider"] = _('Master volume')
+ self.Edit["2tempoSlider"] = _('Tempo')
+ #InstrumentBox
+ self.Edit["2instrument1muteButton"] = _("Left click to mute, right click to solo")
+ self.Edit["2instrument2muteButton"] = _("Left click to mute, right click to solo")
+ self.Edit["2instrument3muteButton"] = _("Left click to mute, right click to solo")
+ self.Edit["2instrument4muteButton"] = _("Left click to mute, right click to solo")
+ self.Edit["2drumMuteButton"] = _("Left click to mute, right click to solo")
+
+ self.ALGO = {}
+ self.ALGO["XYButton1"] = _('-- Rhythm density, | Rhythm regularity' )
+ self.ALGO["XYButton2"] = _('-- Pitch regularity, | Pitch maximum step' )
+ self.ALGO["XYButton3"] = _('-- Average duration, | Silence probability')
+ self.ALGO["drunk"] = _('Drunk')
+ self.ALGO["droneJump"] = _('Drone and Jump')
+ self.ALGO["repeat"] = _('Repeater')
+ self.ALGO["loopSeg"] = _('Loop segments')
+ # TRANS: http://en.wikipedia.org/wiki/Major_scale
+ self.ALGO["majorKey"] = _('Major scale')
+ # TRANS: http://en.wikipedia.org/wiki/Minor_scale#Harmonic_and_melodic_minor
+ self.ALGO["minorHarmKey"] = _('Harmonic minor scale')
+ # TRANS: http://en.wikipedia.org/wiki/Minor_scale#Natural_minor
+ self.ALGO["minorKey"] = _('Natural minor scale')
+ # TRANS: http://en.wikipedia.org/wiki/Phrygian_mode
+ self.ALGO["phrygienKey"] = _('Phrygian scale')
+ # TRANS: http://en.wikipedia.org/wiki/Dorian_mode
+ self.ALGO["dorienKey"] = _('Dorian scale')
+ # TRANS: http://en.wikipedia.org/wiki/Lydian_mode
+ self.ALGO["lydienKey"] = _('Lydian scale')
+ # TRANS: http://en.wikipedia.org/wiki/Mixolydian_mode
+ self.ALGO["myxoKey"] = _('Mixolydian scale')
+ self.ALGO["saveButton"] = _('Save preset')
+ self.ALGO["loadButton"] = _('Load preset')
+ self.ALGO["checkButton"] = _('Generate')
+ self.ALGO["cancelButton"] = _('Close')
+
+ self.PROP = {}
+ self.PROP['pitchUp'] = _('Transpose up')
+ self.PROP['pitchDown'] = _('Transpose down')
+ self.PROP['volumeUp'] = _('Volume up')
+ self.PROP['volumeDown'] = _('Volume down')
+ self.PROP['panSlider'] = _('Panoramization')
+ self.PROP['reverbSlider'] = _('Reverb')
+ self.PROP['attackSlider'] = _('Attack duration')
+ self.PROP['decaySlider'] = _('Decay duration')
+ # TRANS: http://en.wikipedia.org/wiki/Lowpass_filter
+ self.PROP['filterTypeLowButton'] = _('Lowpass filter')
+ # TRANS: http://en.wikipedia.org/wiki/Highpass_filter
+ self.PROP['filterTypeHighButton'] = _('Highpass filter')
+ # TRANS: http://en.wikipedia.org/wiki/Bandpass_filter
+ self.PROP['filterTypeBandButton'] = _('Bandpass filter')
+ # TRANS: http://en.wikipedia.org/wiki/Cutoff_frequency
+ self.PROP['cutoffSlider'] = _('Filter cutoff')
+ self.PROP['pitchGen'] = _('Open algorithmic generator')
+ self.PROP['volumeGen'] = _('Open algorithmic generator')
+ self.PROP['panGen'] = _('Open algorithmic generator')
+ self.PROP['reverbGen'] = _('Open algorithmic generator')
+ self.PROP['attackGen'] = _('Open algorithmic generator')
+ self.PROP['decayGen'] = _('Open algorithmic generator')
+ self.PROP['cutoffGen'] = _('Open algorithmic generator')
+ self.PROP['line'] = _('Line')
+ self.PROP['drunk'] = _('Drunk')
+ self.PROP['droneJump'] = _('Drone and Jump')
+ self.PROP['repeater'] = _('Repeater')
+ self.PROP['loopseg'] = _('Loop segments')
+ self.PROP['minSlider'] = _('Minimum value')
+ self.PROP['maxSlider'] = _('Maximum value')
+ self.PROP['paraSlider'] = _('Specific parameter')
+ self.PROP['checkButton'] = _('Apply generator')
+ self.PROP['cancelButton'] = _('Cancel')
+
+ categories = {
+ # TRANS: Instrument category
+ 'all': _('All'),
+ # TRANS: Instrument category
+ 'animals': _('Animals'),
+ # TRANS: Instrument category
+ 'concret': _('Objects'),
+ # TRANS: Instrument category
+ # TRANS: http://en.wikipedia.org/wiki/Keyboard_instrument
+ 'keyboard': _('Keyboard'),
+ # TRANS: Instrument category
+ 'people': _('People'),
+ # TRANS: Instrument category
+ # TRANS: http://en.wikipedia.org/wiki/Percussion_instrument
+ 'percussions': _('Percussions'),
+ # TRANS: Instrument category
+ # TRANS: http://en.wikipedia.org/wiki/String_instrument
+ 'strings': _('Strings'),
+ # TRANS: Instrument category
+ # TRANS: http://en.wikipedia.org/wiki/Wind_instrument
+ 'winds': _('Winds'),
+ }
+
+ #miniTamTam
+ VOL = _('Volume')
+ BAL = _('Balance')
+ REV = _('Reverb')
+ PLAY = _('Play / Stop')
+ STOP = _('Stop')
+ SEQ = _('Left click to record, right click to record on top')
+ GEN = _('Generate')
+ COMPL = _('Complexity of beat')
+ BEAT = _('Beats per bar')
+ TEMPO = _('Tempo')
+ RECMIC = _('Record with the microphone')
+ RECLAB = _('Open SynthLab to create noise')
+ MT_RECORDBUTTONS = [_('Record microphone into slot 1'), _('Record microphone into slot 2'), _('Record microphone into slot 3'), _('Record microphone into slot 4')]
diff --git a/common/Util/CSoundClient.py b/common/Util/CSoundClient.py
new file mode 100644
index 0000000..3cf6794
--- /dev/null
+++ b/common/Util/CSoundClient.py
@@ -0,0 +1,414 @@
+import os
+import socket
+import select
+import sys
+import threading
+import time
+import array
+from math import sqrt
+
+from common.Util.Clooper import *
+import common.Config as Config
+
+from common.Generation.GenerationConstants import GenerationConstants
+from common.Util import NoteDB
+import common.Util.InstrumentDB as InstrumentDB
+
+loadedInstruments = []
+
+_note_template = array.array('f', [0] * 19)
+
+
+def _new_note_array():
+ return _note_template.__copy__()
+
+def _noteid(dbnote):
+ return (dbnote.page << 16) + dbnote.id
+
+_loop_default=0
+
+
+class _CSoundClientPlugin:
+
+ #array index constants for csound
+ (INSTR_TRACK, \
+ ONSET, \
+ DURATION, \
+ PITCH,
+ REVERBSEND, \
+ AMPLITUDE, \
+ PAN, \
+ INST_ID, \
+ ATTACK, \
+ DECAY, \
+ FILTERTYPE, \
+ FILTERCUTOFF, \
+ INSTRUMENT2 ) = range(13)
+
+ def __init__(self):
+ sc_initialize( Config.PLUGIN_UNIVORC, Config.PLUGIN_DEBUG,
+ Config.PLUGIN_PERIOD, Config.PLUGIN_NPERIODS,
+ Config.PLUGIN_VERBOSE,
+ Config.PLUGIN_KSMPS, Config.PLUGIN_RATE)
+ self.on = False
+ #self.masterVolume = 100.0
+ self.periods_per_buffer = 2
+ global _loop_default
+ _loop_default = self.loopCreate()
+ self.instrumentDB = InstrumentDB.getRef()
+
+ self.jamesSux = {} # temporyary dictionary of loopId: loopNumTicks, while I wait for james to implement it properly
+
+ def __del__(self):
+ self.connect(False)
+ sc_destroy()
+
+ def setChannel(self, name, val):
+ sc_setChannel(name, val)
+
+ def setMasterVolume(self, volume):
+ sc_setChannel('masterVolume', volume)
+
+ def setTrackVolume(self, volume, trackId):
+ sc_setChannel('trackVolume' + str(trackId + 1), volume)
+
+ def setTrackpadX(self, value):
+ sc_setChannel('trackpadX', value)
+
+ def setTrackpadY(self, value):
+ sc_setChannel('trackpadY', value)
+
+ def micRecording(self, table):
+ sc_inputMessage(Config.CSOUND_MIC_RECORD % table)
+
+ def load_mic_instrument(self, inst):
+ fileName = Config.DATA_DIR + '/' + inst
+ instrumentId = Config.INSTRUMENT_TABLE_OFFSET + self.instrumentDB.instNamed[inst].instrumentId
+ sc_inputMessage(Config.CSOUND_LOAD_INSTRUMENT % (instrumentId, fileName))
+
+ def load_synth_instrument(self, inst):
+ fileName = Config.DATA_DIR + '/' + inst
+ instrumentId = Config.INSTRUMENT_TABLE_OFFSET + self.instrumentDB.instNamed[inst].instrumentId
+ sc_inputMessage(Config.CSOUND_LOAD_INSTRUMENT % (instrumentId, fileName))
+
+ def load_ls_instrument(self, inst):
+ fileName = Config.DATA_DIR + '/' + inst
+ sc_inputMessage(Config.CSOUND_LOAD_LS_INSTRUMENT % fileName)
+
+ def load_instruments(self):
+ for instrumentSoundFile in self.instrumentDB.instNamed.keys():
+ if instrumentSoundFile[0:3] == 'mic' or instrumentSoundFile[0:3] == 'lab' or self.instrumentDB.instNamed[instrumentSoundFile].category == 'mysounds':
+ fileName = Config.DATA_DIR + '/' + instrumentSoundFile
+ else:
+ fileName = Config.SOUNDS_DIR + "/" + instrumentSoundFile
+ instrumentId = Config.INSTRUMENT_TABLE_OFFSET + self.instrumentDB.instNamed[ instrumentSoundFile ].instrumentId
+ sc_inputMessage( Config.CSOUND_LOAD_INSTRUMENT % (instrumentId, fileName) )
+
+ def load_instrument(self, inst):
+ if not inst in loadedInstruments:
+ if inst[0:3] == 'mic' or inst[0:3] == 'lab' or self.instrumentDB.instNamed[inst].category == 'mysounds':
+ if os.path.isfile(os.path.join(Config.DATA_DIR, inst)):
+ fileName = os.path.join(Config.DATA_DIR, inst)
+ else:
+ fileName = os.path.join(Config.SOUNDS_DIR, 'armbone')
+ else:
+ fileName = os.path.join(Config.SOUNDS_DIR, inst)
+ instrumentId = Config.INSTRUMENT_TABLE_OFFSET + self.instrumentDB.instNamed[ inst ].instrumentId
+ sc_inputMessage( Config.CSOUND_LOAD_INSTRUMENT % (instrumentId, fileName) )
+ loadedInstruments.append(inst)
+
+ def load_drumkit(self, kit):
+ if not kit in loadedInstruments:
+ for i in self.instrumentDB.instNamed[kit].kit.values():
+ fileName = Config.SOUNDS_DIR + "/" + i
+ instrumentId = Config.INSTRUMENT_TABLE_OFFSET + self.instrumentDB.instNamed[ i ].instrumentId
+ sc_inputMessage( Config.CSOUND_LOAD_INSTRUMENT % (instrumentId, fileName) )
+ loadedInstruments.append(i)
+ loadedInstruments.append(kit)
+
+ def connect(self, init=True):
+ def reconnect():
+ if sc_start(self.periods_per_buffer) :
+ if (Config.DEBUG > 0) : print 'ERROR connecting'
+ else:
+ self.on = True
+ def disconnect():
+ if sc_stop() :
+ if (Config.DEBUG > 0) : print 'ERROR connecting'
+ else:
+ self.on = False
+
+ if init and not self.on :
+ reconnect()
+ if not init and self.on :
+ disconnect()
+
+ def destroy(self):
+ self.connect(False)
+ sc_destroy()
+
+ def inputMessage(self,msg):
+ sc_inputMessage(msg)
+
+ def getTick(self):
+ return sc_getTickf()
+
+ def adjustTick(self, amt):
+ sc_adjustTick(amt)
+
+ def setTempo(self,t):
+ if (Config.DEBUG > 3) : print 'INFO: loop tempo: %f -> %f' % (t, 60.0 / (Config.TICKS_PER_BEAT * t))
+ sc_setTickDuration(60.0 / (Config.TICKS_PER_BEAT * t))
+
+
+ def loopCreate(self):
+ return sc_loop_new()
+
+ def loopDestroy(self, loopId):
+ sc_loop_delete(loopId)
+ try:
+ del self.jamesSux[ loopId ]
+ except:
+ pass
+
+ def loopClear(self):
+ global _loop_default
+ sc_loop_delete(_loop_default)
+ _loop_default = sc_loop_new()
+ try:
+ del self.jamesSux[ loopId ]
+ except:
+ pass
+
+
+ # this is function deletes an Event from a loop
+ # TODO: rename this function
+ def loopDelete(self, dbnote, loopId=_loop_default):
+ sc_loop_delScoreEvent( loopId, _noteid(dbnote))
+
+ def loopDelete1(self, page, id, loopId=_loop_default):
+ sc_loop_delScoreEvent( loopId, (page << 16) + id)
+
+ def loopStart(self, loopId=_loop_default):
+ sc_loop_playing(loopId, 1)
+
+ def loopPause(self, loopId=_loop_default):
+ sc_loop_playing(loopId, 0)
+
+ def loopSetTick(self,t, loopId=_loop_default):
+ sc_loop_setTickf(loopId, t)
+
+ def loopGetTick(self, loopId=_loop_default):
+ return sc_loop_getTickf(loopId)
+
+ def loopSetNumTicks(self,n, loopId=_loop_default):
+ sc_loop_setNumTicks(loopId, n)
+ self.jamesSux[loopId] = n
+
+ def loopGetNumTicks( self, loopId = _loop_default ):
+ return self.jamesSux[loopId]
+
+ def loopSetTickDuration(self,d, loopId=_loop_default):
+ sc_loop_setTickDuration(loopId, d)
+ james
+
+ def loopDeactivate(self, note = 'all', loopId=_loop_default):
+ if note == 'all':
+ sc_loop_deactivate_all(loopId)
+ else:
+ if (Config.DEBUG > 0) : print 'ERROR: deactivating a single note is not implemented'
+
+ def loopUpdate(self, note, parameter, value,cmd, loopId=_loop_default):
+ page = note.page
+ track = note.track
+ id = note.id
+ if note.cs.mode == 'mini':
+ instrument_id_offset = 0
+ elif note.cs.mode == 'edit':
+ if self.instrumentDB.instId[note.cs.instrumentId].kit != None:
+ instrument_id_offset = 0
+ else:
+ instrument_id_offset = 100
+ if (parameter == NoteDB.PARAMETER.ONSET):
+ if (Config.DEBUG > 2): print 'INFO: updating onset', (page<<16)+id, value
+ sc_loop_updateEvent( loopId, (page<<16)+id, 1, value, cmd)
+ elif (parameter == NoteDB.PARAMETER.PITCH):
+ if (Config.DEBUG > 2): print 'INFO: updating pitch', (page<<16)+id, value
+ pitch = value
+ if self.instrumentDB.instId[note.cs.instrumentId].kit != None:
+ instrument = self.instrumentDB.instNamed[
+ self.instrumentDB.instId[note.cs.instrumentId].kit[pitch]]
+ csoundInstId = instrument.csoundInstrumentId
+ csoundTable = Config.INSTRUMENT_TABLE_OFFSET + instrument.instrumentId
+ if (Config.DEBUG > 2): print 'INFO: updating drum instrument (pitch)', (page<<16)+id, instrument.name, csoundInstId
+ sc_loop_updateEvent( loopId, (page<<16)+id, 0, (csoundInstId + instrument_id_offset) + note.track * 0.01, -1 )
+ sc_loop_updateEvent( loopId, (page<<16)+id, 7, csoundTable , -1 )
+ pitch = 1
+ else:
+ pitch = GenerationConstants.TRANSPOSE[ pitch - 24 ]
+ sc_loop_updateEvent( loopId, (page<<16)+id, 3, pitch, cmd)
+ elif (parameter == NoteDB.PARAMETER.AMPLITUDE):
+ if (Config.DEBUG > 2): print 'INFO: updating amp', (page<<16)+id, value
+ sc_loop_updateEvent( loopId, (page<<16)+id, 5, value, cmd)
+ elif (parameter == NoteDB.PARAMETER.DURATION):
+ if (Config.DEBUG > 2): print 'INFO: updating duration', (page<<16)+id, value
+ sc_loop_updateEvent( loopId, (page<<16)+id, self.DURATION, value, cmd)
+ elif (parameter == NoteDB.PARAMETER.INSTRUMENT):
+ pitch = note.cs.pitch
+ instrument = self.instrumentDB.instId[value]
+ if instrument.kit != None:
+ instrument = self.instrumentDB.instNamed[instrument.kit[pitch]]
+ csoundInstId = instrument.csoundInstrumentId
+ csoundTable = Config.INSTRUMENT_TABLE_OFFSET + instrument.instrumentId
+ loopStart = instrument.loopStart
+ loopEnd = instrument.loopEnd
+ crossDur = instrument.crossDur
+ if (Config.DEBUG > 2): print 'INFO: updating instrument', (page<<16)+id, instrument.name, csoundInstId
+ sc_loop_updateEvent( loopId, (page<<16)+id, 0, (csoundInstId + (track+1) + instrument_id_offset) + note.track * 0.01, cmd )
+ sc_loop_updateEvent( loopId, (page<<16)+id, 7, csoundTable, -1 )
+ sc_loop_updateEvent( loopId, (page<<16)+id, 12, loopStart, -1 )
+ sc_loop_updateEvent( loopId, (page<<16)+id, 13, loopEnd, -1 )
+ sc_loop_updateEvent( loopId, (page<<16)+id, 14, crossDur , -1 )
+ elif (parameter == NoteDB.PARAMETER.PAN):
+ sc_loop_updateEvent( loopId, (page<<16)+id, self.PAN, value, cmd)
+ elif (parameter == NoteDB.PARAMETER.REVERB):
+ sc_loop_updateEvent( loopId, (page<<16)+id, self.REVERBSEND, value, cmd)
+ elif (parameter == NoteDB.PARAMETER.ATTACK):
+ sc_loop_updateEvent( loopId, (page<<16)+id, self.ATTACK, value, cmd)
+ elif (parameter == NoteDB.PARAMETER.DECAY):
+ sc_loop_updateEvent( loopId, (page<<16)+id, self.DECAY, value, cmd)
+ elif (parameter == NoteDB.PARAMETER.FILTERTYPE):
+ sc_loop_updateEvent( loopId, (page<<16)+id, self.FILTERTYPE, value, cmd)
+ elif (parameter == NoteDB.PARAMETER.FILTERCUTOFF):
+ sc_loop_updateEvent( loopId, (page<<16)+id, self.FILTERCUTOFF, value, cmd)
+ elif (parameter == NoteDB.PARAMETER.INSTRUMENT2):
+ sc_loop_updateEvent( loopId, (page<<16)+id, self.INSTRUMENT2, value, cmd)
+ else:
+ if (Config.DEBUG > 0): print 'ERROR: loopUpdate(): unsupported parameter change'
+
+ def loopPlay(self, dbnote, active, storage=_new_note_array(),
+ loopId=_loop_default ):
+ qid = (dbnote.page << 16) + dbnote.id
+ sc_loop_addScoreEvent( loopId, qid, 1, active, 'i',
+ self.csnote_to_array(dbnote.cs, storage))
+
+ def play(self, csnote, secs_per_tick, storage=_new_note_array()):
+ a = self.csnote_to_array(csnote, storage)
+ a[self.DURATION] = a[self.DURATION] * secs_per_tick
+ a[self.ATTACK] = max(a[self.ATTACK]*a[self.DURATION], 0.002)
+ a[self.DECAY] = max(a[self.DECAY]*a[self.DURATION], 0.002)
+ sc_scoreEvent('i', a)
+
+ def csnote_to_array(self, csnote, storage):
+ return self._csnote_to_array1(storage,
+ csnote.onset,
+ csnote.pitch,
+ csnote.amplitude,
+ csnote.pan,
+ csnote.duration,
+ csnote.trackId,
+ csnote.attack,
+ csnote.decay,
+ csnote.reverbSend,
+ csnote.filterType,
+ csnote.filterCutoff,
+ csnote.tied,
+ csnote.instrumentId,
+ csnote.mode,
+ csnote.instrumentId2 )
+
+ def _csnote_to_array1(self, storage, onset, pitch, amplitude, pan, duration,
+ trackId, attack, decay, reverbSend, filterType, filterCutoff,
+ tied, instrumentId, mode, instrumentId2 = -1):
+
+ rval=storage
+ instrument = self.instrumentDB.instId[instrumentId]
+
+ if instrument.volatile != None:
+ sound = os.path.join(Config.DATA_DIR, instrument.name)
+ if os.path.isfile(sound):
+ st_mtime = os.stat(sound).st_mtime
+ if st_mtime != instrument.volatile:
+ instrument.volatile = st_mtime
+ loadedInstruments.remove(instrument.name)
+ self.load_instrument(instrument.name)
+ time.sleep(0.2)
+
+ if instrument.kit != None:
+ instrument = self.instrumentDB.instNamed[instrument.kit[pitch]]
+ pitch = 1
+ time_in_ticks = 0
+ else:
+ pitch = GenerationConstants.TRANSPOSE[ pitch - 24 ]
+ time_in_ticks = 1
+
+ instrument_id_offset = 0
+ # condition for tied notes
+ if instrument.csoundInstrumentId == Config.INST_TIED:
+ if tied:
+ if mode == 'mini':
+ duration = -1
+ instrument_id_offset = 0
+ elif mode == 'edit':
+ instrument_id_offset = 0
+ if duration < 0:
+ duration = -1
+ else:
+ if mode == 'mini':
+ instrument_id_offset = 0
+ elif mode == 'edit':
+ instrument_id_offset = 100
+
+ if instrument.csoundInstrumentId == Config.INST_SIMP:
+ if mode == 'mini':
+ instrument_id_offset = 0
+ elif mode == 'edit':
+ if instrument.name[0:4] == 'drum':
+ instrument_id_offset = 0
+ else:
+ instrument_id_offset = 100
+
+ amplitude = amplitude / sqrt(pitch) * instrument.ampScale
+ rval[0] = (instrument.csoundInstrumentId + \
+ (trackId+1) + instrument_id_offset) + trackId * 0.01
+ rval[1] = onset
+ rval[2] = duration
+ rval[3] = pitch
+ rval[4] = reverbSend
+ rval[5] = amplitude
+ rval[6] = pan
+ rval[7] = Config.INSTRUMENT_TABLE_OFFSET + instrument.instrumentId
+ rval[8] = attack
+ rval[9] = decay
+ rval[10]= filterType
+ rval[11]= filterCutoff
+ rval[12]= float(instrument.loopStart)
+ rval[13]= float(instrument.loopEnd)
+ rval[14]= float(instrument.crossDur)
+
+ if instrumentId2 != -1:
+ instrument2 = self.instrumentDB.instId[instrumentId2]
+ csInstrumentId2 = (instrument2.csoundInstrumentId + 100) * 0.0001
+ rval[15] = Config.INSTRUMENT_TABLE_OFFSET + instrumentId2 + csInstrumentId2
+ rval[16] = instrument2.loopStart
+ rval[17] = instrument2.loopEnd
+ rval[18] = instrument2.crossDur
+ else:
+ rval[15] = -1
+ rval[16] = 0
+ rval[17] = 0
+ rval[18] = 0
+
+ return rval
+
+_Client = None
+
+def new_csound_client():
+ global _Client
+ if _Client == None:
+ _Client = _CSoundClientPlugin()
+ _Client.connect(True)
+ _Client.setMasterVolume(100.0)
+ #_Client.load_instruments()
+ time.sleep(0.2)
+ return _Client
diff --git a/common/Util/CSoundNote.py b/common/Util/CSoundNote.py
new file mode 100644
index 0000000..a188a62
--- /dev/null
+++ b/common/Util/CSoundNote.py
@@ -0,0 +1,80 @@
+import common.Config as Config
+import common.Util.InstrumentDB as InstrumentDB
+
+class CSoundNote :
+ def __init__( self,
+ onset,
+ pitch,
+ amplitude,
+ pan,
+ duration,
+ trackId,
+ instrumentId = 1, #self.instrumentDB.instNamed["flute"].instrumentId,
+ attack = 0.005,
+ decay = 0.098,
+ reverbSend = 0.1,
+ filterType = 0,
+ filterCutoff = 1000,
+ tied = False,
+ mode = 'edit',
+ instrumentId2 = -1 ):
+
+ self.instrumentDB = InstrumentDB.getRef()
+
+ self.onset = onset
+ self.pitch = pitch
+ self.amplitude = amplitude
+ self.pan = pan
+ self.duration = duration
+ self.trackId = trackId
+ self.instrumentId = instrumentId
+ #temp: catch old code trying to pass in instrument names here
+ int(instrumentId)
+ self.attack = attack
+ self.decay = decay
+ self.reverbSend = reverbSend
+ self.filterType = filterType
+ self.filterCutoff = filterCutoff
+ self.tied = tied
+ self.mode = mode
+ self.instrumentId2 = instrumentId2
+
+ def clone( self ):
+ return CSoundNote( self.onset, self.pitch, self.amplitude, self.pan,
+ self.duration, self.trackId, self.instrumentId,
+ self.attack, self.decay, self.reverbSend,
+ self.filterType, self.filterCutoff, self.tied,
+ self.mode, self.instrumentId2 )
+
+ def __getstate__unused(self):
+ return {'onset': self.onset,
+ 'pitch': self.pitch,
+ 'amplitude': self.amplitude,
+ 'pan': self.pan,
+ 'duration': self.duration,
+ 'trackId': self.trackId,
+ 'instrumentId': self.instrumentId,
+ 'attack': self.attack,
+ 'decay': self.decay,
+ 'reverbSend': self.reverbSend,
+ 'filterType': self.filterType,
+ 'filterCutoff': self.filterCutoff,
+ 'tied': self.tied,
+ 'mode': self.mode }
+
+ def __setstate__unused(self,dict):
+ self.onset = dict['onset']
+ self.pitch = dict['pitch']
+ self.amplitude = dict['amplitude']
+ self.pan = dict['pan']
+ self.duration = dict['duration']
+ self.trackId = dict['trackId']
+ self.instrumentId = dict['instrumentId']
+ self.attack = dict['attack']
+ self.decay = dict['decay']
+ self.reverbSend = dict['reverbSend']
+ self.filterType = dict['filterType']
+ self.filterCutoff = dict['filterCutoff']
+ self.tied = dict['tied']
+ self.mode = dict['mode']
+ self.nchanges = 0
diff --git a/common/Util/Clooper/Makefile b/common/Util/Clooper/Makefile
new file mode 100644
index 0000000..0f28366
--- /dev/null
+++ b/common/Util/Clooper/Makefile
@@ -0,0 +1,31 @@
+CC=gcc
+
+
+ARCH_OUT = $(shell arch)
+
+CSOUND_ARCH = $(shell if [ -z "$(shell arch | grep arm)" ]; then \
+ echo $(ARCH_OUT) | grep 64 >/dev/null && echo linux64 || echo linux32; \
+ else \
+ echo $(ARCH_OUT); \
+ fi)
+
+CSOUND_VERSION = $(shell csound --version 2>&1 | grep -o "Csound version [0-9]\+\.[0-9]\+" | awk '{print $$3}' | sed s/\\.//g)
+LIB_NAME = $(CSOUND_ARCH)_$(CSOUND_VERSION)
+
+CXXFLAGS = $(shell python-config --cflags) \
+ -Wall -Werror -fPIC -O2 -finline
+LDFLAGS+= $(python-config --libs) \
+ -lasound -lcsound
+
+all : aclient.so
+ rm -rf $(LIB_NAME)
+ mkdir $(LIB_NAME)
+ mv aclient.so $(LIB_NAME)/
+ touch $(LIB_NAME)/__init__.py
+
+aclient.so : aclient.cpp audio.cpp
+ g++ $(CXXFLAGS) -shared -o $@ $< $(LDFLAGS)
+
+clean :
+ rm aclient*.so
+
diff --git a/common/Util/Clooper/SoundClient.i b/common/Util/Clooper/SoundClient.i
new file mode 100644
index 0000000..80d77df
--- /dev/null
+++ b/common/Util/Clooper/SoundClient.i
@@ -0,0 +1,14 @@
+
+%module SClient
+
+%{
+#define SWIG_FILE_WITH_INIT
+#include "SoundClient.h"
+%}
+
+%pythoncode
+%{
+
+%}
+
+%include "SoundClient.h"
diff --git a/common/Util/Clooper/__init__.py b/common/Util/Clooper/__init__.py
new file mode 100644
index 0000000..363fc88
--- /dev/null
+++ b/common/Util/Clooper/__init__.py
@@ -0,0 +1,21 @@
+import os
+import sys
+import logging
+
+_sys_path = sys.path
+_root_path = os.path.dirname(__file__)
+
+for i in os.listdir(_root_path):
+ path = os.path.join(_root_path, i)
+ if (os.path.isdir(path)):
+ sys.path = _sys_path + [os.path.join('.', path)]
+ try:
+ from aclient import *
+ logging.debug('use %s blobs' % path)
+ _sys_path = None
+ break
+ except Exception, e:
+ logging.debug('skip %s blobs: %s' % (path, e))
+
+if _sys_path:
+ raise('cannot find proper binary blobs')
diff --git a/common/Util/Clooper/aclient.cpp b/common/Util/Clooper/aclient.cpp
new file mode 100644
index 0000000..f238c36
--- /dev/null
+++ b/common/Util/Clooper/aclient.cpp
@@ -0,0 +1,1089 @@
+#include <Python.h>
+
+#include <pthread.h>
+#include <stdio.h>
+#include <time.h>
+#include <unistd.h>
+#include <sys/time.h>
+#include <sched.h>
+
+#include <vector>
+#include <map>
+#include <cmath>
+
+#include <csound/csound.h>
+#include <alsa/asoundlib.h>
+
+static double pytime(const struct timeval * tv)
+{
+ struct timeval t;
+ if (!tv)
+ {
+ tv = &t;
+ gettimeofday(&t, NULL);
+ }
+ return (double) tv->tv_sec + (double) tv->tv_usec / 1000000.0;
+}
+#include "log.cpp"
+#include "audio.cpp"
+
+
+int VERBOSE = 3;
+FILE * _debug = NULL;
+struct TamTamSound;
+struct Music;
+TamTamSound * g_tt = NULL;
+Music * g_music = NULL;
+static log_t * g_log = NULL;
+const int STEP_eventMax = 16; //this is the most events that will be queued by a loop per step()
+
+/**
+ * Event is the type of event that Clooper puts in the loop buffer.
+ * It corresponds to a line of csound that starts with an 'i'
+ */
+struct Event
+{
+ char type; ///< if this event were listed in a csound file, the line would begin with this letter
+ int onset; ///< the onset time of this event (its temporal position)
+ bool time_in_ticks; ///< if true, then some parameters will be updated according to the tempo
+ bool active; ///< if true, then event() will actually do something
+ MYFLT prev_secs_per_tick; ///< normally used for ____, sometimes set to -1 to force recalculation of param[] entries
+ MYFLT duration, attack, decay;///< canonical values of some tempo-dependent parameters
+ std::vector<MYFLT> param; ///< parameter buffer for csound
+
+ Event(char type, MYFLT * p, int param_count, bool in_ticks, bool active)
+ : type(type), onset(0), time_in_ticks(in_ticks), active(active), param(param_count)
+ {
+ assert(param_count >= 4);
+ onset = (int) p[1];
+ duration = p[2];
+ attack = param_count > 8 ? p[8]: 0.0; //attack
+ decay = param_count > 9 ? p[9]: 0.0; //decay
+ prev_secs_per_tick = -1.0;
+ for (int i = 0; i < param_count; ++i) param[i] = p[i];
+
+ param[1] = 0.0; //onset
+ }
+ /*
+ bool operator<(const Event &e) const
+ {
+ return onset < e.onset;
+ }
+ */
+ void ev_print(FILE *f)
+ {
+ fprintf(f, "INFO: scoreEvent %c ", type);
+ for (size_t i = 0; i < param.size(); ++i) fprintf(f, "%lf ", param[i]);
+ fprintf(f, "[%s]\n", active ? "active": "inactive");
+ }
+ /**
+ * Update the idx'th param value to have a certain value.
+ *
+ * Certain of the parameters are linked in strange hack-y ways, as defined by
+ * the constructor, and update() (which should be consistent with one another!)
+ *
+ * These events are for use with the file: TamTam/Resources/univorc.csd.
+ * So that file defines how the parameters will be interpreted by csound.
+ */
+ void update(int idx, MYFLT val)
+ {
+ if ( (unsigned)idx >= param.size())
+ {
+ if (_debug && (VERBOSE > 0)) fprintf(_debug, "ERROR: updateEvent request for too-high parameter %i\n", idx);
+ return;
+ }
+ if (time_in_ticks)
+ {
+ switch(idx)
+ {
+ case 1: onset = (int) val; break;
+ case 2: duration = val; break;
+ case 8: attack = val; break;
+ case 9: decay = val; break;
+ default: param[idx] = val; break;
+ }
+ prev_secs_per_tick = -1.0; //force recalculation
+ }
+ else
+ {
+ param[idx] = val;
+ }
+ }
+ /**
+ * An Event instance can be in an active or inactive state. If an Event instance
+ * is active, then event() will call a corresponding csoundScoreEvent(). If an
+ * Event instance is inactive, then event() is a noop.
+ */
+ void activate_cmd(int cmd)
+ {
+ switch(cmd)
+ {
+ case 0: active = false; break;
+ case 1: active = true; break;
+ case 2: active = !active; break;
+ }
+ }
+
+ /**
+ * Iff this instance is active, this call generates a csound event.
+ * Parameters are passed directly as a buffer of floats. If secs_per_tick
+ * != prev_secs_per_tick (possibly because prev_secs_per_tick was set to -1
+ * by update() ) then this call will do some floating point ops to
+ * recalculate the parameter buffer.
+ */
+ void event(CSOUND * csound, MYFLT secs_per_tick)
+ {
+ if (!active) return;
+
+ if (time_in_ticks && (secs_per_tick != prev_secs_per_tick))
+ {
+ param[2] = duration * secs_per_tick;
+ if (param.size() > 8) param[8] = std::max(0.002f, attack * param[2]);
+ if (param.size() > 9) param[9] = std::max(0.002f, decay * param[2]);
+ prev_secs_per_tick = secs_per_tick;
+ if (_debug && (VERBOSE > 2)) fprintf(_debug, "setting duration to %f\n", param[5]);
+ }
+ csoundScoreEvent(csound, type, &param[0], param.size());
+ }
+};
+
+/**
+ *
+ * Loop is a repeat-able loop of Event instances.
+ * */
+struct Loop
+{
+ typedef int onset_t;
+ typedef int id_t;
+ typedef std::pair<onset_t, Event *> pair_t;
+ typedef std::multimap<onset_t, Event *>::iterator iter_t;
+ typedef std::map<id_t, iter_t>::iterator idmap_t;
+
+ int tick_prev;
+ int tickMax;
+ MYFLT rtick;
+
+ // a container of all events, sorted by onset time
+ // used for efficient playback
+ std::multimap<onset_t, Event *> ev;
+ // the playback head
+ std::multimap<onset_t, Event *>::iterator ev_pos;
+ // a container of pointers into ev, indexed by note id
+ // used for deleting, updating notes
+ std::map<id_t, iter_t> idmap;
+ int steps;
+ int playing; //true means that step() works, else step() is no-op
+
+ Loop() : tick_prev(0), tickMax(1), rtick(0.0), ev(), ev_pos(ev.end()), steps(0), playing(0)
+ {
+ }
+ ~Loop()
+ {
+ //TODO: send these events to a recycling queue, don't erase them
+ for (iter_t i = ev.begin(); i != ev.end(); ++i)
+ {
+ delete i->second;
+ }
+ }
+ void deactivateAll()
+ {
+ for (iter_t i = ev.begin(); i != ev.end(); ++i)
+ {
+ i->second->activate_cmd(0);
+ }
+ }
+ MYFLT getTickf()
+ {
+ return fmod(rtick, (MYFLT)tickMax);
+ }
+ void setNumTicks(int nticks)
+ {
+ tickMax = nticks;
+ MYFLT fnticks = nticks;
+ if (rtick > fnticks)
+ {
+ rtick = fmodf(rtick, fnticks);
+ }
+ }
+ void setTickf(float t)
+ {
+ rtick = fmodf(t, (MYFLT) tickMax);
+ ev_pos = ev.lower_bound( (int) rtick );
+ }
+ /** advance in play loop by rtick_inc ticks, possibly generate some
+ * csoundScoreEvent calls.
+ */
+ void step(MYFLT rtick_inc, MYFLT secs_per_tick , CSOUND * csound)
+ {
+ if (!playing) return;
+ rtick += rtick_inc;
+ int tick = (int)rtick % tickMax;
+ if (tick == tick_prev) return;
+
+ int events = 0;
+ int loop0 = 0;
+ int loop1 = 0;
+ if (!ev.empty())
+ {
+ if (steps && (tick < tick_prev)) // should be true only after the loop wraps (not after insert)
+ {
+ while (ev_pos != ev.end())
+ {
+ if (_debug && (VERBOSE > 3)) ev_pos->second->ev_print(_debug);
+ if (events < STEP_eventMax) ev_pos->second->event(csound, secs_per_tick);
+ ++ev_pos;
+ ++events;
+ ++loop0;
+ }
+ ev_pos = ev.begin();
+ }
+ while ((ev_pos != ev.end()) && (tick >= ev_pos->first))
+ {
+ if (_debug && (VERBOSE > 3)) ev_pos->second->ev_print(_debug);
+ if (events < STEP_eventMax) ev_pos->second->event(csound, secs_per_tick);
+ ++ev_pos;
+ ++events;
+ ++loop1;
+ }
+ }
+ tick_prev = tick;
+ if (_debug && (VERBOSE>1) && (events >= STEP_eventMax)) fprintf(_debug, "WARNING: %i/%i events at once (%i, %i)\n", events, (int)ev.size(),loop0,loop1);
+ ++steps;
+ }
+ void addEvent(int id, char type, MYFLT * p, int np, bool in_ticks, bool active)
+ {
+ Event * e = new Event(type, p, np, in_ticks, active);
+
+ idmap_t id_iter = idmap.find(id);
+ if (id_iter == idmap.end())
+ {
+ //this is a new id
+ iter_t e_iter = ev.insert(pair_t(e->onset, e));
+
+ //TODO: optimize by thinking about whether to do ev_pos = e_iter
+ ev_pos = ev.upper_bound( tick_prev );
+ idmap[id] = e_iter;
+ }
+ else
+ {
+ g_log->printf(1, "%s duplicate note %i\n", __FUNCTION__, id);
+ }
+ }
+ void delEvent(int id)
+ {
+ idmap_t id_iter = idmap.find(id);
+ if (id_iter != idmap.end())
+ {
+ iter_t e_iter = id_iter->second;//idmap[id];
+ if (e_iter == ev_pos) ++ev_pos;
+
+ delete e_iter->second;
+ ev.erase(e_iter);
+ idmap.erase(id_iter);
+ }
+ else
+ {
+ g_log->printf( 1, "%s unknown note %i\n", __FUNCTION__, id);
+ }
+ }
+ void updateEvent(int id, int idx, float val, int activate_cmd)
+ {
+ idmap_t id_iter = idmap.find(id);
+ if (id_iter != idmap.end())
+ {
+ //this is a new id
+ iter_t e_iter = id_iter->second;
+ Event * e = e_iter->second;
+ int onset = e->onset;
+ e->update(idx, val);
+ e->activate_cmd(activate_cmd);
+ if (onset != e->onset)
+ {
+ ev.erase(e_iter);
+
+ e_iter = ev.insert(pair_t(e->onset, e));
+
+ //TODO: optimize by thinking about whether to do ev_pos = e_iter
+ ev_pos = ev.upper_bound( tick_prev );
+ idmap[id] = e_iter;
+ }
+ }
+ else
+ {
+ g_log->printf(1, "%s unknown note %i\n", __FUNCTION__, id);
+ }
+ }
+ void reset()
+ {
+ steps = 0;
+ }
+ void setPlaying(int tf)
+ {
+ playing = tf;
+ }
+};
+
+/** management of loops */
+struct Music
+{
+ typedef int loopIdx_t;
+ typedef std::map<int, Loop * > eventMap_t;
+
+ eventMap_t loop;
+ int loop_nextIdx;
+ void * mutex; //modification and playing of loops cannot be interwoven
+
+ Music() :
+ loop(),
+ loop_nextIdx(0),
+ mutex(csoundCreateMutex(0))
+ {
+ }
+ ~Music()
+ {
+ for (eventMap_t::iterator i = loop.begin(); i != loop.end(); ++i)
+ {
+ delete i->second;
+ }
+ csoundDestroyMutex(mutex);
+ }
+
+ void step(MYFLT amt, MYFLT secs_per_tick, CSOUND * csound)
+ {
+ csoundLockMutex(mutex);
+ for (eventMap_t::iterator i = loop.begin(); i != loop.end(); ++i)
+ {
+ i->second->step(amt, secs_per_tick, csound);
+ }
+ csoundUnlockMutex(mutex);
+ }
+
+ /** allocate a new loop, and return its index */
+ loopIdx_t alloc()
+ {
+ csoundLockMutex(mutex);
+ //find a loop_nextIdx that isn't in loop map already
+ while ( loop.find( loop_nextIdx) != loop.end()) ++loop_nextIdx;
+ loop[loop_nextIdx] = new Loop();
+ csoundUnlockMutex(mutex);
+ return loop_nextIdx;
+ }
+ /** de-allocate a loop */
+ void destroy(loopIdx_t loopIdx)
+ {
+ if (loop.find(loopIdx) != loop.end())
+ {
+ csoundLockMutex(mutex);
+ //TODO: save the note events to a cache for recycling
+ delete loop[loopIdx];
+ loop.erase(loopIdx);
+ csoundUnlockMutex(mutex);
+ }
+ else
+ {
+ g_log->printf(1, "%s() called on non-existant loop %i\n", __FUNCTION__ , loopIdx);
+ }
+ }
+ /** set the playing flag of the given loop */
+ void playing(loopIdx_t loopIdx, int tf)
+ {
+ if (loop.find(loopIdx) != loop.end())
+ {
+ csoundLockMutex(mutex);
+ loop[loopIdx]->setPlaying(tf);
+ csoundUnlockMutex(mutex);
+ }
+ else
+ {
+ g_log->printf(1, "%s() called on non-existant loop %i\n", __FUNCTION__ , loopIdx);
+ }
+ }
+ /** set the playing flag of the given loop */
+ void addEvent(loopIdx_t loopIdx, int eventId, char type, MYFLT * p, int np, bool in_ticks, bool active)
+ {
+ if (loop.find(loopIdx) != loop.end())
+ {
+ csoundLockMutex(mutex);
+ loop[loopIdx]->addEvent(eventId, type, p, np, in_ticks, active);
+ csoundUnlockMutex(mutex);
+ }
+ else
+ {
+ g_log->printf(1, "%s() called on non-existant loop %i\n", __FUNCTION__ , loopIdx);
+ }
+ }
+ void delEvent(loopIdx_t loopIdx, int eventId)
+ {
+ if (loop.find(loopIdx) != loop.end())
+ {
+ csoundLockMutex(mutex);
+ loop[loopIdx]->delEvent(eventId);
+ csoundUnlockMutex(mutex);
+ }
+ else
+ {
+ g_log->printf(1, "%s() called on non-existant loop %i\n", __FUNCTION__ , loopIdx);
+ }
+ }
+ void updateEvent(loopIdx_t loopIdx, int eventId, int pIdx, float pVal, int activate_cmd)
+ {
+ if (loop.find(loopIdx) != loop.end())
+ {
+ csoundLockMutex(mutex);
+ loop[loopIdx]->updateEvent(eventId, pIdx, pVal, activate_cmd);
+ csoundUnlockMutex(mutex);
+ }
+ else
+ {
+ g_log->printf(1, "%s() called on non-existant loop %i\n", __FUNCTION__ , loopIdx);
+ }
+ }
+ MYFLT getTickf(loopIdx_t loopIdx)
+ {
+ if (loop.find(loopIdx) != loop.end())
+ {
+ return loop[loopIdx]->getTickf();
+ }
+ else
+ {
+ g_log->printf(1, "%s() called on non-existant loop %i\n", __FUNCTION__ , loopIdx);
+ return 0.0;
+ }
+ }
+ void setTickf(loopIdx_t loopIdx, MYFLT tickf)
+ {
+ if (loop.find(loopIdx) != loop.end())
+ {
+ loop[loopIdx]->setTickf(tickf);
+ }
+ else
+ {
+ g_log->printf(1, "%s() called on non-existant loop %i\n", __FUNCTION__ , loopIdx);
+ }
+ }
+ void setNumTicks(loopIdx_t loopIdx, int numTicks)
+ {
+ if (loop.find(loopIdx) != loop.end())
+ {
+ loop[loopIdx]->setNumTicks(numTicks);
+ }
+ else
+ {
+ g_log->printf(1, "%s() called on non-existant loop %i\n", __FUNCTION__ , loopIdx);
+ }
+ }
+ void deactivateAll(loopIdx_t loopIdx)
+ {
+ if (loop.find(loopIdx) != loop.end())
+ {
+ loop[loopIdx]->deactivateAll();
+ }
+ else
+ {
+ g_log->printf(1, "%s() called on non-existant loop %i\n", __FUNCTION__ , loopIdx);
+ }
+ }
+
+};
+
+/**
+ * The main object of control in the Clooper plugin.
+ *
+ * This guy controls the sound rendering thread, loads and unloads ALSA,
+ * maintains a csound instance, and maintains a subset of notes from the
+ * currently-loaded TamTam.
+ */
+struct TamTamSound
+{
+ /** the id of an running sound-rendering thread, or NULL */
+ void * ThreadID;
+ /** a flag to tell the thread to continue, or break */
+ enum {CONTINUE, STOP} PERF_STATUS;
+ /** our csound object, NULL iff there was a problem creating it */
+ CSOUND * csound;
+ /** our note sources */
+ Music music;
+
+ MYFLT secs_per_tick;
+ MYFLT ticks_per_period;
+ MYFLT tick_adjustment; //the default time increment in thread_fn
+ MYFLT tick_total;
+
+ /** the upsampling ratio from csound */
+ unsigned int csound_ksmps;
+ snd_pcm_uframes_t csound_frame_rate;
+ snd_pcm_uframes_t csound_period_size;
+ snd_pcm_uframes_t period0;
+ unsigned int period_per_buffer; //should be 2
+ int up_ratio; //if the hardware only supports a small integer multiple of our effective samplerate, do a real-time conversion
+
+ log_t * ll;
+ SystemStuff * sys_stuff;
+
+ TamTamSound(log_t * ll, char * orc, snd_pcm_uframes_t period0, unsigned int ppb, int ksmps, int framerate )
+ : ThreadID(NULL), PERF_STATUS(STOP), csound(NULL),
+ music(),
+ ticks_per_period(0.0),
+ tick_adjustment(0.0),
+ tick_total(0.0),
+ csound_ksmps(ksmps), //must agree with the orchestra file
+ csound_frame_rate(framerate), //must agree with the orchestra file
+ period0(period0),
+ period_per_buffer(ppb),
+ up_ratio(1),
+ ll( ll ),
+ sys_stuff(NULL)
+ {
+ sys_stuff = new SystemStuff(ll);
+ if (0 > sys_stuff->open(csound_frame_rate, 4, period0, period_per_buffer))
+ {
+ return;
+ }
+ sys_stuff->close(0);
+ up_ratio = sys_stuff->rate / csound_frame_rate;
+ csound_period_size = (sys_stuff->period_size % up_ratio == 0)
+ ? sys_stuff->period_size / up_ratio
+ : csound_ksmps * 4;
+
+ csound = csoundCreate(NULL);
+ int argc=3;
+ const char **argv = (const char**)malloc(argc*sizeof(char*));
+ argv[0] = "csound";
+ argv[1] = "-m0";
+ argv[2] = orc;
+
+ ll->printf(1, "loading csound orchestra file %s\n", orc);
+ //csoundInitialize(&argc, &argv, 0);
+ csoundPreCompile(csound);
+ csoundSetHostImplementedAudioIO(csound, 1, csound_period_size);
+ int result = csoundCompile(csound, argc, (char**)argv);
+ if (result)
+ {
+ csound = NULL;
+ ll->printf( "ERROR: csoundCompile of orchestra %s failed with code %i\n", orc, result);
+ }
+ free(argv);
+ setTickDuration(0.05);
+ }
+ ~TamTamSound()
+ {
+ if (csound)
+ {
+ stop();
+ ll->printf(2, "Going for csoundDestroy\n");
+ csoundDestroy(csound);
+ }
+ ll->printf(2, "TamTamSound destroyed\n");
+ if (sys_stuff) delete sys_stuff;
+ delete ll;
+ }
+ bool good()
+ {
+ return csound != NULL;
+ }
+
+ uintptr_t thread_fn()
+ {
+ assert(csound);
+
+ const int nchannels = 2;
+ int nloops = 0;
+ long int csound_nsamples = csoundGetOutputBufferSize(csound);
+ long int csound_nframes = csound_nsamples / nchannels;
+
+ ll->printf(2, "INFO: nsamples = %li nframes = %li\n", csound_nsamples, csound_nframes);
+
+ if (0 > sys_stuff->open(csound_frame_rate, 4, period0, period_per_buffer))
+ {
+ ll->printf( "ERROR: failed to open alsa device, thread abort\n");
+ return 1;
+ }
+
+ assert(up_ratio == (signed)(sys_stuff->rate / csound_frame_rate));
+
+ bool do_upsample = (signed)sys_stuff->period_size != csound_nframes;
+ short *upbuf = new short[ sys_stuff->period_size * nchannels ];
+ int cbuf_pos = csound_nframes; // trigger a call to csoundPerformBuffer immediately
+ float *cbuf = NULL;
+ int up_pos = 0;
+ int ratio_pos = 0;
+
+ tick_total = 0.0f;
+
+ while (PERF_STATUS == CONTINUE)
+ {
+ if ( do_upsample ) //fill one period of audio buffer data by 0 or more calls to csound
+ {
+ up_pos = 0;
+ int messed = 0;
+ short cursample[2]={0,0};
+ while(!messed)
+ {
+ if (cbuf_pos == csound_nframes)
+ {
+ cbuf_pos = 0;
+ if (csoundPerformBuffer(csound)) { messed = 1;break;}
+ cbuf = csoundGetOutputBuffer(csound);
+ cursample[0] = (signed short int) (cbuf[cbuf_pos*2+0] * (1<<15));
+ cursample[1] = (signed short int) (cbuf[cbuf_pos*2+1] * (1<<15));
+
+ }
+ upbuf[2*up_pos+0] = cursample[0];
+ upbuf[2*up_pos+1] = cursample[1];
+ if (++ratio_pos == up_ratio)
+ {
+ ratio_pos = 0;
+ ++cbuf_pos;
+ cursample[0] = (signed short int) (cbuf[cbuf_pos*2+0] * (1<<15));
+ cursample[1] = (signed short int) (cbuf[cbuf_pos*2+1] * (1<<15));
+ }
+
+ if (++up_pos == (signed)sys_stuff->period_size) break;
+ }
+ if (messed || (up_pos != (signed)sys_stuff->period_size)) break;
+
+ if (0 > sys_stuff->writebuf(sys_stuff->period_size, upbuf)) break;
+ }
+ else //fill one period of audio directly from csound
+ {
+ if (csoundPerformBuffer(csound)) break;
+ cbuf = csoundGetOutputBuffer(csound);
+ for (int i = 0; i < csound_nframes * nchannels; ++i)
+ {
+ cbuf[i] *= (float) ((1<<15)-100.0f);
+ upbuf[i] = (signed short int) cbuf[i];
+ }
+ if (0 > sys_stuff->writebuf(csound_nframes,upbuf)) break;
+ }
+
+ if (tick_adjustment > - ticks_per_period)
+ {
+ MYFLT tick_inc = ticks_per_period + tick_adjustment;
+ music.step( tick_inc, secs_per_tick, csound);
+ tick_adjustment = 0.0;
+ tick_total += tick_inc;
+ }
+ else
+ {
+ tick_adjustment += ticks_per_period;
+ }
+ ++nloops;
+ }
+
+ sys_stuff->close(1);
+ delete [] upbuf;
+ ll->printf(2, "INFO: performance thread returning 0\n");
+ return 0;
+ }
+ static uintptr_t csThread(void *clientData)
+ {
+ return ((TamTamSound*)clientData)->thread_fn();
+ }
+ int start(int )
+ {
+ if (!csound) {
+ ll->printf(1, "skipping %s, csound==NULL\n", __FUNCTION__);
+ return 1;
+ }
+ if (!ThreadID)
+ {
+ PERF_STATUS = CONTINUE;
+ ThreadID = csoundCreateThread(csThread, (void*)this);
+ ll->printf( "INFO(%s:%i) aclient launching performance thread (%p)\n", __FILE__, __LINE__, ThreadID );
+ return 0;
+ }
+ ll->printf( "INFO(%s:%i) skipping duplicate request to launch a thread\n", __FILE__, __LINE__ );
+ return 1;
+ }
+ int stop()
+ {
+ if (!csound) {
+ ll->printf(1, "skipping %s, csound==NULL\n", __FUNCTION__);
+ return 1;
+ }
+ if (ThreadID)
+ {
+ PERF_STATUS = STOP;
+ ll->printf( "INFO(%s:%i) aclient joining performance thread\n", __FILE__, __LINE__ );
+ uintptr_t rval = csoundJoinThread(ThreadID);
+ ll->printf( "INFO(%s:%i) ... joined\n", __FILE__, __LINE__ );
+ if (rval) ll->printf( "WARNING: thread returned %zu\n", rval);
+ ThreadID = NULL;
+ return 0;
+ }
+ return 1;
+ }
+
+ /** pass an array event straight through to csound. only works if perf. thread is running */
+ void scoreEvent(char type, MYFLT * p, int np)
+ {
+ if (!csound) {
+ ll->printf(1, "skipping %s, csound==NULL\n", __FUNCTION__);
+ return;
+ }
+ if (!ThreadID)
+ {
+ if (_debug && (VERBOSE > 1)) fprintf(_debug, "skipping %s, ThreadID==NULL\n", __FUNCTION__);
+ return ;
+ }
+ if (_debug && (VERBOSE > 2))
+ {
+ fprintf(_debug, "INFO: scoreEvent %c ", type);
+ for (int i = 0; i < np; ++i) fprintf(_debug, "%lf ", p[i]);
+ fprintf(_debug, "\n");
+ }
+ csoundScoreEvent(csound, type, p, np);
+ }
+ /** pass a string event straight through to csound. only works if perf. thread is running */
+ void inputMessage(const char * msg)
+ {
+ if (!csound) {
+ ll->printf(1, "skipping %s, csound==NULL\n", __FUNCTION__);
+ return;
+ }
+ if (!ThreadID)
+ {
+ if (_debug && (VERBOSE > 1)) fprintf(_debug, "skipping %s, ThreadID==NULL\n", __FUNCTION__);
+ return ;
+ }
+ if (_debug &&(VERBOSE > 3)) fprintf(_debug, "%s\n", msg);
+ csoundInputMessage(csound, msg);
+ }
+ /** pass a setChannel command through to csound. only works if perf. thread is running */
+ void setChannel(const char * name, MYFLT vol)
+ {
+ if (!csound) {
+ ll->printf(1, "skipping %s, csound==NULL\n", __FUNCTION__);
+ return;
+ }
+ if (!ThreadID)
+ {
+ if (_debug && (VERBOSE > 1)) fprintf(_debug, "skipping %s, ThreadID==NULL\n", __FUNCTION__);
+ return ;
+ }
+ MYFLT *p;
+ if (!(csoundGetChannelPtr(csound, &p, name, CSOUND_CONTROL_CHANNEL | CSOUND_INPUT_CHANNEL)))
+ *p = (MYFLT) vol;
+ else
+ {
+ if (_debug && (VERBOSE >0)) fprintf(_debug, "ERROR: failed to set channel: %s\n", name);
+ }
+ }
+
+ /** adjust the global tick value by this much */
+ void adjustTick(MYFLT dtick)
+ {
+ tick_adjustment += dtick;
+ }
+ void setTickDuration(MYFLT d )
+ {
+ secs_per_tick = d;
+ ticks_per_period = csound_period_size / ( secs_per_tick * csound_frame_rate);
+ ll->printf( 3, "INFO: duration %lf := ticks_per_period %lf\n", secs_per_tick , ticks_per_period);
+ }
+ MYFLT getTickf()
+ {
+ return tick_total + tick_adjustment;
+ }
+};
+
+
+static void cleanup(void)
+{
+ if (g_tt)
+ {
+ delete g_tt;
+ g_tt = NULL;
+ }
+}
+
+#define DECL(s) static PyObject * s(PyObject * self, PyObject *args)
+#define RetNone Py_INCREF(Py_None); return Py_None;
+
+//call once at end
+DECL(sc_destroy)
+{
+ if (!PyArg_ParseTuple(args, ""))
+ {
+ return NULL;
+ }
+ if (g_tt)
+ {
+ delete g_tt;
+ g_tt = NULL;
+ if (_debug) fclose(_debug);
+ }
+ RetNone;
+}
+//call once at startup, should return 0
+DECL(sc_initialize) //(char * csd)
+{
+ char * str;
+ char * log_file;
+ int period, ppb, ksmps, framerate;
+ if (!PyArg_ParseTuple(args, "ssiiiii", &str, &log_file, &period, &ppb, &VERBOSE, &ksmps, &framerate ))
+ {
+ return NULL;
+ }
+ if ( log_file[0] )
+ {
+ _debug = fopen(log_file,"w");
+ if (_debug==NULL)
+ {
+ fprintf(stderr, "WARNING: fopen(%s) failed, logging to stderr\n", log_file);
+ _debug = stderr;
+ }
+ }
+ else
+ {
+ _debug = NULL;
+ fprintf(stderr, "Logging disabled on purpose\n");
+ }
+ g_log = new log_t(_debug, VERBOSE);
+ g_tt = new TamTamSound(g_log, str, period, ppb, ksmps, framerate);
+ g_music = & g_tt->music;
+ atexit(&cleanup);
+ if (g_tt->good())
+ return Py_BuildValue("i", 0);
+ else
+ return Py_BuildValue("i", -1);
+}
+//compile the score, connect to device, start a sound rendering thread
+DECL(sc_start)
+{
+ int ppb;
+ if (!PyArg_ParseTuple(args, "i", &ppb ))
+ {
+ return NULL;
+ }
+ return Py_BuildValue("i", g_tt->start(ppb));
+}
+//stop csound rendering thread, disconnect from sound device, clear tables.
+DECL(sc_stop)
+{
+ if (!PyArg_ParseTuple(args, "" ))
+ {
+ return NULL;
+ }
+ return Py_BuildValue("i", g_tt->stop());
+}
+DECL(sc_scoreEvent) //(char type, farray param)
+{
+ char ev_type;
+ PyObject *o;
+ if (!PyArg_ParseTuple(args, "cO", &ev_type, &o ))
+ {
+ return NULL;
+ }
+ if (o->ob_type
+ && o->ob_type->tp_as_buffer
+ && (1 == o->ob_type->tp_as_buffer->bf_getsegcount(o, NULL)))
+ {
+ if (o->ob_type->tp_as_buffer->bf_getreadbuffer)
+ {
+ void * ptr;
+ size_t len;
+ len = o->ob_type->tp_as_buffer->bf_getreadbuffer(o, 0, &ptr);
+ float * fptr = (float*)ptr;
+ size_t flen = len / sizeof(float);
+ g_tt->scoreEvent(ev_type, fptr, flen);
+
+ Py_INCREF(Py_None);
+ return Py_None;
+ }
+ else
+ {
+ assert(!"asdf");
+ }
+ }
+ assert(!"not reached");
+ return NULL;
+}
+DECL (sc_inputMessage) //(const char *msg)
+{
+ char * msg;
+ if (!PyArg_ParseTuple(args, "s", &msg ))
+ {
+ return NULL;
+ }
+ g_tt->inputMessage(msg);
+ RetNone;
+}
+DECL(sc_setChannel) //(string name, float value)
+{
+ const char * str;
+ float v;
+ if (!PyArg_ParseTuple(args, "sf", &str,&v))
+ {
+ return NULL;
+ }
+ g_tt->setChannel(str,v);
+ Py_INCREF(Py_None);
+ return Py_None;
+}
+DECL(sc_getTickf) // () -> float
+{
+ if (!PyArg_ParseTuple(args, ""))
+ {
+ return NULL;
+ }
+ return Py_BuildValue("f", g_tt->getTickf());
+}
+DECL(sc_adjustTick) // (MYFLT ntick)
+{
+ float spt;
+ if (!PyArg_ParseTuple(args, "f", &spt ))
+ {
+ return NULL;
+ }
+ g_tt->adjustTick(spt);
+ RetNone;
+}
+DECL(sc_setTickDuration) // (MYFLT secs_per_tick)
+{
+ float spt;
+ if (!PyArg_ParseTuple(args, "f", &spt ))
+ {
+ return NULL;
+ }
+ g_tt->setTickDuration(spt);
+ RetNone;
+}
+DECL(sc_loop_new) // () -> int
+{
+ if (!PyArg_ParseTuple(args, "" )) return NULL;
+ return Py_BuildValue("i", g_music->alloc());
+}
+DECL(sc_loop_delete) // (int loopIdx)
+{
+ int loopIdx;
+ if (!PyArg_ParseTuple(args, "i", &loopIdx )) return NULL;
+ g_music->destroy(loopIdx);
+ RetNone;
+}
+DECL(sc_loop_getTickf) // (int loopIdx) -> float
+{
+ int idx;
+ if (!PyArg_ParseTuple(args, "i", &idx ))
+ {
+ return NULL;
+ }
+ return Py_BuildValue("f", g_music->getTickf(idx));
+}
+DECL(sc_loop_setNumTicks) //(int loopIdx, int nticks)
+{
+ int loopIdx;
+ int nticks;
+ if (!PyArg_ParseTuple(args, "ii", &loopIdx, &nticks )) return NULL;
+ g_music->setNumTicks(loopIdx, nticks);
+ RetNone;
+}
+DECL(sc_loop_setTickf) // (int loopIdx, float pos)
+{
+ int loopIdx;
+ MYFLT pos;
+ if (!PyArg_ParseTuple(args, "if", &loopIdx, &pos )) return NULL;
+ g_music->setTickf(loopIdx, pos);
+ RetNone;
+}
+DECL(sc_loop_addScoreEvent) // (int loopIdx, int id, int duration_in_ticks, char type, farray param)
+{
+ int loopIdx, qid, inticks, active;
+ char ev_type;
+ PyObject *o;
+ if (!PyArg_ParseTuple(args, "iiiicO", &loopIdx, &qid, &inticks, &active, &ev_type, &o )) return NULL;
+
+ if (o->ob_type
+ && o->ob_type->tp_as_buffer
+ && (1 == o->ob_type->tp_as_buffer->bf_getsegcount(o, NULL)))
+ {
+ if (o->ob_type->tp_as_buffer->bf_getreadbuffer)
+ {
+ void * ptr;
+ size_t len;
+ len = o->ob_type->tp_as_buffer->bf_getreadbuffer(o, 0, &ptr);
+ float * fptr = (float*)ptr;
+ size_t flen = len / sizeof(float);
+
+ g_music->addEvent(loopIdx, qid, ev_type, fptr, flen, inticks, active);
+
+ RetNone;
+ }
+ else
+ {
+ assert(!"asdf");
+ }
+ }
+ assert(!"not reached");
+ return NULL;
+}
+DECL(sc_loop_delScoreEvent) // (int loopIdx, int id)
+{
+ int loopIdx, id;
+ if (!PyArg_ParseTuple(args, "ii", &loopIdx, &id ))
+ {
+ return NULL;
+ }
+ g_music->delEvent(loopIdx, id);
+ RetNone;
+}
+DECL(sc_loop_updateEvent) // (int loopIdx, int id, int paramIdx, float paramVal, int activate_cmd))
+{
+ int loopIdx, eventId;
+ int idx;
+ float val;
+ int cmd;
+ if (!PyArg_ParseTuple(args, "iiifi", &loopIdx, &eventId, &idx, &val, &cmd)) return NULL;
+ g_music->updateEvent(loopIdx, eventId, idx, val, cmd);
+ RetNone;
+}
+DECL(sc_loop_deactivate_all) // (int id)
+{
+ int loopIdx;
+ if (!PyArg_ParseTuple(args, "i", &loopIdx)) return NULL;
+ g_music->deactivateAll(loopIdx);
+ RetNone;
+}
+DECL(sc_loop_playing) // (int loopIdx, int tf)
+{
+ int loopIdx, tf;
+ if (!PyArg_ParseTuple(args, "ii", &loopIdx, &tf )) return NULL;
+ g_music->playing(loopIdx, tf);
+ RetNone;
+}
+
+#define MDECL(s) {""#s, s, METH_VARARGS, "documentation of "#s"... nothing!"}
+static PyMethodDef SpamMethods[] = {
+ MDECL(sc_destroy),
+ MDECL(sc_initialize),
+ MDECL(sc_start),
+ MDECL(sc_stop),
+
+ MDECL(sc_setChannel),
+ MDECL(sc_inputMessage),
+ MDECL(sc_scoreEvent),
+
+ MDECL(sc_getTickf),
+ MDECL(sc_adjustTick),
+ MDECL(sc_setTickDuration),
+
+ MDECL(sc_loop_new),
+ MDECL(sc_loop_delete),
+ MDECL(sc_loop_getTickf),
+ MDECL(sc_loop_setTickf),
+ MDECL(sc_loop_setNumTicks),
+ MDECL(sc_loop_delScoreEvent),
+ MDECL(sc_loop_addScoreEvent),
+ MDECL(sc_loop_updateEvent),
+ MDECL(sc_loop_deactivate_all),
+ MDECL(sc_loop_playing),
+ {NULL, NULL, 0, NULL} /*end of list */
+};
+
+PyMODINIT_FUNC
+initaclient(void)
+{
+ (void) Py_InitModule("aclient", SpamMethods);
+}
+
+
diff --git a/common/Util/Clooper/armv7l_510/__init__.py b/common/Util/Clooper/armv7l_510/__init__.py
new file mode 100644
index 0000000..e69de29
--- /dev/null
+++ b/common/Util/Clooper/armv7l_510/__init__.py
diff --git a/common/Util/Clooper/armv7l_510/aclient.so b/common/Util/Clooper/armv7l_510/aclient.so
new file mode 100755
index 0000000..f1ec578
--- /dev/null
+++ b/common/Util/Clooper/armv7l_510/aclient.so
Binary files differ
diff --git a/common/Util/Clooper/audio.cpp b/common/Util/Clooper/audio.cpp
new file mode 100644
index 0000000..6f5a271
--- /dev/null
+++ b/common/Util/Clooper/audio.cpp
@@ -0,0 +1,237 @@
+#ifndef AUDIO_HXX
+#define AUDIO_HXX
+
+/*
+ * Latency test program
+ *
+ * Author: Jaroslav Kysela <perex@suse.cz>
+ *
+ * This small demo program can be used for measuring latency between
+ * capture and playback. This latency is measured from driver (diff when
+ * playback and capture was started). Scheduler is set to SCHED_RR.
+ *
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 2 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
+ *
+ */
+
+#include <stdio.h>
+#include <stdlib.h>
+#include <string.h>
+#include <sched.h>
+#include <errno.h>
+#include <getopt.h>
+#include <sys/time.h>
+#include <math.h>
+
+#include <string>
+#include <alsa/asoundlib.h>
+
+#define ERROR_HERE ll->printf("ERROR_HERE: %s %i\n", __FILE__, __LINE__)
+
+struct SystemStuff
+{
+ log_t * ll;
+
+ snd_pcm_t *phandle;
+ snd_pcm_uframes_t period_size;
+ unsigned int rate;
+ const snd_pcm_format_t sample_format;
+ SystemStuff(log_t * ll) : ll(ll), phandle(NULL), period_size(0), rate(0), sample_format(SND_PCM_FORMAT_S16)
+ {
+ }
+ ~SystemStuff()
+ {
+ if (phandle) close(0);
+ }
+
+ void setscheduler(void)
+ {
+ struct sched_param sched_param;
+
+ if (sched_getparam(0, &sched_param) < 0) {
+ ll->printf( "Scheduler getparam failed...\n");
+ return;
+ }
+ sched_param.sched_priority = sched_get_priority_max(SCHED_RR);
+ if (!sched_setscheduler(0, SCHED_RR, &sched_param)) {
+ ll->printf( "Scheduler set to Round Robin with priority %i...\n", sched_param.sched_priority);
+ return;
+ }
+ ll->printf( "!!!Scheduler set to Round Robin with priority %i FAILED!!!\n", sched_param.sched_priority);
+ }
+
+ int open(unsigned int rate0, int upsample_max, snd_pcm_uframes_t period0, unsigned int p_per_buff)
+ {
+ snd_pcm_hw_params_t *hw;
+
+ if (phandle)
+ {
+ ll->printf( "ERROR: open called twice! First close the sound device\n");
+ return -1;
+ }
+
+ if ( 0 > snd_pcm_open(&phandle, "default", SND_PCM_STREAM_PLAYBACK, 0)) { ERROR_HERE; return -1; }
+ if ( 0 > snd_pcm_hw_params_malloc(&hw)) { ERROR_HERE; snd_pcm_close(phandle); phandle = NULL; return -1; }
+
+ //now we can be a bit flexible with the buffer size and the sample-rate...
+
+ int upsample;
+ for (upsample = 1; upsample < upsample_max; ++upsample)
+ {
+ rate = rate0 * upsample;
+
+ if ( 0 > snd_pcm_hw_params_any(phandle, hw)) { ERROR_HERE; goto open_error;}
+
+ //first do the compulsory steps... interleaved float, 2 channel
+ if ( 0 > snd_pcm_hw_params_set_rate_resample(phandle, hw, 0)) { ERROR_HERE; goto open_error;}
+ if ( 0 > snd_pcm_hw_params_test_access(phandle, hw, SND_PCM_ACCESS_RW_INTERLEAVED)){ ERROR_HERE; goto open_error;}
+ if ( 0 > snd_pcm_hw_params_set_access(phandle, hw, SND_PCM_ACCESS_RW_INTERLEAVED)){ ERROR_HERE; goto open_error;}
+ if ( 0 > snd_pcm_hw_params_test_format(phandle, hw, sample_format)) { ERROR_HERE; goto open_error;}
+ if ( 0 > snd_pcm_hw_params_set_format(phandle, hw, sample_format)) { ERROR_HERE; goto open_error;}
+ if ( 0 > snd_pcm_hw_params_set_channels(phandle, hw, 2)) { ERROR_HERE; goto open_error;}
+
+ if ( snd_pcm_hw_params_set_rate_near(phandle, hw, &rate, 0))
+ {
+ ll->printf("test_rate failed( %i\n", rate);
+ continue;
+ }
+ else
+ {
+ ll->printf(1, "success! setting rate : %i\n", rate);
+
+ snd_pcm_uframes_t minb=0, maxb= 0;
+ int mind=0, maxd=0;
+ snd_pcm_hw_params_get_period_size_min(hw, &minb,&mind);
+ snd_pcm_hw_params_get_period_size_max(hw, &maxb,&maxd);
+ ll->printf(2, "FYI: period size range is [%li/%i,%li/%i]\n", minb,mind, maxb, maxd);
+
+ if ((mind != 0) || (maxd == 0))
+ {
+ ll->printf(2, "watch out, mind and maxd non-zero... you didn't set rate_resample to 0 did you...\n");
+ }
+
+ if (period0 < minb)
+ {
+ ll->printf(1, "requested period size (%li) < min (%li), adjusting to min\n", period_size, minb);
+ period_size = minb;
+ }
+ else if (period0 > maxb)
+ {
+ ll->printf(2, "requested period size (%li) < max (%li), adjusting to min\n", period_size, maxb);
+ period_size = maxb;
+ }
+ else
+ {
+ period_size = period0;
+ }
+
+ ll->printf(1, "testing period size : %li\n", period_size);
+ if ( 0 > snd_pcm_hw_params_test_period_size(phandle, hw, period_size, 0)){ ERROR_HERE; goto open_error;}
+
+
+ ll->printf(1, "setting period size : %li\n", period_size);
+ if ( 0 > snd_pcm_hw_params_set_period_size_near(phandle, hw, &period_size, 0)){ ERROR_HERE; goto open_error;}
+
+ ll->printf(1, "setting buffer size : %i * %li = %li\n", p_per_buff, period_size, p_per_buff * period_size);
+ snd_pcm_uframes_t buff_size = p_per_buff * period_size;
+ if ( 0 > snd_pcm_hw_params_set_buffer_size_near(phandle, hw, &buff_size)) { ERROR_HERE; goto open_error;}
+
+ break;
+ }
+ }
+
+ if (upsample_max == upsample) { ERROR_HERE; goto open_error; }
+
+ if (0 > snd_pcm_hw_params(phandle, hw)) { ERROR_HERE; goto open_error; }
+
+ snd_pcm_hw_params_free (hw);
+ return 0;
+
+open_error:
+ snd_pcm_hw_params_free (hw);
+ snd_pcm_close(phandle);
+ phandle = NULL;
+ return -1;
+ }
+ void close(int drain = 0)
+ {
+ if (!phandle)
+ {
+ ll->printf(0, "WARNING: attempt to close already-closed pcm\n");
+ return;
+ }
+ ll->printf(1, "INFO: closing phandle device\n");
+ if (drain) snd_pcm_drain(phandle);
+ snd_pcm_close(phandle);
+ phandle = NULL;
+ }
+ void prepare()
+ {
+ if (!phandle)
+ {
+ ll->printf(0, "ERROR: attempt to prepare a closed pcm\n");
+ return;
+ }
+ if (0 > snd_pcm_prepare(phandle)) { ERROR_HERE; }
+ }
+ int writebuf(snd_pcm_uframes_t frame_count, short int * frame_data)
+ {
+ if (!phandle)
+ {
+ ll->printf(0, "ERROR: attempt to write a closed phandle\n");
+ return -1;
+ }
+ int err = 0;
+ while (frame_count > 0) {
+ err = snd_pcm_writei (phandle, frame_data, frame_count );
+ if (err == (signed)frame_count) return 0; //success
+ if (err == -EAGAIN)
+ continue;
+ if (err < 0)
+ break;
+ frame_data += err * 4;
+ frame_count -= err;
+ }
+
+ if (err >= 0)
+ {
+ ll->printf(0, "madness on line %s:%i\n", __FILE__, __LINE__);
+ return -1;
+ }
+
+ const char * msg = NULL;
+ snd_pcm_state_t state = snd_pcm_state(phandle);
+ switch (state)
+ {
+ case SND_PCM_STATE_OPEN: msg = "open"; break;
+ case SND_PCM_STATE_SETUP: msg = "setup"; break;
+ case SND_PCM_STATE_PREPARED:msg = "prepared"; break;
+ case SND_PCM_STATE_RUNNING: msg = "running"; break;
+ case SND_PCM_STATE_XRUN: msg = "xrun"; break;
+ case SND_PCM_STATE_DRAINING: msg = "draining"; break;
+ case SND_PCM_STATE_PAUSED: msg = "paused"; break;
+ case SND_PCM_STATE_SUSPENDED: msg = "suspended"; break;
+ case SND_PCM_STATE_DISCONNECTED: msg = "disconnected"; break;
+ }
+ ll->printf(1, "WARNING: write failed (%s)\tstate = %s\ttime=%lf\n", snd_strerror (err), msg, pytime(NULL));
+ if (0 > snd_pcm_recover(phandle, err, 0)) { ERROR_HERE; return err;}
+ if (0 > snd_pcm_prepare(phandle)) { ERROR_HERE; return err;}
+ return 1; //warning
+ }
+};
+#undef ERROR_HERE
+
+#endif
diff --git a/common/Util/Clooper/cmd_csound.cpp b/common/Util/Clooper/cmd_csound.cpp
new file mode 100644
index 0000000..ef94f84
--- /dev/null
+++ b/common/Util/Clooper/cmd_csound.cpp
@@ -0,0 +1,22 @@
+
+#include <stdio.h>
+#include <csound/csound.hpp>
+
+#include "SoundClient.h"
+
+int main( int argc, char ** argv)
+{
+ int userInput = 200;
+ int rval = sc_initialize(argv[1]);
+ sc_setMasterVolume(30.0);
+
+ while ((userInput != 0) && (rval == 0))
+ {
+ fprintf(stderr, "Enter a pitch\n");
+ scanf("%i", &userInput);
+ //sc_instrumentLoad(5083, "/home/olpc/tamtam/Resources/Sounds/sitar");
+ scanf("%i", &userInput);
+ }
+
+ return 0;
+}
diff --git a/common/Util/Clooper/linux32_508/__init__.py b/common/Util/Clooper/linux32_508/__init__.py
new file mode 100644
index 0000000..e69de29
--- /dev/null
+++ b/common/Util/Clooper/linux32_508/__init__.py
diff --git a/common/Util/Clooper/linux32_508/aclient.so b/common/Util/Clooper/linux32_508/aclient.so
new file mode 100755
index 0000000..9bc3bd5
--- /dev/null
+++ b/common/Util/Clooper/linux32_508/aclient.so
Binary files differ
diff --git a/common/Util/Clooper/linux32_510/__init__.py b/common/Util/Clooper/linux32_510/__init__.py
new file mode 100644
index 0000000..e69de29
--- /dev/null
+++ b/common/Util/Clooper/linux32_510/__init__.py
diff --git a/common/Util/Clooper/linux32_510/aclient.so b/common/Util/Clooper/linux32_510/aclient.so
new file mode 100755
index 0000000..60bca73
--- /dev/null
+++ b/common/Util/Clooper/linux32_510/aclient.so
Binary files differ
diff --git a/common/Util/Clooper/linux32_511_deb/__init__.py b/common/Util/Clooper/linux32_511_deb/__init__.py
new file mode 100644
index 0000000..e69de29
--- /dev/null
+++ b/common/Util/Clooper/linux32_511_deb/__init__.py
diff --git a/common/Util/Clooper/linux32_511_deb/aclient.so b/common/Util/Clooper/linux32_511_deb/aclient.so
new file mode 100755
index 0000000..e9d88c3
--- /dev/null
+++ b/common/Util/Clooper/linux32_511_deb/aclient.so
Binary files differ
diff --git a/common/Util/Clooper/linux64_/__init__.py b/common/Util/Clooper/linux64_/__init__.py
new file mode 100644
index 0000000..e69de29
--- /dev/null
+++ b/common/Util/Clooper/linux64_/__init__.py
diff --git a/common/Util/Clooper/linux64_/aclient.so b/common/Util/Clooper/linux64_/aclient.so
new file mode 100755
index 0000000..96893b5
--- /dev/null
+++ b/common/Util/Clooper/linux64_/aclient.so
Binary files differ
diff --git a/common/Util/Clooper/linux64_510/__init__.py b/common/Util/Clooper/linux64_510/__init__.py
new file mode 100644
index 0000000..e69de29
--- /dev/null
+++ b/common/Util/Clooper/linux64_510/__init__.py
diff --git a/common/Util/Clooper/linux64_510/aclient.so b/common/Util/Clooper/linux64_510/aclient.so
new file mode 100755
index 0000000..efc82c4
--- /dev/null
+++ b/common/Util/Clooper/linux64_510/aclient.so
Binary files differ
diff --git a/common/Util/Clooper/linux64_511_deb/__init__.py b/common/Util/Clooper/linux64_511_deb/__init__.py
new file mode 100644
index 0000000..e69de29
--- /dev/null
+++ b/common/Util/Clooper/linux64_511_deb/__init__.py
diff --git a/common/Util/Clooper/linux64_511_deb/aclient.so b/common/Util/Clooper/linux64_511_deb/aclient.so
new file mode 100755
index 0000000..0bfa7e4
--- /dev/null
+++ b/common/Util/Clooper/linux64_511_deb/aclient.so
Binary files differ
diff --git a/common/Util/Clooper/log.cpp b/common/Util/Clooper/log.cpp
new file mode 100644
index 0000000..d4a8c72
--- /dev/null
+++ b/common/Util/Clooper/log.cpp
@@ -0,0 +1,52 @@
+#ifndef LOG_HXX
+#define LOG_HXX
+
+#include <stdarg.h>
+#include <stdio.h>
+
+struct log_t
+{
+ FILE * _file;
+ int _level;
+ int _close;
+
+ log_t(const char * logpath, int level = 0) : _file(NULL), _level(level), _close(1)
+ {
+ _file = fopen(logpath, "w");
+ if (!_file)
+ {
+ fprintf(stderr, "Failed to open log file for writing: %s\n", logpath);
+ }
+ }
+ log_t(FILE * file, int level = 0): _file(file), _level(level), _close(0)
+ {
+ }
+ ~log_t()
+ {
+ if (_close && _file) fclose(_file);
+ }
+ void printf( const char * fmt, ... ) __attribute__(( format (printf, 2,3)))
+ {
+ if (!_file) return;
+ va_list ap;
+ va_start(ap,fmt);
+ ::vfprintf(_file, fmt, ap);
+ va_end(ap);
+ fflush(_file);
+ }
+ void printf( int level, const char * fmt, ... ) __attribute__(( format (printf, 3,4)))
+ {
+ if (level <= _level)
+ {
+ if (!_file) return;
+ fprintf(_file, "L%i:", level);
+ va_list ap;
+ va_start(ap,fmt);
+ ::vfprintf(_file, fmt, ap);
+ va_end(ap);
+ fflush(_file);
+ }
+ }
+};
+
+#endif
diff --git a/common/Util/Clooper/ttest.c b/common/Util/Clooper/ttest.c
new file mode 100644
index 0000000..9ff3d85
--- /dev/null
+++ b/common/Util/Clooper/ttest.c
@@ -0,0 +1,53 @@
+
+#include <pthread.h>
+#include <stdio.h>
+#include <time.h>
+#include <unistd.h>
+#include <sys/time.h>
+
+double sleeptime = 0.0;
+int usleep(int);
+static void * threadfn(void * _arg)
+{
+ double pytime(const struct timeval * tv)
+ {
+ return (double) tv->tv_sec + (double) tv->tv_usec / 1000000.0;
+ }
+ struct timeval tv0, tv1;
+ double m = 0.0;
+
+ int loops = 0;
+
+ while (1)
+ {
+ gettimeofday(&tv0, 0);
+ usleep( (int) (sleeptime * 1000000) );
+ gettimeofday(&tv1, 0);
+ double t0 = pytime(&tv0);
+ double t1 = pytime(&tv1);
+ if (t1 - t0 > 1.2 * sleeptime)
+ {
+ fprintf(stderr, "critical lagginess %lf\n", t1 - t0);
+ }
+ if (m < t1 - t0)
+ {
+ m = t1 - t0;
+ fprintf(stderr, "maximum lag %lf\n", m);
+ }
+
+ if ( ( loops % 100 ) == 0 )
+ {
+ fprintf(stderr, "loop (%lf)\n", t0);
+ }
+ ++loops;
+ }
+ return NULL;
+}
+void testtimer(double st)
+{
+ pthread_t pth;
+ sleeptime = st;
+
+ pthread_create( &pth, NULL, &threadfn, NULL );
+}
+
diff --git a/common/Util/Clooper/ttest.h b/common/Util/Clooper/ttest.h
new file mode 100644
index 0000000..111f10c
--- /dev/null
+++ b/common/Util/Clooper/ttest.h
@@ -0,0 +1,15 @@
+#ifndef _MSL_MATH_H
+#define _MSL_MATH_H
+
+#ifdef __cplusplus
+extern "C" {
+#endif
+
+void testtimer(double);
+
+#ifdef __cplusplus
+}
+#endif
+
+#endif
+
diff --git a/common/Util/Clooper/ttest.i b/common/Util/Clooper/ttest.i
new file mode 100644
index 0000000..0c88add
--- /dev/null
+++ b/common/Util/Clooper/ttest.i
@@ -0,0 +1,15 @@
+
+%module ttest
+
+%{
+#define SWIG_FILE_WITH_INIT
+#include "ttest.h"
+%}
+
+%pythoncode
+%{
+def somefn(seed, mat):
+
+%}
+
+%include "ttest.h"
diff --git a/common/Util/Clooper/ttest.py b/common/Util/Clooper/ttest.py
new file mode 100644
index 0000000..302c8f3
--- /dev/null
+++ b/common/Util/Clooper/ttest.py
@@ -0,0 +1,54 @@
+# This file was automatically generated by SWIG (http://www.swig.org).
+# Version 1.3.31
+#
+# Don't modify this file, modify the SWIG interface instead.
+# This file is compatible with both classic and new-style classes.
+
+import _ttest
+import new
+new_instancemethod = new.instancemethod
+try:
+ _swig_property = property
+except NameError:
+ pass # Python < 2.2 doesn't have 'property'.
+def _swig_setattr_nondynamic(self,class_type,name,value,static=1):
+ if (name == "thisown"): return self.this.own(value)
+ if (name == "this"):
+ if type(value).__name__ == 'PySwigObject':
+ self.__dict__[name] = value
+ return
+ method = class_type.__swig_setmethods__.get(name,None)
+ if method: return method(self,value)
+ if (not static) or hasattr(self,name):
+ self.__dict__[name] = value
+ else:
+ raise AttributeError("You cannot add attributes to %s" % self)
+
+def _swig_setattr(self,class_type,name,value):
+ return _swig_setattr_nondynamic(self,class_type,name,value,0)
+
+def _swig_getattr(self,class_type,name):
+ if (name == "thisown"): return self.this.own()
+ method = class_type.__swig_getmethods__.get(name,None)
+ if method: return method(self)
+ raise AttributeError,name
+
+def _swig_repr(self):
+ try: strthis = "proxy of " + self.this.__repr__()
+ except: strthis = ""
+ return "<%s.%s; %s >" % (self.__class__.__module__, self.__class__.__name__, strthis,)
+
+import types
+try:
+ _object = types.ObjectType
+ _newclass = 1
+except AttributeError:
+ class _object : pass
+ _newclass = 0
+del types
+
+
+
+testtimer = _ttest.testtimer
+
+
diff --git a/common/Util/Clooper/ttest_wrap.c b/common/Util/Clooper/ttest_wrap.c
new file mode 100644
index 0000000..a073e99
--- /dev/null
+++ b/common/Util/Clooper/ttest_wrap.c
@@ -0,0 +1,3042 @@
+/* ----------------------------------------------------------------------------
+ * This file was automatically generated by SWIG (http://www.swig.org).
+ * Version 1.3.31
+ *
+ * This file is not intended to be easily readable and contains a number of
+ * coding conventions designed to improve portability and efficiency. Do not make
+ * changes to this file unless you know what you are doing--modify the SWIG
+ * interface file instead.
+ * ----------------------------------------------------------------------------- */
+
+#define SWIGPYTHON
+#define SWIG_PYTHON_DIRECTOR_NO_VTABLE
+/* -----------------------------------------------------------------------------
+ * This section contains generic SWIG labels for method/variable
+ * declarations/attributes, and other compiler dependent labels.
+ * ----------------------------------------------------------------------------- */
+
+/* template workaround for compilers that cannot correctly implement the C++ standard */
+#ifndef SWIGTEMPLATEDISAMBIGUATOR
+# if defined(__SUNPRO_CC)
+# if (__SUNPRO_CC <= 0x560)
+# define SWIGTEMPLATEDISAMBIGUATOR template
+# else
+# define SWIGTEMPLATEDISAMBIGUATOR
+# endif
+# else
+# define SWIGTEMPLATEDISAMBIGUATOR
+# endif
+#endif
+
+/* inline attribute */
+#ifndef SWIGINLINE
+# if defined(__cplusplus) || (defined(__GNUC__) && !defined(__STRICT_ANSI__))
+# define SWIGINLINE inline
+# else
+# define SWIGINLINE
+# endif
+#endif
+
+/* attribute recognised by some compilers to avoid 'unused' warnings */
+#ifndef SWIGUNUSED
+# if defined(__GNUC__)
+# if !(defined(__cplusplus)) || (__GNUC__ > 3 || (__GNUC__ == 3 && __GNUC_MINOR__ >= 4))
+# define SWIGUNUSED __attribute__ ((__unused__))
+# else
+# define SWIGUNUSED
+# endif
+# elif defined(__ICC)
+# define SWIGUNUSED __attribute__ ((__unused__))
+# else
+# define SWIGUNUSED
+# endif
+#endif
+
+#ifndef SWIGUNUSEDPARM
+# ifdef __cplusplus
+# define SWIGUNUSEDPARM(p)
+# else
+# define SWIGUNUSEDPARM(p) p SWIGUNUSED
+# endif
+#endif
+
+/* internal SWIG method */
+#ifndef SWIGINTERN
+# define SWIGINTERN static SWIGUNUSED
+#endif
+
+/* internal inline SWIG method */
+#ifndef SWIGINTERNINLINE
+# define SWIGINTERNINLINE SWIGINTERN SWIGINLINE
+#endif
+
+/* exporting methods */
+#if (__GNUC__ >= 4) || (__GNUC__ == 3 && __GNUC_MINOR__ >= 4)
+# ifndef GCC_HASCLASSVISIBILITY
+# define GCC_HASCLASSVISIBILITY
+# endif
+#endif
+
+#ifndef SWIGEXPORT
+# if defined(_WIN32) || defined(__WIN32__) || defined(__CYGWIN__)
+# if defined(STATIC_LINKED)
+# define SWIGEXPORT
+# else
+# define SWIGEXPORT __declspec(dllexport)
+# endif
+# else
+# if defined(__GNUC__) && defined(GCC_HASCLASSVISIBILITY)
+# define SWIGEXPORT __attribute__ ((visibility("default")))
+# else
+# define SWIGEXPORT
+# endif
+# endif
+#endif
+
+/* calling conventions for Windows */
+#ifndef SWIGSTDCALL
+# if defined(_WIN32) || defined(__WIN32__) || defined(__CYGWIN__)
+# define SWIGSTDCALL __stdcall
+# else
+# define SWIGSTDCALL
+# endif
+#endif
+
+/* Deal with Microsoft's attempt at deprecating C standard runtime functions */
+#if !defined(SWIG_NO_CRT_SECURE_NO_DEPRECATE) && defined(_MSC_VER) && !defined(_CRT_SECURE_NO_DEPRECATE)
+# define _CRT_SECURE_NO_DEPRECATE
+#endif
+
+
+/* Python.h has to appear first */
+#include <Python.h>
+
+/* -----------------------------------------------------------------------------
+ * swigrun.swg
+ *
+ * This file contains generic CAPI SWIG runtime support for pointer
+ * type checking.
+ * ----------------------------------------------------------------------------- */
+
+/* This should only be incremented when either the layout of swig_type_info changes,
+ or for whatever reason, the runtime changes incompatibly */
+#define SWIG_RUNTIME_VERSION "3"
+
+/* define SWIG_TYPE_TABLE_NAME as "SWIG_TYPE_TABLE" */
+#ifdef SWIG_TYPE_TABLE
+# define SWIG_QUOTE_STRING(x) #x
+# define SWIG_EXPAND_AND_QUOTE_STRING(x) SWIG_QUOTE_STRING(x)
+# define SWIG_TYPE_TABLE_NAME SWIG_EXPAND_AND_QUOTE_STRING(SWIG_TYPE_TABLE)
+#else
+# define SWIG_TYPE_TABLE_NAME
+#endif
+
+/*
+ You can use the SWIGRUNTIME and SWIGRUNTIMEINLINE macros for
+ creating a static or dynamic library from the swig runtime code.
+ In 99.9% of the cases, swig just needs to declare them as 'static'.
+
+ But only do this if is strictly necessary, ie, if you have problems
+ with your compiler or so.
+*/
+
+#ifndef SWIGRUNTIME
+# define SWIGRUNTIME SWIGINTERN
+#endif
+
+#ifndef SWIGRUNTIMEINLINE
+# define SWIGRUNTIMEINLINE SWIGRUNTIME SWIGINLINE
+#endif
+
+/* Generic buffer size */
+#ifndef SWIG_BUFFER_SIZE
+# define SWIG_BUFFER_SIZE 1024
+#endif
+
+/* Flags for pointer conversions */
+#define SWIG_POINTER_DISOWN 0x1
+
+/* Flags for new pointer objects */
+#define SWIG_POINTER_OWN 0x1
+
+
+/*
+ Flags/methods for returning states.
+
+ The swig conversion methods, as ConvertPtr, return and integer
+ that tells if the conversion was successful or not. And if not,
+ an error code can be returned (see swigerrors.swg for the codes).
+
+ Use the following macros/flags to set or process the returning
+ states.
+
+ In old swig versions, you usually write code as:
+
+ if (SWIG_ConvertPtr(obj,vptr,ty.flags) != -1) {
+ // success code
+ } else {
+ //fail code
+ }
+
+ Now you can be more explicit as:
+
+ int res = SWIG_ConvertPtr(obj,vptr,ty.flags);
+ if (SWIG_IsOK(res)) {
+ // success code
+ } else {
+ // fail code
+ }
+
+ that seems to be the same, but now you can also do
+
+ Type *ptr;
+ int res = SWIG_ConvertPtr(obj,(void **)(&ptr),ty.flags);
+ if (SWIG_IsOK(res)) {
+ // success code
+ if (SWIG_IsNewObj(res) {
+ ...
+ delete *ptr;
+ } else {
+ ...
+ }
+ } else {
+ // fail code
+ }
+
+ I.e., now SWIG_ConvertPtr can return new objects and you can
+ identify the case and take care of the deallocation. Of course that
+ requires also to SWIG_ConvertPtr to return new result values, as
+
+ int SWIG_ConvertPtr(obj, ptr,...) {
+ if (<obj is ok>) {
+ if (<need new object>) {
+ *ptr = <ptr to new allocated object>;
+ return SWIG_NEWOBJ;
+ } else {
+ *ptr = <ptr to old object>;
+ return SWIG_OLDOBJ;
+ }
+ } else {
+ return SWIG_BADOBJ;
+ }
+ }
+
+ Of course, returning the plain '0(success)/-1(fail)' still works, but you can be
+ more explicit by returning SWIG_BADOBJ, SWIG_ERROR or any of the
+ swig errors code.
+
+ Finally, if the SWIG_CASTRANK_MODE is enabled, the result code
+ allows to return the 'cast rank', for example, if you have this
+
+ int food(double)
+ int fooi(int);
+
+ and you call
+
+ food(1) // cast rank '1' (1 -> 1.0)
+ fooi(1) // cast rank '0'
+
+ just use the SWIG_AddCast()/SWIG_CheckState()
+
+
+ */
+#define SWIG_OK (0)
+#define SWIG_ERROR (-1)
+#define SWIG_IsOK(r) (r >= 0)
+#define SWIG_ArgError(r) ((r != SWIG_ERROR) ? r : SWIG_TypeError)
+
+/* The CastRankLimit says how many bits are used for the cast rank */
+#define SWIG_CASTRANKLIMIT (1 << 8)
+/* The NewMask denotes the object was created (using new/malloc) */
+#define SWIG_NEWOBJMASK (SWIG_CASTRANKLIMIT << 1)
+/* The TmpMask is for in/out typemaps that use temporal objects */
+#define SWIG_TMPOBJMASK (SWIG_NEWOBJMASK << 1)
+/* Simple returning values */
+#define SWIG_BADOBJ (SWIG_ERROR)
+#define SWIG_OLDOBJ (SWIG_OK)
+#define SWIG_NEWOBJ (SWIG_OK | SWIG_NEWOBJMASK)
+#define SWIG_TMPOBJ (SWIG_OK | SWIG_TMPOBJMASK)
+/* Check, add and del mask methods */
+#define SWIG_AddNewMask(r) (SWIG_IsOK(r) ? (r | SWIG_NEWOBJMASK) : r)
+#define SWIG_DelNewMask(r) (SWIG_IsOK(r) ? (r & ~SWIG_NEWOBJMASK) : r)
+#define SWIG_IsNewObj(r) (SWIG_IsOK(r) && (r & SWIG_NEWOBJMASK))
+#define SWIG_AddTmpMask(r) (SWIG_IsOK(r) ? (r | SWIG_TMPOBJMASK) : r)
+#define SWIG_DelTmpMask(r) (SWIG_IsOK(r) ? (r & ~SWIG_TMPOBJMASK) : r)
+#define SWIG_IsTmpObj(r) (SWIG_IsOK(r) && (r & SWIG_TMPOBJMASK))
+
+
+/* Cast-Rank Mode */
+#if defined(SWIG_CASTRANK_MODE)
+# ifndef SWIG_TypeRank
+# define SWIG_TypeRank unsigned long
+# endif
+# ifndef SWIG_MAXCASTRANK /* Default cast allowed */
+# define SWIG_MAXCASTRANK (2)
+# endif
+# define SWIG_CASTRANKMASK ((SWIG_CASTRANKLIMIT) -1)
+# define SWIG_CastRank(r) (r & SWIG_CASTRANKMASK)
+SWIGINTERNINLINE int SWIG_AddCast(int r) {
+ return SWIG_IsOK(r) ? ((SWIG_CastRank(r) < SWIG_MAXCASTRANK) ? (r + 1) : SWIG_ERROR) : r;
+}
+SWIGINTERNINLINE int SWIG_CheckState(int r) {
+ return SWIG_IsOK(r) ? SWIG_CastRank(r) + 1 : 0;
+}
+#else /* no cast-rank mode */
+# define SWIG_AddCast
+# define SWIG_CheckState(r) (SWIG_IsOK(r) ? 1 : 0)
+#endif
+
+
+
+
+#include <string.h>
+
+#ifdef __cplusplus
+extern "C" {
+#endif
+
+typedef void *(*swig_converter_func)(void *);
+typedef struct swig_type_info *(*swig_dycast_func)(void **);
+
+/* Structure to store inforomation on one type */
+typedef struct swig_type_info {
+ const char *name; /* mangled name of this type */
+ const char *str; /* human readable name of this type */
+ swig_dycast_func dcast; /* dynamic cast function down a hierarchy */
+ struct swig_cast_info *cast; /* linked list of types that can cast into this type */
+ void *clientdata; /* language specific type data */
+ int owndata; /* flag if the structure owns the clientdata */
+} swig_type_info;
+
+/* Structure to store a type and conversion function used for casting */
+typedef struct swig_cast_info {
+ swig_type_info *type; /* pointer to type that is equivalent to this type */
+ swig_converter_func converter; /* function to cast the void pointers */
+ struct swig_cast_info *next; /* pointer to next cast in linked list */
+ struct swig_cast_info *prev; /* pointer to the previous cast */
+} swig_cast_info;
+
+/* Structure used to store module information
+ * Each module generates one structure like this, and the runtime collects
+ * all of these structures and stores them in a circularly linked list.*/
+typedef struct swig_module_info {
+ swig_type_info **types; /* Array of pointers to swig_type_info structures that are in this module */
+ size_t size; /* Number of types in this module */
+ struct swig_module_info *next; /* Pointer to next element in circularly linked list */
+ swig_type_info **type_initial; /* Array of initially generated type structures */
+ swig_cast_info **cast_initial; /* Array of initially generated casting structures */
+ void *clientdata; /* Language specific module data */
+} swig_module_info;
+
+/*
+ Compare two type names skipping the space characters, therefore
+ "char*" == "char *" and "Class<int>" == "Class<int >", etc.
+
+ Return 0 when the two name types are equivalent, as in
+ strncmp, but skipping ' '.
+*/
+SWIGRUNTIME int
+SWIG_TypeNameComp(const char *f1, const char *l1,
+ const char *f2, const char *l2) {
+ for (;(f1 != l1) && (f2 != l2); ++f1, ++f2) {
+ while ((*f1 == ' ') && (f1 != l1)) ++f1;
+ while ((*f2 == ' ') && (f2 != l2)) ++f2;
+ if (*f1 != *f2) return (*f1 > *f2) ? 1 : -1;
+ }
+ return (l1 - f1) - (l2 - f2);
+}
+
+/*
+ Check type equivalence in a name list like <name1>|<name2>|...
+ Return 0 if not equal, 1 if equal
+*/
+SWIGRUNTIME int
+SWIG_TypeEquiv(const char *nb, const char *tb) {
+ int equiv = 0;
+ const char* te = tb + strlen(tb);
+ const char* ne = nb;
+ while (!equiv && *ne) {
+ for (nb = ne; *ne; ++ne) {
+ if (*ne == '|') break;
+ }
+ equiv = (SWIG_TypeNameComp(nb, ne, tb, te) == 0) ? 1 : 0;
+ if (*ne) ++ne;
+ }
+ return equiv;
+}
+
+/*
+ Check type equivalence in a name list like <name1>|<name2>|...
+ Return 0 if equal, -1 if nb < tb, 1 if nb > tb
+*/
+SWIGRUNTIME int
+SWIG_TypeCompare(const char *nb, const char *tb) {
+ int equiv = 0;
+ const char* te = tb + strlen(tb);
+ const char* ne = nb;
+ while (!equiv && *ne) {
+ for (nb = ne; *ne; ++ne) {
+ if (*ne == '|') break;
+ }
+ equiv = (SWIG_TypeNameComp(nb, ne, tb, te) == 0) ? 1 : 0;
+ if (*ne) ++ne;
+ }
+ return equiv;
+}
+
+
+/* think of this as a c++ template<> or a scheme macro */
+#define SWIG_TypeCheck_Template(comparison, ty) \
+ if (ty) { \
+ swig_cast_info *iter = ty->cast; \
+ while (iter) { \
+ if (comparison) { \
+ if (iter == ty->cast) return iter; \
+ /* Move iter to the top of the linked list */ \
+ iter->prev->next = iter->next; \
+ if (iter->next) \
+ iter->next->prev = iter->prev; \
+ iter->next = ty->cast; \
+ iter->prev = 0; \
+ if (ty->cast) ty->cast->prev = iter; \
+ ty->cast = iter; \
+ return iter; \
+ } \
+ iter = iter->next; \
+ } \
+ } \
+ return 0
+
+/*
+ Check the typename
+*/
+SWIGRUNTIME swig_cast_info *
+SWIG_TypeCheck(const char *c, swig_type_info *ty) {
+ SWIG_TypeCheck_Template(strcmp(iter->type->name, c) == 0, ty);
+}
+
+/* Same as previous function, except strcmp is replaced with a pointer comparison */
+SWIGRUNTIME swig_cast_info *
+SWIG_TypeCheckStruct(swig_type_info *from, swig_type_info *into) {
+ SWIG_TypeCheck_Template(iter->type == from, into);
+}
+
+/*
+ Cast a pointer up an inheritance hierarchy
+*/
+SWIGRUNTIMEINLINE void *
+SWIG_TypeCast(swig_cast_info *ty, void *ptr) {
+ return ((!ty) || (!ty->converter)) ? ptr : (*ty->converter)(ptr);
+}
+
+/*
+ Dynamic pointer casting. Down an inheritance hierarchy
+*/
+SWIGRUNTIME swig_type_info *
+SWIG_TypeDynamicCast(swig_type_info *ty, void **ptr) {
+ swig_type_info *lastty = ty;
+ if (!ty || !ty->dcast) return ty;
+ while (ty && (ty->dcast)) {
+ ty = (*ty->dcast)(ptr);
+ if (ty) lastty = ty;
+ }
+ return lastty;
+}
+
+/*
+ Return the name associated with this type
+*/
+SWIGRUNTIMEINLINE const char *
+SWIG_TypeName(const swig_type_info *ty) {
+ return ty->name;
+}
+
+/*
+ Return the pretty name associated with this type,
+ that is an unmangled type name in a form presentable to the user.
+*/
+SWIGRUNTIME const char *
+SWIG_TypePrettyName(const swig_type_info *type) {
+ /* The "str" field contains the equivalent pretty names of the
+ type, separated by vertical-bar characters. We choose
+ to print the last name, as it is often (?) the most
+ specific. */
+ if (!type) return NULL;
+ if (type->str != NULL) {
+ const char *last_name = type->str;
+ const char *s;
+ for (s = type->str; *s; s++)
+ if (*s == '|') last_name = s+1;
+ return last_name;
+ }
+ else
+ return type->name;
+}
+
+/*
+ Set the clientdata field for a type
+*/
+SWIGRUNTIME void
+SWIG_TypeClientData(swig_type_info *ti, void *clientdata) {
+ swig_cast_info *cast = ti->cast;
+ /* if (ti->clientdata == clientdata) return; */
+ ti->clientdata = clientdata;
+
+ while (cast) {
+ if (!cast->converter) {
+ swig_type_info *tc = cast->type;
+ if (!tc->clientdata) {
+ SWIG_TypeClientData(tc, clientdata);
+ }
+ }
+ cast = cast->next;
+ }
+}
+SWIGRUNTIME void
+SWIG_TypeNewClientData(swig_type_info *ti, void *clientdata) {
+ SWIG_TypeClientData(ti, clientdata);
+ ti->owndata = 1;
+}
+
+/*
+ Search for a swig_type_info structure only by mangled name
+ Search is a O(log #types)
+
+ We start searching at module start, and finish searching when start == end.
+ Note: if start == end at the beginning of the function, we go all the way around
+ the circular list.
+*/
+SWIGRUNTIME swig_type_info *
+SWIG_MangledTypeQueryModule(swig_module_info *start,
+ swig_module_info *end,
+ const char *name) {
+ swig_module_info *iter = start;
+ do {
+ if (iter->size) {
+ register size_t l = 0;
+ register size_t r = iter->size - 1;
+ do {
+ /* since l+r >= 0, we can (>> 1) instead (/ 2) */
+ register size_t i = (l + r) >> 1;
+ const char *iname = iter->types[i]->name;
+ if (iname) {
+ register int compare = strcmp(name, iname);
+ if (compare == 0) {
+ return iter->types[i];
+ } else if (compare < 0) {
+ if (i) {
+ r = i - 1;
+ } else {
+ break;
+ }
+ } else if (compare > 0) {
+ l = i + 1;
+ }
+ } else {
+ break; /* should never happen */
+ }
+ } while (l <= r);
+ }
+ iter = iter->next;
+ } while (iter != end);
+ return 0;
+}
+
+/*
+ Search for a swig_type_info structure for either a mangled name or a human readable name.
+ It first searches the mangled names of the types, which is a O(log #types)
+ If a type is not found it then searches the human readable names, which is O(#types).
+
+ We start searching at module start, and finish searching when start == end.
+ Note: if start == end at the beginning of the function, we go all the way around
+ the circular list.
+*/
+SWIGRUNTIME swig_type_info *
+SWIG_TypeQueryModule(swig_module_info *start,
+ swig_module_info *end,
+ const char *name) {
+ /* STEP 1: Search the name field using binary search */
+ swig_type_info *ret = SWIG_MangledTypeQueryModule(start, end, name);
+ if (ret) {
+ return ret;
+ } else {
+ /* STEP 2: If the type hasn't been found, do a complete search
+ of the str field (the human readable name) */
+ swig_module_info *iter = start;
+ do {
+ register size_t i = 0;
+ for (; i < iter->size; ++i) {
+ if (iter->types[i]->str && (SWIG_TypeEquiv(iter->types[i]->str, name)))
+ return iter->types[i];
+ }
+ iter = iter->next;
+ } while (iter != end);
+ }
+
+ /* neither found a match */
+ return 0;
+}
+
+/*
+ Pack binary data into a string
+*/
+SWIGRUNTIME char *
+SWIG_PackData(char *c, void *ptr, size_t sz) {
+ static const char hex[17] = "0123456789abcdef";
+ register const unsigned char *u = (unsigned char *) ptr;
+ register const unsigned char *eu = u + sz;
+ for (; u != eu; ++u) {
+ register unsigned char uu = *u;
+ *(c++) = hex[(uu & 0xf0) >> 4];
+ *(c++) = hex[uu & 0xf];
+ }
+ return c;
+}
+
+/*
+ Unpack binary data from a string
+*/
+SWIGRUNTIME const char *
+SWIG_UnpackData(const char *c, void *ptr, size_t sz) {
+ register unsigned char *u = (unsigned char *) ptr;
+ register const unsigned char *eu = u + sz;
+ for (; u != eu; ++u) {
+ register char d = *(c++);
+ register unsigned char uu;
+ if ((d >= '0') && (d <= '9'))
+ uu = ((d - '0') << 4);
+ else if ((d >= 'a') && (d <= 'f'))
+ uu = ((d - ('a'-10)) << 4);
+ else
+ return (char *) 0;
+ d = *(c++);
+ if ((d >= '0') && (d <= '9'))
+ uu |= (d - '0');
+ else if ((d >= 'a') && (d <= 'f'))
+ uu |= (d - ('a'-10));
+ else
+ return (char *) 0;
+ *u = uu;
+ }
+ return c;
+}
+
+/*
+ Pack 'void *' into a string buffer.
+*/
+SWIGRUNTIME char *
+SWIG_PackVoidPtr(char *buff, void *ptr, const char *name, size_t bsz) {
+ char *r = buff;
+ if ((2*sizeof(void *) + 2) > bsz) return 0;
+ *(r++) = '_';
+ r = SWIG_PackData(r,&ptr,sizeof(void *));
+ if (strlen(name) + 1 > (bsz - (r - buff))) return 0;
+ strcpy(r,name);
+ return buff;
+}
+
+SWIGRUNTIME const char *
+SWIG_UnpackVoidPtr(const char *c, void **ptr, const char *name) {
+ if (*c != '_') {
+ if (strcmp(c,"NULL") == 0) {
+ *ptr = (void *) 0;
+ return name;
+ } else {
+ return 0;
+ }
+ }
+ return SWIG_UnpackData(++c,ptr,sizeof(void *));
+}
+
+SWIGRUNTIME char *
+SWIG_PackDataName(char *buff, void *ptr, size_t sz, const char *name, size_t bsz) {
+ char *r = buff;
+ size_t lname = (name ? strlen(name) : 0);
+ if ((2*sz + 2 + lname) > bsz) return 0;
+ *(r++) = '_';
+ r = SWIG_PackData(r,ptr,sz);
+ if (lname) {
+ strncpy(r,name,lname+1);
+ } else {
+ *r = 0;
+ }
+ return buff;
+}
+
+SWIGRUNTIME const char *
+SWIG_UnpackDataName(const char *c, void *ptr, size_t sz, const char *name) {
+ if (*c != '_') {
+ if (strcmp(c,"NULL") == 0) {
+ memset(ptr,0,sz);
+ return name;
+ } else {
+ return 0;
+ }
+ }
+ return SWIG_UnpackData(++c,ptr,sz);
+}
+
+#ifdef __cplusplus
+}
+#endif
+
+/* Errors in SWIG */
+#define SWIG_UnknownError -1
+#define SWIG_IOError -2
+#define SWIG_RuntimeError -3
+#define SWIG_IndexError -4
+#define SWIG_TypeError -5
+#define SWIG_DivisionByZero -6
+#define SWIG_OverflowError -7
+#define SWIG_SyntaxError -8
+#define SWIG_ValueError -9
+#define SWIG_SystemError -10
+#define SWIG_AttributeError -11
+#define SWIG_MemoryError -12
+#define SWIG_NullReferenceError -13
+
+
+
+
+/* Add PyOS_snprintf for old Pythons */
+#if PY_VERSION_HEX < 0x02020000
+# if defined(_MSC_VER) || defined(__BORLANDC__) || defined(_WATCOM)
+# define PyOS_snprintf _snprintf
+# else
+# define PyOS_snprintf snprintf
+# endif
+#endif
+
+/* A crude PyString_FromFormat implementation for old Pythons */
+#if PY_VERSION_HEX < 0x02020000
+
+#ifndef SWIG_PYBUFFER_SIZE
+# define SWIG_PYBUFFER_SIZE 1024
+#endif
+
+static PyObject *
+PyString_FromFormat(const char *fmt, ...) {
+ va_list ap;
+ char buf[SWIG_PYBUFFER_SIZE * 2];
+ int res;
+ va_start(ap, fmt);
+ res = vsnprintf(buf, sizeof(buf), fmt, ap);
+ va_end(ap);
+ return (res < 0 || res >= (int)sizeof(buf)) ? 0 : PyString_FromString(buf);
+}
+#endif
+
+/* Add PyObject_Del for old Pythons */
+#if PY_VERSION_HEX < 0x01060000
+# define PyObject_Del(op) PyMem_DEL((op))
+#endif
+#ifndef PyObject_DEL
+# define PyObject_DEL PyObject_Del
+#endif
+
+/* A crude PyExc_StopIteration exception for old Pythons */
+#if PY_VERSION_HEX < 0x02020000
+# ifndef PyExc_StopIteration
+# define PyExc_StopIteration PyExc_RuntimeError
+# endif
+# ifndef PyObject_GenericGetAttr
+# define PyObject_GenericGetAttr 0
+# endif
+#endif
+/* Py_NotImplemented is defined in 2.1 and up. */
+#if PY_VERSION_HEX < 0x02010000
+# ifndef Py_NotImplemented
+# define Py_NotImplemented PyExc_RuntimeError
+# endif
+#endif
+
+
+/* A crude PyString_AsStringAndSize implementation for old Pythons */
+#if PY_VERSION_HEX < 0x02010000
+# ifndef PyString_AsStringAndSize
+# define PyString_AsStringAndSize(obj, s, len) {*s = PyString_AsString(obj); *len = *s ? strlen(*s) : 0;}
+# endif
+#endif
+
+/* PySequence_Size for old Pythons */
+#if PY_VERSION_HEX < 0x02000000
+# ifndef PySequence_Size
+# define PySequence_Size PySequence_Length
+# endif
+#endif
+
+
+/* PyBool_FromLong for old Pythons */
+#if PY_VERSION_HEX < 0x02030000
+static
+PyObject *PyBool_FromLong(long ok)
+{
+ PyObject *result = ok ? Py_True : Py_False;
+ Py_INCREF(result);
+ return result;
+}
+#endif
+
+/* Py_ssize_t for old Pythons */
+/* This code is as recommended by: */
+/* http://www.python.org/dev/peps/pep-0353/#conversion-guidelines */
+#if PY_VERSION_HEX < 0x02050000 && !defined(PY_SSIZE_T_MIN)
+typedef int Py_ssize_t;
+# define PY_SSIZE_T_MAX INT_MAX
+# define PY_SSIZE_T_MIN INT_MIN
+#endif
+
+/* -----------------------------------------------------------------------------
+ * error manipulation
+ * ----------------------------------------------------------------------------- */
+
+SWIGRUNTIME PyObject*
+SWIG_Python_ErrorType(int code) {
+ PyObject* type = 0;
+ switch(code) {
+ case SWIG_MemoryError:
+ type = PyExc_MemoryError;
+ break;
+ case SWIG_IOError:
+ type = PyExc_IOError;
+ break;
+ case SWIG_RuntimeError:
+ type = PyExc_RuntimeError;
+ break;
+ case SWIG_IndexError:
+ type = PyExc_IndexError;
+ break;
+ case SWIG_TypeError:
+ type = PyExc_TypeError;
+ break;
+ case SWIG_DivisionByZero:
+ type = PyExc_ZeroDivisionError;
+ break;
+ case SWIG_OverflowError:
+ type = PyExc_OverflowError;
+ break;
+ case SWIG_SyntaxError:
+ type = PyExc_SyntaxError;
+ break;
+ case SWIG_ValueError:
+ type = PyExc_ValueError;
+ break;
+ case SWIG_SystemError:
+ type = PyExc_SystemError;
+ break;
+ case SWIG_AttributeError:
+ type = PyExc_AttributeError;
+ break;
+ default:
+ type = PyExc_RuntimeError;
+ }
+ return type;
+}
+
+
+SWIGRUNTIME void
+SWIG_Python_AddErrorMsg(const char* mesg)
+{
+ PyObject *type = 0;
+ PyObject *value = 0;
+ PyObject *traceback = 0;
+
+ if (PyErr_Occurred()) PyErr_Fetch(&type, &value, &traceback);
+ if (value) {
+ PyObject *old_str = PyObject_Str(value);
+ PyErr_Clear();
+ Py_XINCREF(type);
+ PyErr_Format(type, "%s %s", PyString_AsString(old_str), mesg);
+ Py_DECREF(old_str);
+ Py_DECREF(value);
+ } else {
+ PyErr_Format(PyExc_RuntimeError, mesg);
+ }
+}
+
+
+
+#if defined(SWIG_PYTHON_NO_THREADS)
+# if defined(SWIG_PYTHON_THREADS)
+# undef SWIG_PYTHON_THREADS
+# endif
+#endif
+#if defined(SWIG_PYTHON_THREADS) /* Threading support is enabled */
+# if !defined(SWIG_PYTHON_USE_GIL) && !defined(SWIG_PYTHON_NO_USE_GIL)
+# if (PY_VERSION_HEX >= 0x02030000) /* For 2.3 or later, use the PyGILState calls */
+# define SWIG_PYTHON_USE_GIL
+# endif
+# endif
+# if defined(SWIG_PYTHON_USE_GIL) /* Use PyGILState threads calls */
+# ifndef SWIG_PYTHON_INITIALIZE_THREADS
+# define SWIG_PYTHON_INITIALIZE_THREADS PyEval_InitThreads()
+# endif
+# ifdef __cplusplus /* C++ code */
+ class SWIG_Python_Thread_Block {
+ bool status;
+ PyGILState_STATE state;
+ public:
+ void end() { if (status) { PyGILState_Release(state); status = false;} }
+ SWIG_Python_Thread_Block() : status(true), state(PyGILState_Ensure()) {}
+ ~SWIG_Python_Thread_Block() { end(); }
+ };
+ class SWIG_Python_Thread_Allow {
+ bool status;
+ PyThreadState *save;
+ public:
+ void end() { if (status) { PyEval_RestoreThread(save); status = false; }}
+ SWIG_Python_Thread_Allow() : status(true), save(PyEval_SaveThread()) {}
+ ~SWIG_Python_Thread_Allow() { end(); }
+ };
+# define SWIG_PYTHON_THREAD_BEGIN_BLOCK SWIG_Python_Thread_Block _swig_thread_block
+# define SWIG_PYTHON_THREAD_END_BLOCK _swig_thread_block.end()
+# define SWIG_PYTHON_THREAD_BEGIN_ALLOW SWIG_Python_Thread_Allow _swig_thread_allow
+# define SWIG_PYTHON_THREAD_END_ALLOW _swig_thread_allow.end()
+# else /* C code */
+# define SWIG_PYTHON_THREAD_BEGIN_BLOCK PyGILState_STATE _swig_thread_block = PyGILState_Ensure()
+# define SWIG_PYTHON_THREAD_END_BLOCK PyGILState_Release(_swig_thread_block)
+# define SWIG_PYTHON_THREAD_BEGIN_ALLOW PyThreadState *_swig_thread_allow = PyEval_SaveThread()
+# define SWIG_PYTHON_THREAD_END_ALLOW PyEval_RestoreThread(_swig_thread_allow)
+# endif
+# else /* Old thread way, not implemented, user must provide it */
+# if !defined(SWIG_PYTHON_INITIALIZE_THREADS)
+# define SWIG_PYTHON_INITIALIZE_THREADS
+# endif
+# if !defined(SWIG_PYTHON_THREAD_BEGIN_BLOCK)
+# define SWIG_PYTHON_THREAD_BEGIN_BLOCK
+# endif
+# if !defined(SWIG_PYTHON_THREAD_END_BLOCK)
+# define SWIG_PYTHON_THREAD_END_BLOCK
+# endif
+# if !defined(SWIG_PYTHON_THREAD_BEGIN_ALLOW)
+# define SWIG_PYTHON_THREAD_BEGIN_ALLOW
+# endif
+# if !defined(SWIG_PYTHON_THREAD_END_ALLOW)
+# define SWIG_PYTHON_THREAD_END_ALLOW
+# endif
+# endif
+#else /* No thread support */
+# define SWIG_PYTHON_INITIALIZE_THREADS
+# define SWIG_PYTHON_THREAD_BEGIN_BLOCK
+# define SWIG_PYTHON_THREAD_END_BLOCK
+# define SWIG_PYTHON_THREAD_BEGIN_ALLOW
+# define SWIG_PYTHON_THREAD_END_ALLOW
+#endif
+
+/* -----------------------------------------------------------------------------
+ * Python API portion that goes into the runtime
+ * ----------------------------------------------------------------------------- */
+
+#ifdef __cplusplus
+extern "C" {
+#if 0
+} /* cc-mode */
+#endif
+#endif
+
+/* -----------------------------------------------------------------------------
+ * Constant declarations
+ * ----------------------------------------------------------------------------- */
+
+/* Constant Types */
+#define SWIG_PY_POINTER 4
+#define SWIG_PY_BINARY 5
+
+/* Constant information structure */
+typedef struct swig_const_info {
+ int type;
+ char *name;
+ long lvalue;
+ double dvalue;
+ void *pvalue;
+ swig_type_info **ptype;
+} swig_const_info;
+
+#ifdef __cplusplus
+#if 0
+{ /* cc-mode */
+#endif
+}
+#endif
+
+
+/* -----------------------------------------------------------------------------
+ * See the LICENSE file for information on copyright, usage and redistribution
+ * of SWIG, and the README file for authors - http://www.swig.org/release.html.
+ *
+ * pyrun.swg
+ *
+ * This file contains the runtime support for Python modules
+ * and includes code for managing global variables and pointer
+ * type checking.
+ *
+ * ----------------------------------------------------------------------------- */
+
+/* Common SWIG API */
+
+/* for raw pointers */
+#define SWIG_Python_ConvertPtr(obj, pptr, type, flags) SWIG_Python_ConvertPtrAndOwn(obj, pptr, type, flags, 0)
+#define SWIG_ConvertPtr(obj, pptr, type, flags) SWIG_Python_ConvertPtr(obj, pptr, type, flags)
+#define SWIG_ConvertPtrAndOwn(obj,pptr,type,flags,own) SWIG_Python_ConvertPtrAndOwn(obj, pptr, type, flags, own)
+#define SWIG_NewPointerObj(ptr, type, flags) SWIG_Python_NewPointerObj(ptr, type, flags)
+#define SWIG_CheckImplicit(ty) SWIG_Python_CheckImplicit(ty)
+#define SWIG_AcquirePtr(ptr, src) SWIG_Python_AcquirePtr(ptr, src)
+#define swig_owntype int
+
+/* for raw packed data */
+#define SWIG_ConvertPacked(obj, ptr, sz, ty) SWIG_Python_ConvertPacked(obj, ptr, sz, ty)
+#define SWIG_NewPackedObj(ptr, sz, type) SWIG_Python_NewPackedObj(ptr, sz, type)
+
+/* for class or struct pointers */
+#define SWIG_ConvertInstance(obj, pptr, type, flags) SWIG_ConvertPtr(obj, pptr, type, flags)
+#define SWIG_NewInstanceObj(ptr, type, flags) SWIG_NewPointerObj(ptr, type, flags)
+
+/* for C or C++ function pointers */
+#define SWIG_ConvertFunctionPtr(obj, pptr, type) SWIG_Python_ConvertFunctionPtr(obj, pptr, type)
+#define SWIG_NewFunctionPtrObj(ptr, type) SWIG_Python_NewPointerObj(ptr, type, 0)
+
+/* for C++ member pointers, ie, member methods */
+#define SWIG_ConvertMember(obj, ptr, sz, ty) SWIG_Python_ConvertPacked(obj, ptr, sz, ty)
+#define SWIG_NewMemberObj(ptr, sz, type) SWIG_Python_NewPackedObj(ptr, sz, type)
+
+
+/* Runtime API */
+
+#define SWIG_GetModule(clientdata) SWIG_Python_GetModule()
+#define SWIG_SetModule(clientdata, pointer) SWIG_Python_SetModule(pointer)
+#define SWIG_NewClientData(obj) PySwigClientData_New(obj)
+
+#define SWIG_SetErrorObj SWIG_Python_SetErrorObj
+#define SWIG_SetErrorMsg SWIG_Python_SetErrorMsg
+#define SWIG_ErrorType(code) SWIG_Python_ErrorType(code)
+#define SWIG_Error(code, msg) SWIG_Python_SetErrorMsg(SWIG_ErrorType(code), msg)
+#define SWIG_fail goto fail
+
+
+/* Runtime API implementation */
+
+/* Error manipulation */
+
+SWIGINTERN void
+SWIG_Python_SetErrorObj(PyObject *errtype, PyObject *obj) {
+ SWIG_PYTHON_THREAD_BEGIN_BLOCK;
+ PyErr_SetObject(errtype, obj);
+ Py_DECREF(obj);
+ SWIG_PYTHON_THREAD_END_BLOCK;
+}
+
+SWIGINTERN void
+SWIG_Python_SetErrorMsg(PyObject *errtype, const char *msg) {
+ SWIG_PYTHON_THREAD_BEGIN_BLOCK;
+ PyErr_SetString(errtype, (char *) msg);
+ SWIG_PYTHON_THREAD_END_BLOCK;
+}
+
+#define SWIG_Python_Raise(obj, type, desc) SWIG_Python_SetErrorObj(SWIG_Python_ExceptionType(desc), obj)
+
+/* Set a constant value */
+
+SWIGINTERN void
+SWIG_Python_SetConstant(PyObject *d, const char *name, PyObject *obj) {
+ PyDict_SetItemString(d, (char*) name, obj);
+ Py_DECREF(obj);
+}
+
+/* Append a value to the result obj */
+
+SWIGINTERN PyObject*
+SWIG_Python_AppendOutput(PyObject* result, PyObject* obj) {
+#if !defined(SWIG_PYTHON_OUTPUT_TUPLE)
+ if (!result) {
+ result = obj;
+ } else if (result == Py_None) {
+ Py_DECREF(result);
+ result = obj;
+ } else {
+ if (!PyList_Check(result)) {
+ PyObject *o2 = result;
+ result = PyList_New(1);
+ PyList_SetItem(result, 0, o2);
+ }
+ PyList_Append(result,obj);
+ Py_DECREF(obj);
+ }
+ return result;
+#else
+ PyObject* o2;
+ PyObject* o3;
+ if (!result) {
+ result = obj;
+ } else if (result == Py_None) {
+ Py_DECREF(result);
+ result = obj;
+ } else {
+ if (!PyTuple_Check(result)) {
+ o2 = result;
+ result = PyTuple_New(1);
+ PyTuple_SET_ITEM(result, 0, o2);
+ }
+ o3 = PyTuple_New(1);
+ PyTuple_SET_ITEM(o3, 0, obj);
+ o2 = result;
+ result = PySequence_Concat(o2, o3);
+ Py_DECREF(o2);
+ Py_DECREF(o3);
+ }
+ return result;
+#endif
+}
+
+/* Unpack the argument tuple */
+
+SWIGINTERN int
+SWIG_Python_UnpackTuple(PyObject *args, const char *name, int min, int max, PyObject **objs)
+{
+ if (!args) {
+ if (!min && !max) {
+ return 1;
+ } else {
+ PyErr_Format(PyExc_TypeError, "%s expected %s%d arguments, got none",
+ name, (min == max ? "" : "at least "), min);
+ return 0;
+ }
+ }
+ if (!PyTuple_Check(args)) {
+ PyErr_SetString(PyExc_SystemError, "UnpackTuple() argument list is not a tuple");
+ return 0;
+ } else {
+ register int l = PyTuple_GET_SIZE(args);
+ if (l < min) {
+ PyErr_Format(PyExc_TypeError, "%s expected %s%d arguments, got %d",
+ name, (min == max ? "" : "at least "), min, l);
+ return 0;
+ } else if (l > max) {
+ PyErr_Format(PyExc_TypeError, "%s expected %s%d arguments, got %d",
+ name, (min == max ? "" : "at most "), max, l);
+ return 0;
+ } else {
+ register int i;
+ for (i = 0; i < l; ++i) {
+ objs[i] = PyTuple_GET_ITEM(args, i);
+ }
+ for (; l < max; ++l) {
+ objs[l] = 0;
+ }
+ return i + 1;
+ }
+ }
+}
+
+/* A functor is a function object with one single object argument */
+#if PY_VERSION_HEX >= 0x02020000
+#define SWIG_Python_CallFunctor(functor, obj) PyObject_CallFunctionObjArgs(functor, obj, NULL);
+#else
+#define SWIG_Python_CallFunctor(functor, obj) PyObject_CallFunction(functor, "O", obj);
+#endif
+
+/*
+ Helper for static pointer initialization for both C and C++ code, for example
+ static PyObject *SWIG_STATIC_POINTER(MyVar) = NewSomething(...);
+*/
+#ifdef __cplusplus
+#define SWIG_STATIC_POINTER(var) var
+#else
+#define SWIG_STATIC_POINTER(var) var = 0; if (!var) var
+#endif
+
+/* -----------------------------------------------------------------------------
+ * Pointer declarations
+ * ----------------------------------------------------------------------------- */
+
+/* Flags for new pointer objects */
+#define SWIG_POINTER_NOSHADOW (SWIG_POINTER_OWN << 1)
+#define SWIG_POINTER_NEW (SWIG_POINTER_NOSHADOW | SWIG_POINTER_OWN)
+
+#define SWIG_POINTER_IMPLICIT_CONV (SWIG_POINTER_DISOWN << 1)
+
+#ifdef __cplusplus
+extern "C" {
+#if 0
+} /* cc-mode */
+#endif
+#endif
+
+/* How to access Py_None */
+#if defined(_WIN32) || defined(__WIN32__) || defined(__CYGWIN__)
+# ifndef SWIG_PYTHON_NO_BUILD_NONE
+# ifndef SWIG_PYTHON_BUILD_NONE
+# define SWIG_PYTHON_BUILD_NONE
+# endif
+# endif
+#endif
+
+#ifdef SWIG_PYTHON_BUILD_NONE
+# ifdef Py_None
+# undef Py_None
+# define Py_None SWIG_Py_None()
+# endif
+SWIGRUNTIMEINLINE PyObject *
+_SWIG_Py_None(void)
+{
+ PyObject *none = Py_BuildValue((char*)"");
+ Py_DECREF(none);
+ return none;
+}
+SWIGRUNTIME PyObject *
+SWIG_Py_None(void)
+{
+ static PyObject *SWIG_STATIC_POINTER(none) = _SWIG_Py_None();
+ return none;
+}
+#endif
+
+/* The python void return value */
+
+SWIGRUNTIMEINLINE PyObject *
+SWIG_Py_Void(void)
+{
+ PyObject *none = Py_None;
+ Py_INCREF(none);
+ return none;
+}
+
+/* PySwigClientData */
+
+typedef struct {
+ PyObject *klass;
+ PyObject *newraw;
+ PyObject *newargs;
+ PyObject *destroy;
+ int delargs;
+ int implicitconv;
+} PySwigClientData;
+
+SWIGRUNTIMEINLINE int
+SWIG_Python_CheckImplicit(swig_type_info *ty)
+{
+ PySwigClientData *data = (PySwigClientData *)ty->clientdata;
+ return data ? data->implicitconv : 0;
+}
+
+SWIGRUNTIMEINLINE PyObject *
+SWIG_Python_ExceptionType(swig_type_info *desc) {
+ PySwigClientData *data = desc ? (PySwigClientData *) desc->clientdata : 0;
+ PyObject *klass = data ? data->klass : 0;
+ return (klass ? klass : PyExc_RuntimeError);
+}
+
+
+SWIGRUNTIME PySwigClientData *
+PySwigClientData_New(PyObject* obj)
+{
+ if (!obj) {
+ return 0;
+ } else {
+ PySwigClientData *data = (PySwigClientData *)malloc(sizeof(PySwigClientData));
+ /* the klass element */
+ data->klass = obj;
+ Py_INCREF(data->klass);
+ /* the newraw method and newargs arguments used to create a new raw instance */
+ if (PyClass_Check(obj)) {
+ data->newraw = 0;
+ data->newargs = obj;
+ Py_INCREF(obj);
+ } else {
+#if (PY_VERSION_HEX < 0x02020000)
+ data->newraw = 0;
+#else
+ data->newraw = PyObject_GetAttrString(data->klass, (char *)"__new__");
+#endif
+ if (data->newraw) {
+ Py_INCREF(data->newraw);
+ data->newargs = PyTuple_New(1);
+ PyTuple_SetItem(data->newargs, 0, obj);
+ } else {
+ data->newargs = obj;
+ }
+ Py_INCREF(data->newargs);
+ }
+ /* the destroy method, aka as the C++ delete method */
+ data->destroy = PyObject_GetAttrString(data->klass, (char *)"__swig_destroy__");
+ if (PyErr_Occurred()) {
+ PyErr_Clear();
+ data->destroy = 0;
+ }
+ if (data->destroy) {
+ int flags;
+ Py_INCREF(data->destroy);
+ flags = PyCFunction_GET_FLAGS(data->destroy);
+#ifdef METH_O
+ data->delargs = !(flags & (METH_O));
+#else
+ data->delargs = 0;
+#endif
+ } else {
+ data->delargs = 0;
+ }
+ data->implicitconv = 0;
+ return data;
+ }
+}
+
+SWIGRUNTIME void
+PySwigClientData_Del(PySwigClientData* data)
+{
+ Py_XDECREF(data->newraw);
+ Py_XDECREF(data->newargs);
+ Py_XDECREF(data->destroy);
+}
+
+/* =============== PySwigObject =====================*/
+
+typedef struct {
+ PyObject_HEAD
+ void *ptr;
+ swig_type_info *ty;
+ int own;
+ PyObject *next;
+} PySwigObject;
+
+SWIGRUNTIME PyObject *
+PySwigObject_long(PySwigObject *v)
+{
+ return PyLong_FromVoidPtr(v->ptr);
+}
+
+SWIGRUNTIME PyObject *
+PySwigObject_format(const char* fmt, PySwigObject *v)
+{
+ PyObject *res = NULL;
+ PyObject *args = PyTuple_New(1);
+ if (args) {
+ if (PyTuple_SetItem(args, 0, PySwigObject_long(v)) == 0) {
+ PyObject *ofmt = PyString_FromString(fmt);
+ if (ofmt) {
+ res = PyString_Format(ofmt,args);
+ Py_DECREF(ofmt);
+ }
+ Py_DECREF(args);
+ }
+ }
+ return res;
+}
+
+SWIGRUNTIME PyObject *
+PySwigObject_oct(PySwigObject *v)
+{
+ return PySwigObject_format("%o",v);
+}
+
+SWIGRUNTIME PyObject *
+PySwigObject_hex(PySwigObject *v)
+{
+ return PySwigObject_format("%x",v);
+}
+
+SWIGRUNTIME PyObject *
+#ifdef METH_NOARGS
+PySwigObject_repr(PySwigObject *v)
+#else
+PySwigObject_repr(PySwigObject *v, PyObject *args)
+#endif
+{
+ const char *name = SWIG_TypePrettyName(v->ty);
+ PyObject *hex = PySwigObject_hex(v);
+ PyObject *repr = PyString_FromFormat("<Swig Object of type '%s' at 0x%s>", name, PyString_AsString(hex));
+ Py_DECREF(hex);
+ if (v->next) {
+#ifdef METH_NOARGS
+ PyObject *nrep = PySwigObject_repr((PySwigObject *)v->next);
+#else
+ PyObject *nrep = PySwigObject_repr((PySwigObject *)v->next, args);
+#endif
+ PyString_ConcatAndDel(&repr,nrep);
+ }
+ return repr;
+}
+
+SWIGRUNTIME int
+PySwigObject_print(PySwigObject *v, FILE *fp, int SWIGUNUSEDPARM(flags))
+{
+#ifdef METH_NOARGS
+ PyObject *repr = PySwigObject_repr(v);
+#else
+ PyObject *repr = PySwigObject_repr(v, NULL);
+#endif
+ if (repr) {
+ fputs(PyString_AsString(repr), fp);
+ Py_DECREF(repr);
+ return 0;
+ } else {
+ return 1;
+ }
+}
+
+SWIGRUNTIME PyObject *
+PySwigObject_str(PySwigObject *v)
+{
+ char result[SWIG_BUFFER_SIZE];
+ return SWIG_PackVoidPtr(result, v->ptr, v->ty->name, sizeof(result)) ?
+ PyString_FromString(result) : 0;
+}
+
+SWIGRUNTIME int
+PySwigObject_compare(PySwigObject *v, PySwigObject *w)
+{
+ void *i = v->ptr;
+ void *j = w->ptr;
+ return (i < j) ? -1 : ((i > j) ? 1 : 0);
+}
+
+SWIGRUNTIME PyTypeObject* _PySwigObject_type(void);
+
+SWIGRUNTIME PyTypeObject*
+PySwigObject_type(void) {
+ static PyTypeObject *SWIG_STATIC_POINTER(type) = _PySwigObject_type();
+ return type;
+}
+
+SWIGRUNTIMEINLINE int
+PySwigObject_Check(PyObject *op) {
+ return ((op)->ob_type == PySwigObject_type())
+ || (strcmp((op)->ob_type->tp_name,"PySwigObject") == 0);
+}
+
+SWIGRUNTIME PyObject *
+PySwigObject_New(void *ptr, swig_type_info *ty, int own);
+
+SWIGRUNTIME void
+PySwigObject_dealloc(PyObject *v)
+{
+ PySwigObject *sobj = (PySwigObject *) v;
+ PyObject *next = sobj->next;
+ if (sobj->own) {
+ swig_type_info *ty = sobj->ty;
+ PySwigClientData *data = ty ? (PySwigClientData *) ty->clientdata : 0;
+ PyObject *destroy = data ? data->destroy : 0;
+ if (destroy) {
+ /* destroy is always a VARARGS method */
+ PyObject *res;
+ if (data->delargs) {
+ /* we need to create a temporal object to carry the destroy operation */
+ PyObject *tmp = PySwigObject_New(sobj->ptr, ty, 0);
+ res = SWIG_Python_CallFunctor(destroy, tmp);
+ Py_DECREF(tmp);
+ } else {
+ PyCFunction meth = PyCFunction_GET_FUNCTION(destroy);
+ PyObject *mself = PyCFunction_GET_SELF(destroy);
+ res = ((*meth)(mself, v));
+ }
+ Py_XDECREF(res);
+ } else {
+ const char *name = SWIG_TypePrettyName(ty);
+#if !defined(SWIG_PYTHON_SILENT_MEMLEAK)
+ printf("swig/python detected a memory leak of type '%s', no destructor found.\n", name);
+#endif
+ }
+ }
+ Py_XDECREF(next);
+ PyObject_DEL(v);
+}
+
+SWIGRUNTIME PyObject*
+PySwigObject_append(PyObject* v, PyObject* next)
+{
+ PySwigObject *sobj = (PySwigObject *) v;
+#ifndef METH_O
+ PyObject *tmp = 0;
+ if (!PyArg_ParseTuple(next,(char *)"O:append", &tmp)) return NULL;
+ next = tmp;
+#endif
+ if (!PySwigObject_Check(next)) {
+ return NULL;
+ }
+ sobj->next = next;
+ Py_INCREF(next);
+ return SWIG_Py_Void();
+}
+
+SWIGRUNTIME PyObject*
+#ifdef METH_NOARGS
+PySwigObject_next(PyObject* v)
+#else
+PySwigObject_next(PyObject* v, PyObject *SWIGUNUSEDPARM(args))
+#endif
+{
+ PySwigObject *sobj = (PySwigObject *) v;
+ if (sobj->next) {
+ Py_INCREF(sobj->next);
+ return sobj->next;
+ } else {
+ return SWIG_Py_Void();
+ }
+}
+
+SWIGINTERN PyObject*
+#ifdef METH_NOARGS
+PySwigObject_disown(PyObject *v)
+#else
+PySwigObject_disown(PyObject* v, PyObject *SWIGUNUSEDPARM(args))
+#endif
+{
+ PySwigObject *sobj = (PySwigObject *)v;
+ sobj->own = 0;
+ return SWIG_Py_Void();
+}
+
+SWIGINTERN PyObject*
+#ifdef METH_NOARGS
+PySwigObject_acquire(PyObject *v)
+#else
+PySwigObject_acquire(PyObject* v, PyObject *SWIGUNUSEDPARM(args))
+#endif
+{
+ PySwigObject *sobj = (PySwigObject *)v;
+ sobj->own = SWIG_POINTER_OWN;
+ return SWIG_Py_Void();
+}
+
+SWIGINTERN PyObject*
+PySwigObject_own(PyObject *v, PyObject *args)
+{
+ PyObject *val = 0;
+#if (PY_VERSION_HEX < 0x02020000)
+ if (!PyArg_ParseTuple(args,(char *)"|O:own",&val))
+#else
+ if (!PyArg_UnpackTuple(args, (char *)"own", 0, 1, &val))
+#endif
+ {
+ return NULL;
+ }
+ else
+ {
+ PySwigObject *sobj = (PySwigObject *)v;
+ PyObject *obj = PyBool_FromLong(sobj->own);
+ if (val) {
+#ifdef METH_NOARGS
+ if (PyObject_IsTrue(val)) {
+ PySwigObject_acquire(v);
+ } else {
+ PySwigObject_disown(v);
+ }
+#else
+ if (PyObject_IsTrue(val)) {
+ PySwigObject_acquire(v,args);
+ } else {
+ PySwigObject_disown(v,args);
+ }
+#endif
+ }
+ return obj;
+ }
+}
+
+#ifdef METH_O
+static PyMethodDef
+swigobject_methods[] = {
+ {(char *)"disown", (PyCFunction)PySwigObject_disown, METH_NOARGS, (char *)"releases ownership of the pointer"},
+ {(char *)"acquire", (PyCFunction)PySwigObject_acquire, METH_NOARGS, (char *)"aquires ownership of the pointer"},
+ {(char *)"own", (PyCFunction)PySwigObject_own, METH_VARARGS, (char *)"returns/sets ownership of the pointer"},
+ {(char *)"append", (PyCFunction)PySwigObject_append, METH_O, (char *)"appends another 'this' object"},
+ {(char *)"next", (PyCFunction)PySwigObject_next, METH_NOARGS, (char *)"returns the next 'this' object"},
+ {(char *)"__repr__",(PyCFunction)PySwigObject_repr, METH_NOARGS, (char *)"returns object representation"},
+ {0, 0, 0, 0}
+};
+#else
+static PyMethodDef
+swigobject_methods[] = {
+ {(char *)"disown", (PyCFunction)PySwigObject_disown, METH_VARARGS, (char *)"releases ownership of the pointer"},
+ {(char *)"acquire", (PyCFunction)PySwigObject_acquire, METH_VARARGS, (char *)"aquires ownership of the pointer"},
+ {(char *)"own", (PyCFunction)PySwigObject_own, METH_VARARGS, (char *)"returns/sets ownership of the pointer"},
+ {(char *)"append", (PyCFunction)PySwigObject_append, METH_VARARGS, (char *)"appends another 'this' object"},
+ {(char *)"next", (PyCFunction)PySwigObject_next, METH_VARARGS, (char *)"returns the next 'this' object"},
+ {(char *)"__repr__",(PyCFunction)PySwigObject_repr, METH_VARARGS, (char *)"returns object representation"},
+ {0, 0, 0, 0}
+};
+#endif
+
+#if PY_VERSION_HEX < 0x02020000
+SWIGINTERN PyObject *
+PySwigObject_getattr(PySwigObject *sobj,char *name)
+{
+ return Py_FindMethod(swigobject_methods, (PyObject *)sobj, name);
+}
+#endif
+
+SWIGRUNTIME PyTypeObject*
+_PySwigObject_type(void) {
+ static char swigobject_doc[] = "Swig object carries a C/C++ instance pointer";
+
+ static PyNumberMethods PySwigObject_as_number = {
+ (binaryfunc)0, /*nb_add*/
+ (binaryfunc)0, /*nb_subtract*/
+ (binaryfunc)0, /*nb_multiply*/
+ (binaryfunc)0, /*nb_divide*/
+ (binaryfunc)0, /*nb_remainder*/
+ (binaryfunc)0, /*nb_divmod*/
+ (ternaryfunc)0,/*nb_power*/
+ (unaryfunc)0, /*nb_negative*/
+ (unaryfunc)0, /*nb_positive*/
+ (unaryfunc)0, /*nb_absolute*/
+ (inquiry)0, /*nb_nonzero*/
+ 0, /*nb_invert*/
+ 0, /*nb_lshift*/
+ 0, /*nb_rshift*/
+ 0, /*nb_and*/
+ 0, /*nb_xor*/
+ 0, /*nb_or*/
+ (coercion)0, /*nb_coerce*/
+ (unaryfunc)PySwigObject_long, /*nb_int*/
+ (unaryfunc)PySwigObject_long, /*nb_long*/
+ (unaryfunc)0, /*nb_float*/
+ (unaryfunc)PySwigObject_oct, /*nb_oct*/
+ (unaryfunc)PySwigObject_hex, /*nb_hex*/
+#if PY_VERSION_HEX >= 0x02020000
+ 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0 /* nb_inplace_add -> nb_inplace_true_divide */
+#elif PY_VERSION_HEX >= 0x02000000
+ 0,0,0,0,0,0,0,0,0,0,0 /* nb_inplace_add -> nb_inplace_or */
+#endif
+ };
+
+ static PyTypeObject pyswigobject_type;
+ static int type_init = 0;
+ if (!type_init) {
+ const PyTypeObject tmp
+ = {
+ PyObject_HEAD_INIT(NULL)
+ 0, /* ob_size */
+ (char *)"PySwigObject", /* tp_name */
+ sizeof(PySwigObject), /* tp_basicsize */
+ 0, /* tp_itemsize */
+ (destructor)PySwigObject_dealloc, /* tp_dealloc */
+ (printfunc)PySwigObject_print, /* tp_print */
+#if PY_VERSION_HEX < 0x02020000
+ (getattrfunc)PySwigObject_getattr, /* tp_getattr */
+#else
+ (getattrfunc)0, /* tp_getattr */
+#endif
+ (setattrfunc)0, /* tp_setattr */
+ (cmpfunc)PySwigObject_compare, /* tp_compare */
+ (reprfunc)PySwigObject_repr, /* tp_repr */
+ &PySwigObject_as_number, /* tp_as_number */
+ 0, /* tp_as_sequence */
+ 0, /* tp_as_mapping */
+ (hashfunc)0, /* tp_hash */
+ (ternaryfunc)0, /* tp_call */
+ (reprfunc)PySwigObject_str, /* tp_str */
+ PyObject_GenericGetAttr, /* tp_getattro */
+ 0, /* tp_setattro */
+ 0, /* tp_as_buffer */
+ Py_TPFLAGS_DEFAULT, /* tp_flags */
+ swigobject_doc, /* tp_doc */
+ 0, /* tp_traverse */
+ 0, /* tp_clear */
+ 0, /* tp_richcompare */
+ 0, /* tp_weaklistoffset */
+#if PY_VERSION_HEX >= 0x02020000
+ 0, /* tp_iter */
+ 0, /* tp_iternext */
+ swigobject_methods, /* tp_methods */
+ 0, /* tp_members */
+ 0, /* tp_getset */
+ 0, /* tp_base */
+ 0, /* tp_dict */
+ 0, /* tp_descr_get */
+ 0, /* tp_descr_set */
+ 0, /* tp_dictoffset */
+ 0, /* tp_init */
+ 0, /* tp_alloc */
+ 0, /* tp_new */
+ 0, /* tp_free */
+ 0, /* tp_is_gc */
+ 0, /* tp_bases */
+ 0, /* tp_mro */
+ 0, /* tp_cache */
+ 0, /* tp_subclasses */
+ 0, /* tp_weaklist */
+#endif
+#if PY_VERSION_HEX >= 0x02030000
+ 0, /* tp_del */
+#endif
+#ifdef COUNT_ALLOCS
+ 0,0,0,0 /* tp_alloc -> tp_next */
+#endif
+ };
+ pyswigobject_type = tmp;
+ pyswigobject_type.ob_type = &PyType_Type;
+ type_init = 1;
+ }
+ return &pyswigobject_type;
+}
+
+SWIGRUNTIME PyObject *
+PySwigObject_New(void *ptr, swig_type_info *ty, int own)
+{
+ PySwigObject *sobj = PyObject_NEW(PySwigObject, PySwigObject_type());
+ if (sobj) {
+ sobj->ptr = ptr;
+ sobj->ty = ty;
+ sobj->own = own;
+ sobj->next = 0;
+ }
+ return (PyObject *)sobj;
+}
+
+/* -----------------------------------------------------------------------------
+ * Implements a simple Swig Packed type, and use it instead of string
+ * ----------------------------------------------------------------------------- */
+
+typedef struct {
+ PyObject_HEAD
+ void *pack;
+ swig_type_info *ty;
+ size_t size;
+} PySwigPacked;
+
+SWIGRUNTIME int
+PySwigPacked_print(PySwigPacked *v, FILE *fp, int SWIGUNUSEDPARM(flags))
+{
+ char result[SWIG_BUFFER_SIZE];
+ fputs("<Swig Packed ", fp);
+ if (SWIG_PackDataName(result, v->pack, v->size, 0, sizeof(result))) {
+ fputs("at ", fp);
+ fputs(result, fp);
+ }
+ fputs(v->ty->name,fp);
+ fputs(">", fp);
+ return 0;
+}
+
+SWIGRUNTIME PyObject *
+PySwigPacked_repr(PySwigPacked *v)
+{
+ char result[SWIG_BUFFER_SIZE];
+ if (SWIG_PackDataName(result, v->pack, v->size, 0, sizeof(result))) {
+ return PyString_FromFormat("<Swig Packed at %s%s>", result, v->ty->name);
+ } else {
+ return PyString_FromFormat("<Swig Packed %s>", v->ty->name);
+ }
+}
+
+SWIGRUNTIME PyObject *
+PySwigPacked_str(PySwigPacked *v)
+{
+ char result[SWIG_BUFFER_SIZE];
+ if (SWIG_PackDataName(result, v->pack, v->size, 0, sizeof(result))){
+ return PyString_FromFormat("%s%s", result, v->ty->name);
+ } else {
+ return PyString_FromString(v->ty->name);
+ }
+}
+
+SWIGRUNTIME int
+PySwigPacked_compare(PySwigPacked *v, PySwigPacked *w)
+{
+ size_t i = v->size;
+ size_t j = w->size;
+ int s = (i < j) ? -1 : ((i > j) ? 1 : 0);
+ return s ? s : strncmp((char *)v->pack, (char *)w->pack, 2*v->size);
+}
+
+SWIGRUNTIME PyTypeObject* _PySwigPacked_type(void);
+
+SWIGRUNTIME PyTypeObject*
+PySwigPacked_type(void) {
+ static PyTypeObject *SWIG_STATIC_POINTER(type) = _PySwigPacked_type();
+ return type;
+}
+
+SWIGRUNTIMEINLINE int
+PySwigPacked_Check(PyObject *op) {
+ return ((op)->ob_type == _PySwigPacked_type())
+ || (strcmp((op)->ob_type->tp_name,"PySwigPacked") == 0);
+}
+
+SWIGRUNTIME void
+PySwigPacked_dealloc(PyObject *v)
+{
+ if (PySwigPacked_Check(v)) {
+ PySwigPacked *sobj = (PySwigPacked *) v;
+ free(sobj->pack);
+ }
+ PyObject_DEL(v);
+}
+
+SWIGRUNTIME PyTypeObject*
+_PySwigPacked_type(void) {
+ static char swigpacked_doc[] = "Swig object carries a C/C++ instance pointer";
+ static PyTypeObject pyswigpacked_type;
+ static int type_init = 0;
+ if (!type_init) {
+ const PyTypeObject tmp
+ = {
+ PyObject_HEAD_INIT(NULL)
+ 0, /* ob_size */
+ (char *)"PySwigPacked", /* tp_name */
+ sizeof(PySwigPacked), /* tp_basicsize */
+ 0, /* tp_itemsize */
+ (destructor)PySwigPacked_dealloc, /* tp_dealloc */
+ (printfunc)PySwigPacked_print, /* tp_print */
+ (getattrfunc)0, /* tp_getattr */
+ (setattrfunc)0, /* tp_setattr */
+ (cmpfunc)PySwigPacked_compare, /* tp_compare */
+ (reprfunc)PySwigPacked_repr, /* tp_repr */
+ 0, /* tp_as_number */
+ 0, /* tp_as_sequence */
+ 0, /* tp_as_mapping */
+ (hashfunc)0, /* tp_hash */
+ (ternaryfunc)0, /* tp_call */
+ (reprfunc)PySwigPacked_str, /* tp_str */
+ PyObject_GenericGetAttr, /* tp_getattro */
+ 0, /* tp_setattro */
+ 0, /* tp_as_buffer */
+ Py_TPFLAGS_DEFAULT, /* tp_flags */
+ swigpacked_doc, /* tp_doc */
+ 0, /* tp_traverse */
+ 0, /* tp_clear */
+ 0, /* tp_richcompare */
+ 0, /* tp_weaklistoffset */
+#if PY_VERSION_HEX >= 0x02020000
+ 0, /* tp_iter */
+ 0, /* tp_iternext */
+ 0, /* tp_methods */
+ 0, /* tp_members */
+ 0, /* tp_getset */
+ 0, /* tp_base */
+ 0, /* tp_dict */
+ 0, /* tp_descr_get */
+ 0, /* tp_descr_set */
+ 0, /* tp_dictoffset */
+ 0, /* tp_init */
+ 0, /* tp_alloc */
+ 0, /* tp_new */
+ 0, /* tp_free */
+ 0, /* tp_is_gc */
+ 0, /* tp_bases */
+ 0, /* tp_mro */
+ 0, /* tp_cache */
+ 0, /* tp_subclasses */
+ 0, /* tp_weaklist */
+#endif
+#if PY_VERSION_HEX >= 0x02030000
+ 0, /* tp_del */
+#endif
+#ifdef COUNT_ALLOCS
+ 0,0,0,0 /* tp_alloc -> tp_next */
+#endif
+ };
+ pyswigpacked_type = tmp;
+ pyswigpacked_type.ob_type = &PyType_Type;
+ type_init = 1;
+ }
+ return &pyswigpacked_type;
+}
+
+SWIGRUNTIME PyObject *
+PySwigPacked_New(void *ptr, size_t size, swig_type_info *ty)
+{
+ PySwigPacked *sobj = PyObject_NEW(PySwigPacked, PySwigPacked_type());
+ if (sobj) {
+ void *pack = malloc(size);
+ if (pack) {
+ memcpy(pack, ptr, size);
+ sobj->pack = pack;
+ sobj->ty = ty;
+ sobj->size = size;
+ } else {
+ PyObject_DEL((PyObject *) sobj);
+ sobj = 0;
+ }
+ }
+ return (PyObject *) sobj;
+}
+
+SWIGRUNTIME swig_type_info *
+PySwigPacked_UnpackData(PyObject *obj, void *ptr, size_t size)
+{
+ if (PySwigPacked_Check(obj)) {
+ PySwigPacked *sobj = (PySwigPacked *)obj;
+ if (sobj->size != size) return 0;
+ memcpy(ptr, sobj->pack, size);
+ return sobj->ty;
+ } else {
+ return 0;
+ }
+}
+
+/* -----------------------------------------------------------------------------
+ * pointers/data manipulation
+ * ----------------------------------------------------------------------------- */
+
+SWIGRUNTIMEINLINE PyObject *
+_SWIG_This(void)
+{
+ return PyString_FromString("this");
+}
+
+SWIGRUNTIME PyObject *
+SWIG_This(void)
+{
+ static PyObject *SWIG_STATIC_POINTER(swig_this) = _SWIG_This();
+ return swig_this;
+}
+
+/* #define SWIG_PYTHON_SLOW_GETSET_THIS */
+
+SWIGRUNTIME PySwigObject *
+SWIG_Python_GetSwigThis(PyObject *pyobj)
+{
+ if (PySwigObject_Check(pyobj)) {
+ return (PySwigObject *) pyobj;
+ } else {
+ PyObject *obj = 0;
+#if (!defined(SWIG_PYTHON_SLOW_GETSET_THIS) && (PY_VERSION_HEX >= 0x02030000))
+ if (PyInstance_Check(pyobj)) {
+ obj = _PyInstance_Lookup(pyobj, SWIG_This());
+ } else {
+ PyObject **dictptr = _PyObject_GetDictPtr(pyobj);
+ if (dictptr != NULL) {
+ PyObject *dict = *dictptr;
+ obj = dict ? PyDict_GetItem(dict, SWIG_This()) : 0;
+ } else {
+#ifdef PyWeakref_CheckProxy
+ if (PyWeakref_CheckProxy(pyobj)) {
+ PyObject *wobj = PyWeakref_GET_OBJECT(pyobj);
+ return wobj ? SWIG_Python_GetSwigThis(wobj) : 0;
+ }
+#endif
+ obj = PyObject_GetAttr(pyobj,SWIG_This());
+ if (obj) {
+ Py_DECREF(obj);
+ } else {
+ if (PyErr_Occurred()) PyErr_Clear();
+ return 0;
+ }
+ }
+ }
+#else
+ obj = PyObject_GetAttr(pyobj,SWIG_This());
+ if (obj) {
+ Py_DECREF(obj);
+ } else {
+ if (PyErr_Occurred()) PyErr_Clear();
+ return 0;
+ }
+#endif
+ if (obj && !PySwigObject_Check(obj)) {
+ /* a PyObject is called 'this', try to get the 'real this'
+ PySwigObject from it */
+ return SWIG_Python_GetSwigThis(obj);
+ }
+ return (PySwigObject *)obj;
+ }
+}
+
+/* Acquire a pointer value */
+
+SWIGRUNTIME int
+SWIG_Python_AcquirePtr(PyObject *obj, int own) {
+ if (own) {
+ PySwigObject *sobj = SWIG_Python_GetSwigThis(obj);
+ if (sobj) {
+ int oldown = sobj->own;
+ sobj->own = own;
+ return oldown;
+ }
+ }
+ return 0;
+}
+
+/* Convert a pointer value */
+
+SWIGRUNTIME int
+SWIG_Python_ConvertPtrAndOwn(PyObject *obj, void **ptr, swig_type_info *ty, int flags, int *own) {
+ if (!obj) return SWIG_ERROR;
+ if (obj == Py_None) {
+ if (ptr) *ptr = 0;
+ return SWIG_OK;
+ } else {
+ PySwigObject *sobj = SWIG_Python_GetSwigThis(obj);
+ while (sobj) {
+ void *vptr = sobj->ptr;
+ if (ty) {
+ swig_type_info *to = sobj->ty;
+ if (to == ty) {
+ /* no type cast needed */
+ if (ptr) *ptr = vptr;
+ break;
+ } else {
+ swig_cast_info *tc = SWIG_TypeCheck(to->name,ty);
+ if (!tc) {
+ sobj = (PySwigObject *)sobj->next;
+ } else {
+ if (ptr) *ptr = SWIG_TypeCast(tc,vptr);
+ break;
+ }
+ }
+ } else {
+ if (ptr) *ptr = vptr;
+ break;
+ }
+ }
+ if (sobj) {
+ if (own) *own = sobj->own;
+ if (flags & SWIG_POINTER_DISOWN) {
+ sobj->own = 0;
+ }
+ return SWIG_OK;
+ } else {
+ int res = SWIG_ERROR;
+ if (flags & SWIG_POINTER_IMPLICIT_CONV) {
+ PySwigClientData *data = ty ? (PySwigClientData *) ty->clientdata : 0;
+ if (data && !data->implicitconv) {
+ PyObject *klass = data->klass;
+ if (klass) {
+ PyObject *impconv;
+ data->implicitconv = 1; /* avoid recursion and call 'explicit' constructors*/
+ impconv = SWIG_Python_CallFunctor(klass, obj);
+ data->implicitconv = 0;
+ if (PyErr_Occurred()) {
+ PyErr_Clear();
+ impconv = 0;
+ }
+ if (impconv) {
+ PySwigObject *iobj = SWIG_Python_GetSwigThis(impconv);
+ if (iobj) {
+ void *vptr;
+ res = SWIG_Python_ConvertPtrAndOwn((PyObject*)iobj, &vptr, ty, 0, 0);
+ if (SWIG_IsOK(res)) {
+ if (ptr) {
+ *ptr = vptr;
+ /* transfer the ownership to 'ptr' */
+ iobj->own = 0;
+ res = SWIG_AddCast(res);
+ res = SWIG_AddNewMask(res);
+ } else {
+ res = SWIG_AddCast(res);
+ }
+ }
+ }
+ Py_DECREF(impconv);
+ }
+ }
+ }
+ }
+ return res;
+ }
+ }
+}
+
+/* Convert a function ptr value */
+
+SWIGRUNTIME int
+SWIG_Python_ConvertFunctionPtr(PyObject *obj, void **ptr, swig_type_info *ty) {
+ if (!PyCFunction_Check(obj)) {
+ return SWIG_ConvertPtr(obj, ptr, ty, 0);
+ } else {
+ void *vptr = 0;
+
+ /* here we get the method pointer for callbacks */
+ const char *doc = (((PyCFunctionObject *)obj) -> m_ml -> ml_doc);
+ const char *desc = doc ? strstr(doc, "swig_ptr: ") : 0;
+ if (desc) {
+ desc = ty ? SWIG_UnpackVoidPtr(desc + 10, &vptr, ty->name) : 0;
+ if (!desc) return SWIG_ERROR;
+ }
+ if (ty) {
+ swig_cast_info *tc = SWIG_TypeCheck(desc,ty);
+ if (!tc) return SWIG_ERROR;
+ *ptr = SWIG_TypeCast(tc,vptr);
+ } else {
+ *ptr = vptr;
+ }
+ return SWIG_OK;
+ }
+}
+
+/* Convert a packed value value */
+
+SWIGRUNTIME int
+SWIG_Python_ConvertPacked(PyObject *obj, void *ptr, size_t sz, swig_type_info *ty) {
+ swig_type_info *to = PySwigPacked_UnpackData(obj, ptr, sz);
+ if (!to) return SWIG_ERROR;
+ if (ty) {
+ if (to != ty) {
+ /* check type cast? */
+ swig_cast_info *tc = SWIG_TypeCheck(to->name,ty);
+ if (!tc) return SWIG_ERROR;
+ }
+ }
+ return SWIG_OK;
+}
+
+/* -----------------------------------------------------------------------------
+ * Create a new pointer object
+ * ----------------------------------------------------------------------------- */
+
+/*
+ Create a new instance object, whitout calling __init__, and set the
+ 'this' attribute.
+*/
+
+SWIGRUNTIME PyObject*
+SWIG_Python_NewShadowInstance(PySwigClientData *data, PyObject *swig_this)
+{
+#if (PY_VERSION_HEX >= 0x02020000)
+ PyObject *inst = 0;
+ PyObject *newraw = data->newraw;
+ if (newraw) {
+ inst = PyObject_Call(newraw, data->newargs, NULL);
+ if (inst) {
+#if !defined(SWIG_PYTHON_SLOW_GETSET_THIS)
+ PyObject **dictptr = _PyObject_GetDictPtr(inst);
+ if (dictptr != NULL) {
+ PyObject *dict = *dictptr;
+ if (dict == NULL) {
+ dict = PyDict_New();
+ *dictptr = dict;
+ PyDict_SetItem(dict, SWIG_This(), swig_this);
+ }
+ }
+#else
+ PyObject *key = SWIG_This();
+ PyObject_SetAttr(inst, key, swig_this);
+#endif
+ }
+ } else {
+ PyObject *dict = PyDict_New();
+ PyDict_SetItem(dict, SWIG_This(), swig_this);
+ inst = PyInstance_NewRaw(data->newargs, dict);
+ Py_DECREF(dict);
+ }
+ return inst;
+#else
+#if (PY_VERSION_HEX >= 0x02010000)
+ PyObject *inst;
+ PyObject *dict = PyDict_New();
+ PyDict_SetItem(dict, SWIG_This(), swig_this);
+ inst = PyInstance_NewRaw(data->newargs, dict);
+ Py_DECREF(dict);
+ return (PyObject *) inst;
+#else
+ PyInstanceObject *inst = PyObject_NEW(PyInstanceObject, &PyInstance_Type);
+ if (inst == NULL) {
+ return NULL;
+ }
+ inst->in_class = (PyClassObject *)data->newargs;
+ Py_INCREF(inst->in_class);
+ inst->in_dict = PyDict_New();
+ if (inst->in_dict == NULL) {
+ Py_DECREF(inst);
+ return NULL;
+ }
+#ifdef Py_TPFLAGS_HAVE_WEAKREFS
+ inst->in_weakreflist = NULL;
+#endif
+#ifdef Py_TPFLAGS_GC
+ PyObject_GC_Init(inst);
+#endif
+ PyDict_SetItem(inst->in_dict, SWIG_This(), swig_this);
+ return (PyObject *) inst;
+#endif
+#endif
+}
+
+SWIGRUNTIME void
+SWIG_Python_SetSwigThis(PyObject *inst, PyObject *swig_this)
+{
+ PyObject *dict;
+#if (PY_VERSION_HEX >= 0x02020000) && !defined(SWIG_PYTHON_SLOW_GETSET_THIS)
+ PyObject **dictptr = _PyObject_GetDictPtr(inst);
+ if (dictptr != NULL) {
+ dict = *dictptr;
+ if (dict == NULL) {
+ dict = PyDict_New();
+ *dictptr = dict;
+ }
+ PyDict_SetItem(dict, SWIG_This(), swig_this);
+ return;
+ }
+#endif
+ dict = PyObject_GetAttrString(inst, (char*)"__dict__");
+ PyDict_SetItem(dict, SWIG_This(), swig_this);
+ Py_DECREF(dict);
+}
+
+
+SWIGINTERN PyObject *
+SWIG_Python_InitShadowInstance(PyObject *args) {
+ PyObject *obj[2];
+ if (!SWIG_Python_UnpackTuple(args,(char*)"swiginit", 2, 2, obj)) {
+ return NULL;
+ } else {
+ PySwigObject *sthis = SWIG_Python_GetSwigThis(obj[0]);
+ if (sthis) {
+ PySwigObject_append((PyObject*) sthis, obj[1]);
+ } else {
+ SWIG_Python_SetSwigThis(obj[0], obj[1]);
+ }
+ return SWIG_Py_Void();
+ }
+}
+
+/* Create a new pointer object */
+
+SWIGRUNTIME PyObject *
+SWIG_Python_NewPointerObj(void *ptr, swig_type_info *type, int flags) {
+ if (!ptr) {
+ return SWIG_Py_Void();
+ } else {
+ int own = (flags & SWIG_POINTER_OWN) ? SWIG_POINTER_OWN : 0;
+ PyObject *robj = PySwigObject_New(ptr, type, own);
+ PySwigClientData *clientdata = type ? (PySwigClientData *)(type->clientdata) : 0;
+ if (clientdata && !(flags & SWIG_POINTER_NOSHADOW)) {
+ PyObject *inst = SWIG_Python_NewShadowInstance(clientdata, robj);
+ if (inst) {
+ Py_DECREF(robj);
+ robj = inst;
+ }
+ }
+ return robj;
+ }
+}
+
+/* Create a new packed object */
+
+SWIGRUNTIMEINLINE PyObject *
+SWIG_Python_NewPackedObj(void *ptr, size_t sz, swig_type_info *type) {
+ return ptr ? PySwigPacked_New((void *) ptr, sz, type) : SWIG_Py_Void();
+}
+
+/* -----------------------------------------------------------------------------*
+ * Get type list
+ * -----------------------------------------------------------------------------*/
+
+#ifdef SWIG_LINK_RUNTIME
+void *SWIG_ReturnGlobalTypeList(void *);
+#endif
+
+SWIGRUNTIME swig_module_info *
+SWIG_Python_GetModule(void) {
+ static void *type_pointer = (void *)0;
+ /* first check if module already created */
+ if (!type_pointer) {
+#ifdef SWIG_LINK_RUNTIME
+ type_pointer = SWIG_ReturnGlobalTypeList((void *)0);
+#else
+ type_pointer = PyCObject_Import((char*)"swig_runtime_data" SWIG_RUNTIME_VERSION,
+ (char*)"type_pointer" SWIG_TYPE_TABLE_NAME);
+ if (PyErr_Occurred()) {
+ PyErr_Clear();
+ type_pointer = (void *)0;
+ }
+#endif
+ }
+ return (swig_module_info *) type_pointer;
+}
+
+#if PY_MAJOR_VERSION < 2
+/* PyModule_AddObject function was introduced in Python 2.0. The following function
+ is copied out of Python/modsupport.c in python version 2.3.4 */
+SWIGINTERN int
+PyModule_AddObject(PyObject *m, char *name, PyObject *o)
+{
+ PyObject *dict;
+ if (!PyModule_Check(m)) {
+ PyErr_SetString(PyExc_TypeError,
+ "PyModule_AddObject() needs module as first arg");
+ return SWIG_ERROR;
+ }
+ if (!o) {
+ PyErr_SetString(PyExc_TypeError,
+ "PyModule_AddObject() needs non-NULL value");
+ return SWIG_ERROR;
+ }
+
+ dict = PyModule_GetDict(m);
+ if (dict == NULL) {
+ /* Internal error -- modules must have a dict! */
+ PyErr_Format(PyExc_SystemError, "module '%s' has no __dict__",
+ PyModule_GetName(m));
+ return SWIG_ERROR;
+ }
+ if (PyDict_SetItemString(dict, name, o))
+ return SWIG_ERROR;
+ Py_DECREF(o);
+ return SWIG_OK;
+}
+#endif
+
+SWIGRUNTIME void
+SWIG_Python_DestroyModule(void *vptr)
+{
+ swig_module_info *swig_module = (swig_module_info *) vptr;
+ swig_type_info **types = swig_module->types;
+ size_t i;
+ for (i =0; i < swig_module->size; ++i) {
+ swig_type_info *ty = types[i];
+ if (ty->owndata) {
+ PySwigClientData *data = (PySwigClientData *) ty->clientdata;
+ if (data) PySwigClientData_Del(data);
+ }
+ }
+ Py_DECREF(SWIG_This());
+}
+
+SWIGRUNTIME void
+SWIG_Python_SetModule(swig_module_info *swig_module) {
+ static PyMethodDef swig_empty_runtime_method_table[] = { {NULL, NULL, 0, NULL} };/* Sentinel */
+
+ PyObject *module = Py_InitModule((char*)"swig_runtime_data" SWIG_RUNTIME_VERSION,
+ swig_empty_runtime_method_table);
+ PyObject *pointer = PyCObject_FromVoidPtr((void *) swig_module, SWIG_Python_DestroyModule);
+ if (pointer && module) {
+ PyModule_AddObject(module, (char*)"type_pointer" SWIG_TYPE_TABLE_NAME, pointer);
+ } else {
+ Py_XDECREF(pointer);
+ }
+}
+
+/* The python cached type query */
+SWIGRUNTIME PyObject *
+SWIG_Python_TypeCache(void) {
+ static PyObject *SWIG_STATIC_POINTER(cache) = PyDict_New();
+ return cache;
+}
+
+SWIGRUNTIME swig_type_info *
+SWIG_Python_TypeQuery(const char *type)
+{
+ PyObject *cache = SWIG_Python_TypeCache();
+ PyObject *key = PyString_FromString(type);
+ PyObject *obj = PyDict_GetItem(cache, key);
+ swig_type_info *descriptor;
+ if (obj) {
+ descriptor = (swig_type_info *) PyCObject_AsVoidPtr(obj);
+ } else {
+ swig_module_info *swig_module = SWIG_Python_GetModule();
+ descriptor = SWIG_TypeQueryModule(swig_module, swig_module, type);
+ if (descriptor) {
+ obj = PyCObject_FromVoidPtr(descriptor, NULL);
+ PyDict_SetItem(cache, key, obj);
+ Py_DECREF(obj);
+ }
+ }
+ Py_DECREF(key);
+ return descriptor;
+}
+
+/*
+ For backward compatibility only
+*/
+#define SWIG_POINTER_EXCEPTION 0
+#define SWIG_arg_fail(arg) SWIG_Python_ArgFail(arg)
+#define SWIG_MustGetPtr(p, type, argnum, flags) SWIG_Python_MustGetPtr(p, type, argnum, flags)
+
+SWIGRUNTIME int
+SWIG_Python_AddErrMesg(const char* mesg, int infront)
+{
+ if (PyErr_Occurred()) {
+ PyObject *type = 0;
+ PyObject *value = 0;
+ PyObject *traceback = 0;
+ PyErr_Fetch(&type, &value, &traceback);
+ if (value) {
+ PyObject *old_str = PyObject_Str(value);
+ Py_XINCREF(type);
+ PyErr_Clear();
+ if (infront) {
+ PyErr_Format(type, "%s %s", mesg, PyString_AsString(old_str));
+ } else {
+ PyErr_Format(type, "%s %s", PyString_AsString(old_str), mesg);
+ }
+ Py_DECREF(old_str);
+ }
+ return 1;
+ } else {
+ return 0;
+ }
+}
+
+SWIGRUNTIME int
+SWIG_Python_ArgFail(int argnum)
+{
+ if (PyErr_Occurred()) {
+ /* add information about failing argument */
+ char mesg[256];
+ PyOS_snprintf(mesg, sizeof(mesg), "argument number %d:", argnum);
+ return SWIG_Python_AddErrMesg(mesg, 1);
+ } else {
+ return 0;
+ }
+}
+
+SWIGRUNTIMEINLINE const char *
+PySwigObject_GetDesc(PyObject *self)
+{
+ PySwigObject *v = (PySwigObject *)self;
+ swig_type_info *ty = v ? v->ty : 0;
+ return ty ? ty->str : (char*)"";
+}
+
+SWIGRUNTIME void
+SWIG_Python_TypeError(const char *type, PyObject *obj)
+{
+ if (type) {
+#if defined(SWIG_COBJECT_TYPES)
+ if (obj && PySwigObject_Check(obj)) {
+ const char *otype = (const char *) PySwigObject_GetDesc(obj);
+ if (otype) {
+ PyErr_Format(PyExc_TypeError, "a '%s' is expected, 'PySwigObject(%s)' is received",
+ type, otype);
+ return;
+ }
+ } else
+#endif
+ {
+ const char *otype = (obj ? obj->ob_type->tp_name : 0);
+ if (otype) {
+ PyObject *str = PyObject_Str(obj);
+ const char *cstr = str ? PyString_AsString(str) : 0;
+ if (cstr) {
+ PyErr_Format(PyExc_TypeError, "a '%s' is expected, '%s(%s)' is received",
+ type, otype, cstr);
+ } else {
+ PyErr_Format(PyExc_TypeError, "a '%s' is expected, '%s' is received",
+ type, otype);
+ }
+ Py_XDECREF(str);
+ return;
+ }
+ }
+ PyErr_Format(PyExc_TypeError, "a '%s' is expected", type);
+ } else {
+ PyErr_Format(PyExc_TypeError, "unexpected type is received");
+ }
+}
+
+
+/* Convert a pointer value, signal an exception on a type mismatch */
+SWIGRUNTIME void *
+SWIG_Python_MustGetPtr(PyObject *obj, swig_type_info *ty, int argnum, int flags) {
+ void *result;
+ if (SWIG_Python_ConvertPtr(obj, &result, ty, flags) == -1) {
+ PyErr_Clear();
+ if (flags & SWIG_POINTER_EXCEPTION) {
+ SWIG_Python_TypeError(SWIG_TypePrettyName(ty), obj);
+ SWIG_Python_ArgFail(argnum);
+ }
+ }
+ return result;
+}
+
+
+#ifdef __cplusplus
+#if 0
+{ /* cc-mode */
+#endif
+}
+#endif
+
+
+
+#define SWIG_exception_fail(code, msg) do { SWIG_Error(code, msg); SWIG_fail; } while(0)
+
+#define SWIG_contract_assert(expr, msg) if (!(expr)) { SWIG_Error(SWIG_RuntimeError, msg); SWIG_fail; } else
+
+
+
+/* -------- TYPES TABLE (BEGIN) -------- */
+
+#define SWIGTYPE_p_char swig_types[0]
+#define SWIGTYPE_p_gsl_complex swig_types[1]
+static swig_type_info *swig_types[3];
+static swig_module_info swig_module = {swig_types, 2, 0, 0, 0, 0};
+#define SWIG_TypeQuery(name) SWIG_TypeQueryModule(&swig_module, &swig_module, name)
+#define SWIG_MangledTypeQuery(name) SWIG_MangledTypeQueryModule(&swig_module, &swig_module, name)
+
+/* -------- TYPES TABLE (END) -------- */
+
+#if (PY_VERSION_HEX <= 0x02000000)
+# if !defined(SWIG_PYTHON_CLASSIC)
+# error "This python version requires swig to be run with the '-classic' option"
+# endif
+#endif
+
+/*-----------------------------------------------
+ @(target):= _ttest.so
+ ------------------------------------------------*/
+#define SWIG_init init_ttest
+
+#define SWIG_name "_ttest"
+
+#define SWIGVERSION 0x010331
+#define SWIG_VERSION SWIGVERSION
+
+
+#define SWIG_as_voidptr(a) (void *)((const void *)(a))
+#define SWIG_as_voidptrptr(a) ((void)SWIG_as_voidptr(*a),(void**)(a))
+
+
+#define SWIG_FILE_WITH_INIT
+#include "ttest.h"
+
+#ifdef __cplusplus
+extern "C" {
+#endif
+SWIGINTERN PyObject *_wrap_testtimer(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
+ PyObject *resultobj = 0;
+
+ if (!PyArg_ParseTuple(args,(char *)":testtimer")) SWIG_fail;
+ testtimer();
+ resultobj = SWIG_Py_Void();
+ return resultobj;
+fail:
+ return NULL;
+}
+
+
+static PyMethodDef SwigMethods[] = {
+ { (char *)"testtimer", _wrap_testtimer, METH_VARARGS, NULL},
+ { NULL, NULL, 0, NULL }
+};
+
+
+/* -------- TYPE CONVERSION AND EQUIVALENCE RULES (BEGIN) -------- */
+
+static swig_type_info _swigt__p_char = {"_p_char", "char *", 0, 0, (void*)0, 0};
+static swig_type_info _swigt__p_gsl_complex = {"_p_gsl_complex", "gsl_complex *|msl_complex_t *", 0, 0, (void*)0, 0};
+
+static swig_type_info *swig_type_initial[] = {
+ &_swigt__p_char,
+ &_swigt__p_gsl_complex,
+};
+
+static swig_cast_info _swigc__p_char[] = { {&_swigt__p_char, 0, 0, 0},{0, 0, 0, 0}};
+static swig_cast_info _swigc__p_gsl_complex[] = { {&_swigt__p_gsl_complex, 0, 0, 0},{0, 0, 0, 0}};
+
+static swig_cast_info *swig_cast_initial[] = {
+ _swigc__p_char,
+ _swigc__p_gsl_complex,
+};
+
+
+/* -------- TYPE CONVERSION AND EQUIVALENCE RULES (END) -------- */
+
+static swig_const_info swig_const_table[] = {
+{0, 0, 0, 0.0, 0, 0}};
+
+#ifdef __cplusplus
+}
+#endif
+/* -----------------------------------------------------------------------------
+ * Type initialization:
+ * This problem is tough by the requirement that no dynamic
+ * memory is used. Also, since swig_type_info structures store pointers to
+ * swig_cast_info structures and swig_cast_info structures store pointers back
+ * to swig_type_info structures, we need some lookup code at initialization.
+ * The idea is that swig generates all the structures that are needed.
+ * The runtime then collects these partially filled structures.
+ * The SWIG_InitializeModule function takes these initial arrays out of
+ * swig_module, and does all the lookup, filling in the swig_module.types
+ * array with the correct data and linking the correct swig_cast_info
+ * structures together.
+ *
+ * The generated swig_type_info structures are assigned staticly to an initial
+ * array. We just loop through that array, and handle each type individually.
+ * First we lookup if this type has been already loaded, and if so, use the
+ * loaded structure instead of the generated one. Then we have to fill in the
+ * cast linked list. The cast data is initially stored in something like a
+ * two-dimensional array. Each row corresponds to a type (there are the same
+ * number of rows as there are in the swig_type_initial array). Each entry in
+ * a column is one of the swig_cast_info structures for that type.
+ * The cast_initial array is actually an array of arrays, because each row has
+ * a variable number of columns. So to actually build the cast linked list,
+ * we find the array of casts associated with the type, and loop through it
+ * adding the casts to the list. The one last trick we need to do is making
+ * sure the type pointer in the swig_cast_info struct is correct.
+ *
+ * First off, we lookup the cast->type name to see if it is already loaded.
+ * There are three cases to handle:
+ * 1) If the cast->type has already been loaded AND the type we are adding
+ * casting info to has not been loaded (it is in this module), THEN we
+ * replace the cast->type pointer with the type pointer that has already
+ * been loaded.
+ * 2) If BOTH types (the one we are adding casting info to, and the
+ * cast->type) are loaded, THEN the cast info has already been loaded by
+ * the previous module so we just ignore it.
+ * 3) Finally, if cast->type has not already been loaded, then we add that
+ * swig_cast_info to the linked list (because the cast->type) pointer will
+ * be correct.
+ * ----------------------------------------------------------------------------- */
+
+#ifdef __cplusplus
+extern "C" {
+#if 0
+} /* c-mode */
+#endif
+#endif
+
+#if 0
+#define SWIGRUNTIME_DEBUG
+#endif
+
+
+SWIGRUNTIME void
+SWIG_InitializeModule(void *clientdata) {
+ size_t i;
+ swig_module_info *module_head, *iter;
+ int found;
+
+ clientdata = clientdata;
+
+ /* check to see if the circular list has been setup, if not, set it up */
+ if (swig_module.next==0) {
+ /* Initialize the swig_module */
+ swig_module.type_initial = swig_type_initial;
+ swig_module.cast_initial = swig_cast_initial;
+ swig_module.next = &swig_module;
+ }
+
+ /* Try and load any already created modules */
+ module_head = SWIG_GetModule(clientdata);
+ if (!module_head) {
+ /* This is the first module loaded for this interpreter */
+ /* so set the swig module into the interpreter */
+ SWIG_SetModule(clientdata, &swig_module);
+ module_head = &swig_module;
+ } else {
+ /* the interpreter has loaded a SWIG module, but has it loaded this one? */
+ found=0;
+ iter=module_head;
+ do {
+ if (iter==&swig_module) {
+ found=1;
+ break;
+ }
+ iter=iter->next;
+ } while (iter!= module_head);
+
+ /* if the is found in the list, then all is done and we may leave */
+ if (found) return;
+ /* otherwise we must add out module into the list */
+ swig_module.next = module_head->next;
+ module_head->next = &swig_module;
+ }
+
+ /* Now work on filling in swig_module.types */
+#ifdef SWIGRUNTIME_DEBUG
+ printf("SWIG_InitializeModule: size %d\n", swig_module.size);
+#endif
+ for (i = 0; i < swig_module.size; ++i) {
+ swig_type_info *type = 0;
+ swig_type_info *ret;
+ swig_cast_info *cast;
+
+#ifdef SWIGRUNTIME_DEBUG
+ printf("SWIG_InitializeModule: type %d %s\n", i, swig_module.type_initial[i]->name);
+#endif
+
+ /* if there is another module already loaded */
+ if (swig_module.next != &swig_module) {
+ type = SWIG_MangledTypeQueryModule(swig_module.next, &swig_module, swig_module.type_initial[i]->name);
+ }
+ if (type) {
+ /* Overwrite clientdata field */
+#ifdef SWIGRUNTIME_DEBUG
+ printf("SWIG_InitializeModule: found type %s\n", type->name);
+#endif
+ if (swig_module.type_initial[i]->clientdata) {
+ type->clientdata = swig_module.type_initial[i]->clientdata;
+#ifdef SWIGRUNTIME_DEBUG
+ printf("SWIG_InitializeModule: found and overwrite type %s \n", type->name);
+#endif
+ }
+ } else {
+ type = swig_module.type_initial[i];
+ }
+
+ /* Insert casting types */
+ cast = swig_module.cast_initial[i];
+ while (cast->type) {
+ /* Don't need to add information already in the list */
+ ret = 0;
+#ifdef SWIGRUNTIME_DEBUG
+ printf("SWIG_InitializeModule: look cast %s\n", cast->type->name);
+#endif
+ if (swig_module.next != &swig_module) {
+ ret = SWIG_MangledTypeQueryModule(swig_module.next, &swig_module, cast->type->name);
+#ifdef SWIGRUNTIME_DEBUG
+ if (ret) printf("SWIG_InitializeModule: found cast %s\n", ret->name);
+#endif
+ }
+ if (ret) {
+ if (type == swig_module.type_initial[i]) {
+#ifdef SWIGRUNTIME_DEBUG
+ printf("SWIG_InitializeModule: skip old type %s\n", ret->name);
+#endif
+ cast->type = ret;
+ ret = 0;
+ } else {
+ /* Check for casting already in the list */
+ swig_cast_info *ocast = SWIG_TypeCheck(ret->name, type);
+#ifdef SWIGRUNTIME_DEBUG
+ if (ocast) printf("SWIG_InitializeModule: skip old cast %s\n", ret->name);
+#endif
+ if (!ocast) ret = 0;
+ }
+ }
+
+ if (!ret) {
+#ifdef SWIGRUNTIME_DEBUG
+ printf("SWIG_InitializeModule: adding cast %s\n", cast->type->name);
+#endif
+ if (type->cast) {
+ type->cast->prev = cast;
+ cast->next = type->cast;
+ }
+ type->cast = cast;
+ }
+ cast++;
+ }
+ /* Set entry in modules->types array equal to the type */
+ swig_module.types[i] = type;
+ }
+ swig_module.types[i] = 0;
+
+#ifdef SWIGRUNTIME_DEBUG
+ printf("**** SWIG_InitializeModule: Cast List ******\n");
+ for (i = 0; i < swig_module.size; ++i) {
+ int j = 0;
+ swig_cast_info *cast = swig_module.cast_initial[i];
+ printf("SWIG_InitializeModule: type %d %s\n", i, swig_module.type_initial[i]->name);
+ while (cast->type) {
+ printf("SWIG_InitializeModule: cast type %s\n", cast->type->name);
+ cast++;
+ ++j;
+ }
+ printf("---- Total casts: %d\n",j);
+ }
+ printf("**** SWIG_InitializeModule: Cast List ******\n");
+#endif
+}
+
+/* This function will propagate the clientdata field of type to
+* any new swig_type_info structures that have been added into the list
+* of equivalent types. It is like calling
+* SWIG_TypeClientData(type, clientdata) a second time.
+*/
+SWIGRUNTIME void
+SWIG_PropagateClientData(void) {
+ size_t i;
+ swig_cast_info *equiv;
+ static int init_run = 0;
+
+ if (init_run) return;
+ init_run = 1;
+
+ for (i = 0; i < swig_module.size; i++) {
+ if (swig_module.types[i]->clientdata) {
+ equiv = swig_module.types[i]->cast;
+ while (equiv) {
+ if (!equiv->converter) {
+ if (equiv->type && !equiv->type->clientdata)
+ SWIG_TypeClientData(equiv->type, swig_module.types[i]->clientdata);
+ }
+ equiv = equiv->next;
+ }
+ }
+ }
+}
+
+#ifdef __cplusplus
+#if 0
+{
+ /* c-mode */
+#endif
+}
+#endif
+
+
+
+#ifdef __cplusplus
+extern "C" {
+#endif
+
+ /* Python-specific SWIG API */
+#define SWIG_newvarlink() SWIG_Python_newvarlink()
+#define SWIG_addvarlink(p, name, get_attr, set_attr) SWIG_Python_addvarlink(p, name, get_attr, set_attr)
+#define SWIG_InstallConstants(d, constants) SWIG_Python_InstallConstants(d, constants)
+
+ /* -----------------------------------------------------------------------------
+ * global variable support code.
+ * ----------------------------------------------------------------------------- */
+
+ typedef struct swig_globalvar {
+ char *name; /* Name of global variable */
+ PyObject *(*get_attr)(void); /* Return the current value */
+ int (*set_attr)(PyObject *); /* Set the value */
+ struct swig_globalvar *next;
+ } swig_globalvar;
+
+ typedef struct swig_varlinkobject {
+ PyObject_HEAD
+ swig_globalvar *vars;
+ } swig_varlinkobject;
+
+ SWIGINTERN PyObject *
+ swig_varlink_repr(swig_varlinkobject *SWIGUNUSEDPARM(v)) {
+ return PyString_FromString("<Swig global variables>");
+ }
+
+ SWIGINTERN PyObject *
+ swig_varlink_str(swig_varlinkobject *v) {
+ PyObject *str = PyString_FromString("(");
+ swig_globalvar *var;
+ for (var = v->vars; var; var=var->next) {
+ PyString_ConcatAndDel(&str,PyString_FromString(var->name));
+ if (var->next) PyString_ConcatAndDel(&str,PyString_FromString(", "));
+ }
+ PyString_ConcatAndDel(&str,PyString_FromString(")"));
+ return str;
+ }
+
+ SWIGINTERN int
+ swig_varlink_print(swig_varlinkobject *v, FILE *fp, int SWIGUNUSEDPARM(flags)) {
+ PyObject *str = swig_varlink_str(v);
+ fprintf(fp,"Swig global variables ");
+ fprintf(fp,"%s\n", PyString_AsString(str));
+ Py_DECREF(str);
+ return 0;
+ }
+
+ SWIGINTERN void
+ swig_varlink_dealloc(swig_varlinkobject *v) {
+ swig_globalvar *var = v->vars;
+ while (var) {
+ swig_globalvar *n = var->next;
+ free(var->name);
+ free(var);
+ var = n;
+ }
+ }
+
+ SWIGINTERN PyObject *
+ swig_varlink_getattr(swig_varlinkobject *v, char *n) {
+ PyObject *res = NULL;
+ swig_globalvar *var = v->vars;
+ while (var) {
+ if (strcmp(var->name,n) == 0) {
+ res = (*var->get_attr)();
+ break;
+ }
+ var = var->next;
+ }
+ if (res == NULL && !PyErr_Occurred()) {
+ PyErr_SetString(PyExc_NameError,"Unknown C global variable");
+ }
+ return res;
+ }
+
+ SWIGINTERN int
+ swig_varlink_setattr(swig_varlinkobject *v, char *n, PyObject *p) {
+ int res = 1;
+ swig_globalvar *var = v->vars;
+ while (var) {
+ if (strcmp(var->name,n) == 0) {
+ res = (*var->set_attr)(p);
+ break;
+ }
+ var = var->next;
+ }
+ if (res == 1 && !PyErr_Occurred()) {
+ PyErr_SetString(PyExc_NameError,"Unknown C global variable");
+ }
+ return res;
+ }
+
+ SWIGINTERN PyTypeObject*
+ swig_varlink_type(void) {
+ static char varlink__doc__[] = "Swig var link object";
+ static PyTypeObject varlink_type;
+ static int type_init = 0;
+ if (!type_init) {
+ const PyTypeObject tmp
+ = {
+ PyObject_HEAD_INIT(NULL)
+ 0, /* Number of items in variable part (ob_size) */
+ (char *)"swigvarlink", /* Type name (tp_name) */
+ sizeof(swig_varlinkobject), /* Basic size (tp_basicsize) */
+ 0, /* Itemsize (tp_itemsize) */
+ (destructor) swig_varlink_dealloc, /* Deallocator (tp_dealloc) */
+ (printfunc) swig_varlink_print, /* Print (tp_print) */
+ (getattrfunc) swig_varlink_getattr, /* get attr (tp_getattr) */
+ (setattrfunc) swig_varlink_setattr, /* Set attr (tp_setattr) */
+ 0, /* tp_compare */
+ (reprfunc) swig_varlink_repr, /* tp_repr */
+ 0, /* tp_as_number */
+ 0, /* tp_as_sequence */
+ 0, /* tp_as_mapping */
+ 0, /* tp_hash */
+ 0, /* tp_call */
+ (reprfunc)swig_varlink_str, /* tp_str */
+ 0, /* tp_getattro */
+ 0, /* tp_setattro */
+ 0, /* tp_as_buffer */
+ 0, /* tp_flags */
+ varlink__doc__, /* tp_doc */
+ 0, /* tp_traverse */
+ 0, /* tp_clear */
+ 0, /* tp_richcompare */
+ 0, /* tp_weaklistoffset */
+#if PY_VERSION_HEX >= 0x02020000
+ 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, /* tp_iter -> tp_weaklist */
+#endif
+#if PY_VERSION_HEX >= 0x02030000
+ 0, /* tp_del */
+#endif
+#ifdef COUNT_ALLOCS
+ 0,0,0,0 /* tp_alloc -> tp_next */
+#endif
+ };
+ varlink_type = tmp;
+ varlink_type.ob_type = &PyType_Type;
+ type_init = 1;
+ }
+ return &varlink_type;
+ }
+
+ /* Create a variable linking object for use later */
+ SWIGINTERN PyObject *
+ SWIG_Python_newvarlink(void) {
+ swig_varlinkobject *result = PyObject_NEW(swig_varlinkobject, swig_varlink_type());
+ if (result) {
+ result->vars = 0;
+ }
+ return ((PyObject*) result);
+ }
+
+ SWIGINTERN void
+ SWIG_Python_addvarlink(PyObject *p, char *name, PyObject *(*get_attr)(void), int (*set_attr)(PyObject *p)) {
+ swig_varlinkobject *v = (swig_varlinkobject *) p;
+ swig_globalvar *gv = (swig_globalvar *) malloc(sizeof(swig_globalvar));
+ if (gv) {
+ size_t size = strlen(name)+1;
+ gv->name = (char *)malloc(size);
+ if (gv->name) {
+ strncpy(gv->name,name,size);
+ gv->get_attr = get_attr;
+ gv->set_attr = set_attr;
+ gv->next = v->vars;
+ }
+ }
+ v->vars = gv;
+ }
+
+ SWIGINTERN PyObject *
+ SWIG_globals(void) {
+ static PyObject *_SWIG_globals = 0;
+ if (!_SWIG_globals) _SWIG_globals = SWIG_newvarlink();
+ return _SWIG_globals;
+ }
+
+ /* -----------------------------------------------------------------------------
+ * constants/methods manipulation
+ * ----------------------------------------------------------------------------- */
+
+ /* Install Constants */
+ SWIGINTERN void
+ SWIG_Python_InstallConstants(PyObject *d, swig_const_info constants[]) {
+ PyObject *obj = 0;
+ size_t i;
+ for (i = 0; constants[i].type; ++i) {
+ switch(constants[i].type) {
+ case SWIG_PY_POINTER:
+ obj = SWIG_NewPointerObj(constants[i].pvalue, *(constants[i]).ptype,0);
+ break;
+ case SWIG_PY_BINARY:
+ obj = SWIG_NewPackedObj(constants[i].pvalue, constants[i].lvalue, *(constants[i].ptype));
+ break;
+ default:
+ obj = 0;
+ break;
+ }
+ if (obj) {
+ PyDict_SetItemString(d, constants[i].name, obj);
+ Py_DECREF(obj);
+ }
+ }
+ }
+
+ /* -----------------------------------------------------------------------------*/
+ /* Fix SwigMethods to carry the callback ptrs when needed */
+ /* -----------------------------------------------------------------------------*/
+
+ SWIGINTERN void
+ SWIG_Python_FixMethods(PyMethodDef *methods,
+ swig_const_info *const_table,
+ swig_type_info **types,
+ swig_type_info **types_initial) {
+ size_t i;
+ for (i = 0; methods[i].ml_name; ++i) {
+ const char *c = methods[i].ml_doc;
+ if (c && (c = strstr(c, "swig_ptr: "))) {
+ int j;
+ swig_const_info *ci = 0;
+ const char *name = c + 10;
+ for (j = 0; const_table[j].type; ++j) {
+ if (strncmp(const_table[j].name, name,
+ strlen(const_table[j].name)) == 0) {
+ ci = &(const_table[j]);
+ break;
+ }
+ }
+ if (ci) {
+ size_t shift = (ci->ptype) - types;
+ swig_type_info *ty = types_initial[shift];
+ size_t ldoc = (c - methods[i].ml_doc);
+ size_t lptr = strlen(ty->name)+2*sizeof(void*)+2;
+ char *ndoc = (char*)malloc(ldoc + lptr + 10);
+ if (ndoc) {
+ char *buff = ndoc;
+ void *ptr = (ci->type == SWIG_PY_POINTER) ? ci->pvalue : 0;
+ if (ptr) {
+ strncpy(buff, methods[i].ml_doc, ldoc);
+ buff += ldoc;
+ strncpy(buff, "swig_ptr: ", 10);
+ buff += 10;
+ SWIG_PackVoidPtr(buff, ptr, ty->name, lptr);
+ methods[i].ml_doc = ndoc;
+ }
+ }
+ }
+ }
+ }
+ }
+
+#ifdef __cplusplus
+}
+#endif
+
+/* -----------------------------------------------------------------------------*
+ * Partial Init method
+ * -----------------------------------------------------------------------------*/
+
+#ifdef __cplusplus
+extern "C"
+#endif
+SWIGEXPORT void SWIG_init(void) {
+ PyObject *m, *d;
+
+ /* Fix SwigMethods to carry the callback ptrs when needed */
+ SWIG_Python_FixMethods(SwigMethods, swig_const_table, swig_types, swig_type_initial);
+
+ m = Py_InitModule((char *) SWIG_name, SwigMethods);
+ d = PyModule_GetDict(m);
+
+ SWIG_InitializeModule(0);
+ SWIG_InstallConstants(d,swig_const_table);
+
+
+}
+
diff --git a/common/Util/InstrumentDB.py b/common/Util/InstrumentDB.py
new file mode 100644
index 0000000..e7cbce0
--- /dev/null
+++ b/common/Util/InstrumentDB.py
@@ -0,0 +1,140 @@
+import os
+
+##############
+## SOUNDS
+##############
+
+class Instrument:
+ def __init__(self, id):
+ self.instrumentId = id
+ self.kitStage = False
+ self.volatile = None
+
+ # build an Instrument instance from argument list
+ def loadFromArgs( self, name, csoundInstrumentId, register, loopStart,
+ loopEnd, crossDur, ampScale, kit, wav, img, category, nameTooltip = "" ):
+ self.name = name
+ self.csoundInstrumentId = csoundInstrumentId
+ self.instrumentRegister = register
+ self.loopStart = loopStart
+ self.loopEnd = loopEnd
+ self.crossDur = crossDur
+ self.ampScale = ampScale
+ self.kit = kit
+ self.wav = wav
+ self.img = img
+ self.category = category
+ self.nameTooltip = nameTooltip or name
+
+ # build an Instrument instance by parsing a file
+ def loadFromPath(self, path ):
+ f = file(path, 'r')
+ magic = f.readline()[:-1]
+ if (magic != 'TamTam idf v1'):
+ raise 'given file has wrong header'
+ self.name = f.readline()[:-1]
+ self.csoundInstrumentId = float(f.readline()[:-1])
+ self.register = f.readline()[:-1]
+ self.loopStart = float( f.readline()[:-1])
+ self.loopEnd = float( f.readline()[:-1])
+ self.crossDur = float( f.readline()[:-1])
+ self.ampScale = float( f.readline()[:-1])
+ self.kit = None
+ self.wav = f.readline()[:-1]
+ self.img = f.readline()[:-1]
+ self.category = f.readline()
+ f.close()
+
+class InstrumentDB:
+
+ # initialize an empty InstrumentDB instance
+ def __init__(self):
+ self.labelSet = {'All':set([])} # <key> -> all instruments labelled by <key>
+ self.inst = [] # all instruments
+ self.instNamed = {} # <name> -> instrument with that name
+ self.instId = {} # <instrumentId> -> instrument
+
+ # TEMP? add instrument from args
+ def addInstrumentFromArgs( self, name, csoundInstrumentId, register, loopStart,
+ loopEnd, crossDur, ampScale, kit, wav, img, category,
+ kitStage = False, volatile = False, nameTooltip = "" ):
+ i = Instrument(len(self.inst))
+ self.inst += [ i ]
+ i.loadFromArgs( name, csoundInstrumentId, register, loopStart, loopEnd, crossDur, ampScale, kit, wav, img, category, nameTooltip )
+ i.kitStage = kitStage
+ if volatile: i.volatile = 0
+ self.instNamed[ i.name ] = i
+ self.instId[i.instrumentId] = i
+
+ self.labelSet['All'].add(i)
+ if not self.labelSet.has_key(category):
+ self.labelSet[category] = set([])
+ self.labelSet[category].add( i )
+
+ # add an instrument to the DB by reading from an instrument definition file
+ def addInstrument( self, path ):
+ from common.Util.CSoundClient import new_csound_client
+ csnd = new_csound_client()
+ i = Instrument(len(self.inst))
+ self.inst += [ i ]
+ i.loadFromPath( path )
+ self.instNamed[ i.name ] = i
+ self.instId[i.instrumentId] = i
+ #print 'labelSet... ', self.labelSet
+ self.labelSet['All'].add(i)
+ if not self.labelSet.has_key(category):
+ self.labelSet[category] = set([])
+ self.labelSet[category].add( i )
+ csnd.load_instrument(i.name)
+
+ # try to load each file in a given folder as an instrument def. file
+ def scanInstrumentDir( self, path ):
+ dirlist = os.listdir( path )
+ for fpath in dirlist:
+ try :
+ self.addInstrument( path + fpath )
+ except :
+ print 'ERROR: scanning instrument path %s: file %s invalid' % (path, fpath)
+
+ def getLabels( self ):
+ return self.labelSet.keys()
+
+ def getSet( self, label ):
+ return self.labelSet[label]
+
+ def getInstrument( self, id ):
+ return self.instId[id]
+
+ def getInstrumentByName( self, name ):
+ try:
+ return self.instNamed[ name ]
+ except:
+ print "Instrument not found: ", name
+ return self.inst[0]
+
+ def debug_summarize(self):
+ for i in self.inst:
+ print i.id, i.name
+
+ for l in self.labelSet:
+ print l, [ i.name for i in self.labelSet[l]]
+
+
+db_instance = None
+def getRef():
+ global db_instance
+ if (None == db_instance):
+ db_instance = InstrumentDB()
+ return db_instance
+
+
+if __name__ == "__main__":
+ i1 = getRef()
+ i2 = getRef()
+
+ print i1, i2
+
+ import sys
+ i1.scanInstrumentDir( sys.argv[1] )
+
+ i1.debug_summarize()
diff --git a/common/Util/Instruments.py b/common/Util/Instruments.py
new file mode 100644
index 0000000..1386b25
--- /dev/null
+++ b/common/Util/Instruments.py
@@ -0,0 +1,680 @@
+import os
+from gettext import gettext as _
+
+import common.Config as Config
+from common.Config import imagefile
+import common.Util.InstrumentDB as InstrumentDB
+
+LOW = Config.LOW
+MID = Config.MID
+HIGH = Config.HIGH
+PUNCH = Config.PUNCH
+
+INSTRUMENT_TABLE_OFFSET = Config.INSTRUMENT_TABLE_OFFSET
+INST_FREE = Config.INST_FREE
+INST_TIED = Config.INST_TIED
+INST_SIMP = Config.INST_SIMP
+INST_PERC = Config.INST_PERC
+
+instrumentDB = InstrumentDB.getRef()
+
+
+def _addInstrument(name, csoundInstrumentId, instrumentRegister, category,
+ loopStart, loopEnd, crossDur, ampScale=1, kit=None, kitStage=False,
+ volatile=False, nameTooltip=""):
+ instrumentDB.addInstrumentFromArgs(name, csoundInstrumentId,
+ instrumentRegister, loopStart, loopEnd, crossDur, ampScale, kit,
+ name, imagefile(name + '.png'), category, kitStage=kitStage,
+ volatile=volatile, nameTooltip=nameTooltip)
+
+if Config.FEATURES_MIC:
+ _addInstrument("mic1", INST_TIED, MID, 'mysounds', .01, 1.99, .01, 1, volatile=True)
+ _addInstrument("mic2", INST_TIED, MID, 'mysounds', .01, 1.99, .01, 1, volatile=True)
+ _addInstrument("mic3", INST_TIED, MID, 'mysounds', .01, 1.99, .01, 1, volatile=True)
+ _addInstrument("mic4", INST_TIED, MID, 'mysounds', .01, 1.99, .01, 1, volatile=True)
+
+if Config.FEATURES_LAB:
+ _addInstrument("lab1", INST_SIMP, MID, 'mysounds', 0, 0, 0, 1, volatile=True)
+ _addInstrument("lab2", INST_SIMP, MID, 'mysounds', 0, 0, 0, 1, volatile=True)
+ _addInstrument("lab3", INST_SIMP, MID, 'mysounds', 0, 0, 0, 1, volatile=True)
+ _addInstrument("lab4", INST_SIMP, MID, 'mysounds', 0, 0, 0, 1, volatile=True)
+ _addInstrument("lab5", INST_SIMP, MID, 'mysounds', 0, 0, 0, 1, volatile=True)
+ _addInstrument("lab6", INST_SIMP, MID, 'mysounds', 0, 0, 0, 1, volatile=True)
+
+_addInstrument('ounk', INST_SIMP, MID, 'animals',
+ 0, 0, 0, 1,
+ # TRANS: The sound made by this animal
+ # TRANS: http://en.wikipedia.org/wiki/Guinea_pig
+ nameTooltip=_('Guinea Pig'))
+_addInstrument('gam', INST_TIED, HIGH, 'percussions',
+ .69388, .7536, .02922, 1.4,
+ # TRANS: The sound made by this instrument
+ # TRANS: http://en.wikipedia.org/wiki/Gamelan
+ nameTooltip=_('Gamelan'))
+_addInstrument('guit', INST_TIED, MID, 'strings',
+ .08592, .75126, .33571, 0.7,
+ # TRANS: The sound made by this instrument
+ # TRANS: http://en.wikipedia.org/wiki/Electric_guitar
+ nameTooltip=_('Electric Guitar'))
+_addInstrument('guitmute', INST_SIMP, MID, 'strings',
+ 0, 0, 0, 0.6,
+ # TRANS: The sound made by this instrument
+ # TRANS: http://en.wikipedia.org/wiki/Electric_guitar
+ nameTooltip=_('Electric Guitar'))
+_addInstrument('guitshort', INST_SIMP, MID, 'strings',
+ 0, 0, 0, 0.6,
+ # TRANS: The sound made by this instrument
+ # TRANS: http://en.wikipedia.org/wiki/Electric_guitar
+ nameTooltip=_('Electric Guitar'))
+_addInstrument('koto', INST_TIED, HIGH, 'strings',
+ .56523, .70075, .05954, 1,
+ # TRANS: The sound made by this instrument
+ # TRANS: http://en.wikipedia.org/wiki/Koto_%28musical_instrument%29
+ nameTooltip=_('Koto'))
+_addInstrument('banjo', INST_TIED, MID, 'strings',
+ .8928046875, 1.6325390625, .0525, 0.6,
+ # TRANS: The sound made by this instrument
+ # TRANS: http://en.wikipedia.org/wiki/Banjo
+ nameTooltip=_('Banjo'))
+_addInstrument('ukulele', INST_TIED, MID, 'strings',
+ .64097090625, 1.0887984375, .17375, 0.35,
+ # TRANS: The sound made by this instrument
+ # TRANS: http://en.wikipedia.org/wiki/Ukulele
+ nameTooltip=_('Ukulele'))
+_addInstrument('harpsichord', INST_TIED, MID, 'keyboard',
+ .57529609375, .936075, .2, 0.35,
+ # TRANS: The sound made by this instrument
+ # TRANS: http://en.wikipedia.org/wiki/Harpsichord
+ nameTooltip=_('Harpsichord'))
+_addInstrument('clarinette', INST_TIED, MID, 'winds',
+ 1.635276375, 2.72956523438, .2, 0.3,
+ # TRANS: The sound made by this instrument
+ # TRANS: http://en.wikipedia.org/wiki/Clarinet
+ nameTooltip=_('Clarinet'))
+_addInstrument('flute', INST_TIED, MID, 'winds',
+ .47169, .53693, .02481, 1.3,
+ # TRANS: The sound made by this instrument
+ # TRANS: http://en.wikipedia.org/wiki/Flute
+ nameTooltip=_('Flute'))
+_addInstrument("drum1hatpedal", INST_SIMP, MID, 'percussions',
+ 0, 0, 0, 1, kitStage=True)
+_addInstrument("drum1hatshoulder", INST_SIMP, HIGH, 'percussions',
+ 0, 0, 0, 1, kitStage=True)
+_addInstrument("drum1hardride", INST_SIMP, MID, 'percussions',
+ 0, 0, 0, 1, kitStage=True)
+_addInstrument("drum1ridebell", INST_SIMP, HIGH, 'percussions',
+ 0, 0, 0, 1, kitStage=True)
+_addInstrument("drum1snare", INST_SIMP, MID, 'percussions',
+ 0, 0, 0, 1, kitStage=True)
+_addInstrument("drum1snaresidestick", INST_SIMP, MID, 'percussions',
+ 0, 0, 0, 1, kitStage=True)
+_addInstrument("drum1crash", INST_SIMP, PUNCH, 'percussions',
+ 0, 0, 0, 1, kitStage=True)
+_addInstrument("drum1splash", INST_SIMP, PUNCH, 'percussions',
+ 0, 0, 0, 1, kitStage=True)
+_addInstrument("drum1tom", INST_SIMP, MID, 'percussions',
+ 0, 0, 0, 1, kitStage=True)
+_addInstrument("drum1floortom", INST_SIMP, LOW, 'percussions',
+ 0, 0, 0, 1, kitStage=True)
+_addInstrument("drum1chine", INST_SIMP, PUNCH, 'percussions',
+ 0, 0, 0, 1, kitStage=True)
+_addInstrument("drum1kick", INST_SIMP, LOW, 'percussions',
+ 0, 0, 0, 1, kitStage=True)
+_addInstrument('piano', INST_TIED, MID, 'keyboard',
+ 0.8883, 1.420524, .13575, 1,
+ # TRANS: The sound made by this instrument
+ # TRANS: http://en.wikipedia.org/wiki/Piano
+ nameTooltip=_('Piano'))
+_addInstrument('dog', INST_SIMP, MID, 'animals',
+ 0, 0, 0, 1,
+ # TRANS: The sound made by this animal
+ # TRANS: http://en.wikipedia.org/wiki/Dog
+ nameTooltip=_('Dog'))
+_addInstrument('chiken', INST_TIED, MID, 'animals',
+ .1972125, .8689675781, .02, 0.5,
+ # TRANS: The sound made by this animal
+ # TRANS: http://en.wikipedia.org/wiki/Chicken
+ nameTooltip=_('Chicken'))
+_addInstrument('duck', INST_SIMP, MID, 'animals',
+ 0, 0, 0, 0.7,
+ # TRANS: The sound made by this animal
+ # TRANS: http://en.wikipedia.org/wiki/Duck
+ nameTooltip=_('Duck'))
+_addInstrument('armbone', INST_SIMP, MID, 'people',
+ 0, 0, 0, 0.8,
+ # TRANS: The sound made by a person doing this
+ # TRANS: http://en.wikipedia.org/wiki/Blowing_a_raspberry
+ nameTooltip=_('Raspberry'))
+_addInstrument("drum2darbukadoom", INST_SIMP, LOW, 'percussions',
+ 0, 0, 0, 1, kitStage=True)
+_addInstrument("drum2darbukapied", INST_SIMP, LOW, 'percussions',
+ 0, 0, 0, 1, kitStage=True)
+_addInstrument("drum2darbukapiedsoft", INST_SIMP, LOW, 'percussions',
+ 0, 0, 0, 1, kitStage=True)
+_addInstrument("drum2hatflanger", INST_SIMP, PUNCH, 'percussions',
+ 0, 0, 0, 1, kitStage=True)
+_addInstrument("drum2darbukatak", INST_SIMP, PUNCH, 'percussions',
+ 0, 0, 0, 1, kitStage=True)
+_addInstrument("drum2darbukafinger", INST_SIMP, MID, 'percussions',
+ 0, 0, 0, 1, kitStage=True)
+_addInstrument("drum2darbukaroll", INST_SIMP, HIGH, 'percussions',
+ 0, 0, 0, 1, kitStage=True)
+_addInstrument("drum2darbukaslap", INST_SIMP, MID, 'percussions',
+ 0, 0, 0, 1, kitStage=True)
+_addInstrument("drum2hatpied", INST_SIMP, MID, 'percussions',
+ 0, 0, 0, 1, kitStage=True)
+_addInstrument("drum2tambourinepied", INST_SIMP, MID, 'percussions',
+ 0, 0, 0, 1, kitStage=True)
+_addInstrument("drum2hatpied2", INST_SIMP, HIGH, 'percussions',
+ 0, 0, 0, 1, kitStage=True)
+_addInstrument("drum2tambourinepiedsoft", INST_SIMP, HIGH, 'percussions',
+ 0, 0, 0, 1, kitStage=True)
+_addInstrument("drum3cowbell", INST_SIMP, HIGH, 'percussions',
+ 0, 0, 0, 1, kitStage=True)
+_addInstrument("drum3cowbelltip", INST_SIMP, MID, 'percussions',
+ 0, 0, 0, 1, kitStage=True)
+_addInstrument("drum3cup", INST_SIMP, HIGH, 'percussions',
+ 0, 0, 0, 1, kitStage=True)
+_addInstrument("drum3djembelow", INST_SIMP, LOW, 'percussions',
+ 0, 0, 0, 1, kitStage=True)
+_addInstrument("drum3djembemid", INST_SIMP, HIGH, 'percussions',
+ 0, 0, 0, 1, kitStage=True)
+_addInstrument("drum3djembesidestick", INST_SIMP, MID, 'percussions',
+ 0, 0, 0, 1, kitStage=True)
+_addInstrument("drum3djembeslap", INST_SIMP, LOW, 'percussions',
+ 0, 0, 0, 1, kitStage=True)
+_addInstrument("drum3djembestickmid", INST_SIMP, MID, 'percussions',
+ 0, 0, 0, 1, kitStage=True)
+_addInstrument("drum3metalstand", INST_SIMP, MID, 'percussions',
+ 0, 0, 0, 1, kitStage=True)
+_addInstrument("drum3pedalperc", INST_SIMP, LOW, 'percussions',
+ 0, 0, 0, 1, kitStage=True)
+_addInstrument("drum3rainstick", INST_SIMP, PUNCH, 'percussions',
+ 0, 0, 0, 1, kitStage=True)
+_addInstrument("drum3tambourinehigh", INST_SIMP, PUNCH, 'percussions',
+ 0, 0, 0, 1, kitStage=True)
+_addInstrument("drum3tambourinelow", INST_SIMP, PUNCH, 'percussions',
+ 0, 0, 0, 1, kitStage=True)
+_addInstrument('harmonica', INST_TIED, MID, 'winds',
+ .1531, .19188, .01792, 1,
+ # TRANS: The sound made by this instrument
+ # TRANS: http://en.wikipedia.org/wiki/Harmonica
+ nameTooltip=_('Harmonica'))
+_addInstrument('alarm', INST_TIED, MID, 'concret',
+ 1.37555859375, 2.0286015625, .0675, 0.4,
+ # TRANS: The sound of an alarm bell
+ nameTooltip=_('Alarm'))
+_addInstrument('bird', INST_TIED, MID, 'animals',
+ .1, 1, .05, 1,
+ # TRANS: The sound made by this animal
+ # TRANS: http://en.wikipedia.org/wiki/Bird
+ nameTooltip=_('Bird'))
+_addInstrument('frogs', INST_TIED, MID, 'animals',
+ 1.954453125, 4.350234375, .2, 0.5,
+ # TRANS: The sound made by this animal
+ # TRANS: http://en.wikipedia.org/wiki/Frog
+ nameTooltip=_('Frog'))
+_addInstrument('cat', INST_SIMP, MID, 'animals',
+ 0, 0, 0, 0.8,
+ # TRANS: The sound made by this animal
+ # TRANS: http://en.wikipedia.org/wiki/Cat
+ nameTooltip=_('Cat'))
+_addInstrument('cow', INST_SIMP, MID, 'animals',
+ # TRANS: The sound made by this animal
+ # TRANS: http://en.wikipedia.org/wiki/Cow
+ 0, 0, 0, 0.7, nameTooltip=_('Cow'))
+_addInstrument('cricket', INST_SIMP, MID, 'animals',
+ 0, 0, 0, 0.5,
+ # TRANS: The sound made by this animal
+ # TRANS: http://en.wikipedia.org/wiki/Cricket_%28insect%29
+ nameTooltip=_('Cricket'))
+_addInstrument('duck2', INST_SIMP, MID, 'animals',
+ 0, 0, 0, 1,
+ # TRANS: The sound made by this animal
+ # TRANS: http://en.wikipedia.org/wiki/Duck
+ nameTooltip=_('Duck'))
+_addInstrument('bottle', INST_TIED, MID, 'concret',
+ .20532, .41064, .05292, 0.8,
+ # TRANS: The sound of a bottle being hit
+ # TRANS: http://en.wikipedia.org/wiki/Bottle
+ nameTooltip=_('Bottle'))
+_addInstrument('clang', INST_SIMP, MID, 'concret',
+ 0, 0, 0, 0.8,
+ # TRANS: The sound of a garbage can
+ nameTooltip=_('Dump'))
+_addInstrument('clang2', INST_SIMP, MID, 'percussions',
+ 0, 0, 0, 0.6,
+ # TRANS: The sound made by this instrument
+ # TRANS: http://en.wikipedia.org/wiki/Cymbal
+ nameTooltip=_('Cymbal'))
+_addInstrument('ow', INST_SIMP, MID, 'people',
+ 0, 0, 0, 1,
+ # TRANS: The sound of a person being hit
+ nameTooltip=_('Ow'))
+_addInstrument('hey', INST_SIMP, MID, 'people',
+ 0, 0, 0, 0.5,
+ # TRANS: A surprised shout
+ nameTooltip=_('Hey'))
+_addInstrument('sheep', INST_SIMP, MID, 'animals',
+ 0, 0, 0, 1,
+ # TRANS: The sound made by this animal
+ # TRANS: http://en.wikipedia.org/wiki/Sheep
+ nameTooltip=_('Sheep'))
+_addInstrument('water', INST_SIMP, MID, 'concret',
+ 0, 0, 0, 1,
+ # TRANS: The sound of water splashing
+ # TRANS: http://en.wikipedia.org/wiki/Water
+ nameTooltip=_('Water'))
+_addInstrument('zap', INST_TIED, MID, 'concret',
+ .299, .7323, .09895, 0.8,
+ # TRANS: A science-fiction ray gun sound
+ nameTooltip=_('Ray Gun'))
+_addInstrument('trumpet', INST_TIED, MID, 'winds',
+ .91195, 1.652909375, .05375, 0.3,
+ # TRANS: The sound made by this instrument
+ # TRANS: http://en.wikipedia.org/wiki/Trumpet
+ nameTooltip=_('Trumpet'))
+_addInstrument('clavinet', INST_TIED, MID, 'keyboard',
+ .6398328125, .9401625, .094, 0.4,
+ # TRANS: The sound made by this instrument
+ # TRANS: http://en.wikipedia.org/wiki/Clavinet
+ nameTooltip=_('Clavinet'))
+_addInstrument('flugel', INST_TIED, MID, 'winds',
+ 1.291740625, 2.37588007813, .065, 0.3,
+ # TRANS: The sound made by this instrument
+ # TRANS: http://en.wikipedia.org/wiki/Flugelhorn
+ nameTooltip=_('Flugelhorn'))
+_addInstrument('foghorn', INST_TIED, LOW, 'winds',
+ 2.07005, 3.758775, .2, 0.5,
+ # TRANS: The sound of a fog horn or ship horn
+ nameTooltip=_('Foghorn'))
+_addInstrument('bubbles', INST_TIED, MID, 'concret',
+ 0.02, 1.177, 0.02, 0.7,
+ # TRANS: The sound of air bubbling through water
+ nameTooltip=_('Bubbles'))
+_addInstrument('marimba', INST_TIED, MID, 'percussions',
+ .18883789, .343623047, .07625, 0.4,
+ # TRANS: The sound made by this instrument
+ # TRANS: http://en.wikipedia.org/wiki/Marimba
+ nameTooltip=_('Marimba'))
+_addInstrument('triangle', INST_TIED, MID, 'percussions',
+ 2.27261836, 3.2965453, .2, 0.6,
+ # TRANS: The sound made by this instrument
+ # TRANS: http://en.wikipedia.org/wiki/Triangle_%28instrument%29
+ nameTooltip=_('Triangle'))
+_addInstrument('fingercymbals', INST_TIED, HIGH, 'percussions',
+ 1.29635195312, 1.92448125, .094, 0.6,
+ # TRANS: The sound made by this instrument
+ # TRANS: http://en.wikipedia.org/wiki/Finger_cymbals
+ nameTooltip=_('Fingercymbals'))
+_addInstrument('laugh', INST_SIMP, MID, 'people',
+ 0, 0, 0, 1,
+ # TRANS: The sound of a laugh
+ nameTooltip=_('Laugh'))
+_addInstrument('babylaugh', INST_TIED, MID, 'people',
+ 0.72920078, 1.63253906, 0.01, 0.3,
+ # TRANS: The sound of a baby laughing
+ nameTooltip=_('Baby Laugh'))
+_addInstrument('babyuhoh', INST_SIMP, MID, 'people',
+ 0, 0, 0, 0.3,
+ # TRANS: The sound of a child making a mistake
+ nameTooltip=_('Baby Uh-oh'))
+_addInstrument('voix', INST_TIED, MID, 'people',
+ .89608, .96092, .02343, 0.8,
+ # TRANS: A synthesized voice sound
+ nameTooltip=_('Voice'))
+_addInstrument('cling', INST_TIED, MID, 'concret',
+ .09096, .7878, .18026, 0.7,
+ # TRANS: A tinkling sound
+ nameTooltip=_('Cling'))
+_addInstrument('byke', INST_SIMP, MID, 'concret',
+ 0, 0, 0, 1,
+ # TRANS: The sound of a bicycle bell
+ # TRANS: http://en.wikipedia.org/wiki/Bicycle
+ nameTooltip=_('Bicycle bell'))
+_addInstrument('door', INST_SIMP, MID, 'concret',
+ 0, 0, 0, 1,
+ # TRANS: The sound of a door slamming shut
+ nameTooltip=_('Door'))
+_addInstrument('basse', INST_TIED, MID, 'strings',
+ 0.50470875, 0.833315, 0.09375, 1.4,
+ # TRANS: The sound made by this instrument
+ # TRANS: http://en.wikipedia.org/wiki/Electric_bass
+ nameTooltip=_('Electric Bass'))
+_addInstrument('acguit', INST_TIED, MID, 'strings',
+ 0.5123225, 0.7491675, 0.08475, 0.5,
+ # TRANS: The sound made by this instrument
+ # TRANS: http://en.wikipedia.org/wiki/Acoustic_guitar
+ nameTooltip=_('Acoustic Guitar'))
+_addInstrument('diceinst', INST_SIMP, MID, 'concret',
+ 0, 0, 0, 1.3,
+ # TRANS: The sound of tumbling
+ # TRANS: http://en.wikipedia.org/wiki/Dice
+ nameTooltip=_('Dice'))
+_addInstrument('didjeridu', INST_TIED, LOW, 'winds',
+ .55669, 1.73704, .09178, 1.5,
+ # TRANS: The sound made by this instrument
+ # TRANS: http://en.wikipedia.org/wiki/Didjeridu
+ nameTooltip=_('Didjeridu'))
+_addInstrument('harmonium', INST_TIED, MID, 'keyboard',
+ .242032, .898165625, .2, 0.6,
+ # TRANS: The sound made by this instrument
+ # TRANS: http://en.wikipedia.org/wiki/Harmonium
+ nameTooltip=_('Harmonium'))
+_addInstrument('horse', INST_SIMP, MID, 'animals',
+ 0, 0, 0, 0.6,
+ # TRANS: The sound made by this animal
+ # TRANS: http://en.wikipedia.org/wiki/Horse
+ nameTooltip=_('Horse'))
+_addInstrument('kalimba', INST_TIED, MID, 'percussions',
+ .20751, .30161, .04658, 1.3,
+ # TRANS: The sound made by this instrument
+ # TRANS: http://en.wikipedia.org/wiki/Thumb_piano
+ nameTooltip=_('Kalimba'))
+_addInstrument('mando', INST_TIED, MID, 'strings',
+ 0.507107031, 0.934144531, 0.2, 0.5,
+ # TRANS: The sound made by this instrument
+ # TRANS: http://en.wikipedia.org/wiki/Mandolin
+ nameTooltip=_('Mandolin'))
+_addInstrument('ocarina', INST_TIED, MID, 'winds',
+ .06612, .19033, .01776, 0.8,
+ # TRANS: The sound made by this instrument
+ # TRANS: http://en.wikipedia.org/wiki/Ocarina
+ nameTooltip=_('Ocarina'))
+_addInstrument('rhodes', INST_TIED, MID, 'keyboard',
+ 0.58100625, 0.821625, 0.067, 0.7,
+ # TRANS: The sound made by this instrument
+ # TRANS: http://en.wikipedia.org/wiki/Rhodes_piano
+ nameTooltip=_('Rhodes'))
+_addInstrument('saxo', INST_TIED, MID, 'winds',
+ .53722, .6583, .05264, 0.25,
+ # TRANS: The sound made by this instrument
+ # TRANS: http://en.wikipedia.org/wiki/Saxophone
+ nameTooltip=_('Saxophone'))
+_addInstrument('saxsoprano', INST_TIED, HIGH, 'winds',
+ .90721015625, 1.71199335938, .07675, 0.25,
+ # TRANS: The sound made by this instrument
+ # TRANS: http://en.wikipedia.org/wiki/Soprano_saxophone
+ nameTooltip=_('Soprano Saxophone'))
+_addInstrument('shenai', INST_TIED, MID, 'winds',
+ .29003, .33072, .00634, 0.5,
+ # TRANS: The sound made by this instrument
+ # TRANS: http://en.wikipedia.org/wiki/Shehnai
+ nameTooltip=_('Shehnai'))
+_addInstrument('sitar', INST_TIED, MID, 'strings',
+ 1.1361625, 1.575134375, .183, 0.3,
+ # TRANS: The sound made by this instrument
+ # TRANS: http://en.wikipedia.org/wiki/Sitar
+ nameTooltip=_('Sitar'))
+_addInstrument('tuba', INST_TIED, LOW, 'winds',
+ .51063, .58384, .035, 1.2,
+ # TRANS: The sound made by this instrument
+ # TRANS: http://en.wikipedia.org/wiki/Tuba
+ nameTooltip=_('Tuba'))
+_addInstrument('violin', INST_TIED, MID, 'strings',
+ .105, .30656, .028, 1,
+ # TRANS: The sound made by this instrument
+ # TRANS: http://en.wikipedia.org/wiki/Violin
+ nameTooltip=_('Violin'))
+_addInstrument("guidice1", INST_SIMP, MID, 'concret',
+ 0, 0, 0, 1, kitStage=True)
+_addInstrument("guidice2", INST_SIMP, MID, 'concret',
+ 0, 0, 0, 1, kitStage=True)
+_addInstrument("guidice3", INST_SIMP, MID, 'concret',
+ 0, 0, 0, 1, kitStage=True)
+_addInstrument("guidice4", INST_SIMP, MID, 'concret',
+ 0, 0, 0, 1, kitStage=True)
+_addInstrument("guidice5", INST_SIMP, MID, 'concret',
+ 0, 0, 0, 1, kitStage=True)
+_addInstrument("guidice6", INST_SIMP, MID, 'concret',
+ 0, 0, 0, 1, kitStage=True)
+_addInstrument("guidice7", INST_SIMP, MID, 'concret',
+ 0, 0, 0, 1, kitStage=True)
+_addInstrument("guidice8", INST_SIMP, MID, 'concret',
+ 0, 0, 0, 1, kitStage=True)
+_addInstrument("guidice9", INST_SIMP, MID, 'concret',
+ 0, 0, 0, 1, kitStage=True)
+_addInstrument("guidice10", INST_SIMP, MID, 'concret',
+ 0, 0, 0, 1, kitStage=True)
+_addInstrument("drum4afrofeet", INST_SIMP, LOW, 'percussions',
+ 0, 0, 0, 1, kitStage=True)
+_addInstrument("drum4fingersn", INST_SIMP, HIGH, 'percussions',
+ 0, 0, 0, 1, kitStage=True)
+_addInstrument("drum4mutecuic", INST_SIMP, PUNCH, 'percussions',
+ 0, 0, 0, 1, kitStage=True)
+_addInstrument("drum4stompbass", INST_SIMP, PUNCH, 'percussions',
+ 0, 0, 0, 1, kitStage=True)
+_addInstrument("drum4tambouri", INST_SIMP, HIGH, 'percussions',
+ 0, 0, 0, 1, kitStage=True)
+_addInstrument("drum4tr707clap", INST_SIMP, MID, 'percussions',
+ 0, 0, 0, 1, kitStage=True)
+_addInstrument("drum4tr707open", INST_SIMP, PUNCH, 'percussions',
+ 0, 0, 0, 1, kitStage=True)
+_addInstrument("drum4tr808closed", INST_SIMP, HIGH, 'percussions',
+ 0, 0, 0, 1, kitStage=True)
+_addInstrument("drum4tr808sn", INST_SIMP, MID, 'percussions',
+ 0, 0, 0, 1, kitStage=True)
+_addInstrument("drum4tr909bass", INST_SIMP, LOW, 'percussions',
+ 0, 0, 0, 1, kitStage=True)
+_addInstrument("drum4tr909kick", INST_SIMP, LOW, 'percussions',
+ 0, 0, 0, 1, kitStage=True)
+_addInstrument("drum4tr909sn", INST_SIMP, MID, 'percussions',
+ 0, 0, 0, 1, kitStage=True)
+_addInstrument("drum5timablesslap", INST_SIMP, LOW, 'percussions',
+ 0, 0, 0, 1, kitStage=True)
+_addInstrument("drum5congagraveouvert", INST_SIMP, LOW, 'percussions',
+ 0, 0, 0, 1, kitStage=True)
+_addInstrument("drum5timablesaiguslap", INST_SIMP, LOW, 'percussions',
+ 0, 0, 0, 1, kitStage=True)
+_addInstrument("drum5congagraveferme", INST_SIMP, MID, 'percussions',
+ 0, 0, 0, 1, kitStage=True)
+_addInstrument("drum5guiroretour", INST_SIMP, PUNCH, 'percussions',
+ 0, 0, 0, 1, kitStage=True)
+_addInstrument("drum5vibraslap", INST_SIMP, PUNCH, 'percussions',
+ 0, 0, 0, 1, kitStage=True)
+_addInstrument("drum5congaaiguouvert", INST_SIMP, MID, 'percussions',
+ 0, 0, 0, 1, kitStage=True)
+_addInstrument("drum5quicamedium", INST_SIMP, PUNCH, 'percussions',
+ 0, 0, 0, 1, kitStage=True)
+_addInstrument("drum5quicaaigu", INST_SIMP, MID, 'percussions',
+ 0, 0, 0, 1, kitStage=True)
+_addInstrument("drum5agogograve", INST_SIMP, HIGH, 'percussions',
+ 0, 0, 0, 1, kitStage=True)
+_addInstrument("drum5bongoaiguouvert", INST_SIMP, HIGH, 'percussions',
+ 0, 0, 0, 1, kitStage=True)
+_addInstrument("drum5agogoaigu", INST_SIMP, HIGH, 'percussions',
+ 0, 0, 0, 1, kitStage=True)
+_addInstrument("drum5bongograveouvert", INST_SIMP, HIGH, 'percussions',
+ 0, 0, 0, 1, kitStage=True)
+_addInstrument('camera', INST_SIMP, MID, 'concret',
+ 0, 0, 0, 1,
+ # TRANS: The sound of a camera shutter
+ # TRANS: http://en.wikipedia.org/wiki/Camera
+ nameTooltip=_('Camera'))
+_addInstrument('car', INST_TIED, MID, 'concret',
+ .67, 1.05761, .01, 0.6,
+ # TRANS: The sound of a car starting
+ nameTooltip=_('Car'))
+_addInstrument('carhorn', INST_SIMP, MID, 'concret',
+ 0, 0, 0, 0.4,
+ # TRANS: The sound of a car horn honking
+ nameTooltip=_('Car Horn'))
+_addInstrument('cello', INST_TIED, MID, 'strings',
+ 0.4761, 0.92244375, 0.19125, .6,
+ # TRANS: The sound made by this instrument
+ # TRANS: http://en.wikipedia.org/wiki/Cello
+ nameTooltip=_('Cello'))
+_addInstrument('chimes', INST_TIED, MID, 'percussions',
+ 4.104825, 5.644134375, .02, 1,
+ # TRANS: The sound made by this instrument
+ # TRANS: http://en.wikipedia.org/wiki/Chimes
+ nameTooltip=_('Chimes'))
+_addInstrument("crash", INST_SIMP, MID, 'concret',
+ 0, 0, 0, 1,
+ # TRANS: The sound of glass breaking
+ nameTooltip=_("Crash"))
+_addInstrument("guit2", INST_TIED, MID, 'strings',
+ 1.186341406, 1.929568266, .2, 0.25,
+ # TRANS: The sound made by this instrument
+ # TRANS: http://en.wikipedia.org/wiki/Electric_guitar
+ nameTooltip=_("Electric Guitar"))
+_addInstrument('plane', INST_SIMP, MID, 'concret',
+ 0, 0, 0, 0.6,
+ # TRANS: The sound of this vehicle
+ # TRANS: http://en.wikipedia.org/wiki/Airplane
+ nameTooltip=_('Plane'))
+_addInstrument('slap', INST_SIMP, MID, 'concret',
+ 0, 0, 0, 0.7,
+ # TRANS: The sound of something being hit
+ nameTooltip=_('Slap'))
+_addInstrument('templebell', INST_SIMP, MID, 'percussions',
+ 0, 0, 0, 1,
+ # TRANS: The sound made by a bell
+ nameTooltip=_('Temple Bell'))
+_addInstrument('sarangi', INST_SIMP, MID, 'strings',
+ 0, 0, 0, 1,
+ # TRANS: The sound made by this instrument
+ # TRANS: http://en.wikipedia.org/wiki/Sarangi
+ nameTooltip=_('Sarangi'))
+_addInstrument("drum6madal00", INST_SIMP, LOW, 'percussions',
+ 0, 0, 0, 1, kitStage=True)
+_addInstrument("drum6madal01", INST_SIMP, LOW, 'percussions',
+ 0, 0, 0, 1, kitStage=True)
+_addInstrument("drum6madal02", INST_SIMP, LOW, 'percussions',
+ 0, 0, 0, 1, kitStage=True)
+_addInstrument("drum6madal03", INST_SIMP, LOW, 'percussions',
+ 0, 0, 0, 1, kitStage=True)
+_addInstrument("drum6madal04", INST_SIMP, LOW, 'percussions',
+ 0, 0, 0, 1, kitStage=True)
+_addInstrument("drum6madal05", INST_SIMP, LOW, 'percussions',
+ 0, 0, 0, 1, kitStage=True)
+_addInstrument("drum6madal06", INST_SIMP, LOW, 'percussions',
+ 0, 0, 0, 1, kitStage=True)
+_addInstrument("drum6madal07", INST_SIMP, LOW, 'percussions',
+ 0, 0, 0, 1, kitStage=True)
+_addInstrument("drum6madal08", INST_SIMP, LOW, 'percussions',
+ 0, 0, 0, 1, kitStage=True)
+_addInstrument("drum6madal09", INST_SIMP, LOW, 'percussions',
+ 0, 0, 0, 1, kitStage=True)
+_addInstrument("drum6madal10", INST_SIMP, LOW, 'percussions',
+ 0, 0, 0, 1, kitStage=True)
+_addInstrument("drum6madal11", INST_SIMP, LOW, 'percussions',
+ 0, 0, 0, 1, kitStage=True)
+_addInstrument("drum6madal12", INST_SIMP, LOW, 'percussions',
+ 0, 0, 0, 1, kitStage=True)
+_addInstrument('au_pipes', INST_TIED, MID, 'winds',
+ 0, 1, 0, 0.9,
+ # TRANS: The sound of a Solomon Islands pipe, named "'au tahana"
+ # TRANS: http://www.jstor.org/pss/851365
+ nameTooltip=_('\'au tahana'))
+
+if Config.FEATURES_NEWSOUNDS:
+ try:
+ files = os.listdir(Config.SNDS_INFO_DIR)
+ for file in files:
+ instrumentDB.addInstrument(Config.SNDS_INFO_DIR + '/' + file)
+ except:
+ pass
+
+#jamId = os.path.split(os.path.realpath("/home/olpc/isolation/1/bundle_id_to_gid/org.laptop.TamTamJam"))[1]
+
+
+DRUM1KIT = {24: "drum1kick",
+ 26: "drum1floortom",
+ 28: "drum1tom",
+ 30: "drum1chine",
+ 32: "drum1splash",
+ 34: "drum1crash",
+ 36: "drum1snaresidestick",
+ 38: "drum1snaresidestick",
+ 40: "drum1snare",
+ 42: "drum1ridebell",
+ 44: "drum1hardride",
+ 46: "drum1hatshoulder",
+ 48: "drum1hatpedal"}
+
+DRUM2KIT = {24: "drum2darbukadoom",
+ 26: "drum2darbukapied",
+ 28: "drum2darbukapiedsoft",
+ 30: "drum2hatflanger",
+ 32: "drum2darbukatak",
+ 34: "drum2darbukatak",
+ 36: "drum2darbukafinger",
+ 38: "drum2darbukaroll",
+ 40: "drum2darbukaslap",
+ 42: "drum2hatpied",
+ 44: "drum2tambourinepied",
+ 46: "drum2hatpied2",
+ 48: "drum2tambourinepiedsoft"}
+
+DRUM3KIT = {24: "drum3djembelow",
+ 26: "drum3pedalperc",
+ 28: "drum3djembeslap",
+ 30: "drum3tambourinehigh",
+ 32: "drum3tambourinelow",
+ 34: "drum3rainstick",
+ 36: "drum3djembemid",
+ 38: "drum3djembesidestick",
+ 40: "drum3djembestickmid",
+ 42: "drum3cowbell",
+ 44: "drum3cowbelltip",
+ 46: "drum3cup",
+ 48: "drum3metalstand"}
+
+DRUM4KIT = {24: "drum4afrofeet",
+ 26: "drum4tr909kick",
+ 28: "drum4tr909bass",
+ 30: "drum4stompbass",
+ 32: "drum4tr707open",
+ 34: "drum4mutecuic",
+ 36: "drum4tr808sn",
+ 38: "drum4tr707clap",
+ 40: "drum4tr909sn",
+ 42: "drum4tambouri",
+ 44: "drum4fingersn",
+ 46: "drum4fingersn",
+ 48: "drum4tr808closed"}
+
+DRUM5KIT = {24: "drum5timablesslap",
+ 26: "drum5timablesaiguslap",
+ 28: "drum5congagraveouvert",
+ 30: "drum5quicamedium",
+ 32: "drum5guiroretour",
+ 34: "drum5vibraslap",
+ 36: "drum5congagraveferme",
+ 38: "drum5quicaaigu",
+ 40: "drum5congaaiguouvert",
+ 42: "drum5agogoaigu",
+ 44: "drum5bongograveouvert",
+ 46: "drum5agogograve",
+ 48: "drum5bongoaiguouvert"}
+
+DRUM6KIT = {24: "drum6madal00",
+ 26: "drum6madal01",
+ 28: "drum6madal02",
+ 30: "drum6madal03",
+ 32: "drum6madal04",
+ 34: "drum6madal05",
+ 36: "drum6madal06",
+ 38: "drum6madal07",
+ 40: "drum6madal08",
+ 42: "drum6madal09",
+ 44: "drum6madal10",
+ 46: "drum6madal11",
+ 48: "drum6madal12"}
+
+_addInstrument("drum1kit", 0, 0, "percussions", 0, 0, 0, 1, DRUM1KIT,
+ # TRANS: http://en.wikipedia.org/wiki/Drum_set
+ nameTooltip=_('Jazz / Rock Kit'))
+_addInstrument("drum2kit", 0, 0, "percussions", 0, 0, 0, 1, DRUM2KIT,
+ nameTooltip=_('African Kit'))
+_addInstrument("drum3kit", 0, 0, "percussions", 0, 0, 0, 1, DRUM3KIT,
+ nameTooltip=_('Arabic Kit'))
+_addInstrument("drum4kit", 0, 0, "percussions", 0, 0, 0, 1, DRUM4KIT,
+ nameTooltip=_('Electronic Kit'))
+_addInstrument("drum5kit", 0, 0, "percussions", 0, 0, 0, 1, DRUM5KIT,
+ nameTooltip=_('South American Kit'))
+_addInstrument("drum6kit", 0, 0, "percussions", 0, 0, 0, 1, DRUM6KIT,
+ nameTooltip=_('Nepali'))
+
+DRUMCOUNT = 6
diff --git a/common/Util/NoteDB.py b/common/Util/NoteDB.py
new file mode 100644
index 0000000..646f8d8
--- /dev/null
+++ b/common/Util/NoteDB.py
@@ -0,0 +1,813 @@
+import common.Util.InstrumentDB as InstrumentDB
+import common.Config as Config
+
+class PARAMETER:
+ PAGE_BEATS, \
+ PAGE_COLOR, \
+ ONSET, \
+ PITCH, \
+ AMPLITUDE, \
+ DURATION, \
+ INSTRUMENT, \
+ PAN, \
+ REVERB, \
+ ATTACK, \
+ DECAY, \
+ FILTERTYPE, \
+ FILTERCUTOFF, \
+ INSTRUMENT2 \
+ = range(14) #python-stye enum
+
+class Note:
+ def __init__( self, page, track, id, cs ):
+ self.page = page
+ self.track = track
+ self.id = id
+ self.cs = cs
+
+ self.csStack = []
+
+ def pushState( self ):
+ self.csStack.append( self.cs.clone() )
+
+ def popState( self ):
+ self.cs = self.csStack.pop()
+
+class Page:
+ def __init__( self, beats, color = 0, instruments = False, local = True ): # , tempo, insruments, color = 0 ):
+ self.instrumentDB = InstrumentDB.getRef()
+ self.beats = beats
+ self.ticks = beats*Config.TICKS_PER_BEAT
+
+ self.color = color
+
+ if not instruments:
+ self.instruments = [ self.instrumentDB.instNamed["kalimba"].instrumentId for i in range(Config.NUMBER_OF_TRACKS-1) ] + [ self.instrumentDB.instNamed["drum1kit"].instrumentId ]
+ else:
+ self.instruments = instruments[:]
+
+ self.local = local # page local/global?
+
+ self.nextNoteId = 0 # first note will be 1
+
+ def genId( self ):
+ self.nextNoteId += 1
+ if self.nextNoteId == 65536: # short
+ print "note id overflow!"
+ # TODO think of how to handle this!?
+ return self.nextNoteId
+
+ def setLocal( self, local ):
+ self.local = local
+
+class PageListener:
+ def notifyPageAdd( self, id, at ):
+ pass
+
+ def notifyPageDelete( self, which, safe ):
+ pass
+
+ def notifyPageDuplicate( self, new, at ):
+ pass
+
+ def notifyPageMove( self, which, low, high ):
+ pass
+
+ def notifyPageUpdate( self, which, parameter, value ):
+ pass
+
+class NoteListener:
+ def notifyNoteAdd( self, page, track, id ):
+ pass
+ def notifyNoteDelete( self, page, track, id ):
+ pass
+ def notifyNoteUpdate( self, page, track, id, parameter, value ):
+ pass
+
+class NoteDB:
+ def __init__( self ):
+ self.instrumentDB = InstrumentDB.getRef()
+ self.noteD = {} # bins containing all the notes by page, track, and id
+ # structure self.noteD[pageId][trackIndex][noteId]
+
+ self.noteS = {} # bins containing all the notes by page and track
+ # first sorted by onset then by pitch (for drum hits)
+ # structure self.noteS[pageId][trackIndex][noteIndex]
+
+ self.pages = {} # dict of Pages indexed by pageId
+
+ self.tune = [] # list of pageIds ordered by tune
+
+ #self.beatsBefore = {} # count of beats on previous pages indexed by page id
+
+ self.listeners = [] # complete list of listeners
+ self.pageListeners = [] # list of listeners who want page notifications
+ self.noteListeners = [] # list of listeners who want note notifications
+ self.parasiteList = {} # dict of parasites indexed by listener
+
+ self.parasiteD = {} # bin of parasites indexed by listener
+ self.parasiteS = {} # parasites sorted as in self.noteS,
+
+ self.nextId = 0 # base id, first page will be 1
+
+ self.clipboard = [] # stores copied cs notes
+ self.clipboardArea = [] # stores the limits and tracks for each page in the clipboard
+
+ def dumpToStream( self, ostream, localOnly = False ):
+ for pid in self.tune:
+ if not localOnly or self.pages[pid].local:
+ ostream.page_add(pid, self.pages[pid])
+ for note in self.getNotesByPage( pid ):
+ ostream.note_add( note )
+
+ #-- private --------------------------------------------
+ def _genId( self ):
+ self.nextId += 1
+ if self.nextId == 65536: # short
+ print "page id overflow!"
+ # TODO think of how to handle this!?
+ return self.nextId
+
+ #=======================================================
+ # Page Functions
+
+ def addPage( self, pid, page, after = False ):
+ pid = self._newPage( pid, page )
+ at = self._insertPage( pid, after )
+
+ #self._updateBeatsBefore( at )
+
+ for l in self.pageListeners:
+ l.notifyPageAdd( pid, at )
+
+ return pid
+
+ def deletePages( self, which, instruments = False ):
+ beats = self.pages[self.tune[0]].beats
+
+ low = 999999
+ ind = -1
+ for id in which:
+ ind = self.tune.index(id)
+ if ind < low: low = ind
+
+ for t in range(Config.NUMBER_OF_TRACKS):
+ for n in self.noteD[id][t].keys():
+ self.deleteNote( id, t, n )
+
+ #del self.beatsBefore[id]
+
+ del self.noteD[id]
+ del self.noteS[id]
+ del self.parasiteD[id]
+ del self.parasiteS[id]
+ del self.pages[id]
+
+ at = self.tune.index( id )
+ self.tune.pop(at)
+
+ if not len(self.tune):
+ self.addPage( -1, Page(beats, instruments = instruments) ) # always have at least one page
+ safe = self.tune[0]
+ #self._updateBeatsBefore(0)
+ else:
+ safe = self.tune[max(ind-1,0)]
+ #self._updateBeatsBefore(low)
+
+ for l in self.pageListeners:
+ l.notifyPageDelete( which, safe )
+
+ def duplicatePages( self, which, after = False ):
+ sorted = []
+ if after: first = self.tune.index(after)+1
+ else: first = 0
+
+ i = j = 0
+ while i < len(self.tune) and j < len(which):
+ if self.tune[i] in which:
+ sorted.append(self.tune[i])
+ j += 1
+ i += 1
+
+ new = {}
+ for cp in sorted:
+ id = self._newPage( -1, Page(self.pages[cp].beats,self.pages[cp].color,self.pages[cp].instruments) )
+ self._insertPage( id, after )
+ after = id
+ new[cp] = id
+
+ #self._updateBeatsBefore( first )
+
+ for l in self.pageListeners:
+ l.notifyPageDuplicate( new, first )
+
+ for cp in sorted:
+ for t in range(Config.NUMBER_OF_TRACKS):
+ for n in self.noteD[cp][t].keys():
+ self.duplicateNote( cp, t, n, new[cp], t, 0 )
+
+ return new
+
+ def movePages( self, which, after = False ):
+ sorted = []
+ if after: at = self.tune.index(after)+1
+ else: at = 0
+ low = high = at
+
+ i = j = 0
+ while i < len(self.tune):
+ if self.tune[i] in which:
+ sorted.append(self.tune[i])
+ self.tune.pop(i)
+ if i < low: low = i
+ if i > high: high = i
+ if i < at: at -= 1
+ j += 1
+ else:
+ i += 1
+
+ self.tune = self.tune[:at] + sorted + self.tune[at:]
+
+ #self._updateBeatsBefore( low )
+
+ for l in self.pageListeners:
+ l.notifyPageMove( sorted, low, high )
+
+ def updatePage( self, page, parameter, value ):
+ if parameter == PARAMETER.PAGE_BEATS:
+ ticks = value*Config.TICKS_PER_BEAT
+ if self.pages[page].beats > value: # crop some notes
+ dstream = []
+ ustream = []
+ for track in range(Config.NUMBER_OF_TRACKS):
+ dsub = []
+ usub = []
+ for note in self.getNotesByTrack(page, track):
+ if ticks <= note.cs.onset:
+ dsub.append( note.id )
+ elif ticks < note.cs.onset + note.cs.duration:
+ usub.append( note.id )
+ usub.append( ticks - note.cs.onset )
+ if len(dsub):
+ dstream += [ page, track, len(dsub) ] + dsub
+ if len(usub):
+ ustream += [ page, track, PARAMETER.DURATION, len(usub)//2 ] + usub
+ if len(dstream):
+ self.deleteNotes( dstream + [-1] )
+ if len(ustream):
+ self.updateNotes( ustream + [-1] )
+
+ self.pages[page].beats = value
+ self.pages[page].ticks = ticks
+ #self._updateBeatsBefore(self.tune.index(page))
+ elif parameter == PARAMETER.PAGE_COLOR:
+ self.pages[page].color = value
+
+ for l in self.pageListeners:
+ l.notifyPageUpdate( page, parameter, value )
+
+ # stream format:
+ # parameter id
+ # number of following pages (N)
+ # page id
+ # value
+ def updatePages( self, stream ):
+ i = [-1]
+ parameter = self._readstream(stream,i)
+ N = self._readstream(stream,i)
+ for j in range(N):
+ page = self._readstream(stream,i)
+ val = self._readstream(stream,i)
+ self.updatePage( page, parameter, val )
+
+ def getInstruments(self, pages):
+ dict = {}
+ for page in pages:
+ list = []
+ for track in range(Config.NUMBER_OF_TRACKS):
+ list.append(self.instrumentDB.instId[self.pages[page].instruments[track]].name)
+ dict[page] = list[:]
+ return dict
+
+ #-- private --------------------------------------------
+ def _newPage( self, pid, page ):
+ if pid == -1 : pid = self._genId()
+ self.pages[pid] = page
+ self.noteD[pid] = [ {} for i in range(Config.NUMBER_OF_TRACKS) ]
+ self.noteS[pid] = [ [] for i in range(Config.NUMBER_OF_TRACKS) ]
+ self.parasiteD[pid] = [ {} for i in range(Config.NUMBER_OF_TRACKS) ]
+ self.parasiteS[pid] = [ {} for i in range(Config.NUMBER_OF_TRACKS) ]
+ for i in range(Config.NUMBER_OF_TRACKS):
+ for par in self.parasiteList.keys():
+ self.parasiteD[pid][i][par] = {}
+ self.parasiteS[pid][i][par] = []
+ return pid
+
+ def _insertPage( self, pid, after ):
+ if not after: at = 0
+ else: at = self.tune.index(after)+1
+ self.tune.insert( at, pid )
+
+ return at
+
+ #def _updateBeatsBefore( self, ind ):
+ # if ind == 0: beats = 0
+ # else: beats = self.beatsBefore[self.tune[ind-1]] + self.pages[self.tune[ind-1]].beats
+ # for i in range(ind, len(self.tune)):
+ # self.beatsBefore[self.tune[ind]] = beats
+ # beats += self.pages[self.tune[ind]].beats
+
+
+
+ #=======================================================
+ # Track Functions
+
+ def setInstrument( self, pages, track, instrumentId ):
+ stream = []
+ for page in pages:
+ self.pages[page].instruments[track] = instrumentId
+ notes = self.getNotesByTrack( page, track )
+ sub = []
+ for note in notes:
+ sub.append( note.id )
+ sub.append( instrumentId )
+ if len(sub):
+ stream += [ page, track, PARAMETER.INSTRUMENT, len(sub)//2 ] + sub
+ if len(stream):
+ self.updateNotes( stream + [-1] )
+
+ def setInstrument2( self, pages, track, instrumentId ):
+ stream = []
+ for page in pages:
+ #self.pages[page].instruments[track] = instrumentId
+ notes = self.getNotesByTrack( page, track )
+ sub = []
+ for note in notes:
+ sub.append( note.id )
+ sub.append( instrumentId )
+ if len(sub):
+ stream += [ page, track, PARAMETER.INSTRUMENT2, len(sub)//2 ] + sub
+ if len(stream):
+ self.updateNotes( stream + [-1] )
+
+ #=======================================================
+ # Note Functions
+
+ def addNote( self, nid, page, track, cs, hint = False ):
+ if nid == -1: nid = self.pages[page].genId()
+ n = self.noteD[page][track][nid] = Note( page, track, nid, cs )
+
+ if not hint: at = 0
+ else: at = hint[0]
+ while at > 0:
+ onset = self.noteS[page][track][at-1].cs.onset
+ if onset <= cs.onset:
+ if onset <= cs.onset: break
+ elif self.noteS[page][track][at-1].cs.pitch <= cs.pitch: break
+ at -= 1
+ last = len(self.noteS[page][track])
+ while at < last:
+ onset = self.noteS[page][track][at].cs.onset
+ if onset >= cs.onset:
+ if onset > cs.onset: break
+ elif self.noteS[page][track][at].cs.pitch > cs.pitch: break
+ at += 1
+
+ self.noteS[page][track].insert( at, n )
+
+ for par in self.parasiteList.keys():
+ parasite = self.parasiteList[par]( self, par, n )
+ self.parasiteD[page][track][par][nid] = parasite.attach() # give parasites the option of return something other than themselves
+ self.parasiteS[page][track][par].insert( at, parasite.attach() )
+
+ if hint: hint[0] = at + 1 # assume the next note will fall after this one
+
+ for l in self.noteListeners:
+ l.notifyNoteAdd( page, track, nid )
+
+ return nid
+
+ # stream format:
+ # page id
+ # track index
+ # number of following notes (N)
+ # cs pointer
+ # ... up to N
+ # page id or -1 to exit
+ def addNotes( self, stream ):
+ new = {}
+ i = [-1]
+ p = self._readstream(stream,i)
+ while p != -1:
+ if p not in new:
+ new[p] = [ [] for x in range(Config.NUMBER_OF_TRACKS) ]
+ t = self._readstream(stream,i)
+ N = self._readstream(stream,i)
+ hint = [0]
+ for j in range(N):
+ new[p][t].append( self.addNote( -1, p, t, self._readstream(stream,i), hint ) )
+ p = self._readstream(stream,i)
+
+ return new
+
+ def deleteNote( self, page, track, id ):
+ ind = self.noteS[page][track].index( self.noteD[page][track][id] )
+
+ for par in self.parasiteList.keys():
+ self.parasiteD[page][track][par][id].destroy()
+ self.parasiteS[page][track][par].pop(ind)
+ del self.parasiteD[page][track][par][id]
+
+ self.noteS[page][track].pop(ind)
+ del self.noteD[page][track][id]
+
+ for l in self.noteListeners:
+ l.notifyNoteDelete( page, track, id )
+
+ # stream format:
+ # page id
+ # track index
+ # number of following notes (N)
+ # note id
+ # ... up to N
+ # page id or -1 to exit
+ def deleteNotes( self, stream ):
+ i = [-1]
+ p = self._readstream(stream,i)
+ while p != -1:
+ t = self._readstream(stream,i)
+ N = self._readstream(stream,i)
+ for j in range(N):
+ self.deleteNote( p, t, self._readstream(stream,i) )
+ p = self._readstream(stream,i)
+
+ def deleteNotesByTrack( self, pages, tracks ):
+ for p in pages:
+ for t in tracks:
+ notes = self.noteS[p][t][:]
+ for n in notes:
+ self.deleteNote( p, t, n.id )
+
+ def duplicateNote( self, page, track, id, toPage, toTrack, offset ):
+ cs = self.noteD[page][track][id].cs.clone()
+ cs.trackId = toTrack
+ cs.pageId = toPage
+ cs.onset += offset
+ ticks = self.pages[toPage].ticks
+ if cs.onset >= ticks: return False # off the end of the page
+ if cs.onset + cs.duration > ticks:
+ cs.duration = ticks - cs.onset
+
+ return self.addNote( -1, toPage, toTrack, cs )
+
+ # stream format:
+ # page id
+ # track index
+ # toPage id
+ # toTrack index
+ # offset
+ # number of following notes (N)
+ # note id
+ # ... up to N
+ # page id or -1 to exit
+ def duplicateNotes( self, stream ):
+ i = [-1]
+ p = self._readstream(stream,i)
+ while p != -1:
+ t = self._readstream(stream,i)
+ toP = self._readstream(stream,i)
+ toT = self._readstream(stream,i)
+ offset = self._readstream(stream,i)
+ N = self._readstream(stream,i)
+ for j in range(N):
+ self.duplicateNote( p, t, self._readstream(stream,i), toP, toT, offset )
+ p = self._readstream(stream,i)
+
+
+ def updateNote( self, page, track, id, parameter, value ):
+ if parameter == PARAMETER.ONSET:
+ self.noteD[page][track][id].cs.onset = value
+ self._resortNote( page, track, id )
+ elif parameter == PARAMETER.PITCH:
+ self.noteD[page][track][id].cs.pitch= value
+ self._resortNote( page, track, id )
+ elif parameter == PARAMETER.AMPLITUDE:
+ self.noteD[page][track][id].cs.amplitude = value
+ elif parameter == PARAMETER.DURATION:
+ self.noteD[page][track][id].cs.duration = value
+ elif parameter == PARAMETER.INSTRUMENT:
+ self.noteD[page][track][id].cs.instrumentId = value
+ elif parameter == PARAMETER.PAN:
+ self.noteD[page][track][id].cs.pan = value
+ elif parameter == PARAMETER.REVERB:
+ self.noteD[page][track][id].cs.reverbSend = value
+ elif parameter == PARAMETER.ATTACK:
+ self.noteD[page][track][id].cs.attack = value
+ elif parameter == PARAMETER.DECAY:
+ self.noteD[page][track][id].cs.decay = value
+ elif parameter == PARAMETER.FILTERTYPE:
+ self.noteD[page][track][id].cs.filterType = value
+ elif parameter == PARAMETER.FILTERCUTOFF:
+ self.noteD[page][track][id].cs.filterCutoff = value
+ elif parameter == PARAMETER.INSTRUMENT2:
+ self.noteD[page][track][id].cs.instrumentId2 = value
+
+ for par in self.parasiteList.keys():
+ self.parasiteD[page][track][par][id].updateParameter( parameter, value )
+
+ for l in self.noteListeners:
+ l.notifyNoteUpdate( page, track, id, parameter, value )
+
+ # stream format:
+ # page id
+ # track index
+ # parameter id
+ # number of following notes (N)
+ # note id
+ # value
+ # ... up to N
+ # page id or -1 to exit
+ def updateNotes( self, stream ):
+ i = [-1]
+ p = self._readstream(stream,i)
+ while p != -1:
+ t = self._readstream(stream,i)
+ param = self._readstream(stream,i)
+ N = self._readstream(stream,i)
+ for j in range(N):
+ self.updateNote( p, t, self._readstream(stream,i), param, self._readstream(stream,i) )
+ p = self._readstream(stream,i)
+
+ #-- private --------------------------------------------
+ def _readstream( self, stream, i ):
+ i[0] += 1
+ return stream[i[0]]
+
+ def _resortNote( self, page, track, id ):
+ ins = out = self.noteS[page][track].index(self.noteD[page][track][id])
+ cs = self.noteD[page][track][id].cs
+ while ins > 0: # check backward
+ onset = self.noteS[page][track][ins-1].cs.onset
+ if onset <= cs.onset:
+ if onset <= cs.onset: break
+ elif self.noteS[page][track][ins-1].cs.pitch <= cs.pitch: break
+ ins -= 1
+ if ins == out: # check forward
+ ins += 1
+ last = len(self.noteS[page][track])
+ while ins < last:
+ onset = self.noteS[page][track][ins].cs.onset
+ if onset >= cs.onset:
+ if onset > cs.onset: break
+ elif self.noteS[page][track][ins].cs.pitch > cs.pitch: break
+ ins += 1
+
+ if ins != out: # resort
+ if ins > out: ins -= 1
+ n = self.noteS[page][track].pop( out )
+ self.noteS[page][track].insert( ins, n )
+ for par in self.parasiteList.keys():
+ p = self.parasiteS[page][track][par].pop( out )
+ self.parasiteS[page][track][par].insert( ins, p )
+
+
+ #=======================================================
+ # Clipboard Functions
+
+ # stream format:
+ # page id
+ # track index
+ # number of following notes (N)
+ # note id
+ # ... up to N
+ # page id or -1 to exit
+ def notesToClipboard( self, stream ):
+ self.clipboard = []
+ self.clipboardArea = []
+ i = [-1]
+ pages = []
+ p = self._readstream(stream,i)
+ while p != -1:
+ if p not in pages:
+ page = [ [] for x in range(Config.NUMBER_OF_TRACKS) ]
+ pageArea = { "limit": [ 99999, 0 ],
+ "tracks": [ 0 for x in range(Config.NUMBER_OF_TRACKS) ] }
+ pages.append(p)
+ self.clipboard.append(page)
+ self.clipboardArea.append(pageArea)
+ else:
+ ind = pages.index(p)
+ page = self.clipboard[ind]
+ pageArea = self.clipboardArea[ind]
+ t = self._readstream(stream,i)
+ pageArea["tracks"][t] = 1
+ N = self._readstream(stream,i)
+ for j in range(N):
+ cs = self.noteD[p][t][self._readstream(stream,i)].cs.clone()
+ if cs.onset < pageArea["limit"][0]: pageArea["limit"][0] = cs.onset
+ if cs.onset + cs.duration > pageArea["limit"][1]: pageArea["limit"][1] = cs.onset + cs.duration
+ page[t].append( cs )
+ p = self._readstream(stream,i)
+
+ return self.clipboardArea
+
+ def tracksToClipboard( self, pages, tracks ):
+ self.clipboard = []
+ self.clipboardOrigin = [ 0, 0 ]
+ self.clipboardArea = []
+ for p in pages:
+ page = [ [] for x in range(Config.NUMBER_OF_TRACKS) ]
+ pageArea = { "limit": [ 0, 99999 ],
+ "tracks": [ 0 for x in range(Config.NUMBER_OF_TRACKS) ] }
+ self.clipboard.append(page)
+ self.clipboardArea.append(pageArea)
+ for t in tracks:
+ pageArea["tracks"][t] = 1
+ for id in self.noteD[p][t]:
+ cs = self.noteD[p][t][id].cs.clone()
+ page[t].append( cs )
+
+ return self.clipboardArea
+
+ # trackMap = { X: Y, W: Z, ... }; X,W are track indices, Y,Z are clipboard indices
+ # instrumentMap = { X: Y, W: Z, ... }; X,W are track indices, Y,Z are instrument ids
+ def pasteClipboard( self, pages, offset, trackMap, instrumentMap = {} ):
+ if not len(self.clipboard): return
+
+ deleteStream = []
+ updateStream = []
+ addStream = []
+
+ pp = 0
+ ppMax = len(self.clipboard)
+ for p in pages:
+ ticks = self.pages[p].ticks
+ area = self.clipboardArea[pp]
+ area["limit"][0] += offset
+ area["limit"][1] += offset
+ for t in trackMap.keys():
+ if not area["tracks"][trackMap[t]]: continue
+ if instrumentMap.has_key(t):
+ updateInstrument = True
+ instrumentId = instrumentMap[t]
+ else:
+ updateInstrument = False
+ tdeleteStream = []
+ tupdateOStream = []
+ tupdateDStream = []
+ taddStream = []
+ # clear area
+ for n in self.noteS[p][t]:
+ start = n.cs.onset
+ end = start + n.cs.duration
+ if area["limit"][0] <= start < area["limit"][1]: start = area["limit"][1]
+ if area["limit"][0] < end <= area["limit"][1]: end = area["limit"][0]
+ if start < area["limit"][0] and end > area["limit"][1]: end = area["limit"][0]
+ if end <= start:
+ tdeleteStream.append( n.id )
+ elif start != n.cs.onset:
+ tupdateDStream += [ n.id, end - start ]
+ tupdateOStream += [ n.id, start ]
+ elif end != start + n.cs.duration:
+ tupdateDStream += [ n.id, end - start ]
+ if len(tdeleteStream):
+ deleteStream += [ p, t, len(tdeleteStream) ] + tdeleteStream
+ if len(tupdateOStream):
+ updateStream += [ p, t, PARAMETER.ONSET, len(tupdateOStream)//2 ] + tupdateOStream
+ if len(tupdateDStream):
+ updateStream += [ p, t, PARAMETER.DURATION, len(tupdateDStream)//2 ] + tupdateDStream
+ # paste notes
+ for cs in self.clipboard[pp][trackMap[t]]:
+ newcs = cs.clone()
+ newcs.onset += offset
+ if newcs.onset >= ticks: continue
+ if newcs.onset + newcs.duration > ticks:
+ newcs.duration = ticks - newcs.onset
+ newcs.pageId = p
+ newcs.trackId = t
+ if updateInstrument:
+ newcs.instrumentId = instrumentId
+ # TODO update any other parameters?
+ taddStream.append( newcs )
+ if len(taddStream):
+ addStream += [ p, t, len(taddStream) ] + taddStream
+
+ pp += 1
+ if pp == ppMax: pp -= ppMax
+
+
+
+ if len(deleteStream):
+ self.deleteNotes( deleteStream + [-1] )
+ if len(updateStream):
+ self.updateNotes( updateStream + [-1] )
+ if len(addStream):
+ return self.addNotes( addStream + [-1] )
+
+ return None
+
+ def getClipboardArea( self, ind ):
+ N = len(self.clipboardArea)
+ while ind >= N: ind -= N
+ return self.clipboardArea[ind]
+
+ #=======================================================
+ # Listener Functions
+
+ def addListener( self, listener, parasite = None, page = False, note = False ):
+ if listener in self.listeners:
+ return # only one listener per object
+
+ if parasite:
+ self.parasiteList[listener] = parasite
+ self._addParasite( listener, parasite )
+
+ if page: self.pageListeners.append( listener )
+ if note: self.noteListeners.append( listener )
+ self.listeners.append( listener )
+
+ def deleteListener( self, listener ):
+ self.listeners.remove( listener )
+ if listener in self.pageListeners:
+ self.pageListeners.remove( listener )
+ if listener in self.noteListeners:
+ self.noteListeners.remove( listener )
+ if self.parasites.has_key( listener ):
+ self._deleteParasite( listener )
+ del self.parasiteList[listener]
+
+ #-- private --------------------------------------------
+ def _addParasite( self, listener, parasite ):
+ for p in self.tune:
+ for t in range(Config.NUMBER_OF_TRACKS):
+ self.parasiteD[p][t][listener] = {}
+ self.parasiteS[p][t][listener] = []
+ for n in self.noteD[p][t].keys():
+ parasite( self, listener, self.noteD[p][t][n] )
+ self.parasiteD[p][t][listener][n] = parasite.attach() # give parasites the option of returning something other than themselves
+ self.parasiteS[p][t][listener].insert( self.noteS[p][t].index( self.noteD[p][t][n]), parasite.attach() )
+
+ def _deleteParasite( self, listener ):
+ for p in self.tune:
+ for t in range(Config.NUMBER_OF_TRACKS):
+ for n in self.notes[p][t].keys():
+ self.parasiteD[p][t][listener][n].destroy()
+ del self.parasiteD[p][t][listener]
+ del self.parasiteS[p][t][listener]
+
+ #=======================================================
+ # Get Functions
+
+ def getPageCount( self ):
+ return len(self.pages)
+
+ def getTune( self ):
+ return self.tune
+
+ def getPage( self, page ):
+ return self.pages[page]
+
+ def getPageByIndex( self, ind ):
+ return self.tune[ind]
+
+ def getPageIndex( self, page ):
+ return self.tune.index(page)
+
+ # Not sure if this is useful!
+ #def getBeatsBeforePage( self, page ):
+ # return self.beatsBefore[page]
+
+ def getNote( self, page, track, id, listener = None ):
+ if listener:
+ return self.parasiteD[page][track][listener][id]
+ return self.noteD[page][track][id]
+
+ def getNotesByPage( self, page, listener = None ):
+ notes = []
+ if listener:
+ for i in range(Config.NUMBER_OF_TRACKS):
+ notes.extend( self.parasiteS[page][i][listener] )
+ else:
+ for i in range(Config.NUMBER_OF_TRACKS):
+ notes.extend( self.noteS[page][i] )
+ return notes
+
+
+ def getNotesByTrack( self, page, track, listener = None ):
+ if listener:
+ return self.parasiteS[page][track][listener]
+ else:
+ return self.noteS[page][track]
+
+ def getNotes(self, listener = None ):
+ notes = []
+ for p in self.pages:
+ notes.extend( self.getNotesByPage(p, listener ) )
+ return notes
+
+
+ def getCSNotesByPage( self, page ):
+ return map( lambda n: n.cs, self.getNotesByPage( page ) )
+
+ def getCSNotesByTrack( self, page, track ):
+ return map( lambda n: n.cs, self.getNotesByTrack( page, track ) )
diff --git a/common/Util/__init__.py b/common/Util/__init__.py
new file mode 100644
index 0000000..e69de29
--- /dev/null
+++ b/common/Util/__init__.py
diff --git a/common/__init__.py b/common/__init__.py
new file mode 100644
index 0000000..e69de29
--- /dev/null
+++ b/common/__init__.py
diff --git a/lps.py b/lps.py
new file mode 100644
index 0000000..b3c3aa8
--- /dev/null
+++ b/lps.py
@@ -0,0 +1,242 @@
+LOOPS = {
+17: [[[0, 34, 0.91843119391102157, 3], [3, 29, 0.66557397398580609, 3], [6, 34, 0.74069380274636654, 3], [9, 29, 0.73011336026847073, 3], [12, 34, 0.76424227490889152, 3], [15, 29, 0.73027362492984604, 3], [18, 34, 0.65773569328528614, 3], [21, 29, 0.68716281941809831, 3]],
+[[0, 32, 0.90350161334941659, 3], [3, 24, 0.74404055378568157, 3], [6, 32, 0.74323579104314119, 3], [9, 24, 0.73026101785761377, 3], [12, 32, 0.82564066817787785, 3], [15, 24, 0.71019876471482146, 3], [18, 32, 0.73703720538539641, 3], [21, 24, 0.72586200244648191, 3], [24, 32, 0.89346838667834039, 3], [27, 24, 0.6688220031077825, 3], [30, 32, 0.72447517622037272, 3], [33, 24, 0.71313223323927322, 3]],
+[[0, 41, 0.98493978103164381, 3], [3, 29, 0.72792048541450227, 3], [6, 41, 0.72930017355910615, 3], [9, 29, 0.7222293906157744, 3], [12, 41, 0.77214158570437674, 3], [15, 29, 0.74656945166968436, 3], [18, 41, 0.71994918422592669, 3], [21, 29, 0.65296466730336167, 3], [24, 41, 0.86548932085629293, 3], [27, 29, 0.72190994455740853, 3], [30, 41, 0.66445817032603671, 3], [33, 29, 0.65582254041511467, 3], [36, 41, 0.86288823205884557, 3], [39, 29, 0.70485424504749017, 3], [42, 41, 0.74949991272057725, 3], [45, 29, 0.74366606359847276, 3]],
+[[0, 26, 0.9209538754403952, 3], [3, 32, 0.7191358757020283, 3], [6, 26, 0.68816606744610742, 3], [9, 32, 0.70085543192049982, 3], [12, 26, 0.78074279603247598, 3], [15, 32, 0.71046570102178241, 3], [18, 26, 0.68220609744266758, 3], [21, 32, 0.68961180556278423, 3], [24, 26, 0.89235495450144287, 3], [27, 32, 0.73108765393595787, 3], [30, 26, 0.66145010684275285, 3], [33, 32, 0.71956089863127026, 3], [36, 26, 0.77770286704571423, 3], [39, 32, 0.67268162577259594, 3], [42, 26, 0.71422085398818524, 3], [45, 32, 0.73661198907206937, 3], [48, 26, 0.85268386577089572, 3], [51, 32, 0.68631312645239539, 3], [54, 26, 0.72994393067062868, 3], [57, 32, 0.70711912537539956, 3]],
+[[0, 38, 0.97737790621922072, 3], [3, 34, 0.71664569925045352, 3], [6, 38, 0.72532871185907688, 3], [9, 34, 0.68518148281936164, 3], [12, 38, 0.78925884580419003, 3], [15, 34, 0.69974203576026073, 3], [18, 38, 0.73715398854789072, 3], [21, 34, 0.68750831437785886, 3], [24, 38, 0.88144840071678221, 3], [27, 34, 0.69581579089244272, 3], [30, 38, 0.70333582484945179, 3], [33, 34, 0.70741457306014111, 3], [36, 38, 0.86425219747410853, 3], [39, 34, 0.73805060304671832, 3], [42, 38, 0.72754087855196004, 3], [45, 34, 0.65228065482349229, 3], [48, 38, 0.86104449070395883, 3], [51, 34, 0.74287398118701164, 3], [54, 38, 0.73738648278176078, 3], [57, 34, 0.65382138825928426, 3], [60, 38, 0.7633454002433121, 3], [63, 34, 0.70399019680859132, 3], [66, 38, 0.69274066551029645, 3], [69, 34, 0.70712790864283115, 3]],
+[[0, 29, 0.9553559145099455, 3], [3, 34, 0.65224509529059749, 3], [6, 29, 0.71157865209628857, 3], [9, 34, 0.70240500812668449, 3], [12, 29, 0.88616214885784961, 3], [15, 34, 0.73895635876951649, 3], [18, 29, 0.69755099539587506, 3], [21, 34, 0.65486918855381016, 3], [24, 29, 0.78336533925511442, 3], [27, 34, 0.70451467711099092, 3], [30, 29, 0.70812061038005636, 3], [33, 34, 0.66020821023721221, 3], [36, 29, 0.81117409691756392, 3], [39, 34, 0.70629416690338653, 3], [42, 29, 0.73610428492953328, 3], [45, 34, 0.67224868592999165, 3], [48, 29, 0.86358506491378484, 3], [51, 34, 0.70207585661769767, 3], [54, 29, 0.72165965378924424, 3], [57, 34, 0.73464600760895349, 3], [60, 29, 0.76646135730852416, 3], [63, 34, 0.7002474528709377, 3], [66, 29, 0.71362336661016657, 3], [69, 34, 0.6757466245495779, 3], [72, 29, 0.76143897535892247, 3], [75, 34, 0.68217145739800344, 3], [78, 29, 0.74893405173379535, 3], [81, 34, 0.68170173360898101, 3]],
+[[0, 46, 0.97552266177916414, 3], [3, 46, 0.69986456113843698, 3], [6, 46, 0.69920435077044829, 3], [9, 46, 0.68740449998560882, 3], [12, 46, 0.88277391580708886, 3], [15, 46, 0.66925646894688273, 3], [18, 46, 0.74770620434689916, 3], [21, 46, 0.67135592880972694, 3], [24, 46, 0.89774664547381655, 3], [27, 46, 0.69928909955820906, 3], [30, 46, 0.68586466042006333, 3], [33, 46, 0.70895768943399751, 3], [36, 46, 0.84986669051226882, 3], [39, 46, 0.69793940684844358, 3], [42, 46, 0.6857910200277757, 3], [45, 46, 0.7027226374974711, 3], [48, 46, 0.83941134712876864, 3], [51, 46, 0.68083838722102341, 3], [54, 46, 0.65984033342204407, 3], [57, 46, 0.672590746789269, 3], [60, 46, 0.78609392331073746, 3], [63, 46, 0.6701865146944902, 3], [66, 46, 0.65883357444463531, 3], [69, 46, 0.66052134903071158, 3], [72, 46, 0.79184461812687923, 3], [75, 46, 0.70456329331096756, 3], [78, 46, 0.74654736852481196, 3], [81, 46, 0.66733452245976943, 3], [84, 46, 0.77157082412778433, 3], [87, 46, 0.70080352704958349, 3], [90, 46, 0.74979144436734291, 3], [93, 46, 0.70122642685542769, 3]],
+[[0, 46, 0.91932873393188252, 3], [3, 46, 0.71321659243671531, 3], [6, 46, 0.69059282145586165, 3], [9, 46, 0.65981195427017847, 3], [12, 46, 0.76030046411551888, 3], [15, 46, 0.74796721544405365, 3], [18, 46, 0.74057924055206414, 3], [21, 46, 0.66775250665453612, 3], [24, 46, 0.78281128191107929, 3], [27, 46, 0.69803584249894335, 3], [30, 46, 0.69895782528552974, 3], [33, 46, 0.723529751804181, 3], [36, 46, 0.80851570969064313, 3], [39, 46, 0.67139974267760627, 3], [42, 46, 0.72305899861262568, 3], [45, 46, 0.68945043870105571, 3], [48, 46, 0.75610316508036135, 3], [51, 46, 0.71823308483606174, 3], [54, 46, 0.66865797792771575, 3], [57, 46, 0.74657517001426033, 3], [60, 46, 0.87044953529572178, 3], [63, 46, 0.7130297562104132, 3], [66, 46, 0.71351325060250659, 3], [69, 46, 0.69019654834356781, 3], [72, 46, 0.83474178641883123, 3], [75, 46, 0.74929800588928508, 3], [78, 46, 0.68958541192891742, 3], [81, 46, 0.74928116715885551, 3], [84, 46, 0.88840328031723259, 3], [87, 46, 0.65862046873085311, 3], [90, 46, 0.70878836088886332, 3], [93, 46, 0.73885958288345677, 3], [96, 46, 0.85247737085377939, 3], [99, 46, 0.6783759890234814, 3], [102, 46, 0.6825784264775937, 3], [105, 46, 0.738542711969846, 3]],
+[[0, 31, 0.94776975142287834, 3], [3, 41, 0.65590177297158159, 3], [6, 31, 0.65337976704789735, 3], [9, 41, 0.73408902426583011, 3], [12, 31, 0.84968220502602998, 3], [15, 41, 0.70095191213245678, 3], [18, 31, 0.74876524478508144, 3], [21, 41, 0.69533166848117667, 3], [24, 31, 0.85332557823377264, 3], [27, 41, 0.73955678051059492, 3], [30, 31, 0.7252274828939308, 3], [33, 41, 0.7032040738565718, 3], [36, 31, 0.78158754870669478, 3], [39, 41, 0.72361628589076143, 3], [42, 31, 0.71439844284783904, 3], [45, 41, 0.69894336744910734, 3], [48, 31, 0.8106183090724538, 3], [51, 41, 0.70613671246994514, 3], [54, 31, 0.69530745092939739, 3], [57, 41, 0.73359899948360163, 3], [60, 31, 0.89516116030556148, 3], [63, 41, 0.7090745940640214, 3], [66, 31, 0.6884971156573102, 3], [69, 41, 0.74782082130824079, 3], [72, 31, 0.83716873320941154, 3], [75, 41, 0.72114893479035447, 3], [78, 31, 0.68677684180105225, 3], [81, 41, 0.66642756025084182, 3], [84, 31, 0.80013804508992159, 3], [87, 41, 0.68693476263098707, 3], [90, 31, 0.66028364009529072, 3], [93, 41, 0.66229596381452704, 3], [96, 31, 0.88127393320261094, 3], [99, 41, 0.73074370583503645, 3], [102, 31, 0.66781201866137407, 3], [105, 41, 0.66545630618869744, 3], [108, 31, 0.75361150079657258, 3], [111, 41, 0.71854024397575067, 3], [114, 31, 0.72973386512808813, 3], [117, 41, 0.66432200189141311, 3]],
+[[0, 36, 0.98068641760396869, 3], [3, 36, 0.7087581726036245, 3], [6, 36, 0.73999909050052226, 3], [9, 36, 0.66058393549418448, 3], [12, 36, 0.77292030332125072, 3], [15, 36, 0.74928587658650037, 3], [18, 36, 0.73332890611996115, 3], [21, 36, 0.67888400552814432, 3], [24, 36, 0.82060696293857305, 3], [27, 36, 0.66036967490951815, 3], [30, 36, 0.73419017150661336, 3], [33, 36, 0.6664381430435613, 3], [36, 36, 0.85067121782355692, 3], [39, 36, 0.73011586871926704, 3], [42, 36, 0.65481380650717536, 3], [45, 36, 0.66578703136289474, 3], [48, 36, 0.76056215071595079, 3], [51, 36, 0.72235630871144041, 3], [54, 36, 0.72422860004193734, 3], [57, 36, 0.71143393824413537, 3], [60, 36, 0.85734534202384116, 3], [63, 36, 0.66017915357256374, 3], [66, 36, 0.67171228226548818, 3], [69, 36, 0.71272669092748564, 3], [72, 36, 0.8315199331948937, 3], [75, 36, 0.69174347595086216, 3], [78, 36, 0.72788282047363517, 3], [81, 36, 0.69392643322409353, 3], [84, 36, 0.79770454659537937, 3], [87, 36, 0.72739460247920895, 3], [90, 36, 0.67048753950153672, 3], [93, 36, 0.72736539131030409, 3], [96, 36, 0.80285116841828175, 3], [99, 36, 0.713718809999492, 3], [102, 36, 0.73880912377713248, 3], [105, 36, 0.68062980566222953, 3], [108, 36, 0.75214765954225038, 3], [111, 36, 0.6981475157815108, 3], [114, 36, 0.68829052906441512, 3], [117, 36, 0.71685831080048168, 3], [120, 36, 0.75248202994273161, 3], [123, 36, 0.72214570567114489, 3], [126, 36, 0.71084553127838324, 3], [129, 36, 0.65197071023926312, 3]],
+[[0, 46, 0.90280678713865126, 3], [3, 32, 0.67395093764164715, 3], [6, 46, 0.73109179842106886, 3], [9, 32, 0.67170914331957565, 3], [12, 46, 0.80307077663550952, 3], [15, 32, 0.73129358320657789, 3], [18, 46, 0.71903360938852634, 3], [21, 32, 0.7248234653347696, 3], [24, 46, 0.81714859690272912, 3], [27, 32, 0.66348355767076483, 3], [30, 46, 0.67016212651490314, 3], [33, 32, 0.66154132833276358, 3], [36, 46, 0.88048058164239262, 3], [39, 32, 0.6890403995494504, 3], [42, 46, 0.73418414850798452, 3], [45, 32, 0.749772789108889, 3], [48, 46, 0.84890407655338507, 3], [51, 32, 0.65268531302671839, 3], [54, 46, 0.73129437939088149, 3], [57, 32, 0.72989177801115146, 3], [60, 46, 0.85554234610943947, 3], [63, 32, 0.69025635663809293, 3], [66, 46, 0.65272676456968093, 3], [69, 32, 0.70601800003449144, 3], [72, 46, 0.75941955733003041, 3], [75, 32, 0.70531362992122248, 3], [78, 46, 0.70793039214726661, 3], [81, 32, 0.7365052564921184, 3], [84, 46, 0.75567849777664398, 3], [87, 32, 0.70811048770262452, 3], [90, 46, 0.73216776268556005, 3], [93, 32, 0.68187859580205246, 3], [96, 46, 0.82545401413391595, 3], [99, 32, 0.66695370191476799, 3], [102, 46, 0.73641117798869293, 3], [105, 32, 0.74101257223922112, 3], [108, 46, 0.87195002931605747, 3], [111, 32, 0.74482451358298352, 3], [114, 46, 0.66132022723666595, 3], [117, 32, 0.65565430253830792, 3], [120, 46, 0.79306575515647193, 3], [123, 32, 0.72800781978306695, 3], [126, 46, 0.72030742526565961, 3], [129, 32, 0.71176978526356594, 3], [132, 46, 0.79068051095915104, 3], [135, 32, 0.72962608505954019, 3], [138, 46, 0.66901942227248201, 3], [141, 32, 0.68098356883561206, 3]],
+[[0, 24, 0.94996784213780716, 3], [3, 24, 0.71282116076692614, 3], [6, 24, 0.71871672529819786, 3], [9, 24, 0.66273047469727364, 3], [12, 24, 0.766507966649846, 3], [15, 24, 0.69353990056816539, 3], [18, 24, 0.69938860941518211, 3], [21, 24, 0.74598532159248276, 3], [24, 24, 0.81294051419026536, 3], [27, 24, 0.73917500448603701, 3], [30, 24, 0.73681950265708818, 3], [33, 24, 0.69273172587524134, 3], [36, 24, 0.86922807695844395, 3], [39, 24, 0.72763792224268364, 3], [42, 24, 0.73950073663749138, 3], [45, 24, 0.69387556505269421, 3], [48, 24, 0.89848698451539277, 3], [51, 24, 0.6642855396985583, 3], [54, 24, 0.6953886068113142, 3], [57, 24, 0.73159770052310524, 3], [60, 24, 0.83500844769724591, 3], [63, 24, 0.71347376140571228, 3], [66, 24, 0.69196630602724796, 3], [69, 24, 0.65183324905576068, 3], [72, 24, 0.82198645068199483, 3], [75, 24, 0.69589915382384626, 3], [78, 24, 0.70111834688348473, 3], [81, 24, 0.67827302553147273, 3], [84, 24, 0.88450178396412449, 3], [87, 24, 0.7343604369087634, 3], [90, 24, 0.6827419001291879, 3], [93, 24, 0.73930446848684306, 3], [96, 24, 0.79120977614291588, 3], [99, 24, 0.70891952101331734, 3], [102, 24, 0.65553023868092064, 3], [105, 24, 0.68977243408292255, 3], [108, 24, 0.77703598487780079, 3], [111, 24, 0.69538143527301099, 3], [114, 24, 0.68306239968458615, 3], [117, 24, 0.74317390320358623, 3], [120, 24, 0.80334349366584712, 3], [123, 24, 0.68405445266280651, 3], [126, 24, 0.66659853120983548, 3], [129, 24, 0.71501227960244906, 3], [132, 24, 0.82324897961345989, 3], [135, 24, 0.70431450253673944, 3], [138, 24, 0.667598228369227, 3], [141, 24, 0.7230375182466019, 3], [144, 24, 0.79965565220353951, 3], [147, 24, 0.73817545621760028, 3], [150, 24, 0.7440681955330154, 3], [153, 24, 0.7228687635049964, 3]],
+[[0, 24, 0.99966154454043432, 3], [3, 36, 0.72418981430429774, 3], [6, 24, 0.70518891566238151, 3], [9, 36, 0.69807416917517928, 3], [12, 24, 0.79855094267840476, 3], [15, 36, 0.73561616111895778, 3], [18, 24, 0.70810061059214147, 3], [21, 36, 0.68153876715530248, 3], [24, 24, 0.76427434335396438, 3], [27, 36, 0.70006637530314653, 3], [30, 24, 0.73615450050080466, 3], [33, 36, 0.68792120830514814, 3], [36, 24, 0.76588204089615519, 3], [39, 36, 0.67574733551391175, 3], [42, 24, 0.65061915087821531, 3], [45, 36, 0.69092660922113514, 3], [48, 24, 0.85249527480752418, 3], [51, 36, 0.72230801799116062, 3], [54, 24, 0.73274518894797158, 3], [57, 36, 0.66329666666212961, 3], [60, 24, 0.75175967538048838, 3], [63, 36, 0.67622270427738218, 3], [66, 24, 0.72583832150850824, 3], [69, 36, 0.6917055364091359, 3], [72, 24, 0.78348574978638708, 3], [75, 36, 0.73000322507677406, 3], [78, 24, 0.73063779629050585, 3], [81, 36, 0.65402740075456278, 3], [84, 24, 0.80011577068599138, 3], [87, 36, 0.71303511836768496, 3], [90, 24, 0.6934017049718888, 3], [93, 36, 0.70343131927951874, 3], [96, 24, 0.78259572323155779, 3], [99, 36, 0.72858981621488073, 3], [102, 24, 0.7481560231694101, 3], [105, 36, 0.68755827931530411, 3], [108, 24, 0.88206819747354581, 3], [111, 36, 0.72616984943512353, 3], [114, 24, 0.74256950141685751, 3], [117, 36, 0.66158134924215217, 3], [120, 24, 0.76246240828234202, 3], [123, 36, 0.74856742595044767, 3], [126, 24, 0.68420976932639477, 3], [129, 36, 0.66434498040744627, 3], [132, 24, 0.81473844231294035, 3], [135, 36, 0.7131631978481362, 3], [138, 24, 0.73930693395247316, 3], [141, 36, 0.65070235342238492, 3], [144, 24, 0.84393407785915298, 3], [147, 36, 0.7394095318691658, 3], [150, 24, 0.70080455363741645, 3], [153, 36, 0.70464392031853151, 3], [156, 24, 0.8525907875365486, 3], [159, 36, 0.726693437214738, 3], [162, 24, 0.74428130134819526, 3], [165, 36, 0.65639627649148768, 3]],
+[[0, 43, 0.96932979317400125, 3], [3, 48, 0.72174357367422148, 3], [6, 43, 0.67568473222070091, 3], [9, 48, 0.67902133423992483, 3], [12, 43, 0.77530901011594411, 3], [15, 48, 0.65763043577326386, 3], [18, 43, 0.72235842039905918, 3], [21, 48, 0.73049883177095876, 3], [24, 43, 0.84674159070444155, 3], [27, 48, 0.68140428605264913, 3], [30, 43, 0.70876217651075257, 3], [33, 48, 0.71138176998035574, 3], [36, 43, 0.81157816581707343, 3], [39, 48, 0.72597690885886701, 3], [42, 43, 0.65859686769784942, 3], [45, 48, 0.67944998870694162, 3], [48, 43, 0.78805682820876111, 3], [51, 48, 0.72573389983179815, 3], [54, 43, 0.72752262764470577, 3], [57, 48, 0.71254422734755252, 3], [60, 43, 0.81410989190505889, 3], [63, 48, 0.74347871298751889, 3], [66, 43, 0.65280748129230837, 3], [69, 48, 0.734768604573383, 3], [72, 43, 0.8660114662893712, 3], [75, 48, 0.67310548891235633, 3], [78, 43, 0.65811503908707281, 3], [81, 48, 0.73069394322859826, 3], [84, 43, 0.81497037169863573, 3], [87, 48, 0.66833091293351143, 3], [90, 43, 0.66290555752105784, 3], [93, 48, 0.73975604912512694, 3], [96, 43, 0.85298710843815095, 3], [99, 48, 0.72481474740676421, 3], [102, 43, 0.71748055944001021, 3], [105, 48, 0.66779334973360249, 3], [108, 43, 0.88148481633884068, 3], [111, 48, 0.70970250344499031, 3], [114, 43, 0.66045623145991794, 3], [117, 48, 0.70323316891770704, 3], [120, 43, 0.75633466439463315, 3], [123, 48, 0.7445744239461779, 3], [126, 43, 0.71390527840946916, 3], [129, 48, 0.65618291702082587, 3], [132, 43, 0.84268279604292473, 3], [135, 48, 0.68148552249145045, 3], [138, 43, 0.7058720811582202, 3], [141, 48, 0.7050479148335731, 3], [144, 43, 0.8114068029400161, 3], [147, 48, 0.68990423286144009, 3], [150, 43, 0.67216246535605217, 3], [153, 48, 0.65316101456349407, 3], [156, 43, 0.81678837823150263, 3], [159, 48, 0.69329211099146271, 3], [162, 43, 0.72741608592838003, 3], [165, 48, 0.68352397512556962, 3], [168, 43, 0.85539312382434651, 3], [171, 48, 0.67189211679880723, 3], [174, 43, 0.68223496609823819, 3], [177, 48, 0.73544014586003525, 3]],
+[[0, 43, 0.90070611794486921, 3], [3, 34, 0.74282268176871691, 3], [6, 43, 0.68756710950549593, 3], [9, 34, 0.71555053212403752, 3], [12, 43, 0.76034242153260345, 3], [15, 34, 0.67730951568915243, 3], [18, 43, 0.69867346554167542, 3], [21, 34, 0.72558397880899772, 3], [24, 43, 0.85196281806864038, 3], [27, 34, 0.71570624740986799, 3], [30, 43, 0.73508694738983504, 3], [33, 34, 0.69032090145731495, 3], [36, 43, 0.87437358820505495, 3], [39, 34, 0.67342402729972539, 3], [42, 43, 0.69178382616826939, 3], [45, 34, 0.65336233070370653, 3], [48, 43, 0.85800776964317116, 3], [51, 34, 0.69188256970622852, 3], [54, 43, 0.73181839013005545, 3], [57, 34, 0.70770196933922702, 3], [60, 43, 0.83915983734872024, 3], [63, 34, 0.65217804226086096, 3], [66, 43, 0.73448277533520967, 3], [69, 34, 0.73179836697977318, 3], [72, 43, 0.87487891765990311, 3], [75, 34, 0.67044362226809739, 3], [78, 43, 0.70264371065192099, 3], [81, 34, 0.71179057931519618, 3], [84, 43, 0.8740242335524433, 3], [87, 34, 0.69210335033522996, 3], [90, 43, 0.73057490552554627, 3], [93, 34, 0.65742593937409655, 3], [96, 43, 0.897216068824921, 3], [99, 34, 0.67552534074440329, 3], [102, 43, 0.74842407010643885, 3], [105, 34, 0.72578731701562393, 3], [108, 43, 0.84346855188787839, 3], [111, 34, 0.74231512292010116, 3], [114, 43, 0.67456721807401698, 3], [117, 34, 0.70819009938384825, 3], [120, 43, 0.81123700980151492, 3], [123, 34, 0.72871523616383049, 3], [126, 43, 0.74519955954895623, 3], [129, 34, 0.70862154181656833, 3], [132, 43, 0.77956677877797065, 3], [135, 34, 0.7194435062283101, 3], [138, 43, 0.74730077767578429, 3], [141, 34, 0.73315911209236784, 3], [144, 43, 0.75119069282266837, 3], [147, 34, 0.72228001165625955, 3], [150, 43, 0.69583937906463833, 3], [153, 34, 0.72087765015931737, 3], [156, 43, 0.80052711545829425, 3], [159, 34, 0.67415900077645352, 3], [162, 43, 0.71667846452839012, 3], [165, 34, 0.73559050106293478, 3], [168, 43, 0.88190771301091475, 3], [171, 34, 0.70108873146445061, 3], [174, 43, 0.74833356473128465, 3], [177, 34, 0.74947652198211712, 3], [180, 43, 0.81158745527123677, 3], [183, 34, 0.71436322179635559, 3], [186, 43, 0.69504136381694614, 3], [189, 34, 0.69881967450638305, 3]]],
+18: [[[0, 31, 0.91414618042602414, 6], [6, 24, 0.71298982497012386, 6], [12, 32, 0.81303870130608091, 6], [18, 31, 0.70146204478484941, 6]],
+[[0, 24, 0.97420972018144714, 6], [6, 31, 0.65348467360822149, 6], [12, 26, 0.77999759911164923, 6], [18, 24, 0.71499756985534457, 6], [24, 31, 0.76545679617275186, 6], [30, 26, 0.72464043627105301, 6]],
+[[0, 32, 0.96839746371031044, 6], [6, 24, 0.7383135519270827, 6], [12, 26, 0.83678727084047755, 6], [18, 32, 0.68084753804273135, 6], [24, 24, 0.89662063033423611, 6], [30, 26, 0.72027994167313425, 6], [36, 32, 0.88742383921005208, 6], [42, 24, 0.73401091932155238, 6]],
+[[0, 26, 0.96443993724085353, 6], [6, 26, 0.70614731515727813, 6], [12, 26, 0.86340896185180149, 6], [18, 26, 0.74664344369869817, 6], [24, 26, 0.86543903819381884, 6], [30, 26, 0.70031407028854142, 6], [36, 26, 0.80326482970805313, 6], [42, 26, 0.70401718046397721, 6], [48, 26, 0.81717235550659439, 6], [54, 26, 0.73439827435161797, 6]],
+[[0, 26, 0.93948955420019553, 6], [6, 48, 0.65732513243916579, 6], [12, 46, 0.88186182846858496, 6], [18, 26, 0.70620376639714333, 6], [24, 48, 0.89829471318820886, 6], [30, 46, 0.70047567652877019, 6], [36, 26, 0.81028053931891619, 6], [42, 48, 0.6945929689786895, 6], [48, 46, 0.82544710578597713, 6], [54, 26, 0.68096995635386004, 6], [60, 48, 0.7948285180804705, 6], [66, 46, 0.72425718868680433, 6]],
+[[0, 41, 0.92057821058714318, 6], [6, 44, 0.65222437973498593, 6], [12, 24, 0.78839760337611409, 6], [18, 41, 0.66331590721149958, 6], [24, 44, 0.79211585725194678, 6], [30, 24, 0.67054673328728542, 6], [36, 41, 0.86212326778691173, 6], [42, 44, 0.69940801572645628, 6], [48, 24, 0.83188758283454201, 6], [54, 41, 0.74770707328981179, 6], [60, 44, 0.85141841724608025, 6], [66, 24, 0.74140482326703583, 6], [72, 41, 0.87846458088135293, 6], [78, 44, 0.73968773189193271, 6]],
+[[0, 41, 0.94009838336255835, 6], [6, 24, 0.74321383382950013, 6], [12, 24, 0.86544259358995879, 6], [18, 41, 0.67390648995027747, 6], [24, 24, 0.81848211684852012, 6], [30, 24, 0.72188229872365828, 6], [36, 41, 0.81199373434272537, 6], [42, 24, 0.73862007747014657, 6], [48, 24, 0.78500136053179559, 6], [54, 41, 0.74262644148484658, 6], [60, 24, 0.87569372608219065, 6], [66, 24, 0.72781277908185293, 6], [72, 41, 0.88136371399873692, 6], [78, 24, 0.68464806384325505, 6], [84, 24, 0.81710953214328508, 6], [90, 41, 0.73295279908643851, 6]],
+[[0, 38, 0.95847151264927133, 6], [6, 38, 0.72675011545177171, 6], [12, 46, 0.88872965225929113, 6], [18, 38, 0.67495323003089802, 6], [24, 38, 0.77612948128315384, 6], [30, 46, 0.66215329978950488, 6], [36, 38, 0.82684692918756486, 6], [42, 38, 0.73556518773644564, 6], [48, 46, 0.83193093370565208, 6], [54, 38, 0.72003903534059566, 6], [60, 38, 0.77075151079904158, 6], [66, 46, 0.66929193857581626, 6], [72, 38, 0.82784830145602162, 6], [78, 38, 0.67455784048709766, 6], [84, 46, 0.86308083323833107, 6], [90, 38, 0.7482013005918986, 6], [96, 38, 0.75696777108937152, 6], [102, 46, 0.74637868553636455, 6]],
+[[0, 36, 0.92447775497671825, 6], [6, 48, 0.74898108333582325, 6], [12, 29, 0.78663337787438081, 6], [18, 36, 0.65611981652688578, 6], [24, 48, 0.8105687254909405, 6], [30, 29, 0.74161952353006511, 6], [36, 36, 0.86338804652305545, 6], [42, 48, 0.69244908097989222, 6], [48, 29, 0.78251088805851521, 6], [54, 36, 0.65973106118254299, 6], [60, 48, 0.87082007465301114, 6], [66, 29, 0.72185529587579123, 6], [72, 36, 0.76260547137057366, 6], [78, 48, 0.71322132319309894, 6], [84, 29, 0.8698480505616164, 6], [90, 36, 0.74330892636732815, 6], [96, 48, 0.75737903656665917, 6], [102, 29, 0.70274783895554316, 6], [108, 36, 0.88525634845631163, 6], [114, 48, 0.67840890071368631, 6]],
+[[0, 36, 0.99295245890118389, 6], [6, 38, 0.65655867395509682, 6], [12, 41, 0.81092730969330673, 6], [18, 36, 0.74755276683545802, 6], [24, 38, 0.80157940166642683, 6], [30, 41, 0.7064467513123267, 6], [36, 36, 0.85549444601390323, 6], [42, 38, 0.65451918363439476, 6], [48, 41, 0.81854341475983905, 6], [54, 36, 0.69039973128191101, 6], [60, 38, 0.88866133699943328, 6], [66, 41, 0.73502888347862672, 6], [72, 36, 0.8062119553326883, 6], [78, 38, 0.72921143414383771, 6], [84, 41, 0.86630353159134776, 6], [90, 36, 0.68782836978771866, 6], [96, 38, 0.80356547921222932, 6], [102, 41, 0.69164971959839694, 6], [108, 36, 0.88119058150873397, 6], [114, 38, 0.67792047941432731, 6], [120, 41, 0.8623603156626285, 6], [126, 36, 0.7304323057199329, 6]],
+[[0, 46, 0.94455882891483811, 6], [6, 32, 0.6810109373883827, 6], [12, 26, 0.87276983732939439, 6], [18, 46, 0.73947851796835629, 6], [24, 32, 0.78333238100616298, 6], [30, 26, 0.69772457494512086, 6], [36, 46, 0.78120313282331566, 6], [42, 32, 0.74411907655668541, 6], [48, 26, 0.83798882293933119, 6], [54, 46, 0.68423534706676037, 6], [60, 32, 0.81270950196556724, 6], [66, 26, 0.68382277221523335, 6], [72, 46, 0.79647688385855819, 6], [78, 32, 0.74788918762374357, 6], [84, 26, 0.8793117655163567, 6], [90, 46, 0.72417061948939387, 6], [96, 32, 0.86054454376731371, 6], [102, 26, 0.7053740118504882, 6], [108, 46, 0.87171422383591191, 6], [114, 32, 0.67032848719549132, 6], [120, 26, 0.83949593519135435, 6], [126, 46, 0.71247187183526028, 6], [132, 32, 0.78113447005843439, 6], [138, 26, 0.66411769371662599, 6]],
+[[0, 26, 0.90565978750069465, 6], [6, 24, 0.67681864236441625, 6], [12, 36, 0.78586352121137937, 6], [18, 26, 0.71662389509200997, 6], [24, 24, 0.81836354230284503, 6], [30, 36, 0.66640355255582384, 6], [36, 26, 0.80442025759528168, 6], [42, 24, 0.67140460828688076, 6], [48, 36, 0.89157511528241817, 6], [54, 26, 0.71753496307853903, 6], [60, 24, 0.78986310628124778, 6], [66, 36, 0.7001842582953044, 6], [72, 26, 0.80250928733914095, 6], [78, 24, 0.67802578112400336, 6], [84, 36, 0.88866503232395422, 6], [90, 26, 0.68689690864617647, 6], [96, 24, 0.75556326417677289, 6], [102, 36, 0.65608272171718496, 6], [108, 26, 0.8426217626322362, 6], [114, 24, 0.67980098180445103, 6], [120, 36, 0.87918556644956747, 6], [126, 26, 0.71480632484083184, 6], [132, 24, 0.76449998432112509, 6], [138, 36, 0.72310965206758104, 6], [144, 26, 0.8147357033027981, 6], [150, 24, 0.72242852551843351, 6]],
+[[0, 32, 0.9891347085579848, 6], [6, 36, 0.73948461475056693, 6], [12, 36, 0.84663465433464979, 6], [18, 32, 0.71105824965696485, 6], [24, 36, 0.85158941097494467, 6], [30, 36, 0.69583467680036515, 6], [36, 32, 0.75897954529379597, 6], [42, 36, 0.70952493107413617, 6], [48, 36, 0.81384898433683095, 6], [54, 32, 0.71840608920653048, 6], [60, 36, 0.75884114227416599, 6], [66, 36, 0.6568825801183944, 6], [72, 32, 0.80931947506039315, 6], [78, 36, 0.66498770263468931, 6], [84, 36, 0.88957526419840982, 6], [90, 32, 0.67516181964593269, 6], [96, 36, 0.87455783664068143, 6], [102, 36, 0.70414890031389965, 6], [108, 32, 0.81041903265786275, 6], [114, 36, 0.74647617019814616, 6], [120, 36, 0.80494267638514438, 6], [126, 32, 0.68439575086321569, 6], [132, 36, 0.83772021370581284, 6], [138, 36, 0.7207547932256424, 6], [144, 32, 0.84417151210749997, 6], [150, 36, 0.67110055897756804, 6], [156, 36, 0.85180644696505547, 6], [162, 32, 0.70408297062537373, 6]],
+[[0, 36, 0.94589750324498256, 6], [6, 31, 0.70650683889275501, 6], [12, 34, 0.89678386444311187, 6], [18, 36, 0.7116444156767342, 6], [24, 31, 0.89796917050081404, 6], [30, 34, 0.65024508188908459, 6], [36, 36, 0.8008470032993964, 6], [42, 31, 0.68252737723740464, 6], [48, 34, 0.85843801756684446, 6], [54, 36, 0.68629079690778361, 6], [60, 31, 0.80946932600696209, 6], [66, 34, 0.73490689580634017, 6], [72, 36, 0.89175551635831085, 6], [78, 31, 0.69913107125809237, 6], [84, 34, 0.81483156589591899, 6], [90, 36, 0.73517468116067142, 6], [96, 31, 0.82596648659422511, 6], [102, 34, 0.74675078788427196, 6], [108, 36, 0.77790562228419935, 6], [114, 31, 0.67204065617652731, 6], [120, 34, 0.76399141844249108, 6], [126, 36, 0.65249573238827652, 6], [132, 31, 0.86095508523032638, 6], [138, 34, 0.65472001970391147, 6], [144, 36, 0.77812733868646256, 6], [150, 31, 0.68510817247022471, 6], [156, 34, 0.88989614259769378, 6], [162, 36, 0.73552798134010744, 6], [168, 31, 0.76926192377091696, 6], [174, 34, 0.74873584937582416, 6]],
+[[0, 36, 0.94710018697646181, 6], [6, 36, 0.72684070002106593, 6], [12, 24, 0.85379997602992486, 6], [18, 36, 0.70912352509215126, 6], [24, 36, 0.82986901252819634, 6], [30, 24, 0.70840303930267656, 6], [36, 36, 0.80164657570930964, 6], [42, 36, 0.73841986592218956, 6], [48, 24, 0.80721952126894747, 6], [54, 36, 0.68374162078322098, 6], [60, 36, 0.77333538062365392, 6], [66, 24, 0.69864655313561985, 6], [72, 36, 0.86252711987885078, 6], [78, 36, 0.7448207834776871, 6], [84, 24, 0.85545685230388446, 6], [90, 36, 0.66720136156626852, 6], [96, 36, 0.76588239857602491, 6], [102, 24, 0.66745273686057272, 6], [108, 36, 0.78249428968569967, 6], [114, 36, 0.67057374235540768, 6], [120, 24, 0.85316687911401845, 6], [126, 36, 0.67726681032408231, 6], [132, 36, 0.88903529313140184, 6], [138, 24, 0.6519536663260781, 6], [144, 36, 0.76972252753882509, 6], [150, 36, 0.68471346262760124, 6], [156, 24, 0.88373813895967146, 6], [162, 36, 0.69987876485566869, 6], [168, 36, 0.85836647298749191, 6], [174, 24, 0.71623382999520202, 6], [180, 36, 0.85712602985806086, 6], [186, 36, 0.7496672794348419, 6]]],
+19: [[[0, 34, 0.94343743899849775, 12], [12, 48, 0.87445529179868864, 12]],
+[[0, 26, 0.99207816588077435, 6], [6, 24, 0.74385675189819744, 6], [12, 38, 0.79547069010091043, 12], [24, 26, 0.88615671714874711, 6], [30, 24, 0.74777031301955554, 6]],
+[[0, 24, 0.99927423561350259, 12], [12, 24, 0.78692866392335359, 6], [18, 24, 0.69262010288662523, 12], [30, 24, 0.72390730316997276, 12], [42, 24, 0.666115258605529, 6]],
+[[0, 41, 0.99357613169079517, 6], [6, 43, 0.7073630308078257, 12], [18, 46, 0.67165574765193869, 6], [24, 41, 0.86565397555446555, 6], [30, 43, 0.70515213162208334, 6], [36, 46, 0.83971310744003536, 6], [42, 41, 0.74076808030659258, 6], [48, 43, 0.87503158586961882, 12]],
+[[0, 31, 0.9123356313814982, 12], [12, 24, 0.83145940848174249, 12], [24, 31, 0.76565291891357168, 6], [30, 31, 0.72491054618626705, 12], [42, 24, 0.68248618794605331, 12], [54, 31, 0.67093741643924965, 12], [66, 31, 0.70817819944886784, 6]],
+[[0, 46, 0.92394070210858636, 12], [12, 29, 0.78872650461199467, 6], [18, 26, 0.72562351702164596, 12], [30, 46, 0.74624235514010628, 12], [42, 29, 0.74032753000068696, 12], [54, 26, 0.70470937639439069, 12], [66, 46, 0.66702062408473006, 6], [72, 29, 0.76288048605548153, 6], [78, 26, 0.7329026924423967, 6]],
+[[0, 46, 0.9218207823690846, 6], [6, 46, 0.72440415689507387, 6], [12, 46, 0.88291257333910766, 6], [18, 46, 0.65488744402675281, 6], [24, 46, 0.80297114145541504, 12], [36, 46, 0.78810916398459085, 6], [42, 46, 0.66855234661045393, 12], [54, 46, 0.69394552129400777, 12], [66, 46, 0.70684436588875521, 6], [72, 46, 0.8222465872758461, 6], [78, 46, 0.68257743752959854, 6], [84, 46, 0.87804691525871004, 12]],
+[[0, 34, 0.91712879391530266, 12], [12, 24, 0.79097271454287843, 6], [18, 31, 0.66997267166612795, 12], [30, 34, 0.65215984388685366, 6], [36, 24, 0.84259825042217762, 6], [42, 31, 0.66169689160942169, 12], [54, 34, 0.73587904207459476, 6], [60, 24, 0.78907779607308481, 12], [72, 31, 0.80588822352186296, 6], [78, 34, 0.67792808610894528, 12], [90, 24, 0.67743285776228535, 6], [96, 31, 0.80550702000857322, 12]],
+[[0, 32, 0.96581436599992743, 6], [6, 38, 0.73648904141743765, 6], [12, 29, 0.82737735764129694, 6], [18, 32, 0.68251833638103676, 12], [30, 38, 0.68786770972571565, 6], [36, 29, 0.86036448686333278, 6], [42, 32, 0.6633101084571017, 6], [48, 38, 0.77602792136189669, 12], [60, 29, 0.86839390590114118, 12], [72, 32, 0.75505394707711893, 12], [84, 38, 0.87067826104324997, 12], [96, 29, 0.89912005558077346, 12], [108, 32, 0.80977388681856033, 12]],
+[[0, 36, 0.95237975305506806, 12], [12, 43, 0.79782767577304281, 6], [18, 44, 0.65882741671892353, 12], [30, 36, 0.70293047178636514, 12], [42, 43, 0.72147256122516235, 6], [48, 44, 0.84008159104437585, 6], [54, 36, 0.74811384646756707, 6], [60, 43, 0.82222632655187256, 12], [72, 44, 0.87448240113171305, 6], [78, 36, 0.70588912234932855, 6], [84, 43, 0.75276075255447406, 12], [96, 44, 0.87242390448924156, 6], [102, 36, 0.66594745974422076, 12], [114, 43, 0.67948801775363488, 6], [120, 44, 0.86992628936869776, 12]],
+[[0, 41, 0.99112777222264126, 12], [12, 43, 0.89087589773039566, 6], [18, 24, 0.66665736656470376, 6], [24, 41, 0.81555866935308441, 12], [36, 43, 0.78481740812663858, 6], [42, 24, 0.7385447068904949, 12], [54, 41, 0.73780369565835724, 12], [66, 43, 0.65535713405674512, 6], [72, 24, 0.83339358103909855, 6], [78, 41, 0.68674436638729652, 12], [90, 43, 0.70567375337769089, 6], [96, 24, 0.8875537063905713, 6], [102, 41, 0.65666804404080437, 12], [114, 43, 0.74554552396077245, 12], [126, 24, 0.66715146929363489, 6], [132, 41, 0.80316538377684377, 12]],
+[[0, 44, 0.93954441258885535, 12], [12, 31, 0.81913320000678491, 6], [18, 36, 0.680695532249593, 6], [24, 44, 0.8366894534153847, 12], [36, 31, 0.8026552596243991, 6], [42, 36, 0.71772009999836484, 12], [54, 44, 0.69858297237761746, 12], [66, 31, 0.67484326856240484, 12], [78, 36, 0.74191565608174237, 6], [84, 44, 0.80184860855811824, 12], [96, 31, 0.80682965406632745, 12], [108, 36, 0.8142615979036294, 12], [120, 44, 0.8607866310901513, 12], [132, 31, 0.75411793727840359, 6], [138, 36, 0.71103864722197963, 6], [144, 44, 0.76985401780218166, 12]],
+[[0, 24, 0.94644716188105837, 12], [12, 36, 0.85503731016428808, 6], [18, 36, 0.71352189483536232, 6], [24, 24, 0.79053536431115368, 6], [30, 36, 0.70695166452783642, 12], [42, 36, 0.65455966526918685, 6], [48, 24, 0.76423504228572459, 12], [60, 36, 0.76915281186912199, 6], [66, 36, 0.70310761676294375, 12], [78, 24, 0.74492489152756003, 12], [90, 36, 0.71460228182527263, 12], [102, 36, 0.69235583999833594, 12], [114, 24, 0.67593345603784627, 6], [120, 36, 0.84891889178439683, 6], [126, 36, 0.73322349229537309, 12], [138, 24, 0.74127056481376319, 6], [144, 36, 0.8489318392539299, 6], [150, 36, 0.6893822808642277, 6], [156, 24, 0.77615268994022746, 12]],
+[[0, 48, 0.95351308655706091, 12], [12, 44, 0.81395010801511614, 6], [18, 24, 0.7248530757656475, 12], [30, 48, 0.69041849421854029, 6], [36, 44, 0.89326880051449176, 12], [48, 24, 0.8853413229192042, 6], [54, 48, 0.68633025566929762, 12], [66, 44, 0.73566893023118451, 12], [78, 24, 0.73204681176690944, 6], [84, 48, 0.79444090992707872, 12], [96, 44, 0.75303513980062253, 12], [108, 24, 0.77053612037738262, 6], [114, 48, 0.67989534752713043, 12], [126, 44, 0.7452635327884618, 12], [138, 24, 0.67974627183837089, 6], [144, 48, 0.78328325060007897, 6], [150, 44, 0.66883488052235407, 12], [162, 24, 0.74997648748842005, 6], [168, 48, 0.8046815877859248, 6], [174, 44, 0.71021969318216871, 6]],
+[[0, 24, 0.98048614423414093, 12], [12, 34, 0.84487667849534698, 12], [24, 48, 0.85057712677086039, 12], [36, 24, 0.79237595462017762, 6], [42, 34, 0.70513567014739098, 12], [54, 48, 0.66377688614216723, 6], [60, 24, 0.86199370333672676, 12], [72, 34, 0.85788789570493051, 12], [84, 48, 0.7733016197546515, 12], [96, 24, 0.80343083891505451, 12], [108, 34, 0.7717252576335728, 12], [120, 48, 0.86587977527054349, 6], [126, 24, 0.74810256626940796, 6], [132, 34, 0.89391321275001612, 12], [144, 48, 0.8976384557926822, 6], [150, 24, 0.68760464437545943, 12], [162, 34, 0.65471135483412579, 6], [168, 48, 0.8582503974666652, 12], [180, 24, 0.76598962106467339, 12]]],
+20: [[[0, 48, 0.9334435604891832, 6], [6, 46, 0.69477422563241897, 12], [18, 41, 0.70190370619627462, 6]],
+[[0, 36, 0.90972975437806025, 3], [3, 48, 0.74725094097541223, 3], [6, 36, 0.72093733166115115, 3], [9, 36, 0.66874994735892934, 3], [12, 36, 0.84758350745979916, 12], [24, 48, 0.80646774351209127, 3], [27, 36, 0.66735985598565328, 3], [30, 36, 0.67882520133750379, 3], [33, 36, 0.72995464755515871, 3]],
+[[0, 46, 0.92401495794243227, 12], [12, 38, 0.79436811442026689, 6], [18, 44, 0.70702203670973607, 3], [21, 31, 0.66643818643142994, 3], [24, 46, 0.89023538543833058, 3], [27, 38, 0.68124489389695009, 3], [30, 44, 0.71791153703604638, 12], [42, 31, 0.72678065576732043, 6]],
+[[0, 26, 0.91019761440664004, 6], [6, 24, 0.71857198104916264, 6], [12, 24, 0.8884177320837201, 6], [18, 29, 0.71211690742264988, 6], [24, 26, 0.87935334114351438, 3], [27, 24, 0.72910623612054448, 3], [30, 24, 0.68790546879092551, 12], [42, 29, 0.71739190786382701, 3], [45, 26, 0.65665369348985159, 3], [48, 24, 0.85744299702705085, 6], [54, 24, 0.68461209224652642, 3], [57, 29, 0.67824637944893018, 3]],
+[[0, 41, 0.99899372523353847, 12], [12, 36, 0.84218460950513219, 6], [18, 36, 0.74898885127447534, 6], [24, 36, 0.81088761007257193, 12], [36, 41, 0.78946786680115755, 12], [48, 36, 0.81011272034370285, 12], [60, 36, 0.83186695924059617, 12]],
+[[0, 44, 0.97868861386704975, 6], [6, 44, 0.68683717205219552, 6], [12, 48, 0.80771601074539445, 6], [18, 36, 0.68804077468553426, 12], [30, 44, 0.65786274396703259, 6], [36, 44, 0.81618762166174463, 12], [48, 48, 0.88701701353628892, 12], [60, 36, 0.75810899725813652, 6], [66, 44, 0.7329045414874108, 6], [72, 44, 0.88478804162024283, 3], [75, 48, 0.74337903142851336, 3], [78, 36, 0.67724551654537934, 6]],
+[[0, 36, 0.95868246835640758, 3], [3, 48, 0.73066875515745011, 3], [6, 46, 0.66270872253412183, 6], [12, 46, 0.89910792845453491, 6], [18, 36, 0.72317824890282434, 12], [30, 48, 0.73048517956742676, 6], [36, 46, 0.7982647556744471, 3], [39, 46, 0.68022576192612072, 3], [42, 36, 0.68340009259599355, 3], [45, 48, 0.65921691345868128, 3], [48, 46, 0.80038709216342097, 12], [60, 46, 0.75640770007973923, 3], [63, 36, 0.734152853561995, 3], [66, 48, 0.65494433470006885, 3], [69, 46, 0.70082679622548893, 3], [72, 46, 0.89967598786710212, 3], [75, 36, 0.65368600341825578, 3], [78, 48, 0.69003835128878754, 6], [84, 46, 0.88314914621514129, 6], [90, 46, 0.74299900629704951, 6]],
+[[0, 32, 0.9128820526720155, 3], [3, 36, 0.66939154925302169, 3], [6, 32, 0.71892189630359815, 3], [9, 44, 0.73776960671360925, 3], [12, 32, 0.87992118948817066, 6], [18, 36, 0.6532638774187598, 6], [24, 32, 0.84038267243042464, 3], [27, 44, 0.67993318544563763, 3], [30, 32, 0.66063243929586235, 6], [36, 36, 0.89547687299016476, 12], [48, 32, 0.8566375212526679, 6], [54, 44, 0.65374183750140691, 12], [66, 32, 0.65578565423934754, 6], [72, 36, 0.77966695794833951, 12], [84, 32, 0.76116014488654549, 3], [87, 44, 0.68642087704565524, 3], [90, 32, 0.67258545803086844, 12], [102, 36, 0.74135957122562013, 6]],
+[[0, 46, 0.93241514684413163, 6], [6, 48, 0.72390894107288539, 6], [12, 43, 0.84918631031979552, 12], [24, 43, 0.86675833056105944, 6], [30, 46, 0.74766829625436082, 3], [33, 48, 0.72245673457783011, 3], [36, 43, 0.83116877166077729, 3], [39, 43, 0.74994990262731076, 3], [42, 46, 0.69740095676188352, 3], [45, 48, 0.70781119984062235, 3], [48, 43, 0.78451617188720446, 6], [54, 43, 0.72602968929805578, 6], [60, 46, 0.79285483468459161, 3], [63, 48, 0.65526666295273917, 3], [66, 43, 0.66222310585679933, 3], [69, 43, 0.73326341502039272, 3], [72, 46, 0.83037398398650941, 6], [78, 48, 0.74584542038957791, 6], [84, 43, 0.76763285194453934, 6], [90, 43, 0.74372467679243548, 12], [102, 46, 0.67017104194121524, 3], [105, 48, 0.65983771301136807, 3], [108, 43, 0.8935980295278767, 3], [111, 43, 0.66518575285368309, 3], [114, 46, 0.66851356385176597, 6]],
+[[0, 44, 0.90800408710065272, 12], [12, 36, 0.75922412283743212, 12], [24, 32, 0.82618518247614992, 6], [30, 44, 0.70760528022178593, 3], [33, 44, 0.68258142422859824, 3], [36, 36, 0.7526716142145069, 3], [39, 32, 0.66547279516442404, 3], [42, 44, 0.71145146728421693, 12], [54, 44, 0.74225097191342349, 6], [60, 36, 0.76065395376109946, 3], [63, 32, 0.69434021707406701, 3], [66, 44, 0.68676987209868101, 6], [72, 44, 0.82924138864888386, 3], [75, 36, 0.7469230235286054, 3], [78, 32, 0.73692941019440417, 6], [84, 44, 0.78300250630480983, 3], [87, 44, 0.66405194935135425, 3], [90, 36, 0.71114255147077565, 12], [102, 32, 0.69561757437121152, 12], [114, 44, 0.66813139730411575, 3], [117, 44, 0.67463714728473911, 3], [120, 36, 0.89801347038888779, 6], [126, 32, 0.72780647419415945, 6]],
+[[0, 44, 0.99872898073921912, 6], [6, 36, 0.70955468279971834, 12], [18, 43, 0.70932770849134574, 12], [30, 44, 0.73489478138267916, 6], [36, 44, 0.79760261318745918, 12], [48, 36, 0.86135984589033876, 6], [54, 43, 0.67531785903613173, 6], [60, 44, 0.81223531046546027, 6], [66, 44, 0.74165335140927502, 6], [72, 36, 0.82208391373802214, 3], [75, 43, 0.72525515017970787, 3], [78, 44, 0.68603982928640017, 3], [81, 44, 0.67223493241481824, 3], [84, 36, 0.8693389723389312, 6], [90, 43, 0.72966353541581941, 6], [96, 44, 0.78405707320280715, 6], [102, 44, 0.67447814382927906, 12], [114, 36, 0.73771620599151466, 3], [117, 43, 0.68127796658528716, 3], [120, 44, 0.77050769204376157, 12], [132, 44, 0.77374471300709546, 3], [135, 36, 0.65310727178379824, 3], [138, 43, 0.73359712342091599, 6]],
+[[0, 48, 0.93667948675805324, 6], [6, 34, 0.69312388725983676, 6], [12, 26, 0.78427156945627485, 6], [18, 26, 0.69036600091538913, 12], [30, 48, 0.74346725730369312, 12], [42, 34, 0.65929381550375088, 12], [54, 26, 0.6542618006534362, 6], [60, 26, 0.77749657990634169, 12], [72, 48, 0.79215393064381501, 3], [75, 34, 0.65822459760487217, 3], [78, 26, 0.65111471584878733, 6], [84, 26, 0.83141917813722577, 3], [87, 48, 0.74501699336927341, 3], [90, 34, 0.70268959720463475, 12], [102, 26, 0.65195141495820497, 6], [108, 26, 0.83478360275588759, 6], [114, 48, 0.69216039135373952, 6], [120, 34, 0.75841712114634285, 3], [123, 26, 0.72448402452824279, 3], [126, 26, 0.72572126461724962, 6], [132, 48, 0.78941128326311072, 12], [144, 34, 0.77729691359549768, 3], [147, 26, 0.65271817371827645, 3], [150, 26, 0.71717795142674723, 6]],
+[[0, 41, 0.95792220847117671, 6], [6, 34, 0.65060515538861774, 6], [12, 48, 0.856167849374875, 12], [24, 36, 0.8507136899197002, 3], [27, 41, 0.66500849950509489, 3], [30, 34, 0.71247914502532406, 12], [42, 48, 0.73029700331220404, 12], [54, 36, 0.69607536606354969, 3], [57, 41, 0.69509468288190224, 3], [60, 34, 0.86888906072954131, 6], [66, 48, 0.72330841851795957, 12], [78, 36, 0.70406036089772139, 6], [84, 41, 0.7931257083499702, 6], [90, 34, 0.70401106287672977, 6], [96, 48, 0.77706690806155021, 3], [99, 36, 0.69558695745096766, 3], [102, 41, 0.66451997787113992, 3], [105, 34, 0.70111650277106563, 3], [108, 48, 0.8537898273397877, 6], [114, 36, 0.73944078463360496, 12], [126, 41, 0.65097358998155297, 6], [132, 34, 0.78625934669041686, 6], [138, 48, 0.68223077689473244, 6], [144, 36, 0.89064429237481102, 12], [156, 41, 0.82542761331590542, 6], [162, 34, 0.71792391354555563, 6]],
+[[0, 46, 0.90160199895320414, 12], [12, 46, 0.76839671026587919, 6], [18, 36, 0.67519842523621687, 6], [24, 36, 0.84133624952164332, 6], [30, 46, 0.73761239869475126, 12], [42, 46, 0.69767763116584758, 3], [45, 36, 0.65054670433808726, 3], [48, 36, 0.87848912920575306, 6], [54, 46, 0.70285472864346232, 6], [60, 46, 0.89628938390650859, 6], [66, 36, 0.72908990541401342, 6], [72, 36, 0.8880858802021695, 6], [78, 46, 0.71143815888680828, 12], [90, 46, 0.69414053110890017, 3], [93, 36, 0.7462887119942101, 3], [96, 36, 0.77011947516745349, 6], [102, 46, 0.71742720266138427, 3], [105, 46, 0.67708344196095205, 3], [108, 36, 0.78678536062299687, 12], [120, 36, 0.80333681526399303, 6], [126, 46, 0.74929259489173483, 12], [138, 46, 0.73169811668099072, 6], [144, 36, 0.895090857648148, 3], [147, 36, 0.73560880156045239, 3], [150, 46, 0.69944139448706943, 6], [156, 46, 0.87090669792688369, 3], [159, 36, 0.74916521862954222, 3], [162, 36, 0.70580957573629632, 6], [168, 46, 0.77447355863470491, 3], [171, 46, 0.71144556247757762, 3], [174, 36, 0.6737045979441485, 6]],
+[[0, 31, 0.94371327095067403, 6], [6, 24, 0.70407542874921913, 12], [18, 34, 0.73723518174297242, 12], [30, 29, 0.66098725469706188, 6], [36, 31, 0.88552823474198938, 6], [42, 24, 0.71915875647628613, 6], [48, 34, 0.81830848409040913, 3], [51, 29, 0.73260877360112298, 3], [54, 31, 0.65064975196536445, 3], [57, 24, 0.66306467354831533, 3], [60, 34, 0.76488045052910258, 6], [66, 29, 0.73716809316733045, 6], [72, 31, 0.86364744629431522, 6], [78, 24, 0.69451934651503988, 3], [81, 34, 0.67332022058418695, 3], [84, 29, 0.86156668627281807, 6], [90, 31, 0.65577512425246465, 6], [96, 24, 0.79739577988839316, 6], [102, 34, 0.70830764733420892, 6], [108, 29, 0.88987764908936273, 6], [114, 31, 0.68114712911936615, 12], [126, 24, 0.70715692786087259, 12], [138, 34, 0.71264444525678372, 6], [144, 29, 0.78891479284971511, 6], [150, 31, 0.6706549519175693, 6], [156, 24, 0.79964612725018513, 3], [159, 34, 0.73146776455900819, 3], [162, 29, 0.68017694142777652, 3], [165, 31, 0.71592794379192481, 3], [168, 24, 0.81340138643553883, 3], [171, 34, 0.6752449896019499, 3], [174, 29, 0.68712656173959719, 3], [177, 31, 0.73043134757110739, 3], [180, 24, 0.88709579038609165, 3], [183, 34, 0.69105241834098718, 3], [186, 29, 0.74633551326908698, 6]]],
+21: [[[0, 26, 0.9125333251105181, 6], [6, 41, 0.65390739347630444, 6], [12, 26, 0.87789896669984402, 6], [18, 26, 0.72917564298744697, 6]],
+[[0, 29, 0.96463220526363103, 6], [6, 29, 0.73680666252467264, 12], [18, 24, 0.72344819685359796, 6], [24, 44, 0.87167406927642266, 6], [30, 29, 0.66854163123467458, 6]],
+[[0, 29, 0.98099423123262985, 6], [6, 24, 0.65317195756749014, 6], [12, 31, 0.79324809118199024, 6], [18, 31, 0.74134636376433527, 6], [24, 29, 0.87318074292244541, 6], [30, 24, 0.72302948514227638, 6], [36, 31, 0.80099402720643587, 12]],
+[[0, 41, 0.92830895620274334, 6], [6, 24, 0.72324098999488751, 3], [9, 34, 0.68176541315799222, 3], [12, 24, 0.78583872386143738, 12], [24, 41, 0.79792975632675611, 6], [30, 24, 0.72549126817246945, 3], [33, 34, 0.72065313458326608, 3], [36, 24, 0.84591862721329725, 3], [39, 41, 0.72006471348861556, 3], [42, 24, 0.65587137933942408, 6], [48, 34, 0.86356923416280229, 6], [54, 24, 0.67625377500133321, 6]],
+[[0, 24, 0.92061194946642078, 6], [6, 43, 0.68083332705219779, 6], [12, 44, 0.79582491328879779, 6], [18, 44, 0.72537461713192897, 6], [24, 24, 0.78921877620341463, 12], [36, 43, 0.78397151943101973, 6], [42, 44, 0.73910890569872156, 6], [48, 44, 0.89360745588944446, 12], [60, 24, 0.8557109107677392, 3], [63, 43, 0.65781218158082055, 3], [66, 44, 0.6621865248781329, 6]],
+[[0, 24, 0.9803616031708039, 12], [12, 43, 0.76784426787299442, 6], [18, 43, 0.69235241050748086, 12], [30, 41, 0.65633192865831058, 3], [33, 24, 0.72507834211493205, 3], [36, 43, 0.89204268438245304, 6], [42, 43, 0.65221013624644353, 6], [48, 41, 0.76647636536571762, 6], [54, 24, 0.65372340633143966, 6], [60, 43, 0.79255740844304012, 6], [66, 43, 0.72134804888889881, 3], [69, 41, 0.68877657997752617, 3], [72, 24, 0.89361066954413348, 6], [78, 43, 0.66146779733803518, 6]],
+[[0, 43, 0.96310501695118578, 3], [3, 43, 0.74401776465870573, 3], [6, 43, 0.67572988245924881, 3], [9, 43, 0.67441662191264673, 3], [12, 43, 0.76155916634423249, 3], [15, 43, 0.73668593521968107, 3], [18, 43, 0.6667820297470648, 6], [24, 43, 0.88455296595619448, 12], [36, 43, 0.80514080856792469, 6], [42, 43, 0.68494468990114954, 6], [48, 43, 0.85470663768525623, 3], [51, 43, 0.7475529120791915, 3], [54, 43, 0.72731362099881669, 3], [57, 43, 0.7443990109256039, 3], [60, 43, 0.77135268406552537, 3], [63, 43, 0.68355460984733163, 3], [66, 43, 0.71832636249885784, 6], [72, 43, 0.80698122054901122, 12], [84, 43, 0.85596485591898541, 3], [87, 43, 0.66601996297831667, 3], [90, 43, 0.74896104782355866, 6]],
+[[0, 43, 0.95964818681503283, 3], [3, 32, 0.71233592522894917, 3], [6, 24, 0.74644250123211042, 6], [12, 36, 0.75444162692193928, 3], [15, 43, 0.7302344681438474, 3], [18, 32, 0.70488125661182566, 3], [21, 24, 0.74821270394913619, 3], [24, 36, 0.85339489750798669, 12], [36, 43, 0.82986978466140504, 12], [48, 32, 0.7933058643305152, 3], [51, 24, 0.65986540561176732, 3], [54, 36, 0.71147410854717497, 6], [60, 43, 0.7620853512051613, 6], [66, 32, 0.74785527580280453, 6], [72, 24, 0.75187053344505383, 6], [78, 36, 0.69544835378863423, 6], [84, 43, 0.88477468525308289, 6], [90, 32, 0.71601667604962027, 3], [93, 24, 0.67088994622161624, 3], [96, 36, 0.86485163358127692, 6], [102, 43, 0.73923028088142773, 6]],
+[[0, 34, 0.95080629382409165, 6], [6, 29, 0.74951403335844224, 12], [18, 48, 0.69968642644664147, 6], [24, 36, 0.81934067181511971, 12], [36, 34, 0.77652920408421255, 6], [42, 29, 0.73514135622601651, 6], [48, 48, 0.89717507528474216, 12], [60, 36, 0.86864471046516933, 6], [66, 34, 0.7095986437083861, 12], [78, 29, 0.74738843122547804, 6], [84, 48, 0.75324300358623852, 12], [96, 36, 0.76835561747696812, 3], [99, 34, 0.7079612393326099, 3], [102, 29, 0.67615155995723375, 3], [105, 48, 0.69108999600717258, 3], [108, 36, 0.7571644306762384, 3], [111, 34, 0.71773960928004632, 3], [114, 29, 0.71426068845301327, 6]],
+[[0, 48, 0.91262844393203968, 6], [6, 29, 0.66446450011004721, 3], [9, 34, 0.67829162705675461, 3], [12, 24, 0.84295038923855725, 12], [24, 48, 0.75690726441120715, 6], [30, 29, 0.65301891441298465, 12], [42, 34, 0.67972238856594569, 3], [45, 24, 0.72106169705418244, 3], [48, 48, 0.86551467711552843, 6], [54, 29, 0.71516789206244591, 3], [57, 34, 0.69911686504443449, 3], [60, 24, 0.76770254660193948, 6], [66, 48, 0.70499854394928885, 6], [72, 29, 0.81429859396518811, 6], [78, 34, 0.73691244850731552, 12], [90, 24, 0.71240193645182837, 12], [102, 48, 0.70137001652661435, 3], [105, 29, 0.65402276160281236, 3], [108, 34, 0.82573159305557631, 12], [120, 24, 0.82238484359645925, 6], [126, 48, 0.7274672992435125, 6]],
+[[0, 43, 0.99943542026186449, 6], [6, 26, 0.67922017177522043, 12], [18, 24, 0.67203199056640195, 3], [21, 32, 0.74933413563505902, 3], [24, 43, 0.80309331374929693, 3], [27, 26, 0.71937952242351733, 3], [30, 24, 0.70597829422659353, 12], [42, 32, 0.6796295302866574, 3], [45, 43, 0.69451787775714546, 3], [48, 26, 0.88897887349817628, 3], [51, 24, 0.74413634859510802, 3], [54, 32, 0.6504734723624328, 12], [66, 43, 0.66016614206283719, 12], [78, 26, 0.71408641772054526, 3], [81, 24, 0.69679647027408764, 3], [84, 32, 0.89413217261081335, 6], [90, 43, 0.72023816587502598, 6], [96, 26, 0.84639835352908976, 6], [102, 24, 0.69333054269537819, 12], [114, 32, 0.70959550189549558, 6], [120, 43, 0.77953747438278875, 6], [126, 26, 0.65712807098546167, 6], [132, 24, 0.75511591234053854, 12]],
+[[0, 44, 0.90468777996244998, 6], [6, 46, 0.68165535389960097, 3], [9, 41, 0.67551866606254507, 3], [12, 41, 0.78649491997425591, 3], [15, 44, 0.70060452044060084, 3], [18, 46, 0.68048994697794518, 6], [24, 41, 0.89291397019725782, 6], [30, 41, 0.71697796712758199, 12], [42, 44, 0.6573481387442992, 12], [54, 46, 0.7493425871193643, 6], [60, 41, 0.87772075365730129, 6], [66, 41, 0.69858095950932797, 6], [72, 44, 0.79633729826194799, 12], [84, 46, 0.84409930644142683, 6], [90, 41, 0.66175709661673709, 6], [96, 41, 0.76359136862022425, 6], [102, 44, 0.72148896110094041, 6], [108, 46, 0.76836241447044595, 6], [114, 41, 0.73619585308366986, 12], [126, 41, 0.65827540267483131, 12], [138, 44, 0.72482275391711826, 12], [150, 46, 0.69354897082855449, 6]],
+[[0, 48, 0.94739675683296254, 6], [6, 36, 0.69179984093839375, 6], [12, 46, 0.82581156204204054, 3], [15, 46, 0.70465367079506647, 3], [18, 48, 0.6679348135485772, 6], [24, 36, 0.82487168897492669, 6], [30, 46, 0.66738659878104745, 6], [36, 46, 0.86460880662837225, 6], [42, 48, 0.68695347282762209, 3], [45, 36, 0.66583665120910618, 3], [48, 46, 0.87279600693734793, 6], [54, 46, 0.74308966065811677, 6], [60, 48, 0.87519936376406715, 6], [66, 36, 0.66755570592766522, 6], [72, 46, 0.89559431276770551, 6], [78, 46, 0.69084590582489835, 3], [81, 48, 0.73736697550549846, 3], [84, 36, 0.85277350192646184, 6], [90, 46, 0.73182047909075476, 6], [96, 46, 0.80972314380301569, 6], [102, 48, 0.69973426159444996, 6], [108, 36, 0.86622829021896919, 3], [111, 46, 0.65412863683661326, 3], [114, 46, 0.67288040513315839, 6], [120, 48, 0.81723733329998771, 6], [126, 36, 0.6681911257670784, 3], [129, 46, 0.71033043528681683, 3], [132, 46, 0.76088222014492779, 6], [138, 48, 0.68899762102838114, 6], [144, 36, 0.80235366609554237, 3], [147, 46, 0.67668924216456261, 3], [150, 46, 0.67870910013387387, 3], [153, 48, 0.6644788829526852, 3], [156, 36, 0.79754637365476777, 3], [159, 46, 0.70860084582226757, 3], [162, 46, 0.69832568403745543, 6]],
+[[0, 44, 0.98858433253383238, 12], [12, 36, 0.75648899130256975, 3], [15, 46, 0.70053249288479991, 3], [18, 48, 0.68809356161706248, 3], [21, 44, 0.72146323065653939, 3], [24, 36, 0.89140975909633835, 3], [27, 46, 0.72617325446490155, 3], [30, 48, 0.72053509056859399, 12], [42, 44, 0.73524270370739297, 6], [48, 36, 0.80144260938431489, 6], [54, 46, 0.72000012762446675, 3], [57, 48, 0.69026843353344036, 3], [60, 44, 0.82816321896956469, 3], [63, 36, 0.71843677842978004, 3], [66, 46, 0.69246872664179582, 6], [72, 48, 0.84570755281938981, 3], [75, 44, 0.66887838165670088, 3], [78, 36, 0.67873076987891823, 6], [84, 46, 0.83382261284059012, 12], [96, 48, 0.88280430106387908, 6], [102, 44, 0.68946575920592501, 6], [108, 36, 0.7948468342077194, 6], [114, 46, 0.69592025376919142, 6], [120, 48, 0.88039375735006209, 12], [132, 44, 0.82437516958088208, 3], [135, 36, 0.70757279440864074, 3], [138, 46, 0.72668828994318169, 6], [144, 48, 0.82918321114344429, 3], [147, 44, 0.7138062068301585, 3], [150, 36, 0.74199239983869469, 12], [162, 46, 0.65819398964404408, 3], [165, 48, 0.66605946224537071, 3], [168, 44, 0.88431474311298841, 6], [174, 36, 0.70378567260134839, 6]],
+[[0, 46, 0.92142031054221019, 6], [6, 46, 0.70478779789370327, 6], [12, 32, 0.83729834725514596, 6], [18, 44, 0.66973820327677902, 3], [21, 46, 0.68607804791459459, 3], [24, 46, 0.81910449963619036, 3], [27, 32, 0.70425140180150558, 3], [30, 44, 0.74594272452133681, 12], [42, 46, 0.71248862657028, 6], [48, 46, 0.85726377375904439, 6], [54, 32, 0.66665727392386198, 6], [60, 44, 0.805559895383261, 6], [66, 46, 0.67057262820180596, 6], [72, 46, 0.78104212251186578, 6], [78, 32, 0.71768378078700046, 6], [84, 44, 0.87509712501104642, 3], [87, 46, 0.65389449297722768, 3], [90, 46, 0.69765475708775448, 6], [96, 32, 0.85905086580082046, 6], [102, 44, 0.69339482211970682, 6], [108, 46, 0.75167016995860414, 12], [120, 46, 0.7808256804128213, 3], [123, 32, 0.71305419749945753, 3], [126, 44, 0.6753485608766987, 6], [132, 46, 0.81117728365299169, 6], [138, 46, 0.66364938100201376, 3], [141, 32, 0.70478860468321247, 3], [144, 44, 0.79543457012257668, 3], [147, 46, 0.74956585104346096, 3], [150, 46, 0.70096179457305352, 6], [156, 32, 0.796987037796002, 3], [159, 44, 0.72903407136030673, 3], [162, 46, 0.66888673579790092, 6], [168, 46, 0.85153988588164597, 12], [180, 32, 0.83947905532115141, 6], [186, 44, 0.68609484698949164, 6]]],
+32: [[[0, 38, 0.95624260623319235, 6], [6, 48, 0.71743954734270088, 18]],
+[[0, 29, 0.97627467325369621, 6], [6, 29, 0.74326314626179124, 6], [12, 29, 0.77296963553708675, 6], [18, 24, 0.70343920954653494, 6], [24, 36, 0.75090854753173042, 12]],
+[[0, 43, 0.92980250637131268, 12], [12, 46, 0.85461335380708781, 6], [18, 36, 0.69341910507204674, 12], [30, 24, 0.66564724409758724, 6], [36, 31, 0.85911463641628516, 6], [42, 43, 0.6503667584931806, 6]],
+[[0, 36, 0.97213806120505686, 6], [6, 43, 0.66557059825812215, 6], [12, 24, 0.81345008340552538, 6], [18, 24, 0.65919123215914799, 6], [24, 43, 0.79361138276848964, 18], [42, 36, 0.72344022935435981, 6], [48, 43, 0.87631797100207354, 6], [54, 24, 0.662286526651789, 6]],
+[[0, 31, 0.94429667670621553, 12], [12, 32, 0.82702239832716118, 12], [24, 31, 0.88122964884193533, 12], [36, 29, 0.88932296431988034, 18], [54, 38, 0.70410300008531435, 6], [60, 31, 0.85063340218051198, 12]],
+[[0, 29, 0.91120602487385305, 6], [6, 36, 0.73428056560128407, 6], [12, 32, 0.89674271846730269, 18], [30, 24, 0.73375397793953367, 12], [42, 26, 0.74518678290128149, 18], [60, 29, 0.83533701461135179, 6], [66, 36, 0.74910636573297051, 12], [78, 32, 0.73123245653062197, 6]],
+[[0, 44, 0.91726800902118988, 6], [6, 26, 0.7381462328738585, 12], [18, 26, 0.6743043057263457, 6], [24, 24, 0.8393998691765554, 6], [30, 36, 0.71089197464248788, 6], [36, 44, 0.86614340112608068, 6], [42, 26, 0.69103452091113071, 6], [48, 26, 0.82078818512819218, 12], [60, 24, 0.89007673892983097, 18], [78, 36, 0.65971829816405192, 6], [84, 44, 0.88823757539494541, 12]],
+[[0, 24, 0.94873497427266429, 12], [12, 26, 0.79313446421011058, 12], [24, 26, 0.79121707668391061, 12], [36, 36, 0.79276201802418444, 6], [42, 36, 0.71750887024724053, 6], [48, 24, 0.7638473063538529, 6], [54, 26, 0.70303959102950608, 6], [60, 26, 0.88234760806168688, 18], [78, 36, 0.7491413725293089, 18], [96, 36, 0.86606783371537999, 6], [102, 24, 0.73758496511387328, 6]],
+[[0, 32, 0.9344846156732356, 6], [6, 29, 0.69943546095481568, 12], [18, 24, 0.65268600378567576, 12], [30, 43, 0.67494490384745098, 12], [42, 48, 0.72773520955505666, 6], [48, 32, 0.78085557478109435, 18], [66, 29, 0.72590392551517158, 18], [84, 24, 0.79868184909070972, 6], [90, 43, 0.67417368271206213, 6], [96, 48, 0.77806249270300687, 6], [102, 32, 0.72484075785765434, 12], [114, 29, 0.68258525019378991, 6]],
+[[0, 26, 0.93237429231469426, 6], [6, 26, 0.69966393895721501, 18], [24, 24, 0.79197110233541024, 12], [36, 41, 0.87488333190835987, 18], [54, 36, 0.67531245787409588, 6], [60, 26, 0.77106035096433123, 6], [66, 26, 0.68339896120180643, 18], [84, 24, 0.86875437233489561, 18], [102, 41, 0.72457216505662292, 6], [108, 36, 0.88247068190445432, 6], [114, 26, 0.71976246138768851, 6], [120, 26, 0.76566629738256708, 6], [126, 24, 0.74262802711698861, 6]],
+[[0, 36, 0.93194503327303058, 6], [6, 41, 0.65255206722257098, 12], [18, 26, 0.66454916752309301, 6], [24, 26, 0.88537916270412753, 18], [42, 26, 0.65113078620581588, 12], [54, 36, 0.67991386398651765, 6], [60, 41, 0.86334292465548801, 12], [72, 26, 0.85751482074959007, 12], [84, 26, 0.75698400898633278, 18], [102, 26, 0.7486689475829722, 6], [108, 36, 0.82173764104089231, 12], [120, 41, 0.87707242452173706, 18], [138, 26, 0.68013210739196639, 6]],
+[[0, 26, 0.95583592657749417, 12], [12, 46, 0.78979855277055211, 12], [24, 48, 0.84463511986996065, 6], [30, 32, 0.73264893278430621, 6], [36, 41, 0.78779936381990778, 6], [42, 26, 0.74025923505033175, 6], [48, 46, 0.82902699810028735, 12], [60, 48, 0.81722411075977219, 18], [78, 32, 0.68957311041375502, 6], [84, 41, 0.82931474568967289, 6], [90, 26, 0.66851510436396311, 6], [96, 46, 0.77701393011124897, 12], [108, 48, 0.87021552357223397, 12], [120, 32, 0.77386490773473182, 6], [126, 41, 0.73985018415391401, 12], [138, 26, 0.74651508179226689, 6], [144, 46, 0.79548654019890741, 12]],
+[[0, 38, 0.99899825400885844, 12], [12, 29, 0.82562503107812291, 6], [18, 32, 0.74133550940954474, 6], [24, 31, 0.80213981008863322, 12], [36, 26, 0.85278989289166662, 18], [54, 38, 0.68254832503680363, 6], [60, 29, 0.84272040750438215, 6], [66, 32, 0.6745059648634274, 6], [72, 31, 0.81164616099789144, 18], [90, 26, 0.67695508679775851, 12], [102, 38, 0.7183648708319661, 6], [108, 29, 0.7808744904456989, 12], [120, 32, 0.85032315655769752, 6], [126, 31, 0.74840054219675722, 12], [138, 26, 0.69807642198956787, 12], [150, 38, 0.74062397777901801, 6], [156, 29, 0.89025755050286093, 12]],
+[[0, 24, 0.92867306635200841, 18], [18, 24, 0.70719187935365124, 6], [24, 26, 0.88654361290954808, 12], [36, 26, 0.75201106416785302, 6], [42, 26, 0.69347997718156495, 6], [48, 24, 0.84941010310830922, 6], [54, 24, 0.66195554344133456, 6], [60, 26, 0.85913332153051469, 12], [72, 26, 0.79174142342961462, 18], [90, 26, 0.74345549372486719, 12], [102, 24, 0.70549365480295534, 12], [114, 24, 0.74758965766703334, 6], [120, 26, 0.80732721913152938, 18], [138, 26, 0.65768998301773873, 6], [144, 26, 0.82407232597436231, 6], [150, 24, 0.73335116772080178, 6], [156, 24, 0.8745369616137515, 6], [162, 26, 0.68975803519214385, 12], [174, 26, 0.72364331234335533, 6]],
+[[0, 32, 0.94451711389049109, 6], [6, 46, 0.65390420276306094, 12], [18, 31, 0.68331552046098065, 6], [24, 26, 0.87012505266641826, 12], [36, 43, 0.89737377809948871, 6], [42, 32, 0.66043290890699291, 12], [54, 46, 0.67692630714767565, 12], [66, 31, 0.73991603766231917, 18], [84, 26, 0.87560992991972797, 18], [102, 43, 0.71263250813917589, 18], [120, 32, 0.78567554018619656, 6], [126, 46, 0.72072646666358686, 6], [132, 31, 0.89095681839176011, 18], [150, 26, 0.6688085460115254, 6], [156, 43, 0.77379310698571879, 18], [174, 32, 0.66495647086856069, 6], [180, 46, 0.81026746299408992, 6], [186, 31, 0.65070036765006956, 6]]],
+33: [[[0, 46, 0.9771698449965569, 6], [6, 24, 0.70657893816302419, 6], [12, 24, 0.87146738729949413, 12]],
+[[0, 31, 0.94473968743845893, 12], [12, 38, 0.83763796711808558, 6], [18, 24, 0.74789297440145275, 12], [30, 31, 0.68137270565958707, 6]],
+[[0, 26, 0.91941210550478025, 6], [6, 43, 0.71909920951626083, 6], [12, 31, 0.84670362396737309, 12], [24, 38, 0.8610785017549778, 6], [30, 24, 0.7007573728056411, 12], [42, 26, 0.68601231986481348, 6]],
+[[0, 32, 0.91817561554188576, 12], [12, 29, 0.88974524769201868, 12], [24, 38, 0.84146532126019391, 6], [30, 46, 0.65842776130703307, 6], [36, 46, 0.80626525511475133, 12], [48, 32, 0.7791265135371569, 12]],
+[[0, 46, 0.9311023460533876, 6], [6, 29, 0.74572933762350124, 6], [12, 26, 0.7803091993516349, 6], [18, 32, 0.65974607888161019, 6], [24, 24, 0.83331274268307531, 6], [30, 46, 0.71402128505435036, 12], [42, 29, 0.73092642474924818, 18], [60, 26, 0.88040897453813505, 12]],
+[[0, 43, 0.93699558967693097, 18], [18, 24, 0.73583894530849747, 6], [24, 46, 0.83332386902205646, 6], [30, 46, 0.71565162984625841, 18], [48, 24, 0.79584956534961337, 6], [54, 43, 0.72111883792834375, 18], [72, 24, 0.76371127867485666, 12]],
+[[0, 31, 0.90544047407107531, 12], [12, 36, 0.83017321747576034, 12], [24, 36, 0.77802192670995429, 18], [42, 32, 0.69723306155680065, 6], [48, 32, 0.83925138037880953, 12], [60, 31, 0.87036749709309802, 6], [66, 36, 0.68635587538426612, 6], [72, 36, 0.83800349569179744, 12], [84, 32, 0.82917425431820935, 12]],
+[[0, 36, 0.97568253648414727, 6], [6, 24, 0.67411201407390975, 12], [18, 26, 0.73175511353294065, 6], [24, 24, 0.86963559481135877, 12], [36, 24, 0.75647286403450342, 12], [48, 36, 0.81880316766049099, 18], [66, 24, 0.71684525273879829, 6], [72, 26, 0.89954820953376602, 6], [78, 24, 0.68356713701056038, 12], [90, 24, 0.70516107023358887, 12], [102, 36, 0.65035181363787664, 6]],
+[[0, 24, 0.98219154396083319, 18], [18, 36, 0.73982024058097773, 12], [30, 32, 0.6888540688749345, 6], [36, 29, 0.85616582414241327, 12], [48, 24, 0.81924566409378086, 12], [60, 24, 0.83321468991051695, 6], [66, 36, 0.74160315709890368, 12], [78, 32, 0.71483136541781933, 12], [90, 29, 0.74809876058587288, 12], [102, 24, 0.7328752871149451, 12], [114, 24, 0.71033148888213515, 6]],
+[[0, 24, 0.93454293393077581, 12], [12, 34, 0.81323745913534573, 6], [18, 29, 0.65408202919440661, 12], [30, 29, 0.72775833012592162, 12], [42, 36, 0.67480972654910665, 12], [54, 24, 0.705548195013737, 12], [66, 34, 0.74587853156499284, 6], [72, 29, 0.78680714134685903, 6], [78, 29, 0.74203544140035682, 12], [90, 36, 0.73100302125322825, 6], [96, 24, 0.77649851335305253, 6], [102, 34, 0.65984816608814534, 6], [108, 29, 0.86968835589937399, 12], [120, 29, 0.84938666815562269, 12]],
+[[0, 29, 0.98589611881660222, 12], [12, 26, 0.77877720211796375, 12], [24, 26, 0.86374207596813268, 6], [30, 24, 0.74616503791526911, 12], [42, 29, 0.72607158807187011, 6], [48, 29, 0.86083511767480303, 12], [60, 26, 0.82679032236096806, 6], [66, 26, 0.66653580680310076, 12], [78, 24, 0.7246400669286327, 18], [96, 29, 0.84153068073805426, 6], [102, 29, 0.68990149044044313, 6], [108, 26, 0.81842571490364202, 6], [114, 26, 0.72938540271269148, 18], [132, 24, 0.87651860560723427, 12]],
+[[0, 26, 0.9871764005254906, 12], [12, 46, 0.78184433122579788, 12], [24, 46, 0.87052123094156109, 6], [30, 46, 0.65730994193934689, 6], [36, 41, 0.82875808185392386, 6], [42, 26, 0.69808677597371582, 6], [48, 46, 0.83442350050600511, 12], [60, 46, 0.79645571362463874, 12], [72, 46, 0.8846691543712486, 6], [78, 41, 0.74640743177031776, 6], [84, 26, 0.79295625013115512, 6], [90, 46, 0.67488031191907893, 12], [102, 46, 0.65427375529906795, 12], [114, 46, 0.74852067214139129, 12], [126, 41, 0.72364188735303681, 12], [138, 26, 0.71527034251704225, 18]],
+[[0, 48, 0.91560328131582536, 12], [12, 31, 0.79503922677596339, 6], [18, 38, 0.67968227382264801, 6], [24, 36, 0.78352013925710984, 6], [30, 48, 0.73291685178616062, 12], [42, 48, 0.72999088214229402, 6], [48, 31, 0.83222583236052006, 12], [60, 38, 0.81865153638982946, 6], [66, 36, 0.74249917745727245, 12], [78, 48, 0.65059289248322494, 6], [84, 48, 0.77961096342442804, 6], [90, 31, 0.73148020629236132, 6], [96, 38, 0.8371408769977795, 12], [108, 36, 0.75446466794143729, 6], [114, 48, 0.72409972164819147, 18], [132, 48, 0.8375624702261516, 12], [144, 31, 0.80927614386188773, 18], [162, 38, 0.73863289714088554, 6]],
+[[0, 36, 0.92653016861953719, 6], [6, 38, 0.74211995273385689, 6], [12, 38, 0.76608687383270546, 18], [30, 41, 0.65710823906022098, 12], [42, 26, 0.67435326215976454, 6], [48, 36, 0.75331722249649169, 12], [60, 38, 0.79849596058701866, 6], [66, 38, 0.72959502920772312, 12], [78, 41, 0.69181450599309324, 6], [84, 26, 0.82037972811115767, 12], [96, 36, 0.80281827793985738, 12], [108, 38, 0.87586583272239538, 6], [114, 38, 0.72383741289067549, 12], [126, 41, 0.68978690800325992, 6], [132, 26, 0.89719999773018611, 12], [144, 36, 0.78924309576976215, 18], [162, 38, 0.66717951913220452, 6], [168, 38, 0.89027497298371305, 6], [174, 41, 0.66190932146625581, 6]],
+[[0, 48, 0.948894180694422, 12], [12, 34, 0.78235836718021023, 6], [18, 34, 0.66803197878059783, 12], [30, 32, 0.67789538109178971, 6], [36, 32, 0.87783023561170526, 6], [42, 48, 0.66891325737677443, 12], [54, 34, 0.67097769367841298, 12], [66, 34, 0.73988179413004429, 6], [72, 32, 0.84103407105835126, 6], [78, 32, 0.70623663666631131, 12], [90, 48, 0.65996904098901188, 6], [96, 34, 0.76130246771325183, 12], [108, 34, 0.88806606911117714, 12], [120, 32, 0.80076137304196304, 6], [126, 32, 0.69413574748412821, 18], [144, 48, 0.8966623242255316, 6], [150, 34, 0.6887535223053538, 12], [162, 34, 0.66522384724169947, 12], [174, 32, 0.7078060862975516, 12], [186, 32, 0.72248784927601761, 6]]],
+34: [[[0, 48, 0.9113695906873277, 18], [18, 43, 0.65056339439169009, 6]],
+[[0, 34, 0.97038562664649408, 18], [18, 31, 0.65273681696677921, 18]],
+[[0, 36, 0.94631108191589619, 12], [12, 34, 0.85721367837519968, 12], [24, 24, 0.8146544090298089, 6], [30, 24, 0.69893183741397513, 6], [36, 26, 0.86723185065980213, 12]],
+[[0, 41, 0.92741804428879315, 12], [12, 36, 0.82675779236788538, 18], [30, 29, 0.65946767992160271, 18], [48, 26, 0.89298608418281866, 12]],
+[[0, 48, 0.94434078297502799, 6], [6, 36, 0.72639867581164885, 18], [24, 36, 0.8048119938671503, 12], [36, 48, 0.83941670701803595, 12], [48, 36, 0.80215038363904256, 6], [54, 26, 0.74583241608000783, 6], [60, 48, 0.81406543411323384, 12]],
+[[0, 34, 0.90515196402378939, 6], [6, 31, 0.71573571447430462, 6], [12, 24, 0.7560558762350772, 12], [24, 48, 0.86228912254139811, 6], [30, 29, 0.74419336783499113, 6], [36, 29, 0.77798470909992812, 6], [42, 34, 0.70935619803802741, 12], [54, 31, 0.73743248384438731, 18], [72, 24, 0.8202254367092936, 12]],
+[[0, 41, 0.95087510442490109, 12], [12, 24, 0.83510901090963718, 12], [24, 29, 0.88615365680799352, 18], [42, 24, 0.72418747272685624, 12], [54, 32, 0.69081292599869848, 6], [60, 38, 0.75265873091250113, 12], [72, 41, 0.83611959659456381, 6], [78, 24, 0.67359456667708018, 6], [84, 29, 0.83356937919971263, 6], [90, 24, 0.67087597221917683, 6]],
+[[0, 32, 0.96162344795845744, 6], [6, 32, 0.65257234500245997, 12], [18, 26, 0.67607946320281176, 12], [30, 26, 0.70241547120601355, 12], [42, 26, 0.72366501154650231, 18], [60, 26, 0.82864094951580569, 12], [72, 32, 0.81873166574754686, 12], [84, 32, 0.79208964409290594, 12], [96, 26, 0.81380287105594917, 12]],
+[[0, 36, 0.96080317491357348, 12], [12, 24, 0.79131904133096531, 6], [18, 43, 0.74902665426777448, 18], [36, 44, 0.77130598738245848, 12], [48, 29, 0.84928461104462072, 12], [60, 36, 0.76388269271792242, 12], [72, 36, 0.77630483596737065, 6], [78, 24, 0.73306229876229201, 12], [90, 43, 0.71079060067913591, 6], [96, 44, 0.82935724973236524, 6], [102, 29, 0.71641808498480919, 12], [114, 36, 0.7143170395525118, 6]],
+[[0, 44, 0.98597434722388799, 18], [18, 46, 0.65858027213153247, 12], [30, 29, 0.70879168403946047, 18], [48, 26, 0.8128671142176791, 12], [60, 46, 0.76638330497369478, 18], [78, 29, 0.74668719647953607, 12], [90, 44, 0.70550877945470281, 18], [108, 46, 0.88778443162767751, 12], [120, 29, 0.75487181923819668, 6], [126, 26, 0.69055559565625957, 6]],
+[[0, 34, 0.92965924591700067, 12], [12, 43, 0.84952965566839778, 18], [30, 44, 0.66745432238674163, 18], [48, 38, 0.75416395673794234, 18], [66, 24, 0.7142074589016616, 18], [84, 31, 0.81339596197418873, 6], [90, 34, 0.74299381449734214, 12], [102, 43, 0.65396558960724738, 12], [114, 44, 0.708766335849633, 12], [126, 38, 0.70934736516108055, 12], [138, 24, 0.74864341696564551, 6]],
+[[0, 36, 0.93971056894407701, 6], [6, 43, 0.74883428225178128, 12], [18, 46, 0.73040263901533886, 12], [30, 36, 0.71976575780587848, 12], [42, 43, 0.68445590620645869, 12], [54, 46, 0.74934139906152919, 12], [66, 36, 0.67176184644540882, 6], [72, 43, 0.77777474259604462, 18], [90, 46, 0.69040270203889131, 6], [96, 36, 0.79049247968979286, 18], [114, 43, 0.67594874526704796, 12], [126, 46, 0.66362654648442243, 18], [144, 36, 0.89034954844173475, 12]],
+[[0, 34, 0.95705850658737235, 12], [12, 24, 0.832891349012715, 12], [24, 44, 0.80976062091503065, 12], [36, 44, 0.78196280681301666, 12], [48, 43, 0.78821020836531452, 18], [66, 29, 0.70650292335109111, 6], [72, 34, 0.85485951987335396, 12], [84, 24, 0.78160052360577459, 6], [90, 44, 0.71171185856026831, 18], [108, 44, 0.75611145215160558, 6], [114, 43, 0.70135385012290541, 12], [126, 29, 0.69877973879561528, 18], [144, 34, 0.87879810281445681, 12], [156, 24, 0.84937061727450613, 12]],
+[[0, 26, 0.93638675322742571, 6], [6, 26, 0.69775136776081148, 6], [12, 44, 0.83251900087139064, 6], [18, 41, 0.74388233891708699, 18], [36, 41, 0.87651184056698828, 12], [48, 36, 0.84526846528532518, 12], [60, 26, 0.77795763366080639, 18], [78, 26, 0.72567013565137994, 12], [90, 44, 0.66458829667504271, 18], [108, 41, 0.78651003135056941, 12], [120, 41, 0.76735897727600788, 18], [138, 36, 0.66340508942444509, 18], [156, 26, 0.77365383460046777, 6], [162, 26, 0.73774143029374195, 6], [168, 44, 0.83036171075783316, 12]],
+[[0, 44, 0.90241624029280987, 6], [6, 46, 0.70539776336238957, 12], [18, 36, 0.71794011451898965, 12], [30, 32, 0.65887633517919486, 6], [36, 38, 0.8583171159443066, 12], [48, 46, 0.78476913563433937, 12], [60, 44, 0.89368548452197527, 18], [78, 46, 0.68260105851743169, 12], [90, 36, 0.67100689089334287, 12], [102, 32, 0.69727368573224002, 12], [114, 38, 0.69710674566326358, 12], [126, 46, 0.67988731478945952, 12], [138, 44, 0.70645997739451372, 12], [150, 46, 0.70122329731082145, 18], [168, 36, 0.88481047370382759, 12], [180, 32, 0.85264811264663254, 12]]],
+35: [[[0, 43, 0.95630806720929595, 12], [12, 44, 0.87141587274047261, 12]],
+[[0, 34, 0.91928951281434534, 18], [18, 29, 0.70364678420830162, 6], [24, 34, 0.89560430230836086, 6], [30, 36, 0.71140704310858582, 6]],
+[[0, 31, 0.94465780727662807, 12], [12, 38, 0.89476715812674901, 24], [36, 36, 0.83812807524373656, 12]],
+[[0, 46, 0.9539187155473392, 12], [12, 48, 0.77639979512237267, 12], [24, 32, 0.78715386837831047, 24], [48, 32, 0.75257677751217655, 12]],
+[[0, 44, 0.93064759498871386, 24], [24, 44, 0.89407302737123495, 6], [30, 34, 0.6586249998238799, 24], [54, 24, 0.74634517957655477, 18]],
+[[0, 36, 0.98264071117189944, 6], [6, 44, 0.70817379974601835, 12], [18, 44, 0.73066339308815587, 12], [30, 26, 0.66346326195091831, 12], [42, 26, 0.71351358180503899, 18], [60, 24, 0.85237420447917733, 18], [78, 36, 0.74679096442239001, 6]],
+[[0, 26, 0.98084180754706796, 24], [24, 41, 0.79548895958025212, 18], [42, 26, 0.70234016317353254, 18], [60, 24, 0.8874807259612576, 12], [72, 24, 0.89558709497581412, 12], [84, 29, 0.85846397396344276, 12]],
+[[0, 48, 0.95808061392193078, 12], [12, 29, 0.79567837673678099, 12], [24, 36, 0.76769444698533185, 18], [42, 38, 0.71798159119533089, 12], [54, 36, 0.66821340001224472, 18], [72, 34, 0.7987074318109969, 18], [90, 48, 0.74004286555115739, 18]],
+[[0, 36, 0.93176834964088218, 18], [18, 43, 0.65315555152150295, 12], [30, 46, 0.72483039806713412, 12], [42, 48, 0.71303040048106636, 18], [60, 31, 0.79018843024327889, 18], [78, 29, 0.67202398603153346, 18], [96, 36, 0.82098968479411705, 18], [114, 43, 0.65266556381270191, 6]],
+[[0, 24, 0.95137912779447953, 6], [6, 24, 0.66742122604210974, 12], [18, 34, 0.73079414031582246, 24], [42, 24, 0.73737110552447904, 18], [60, 41, 0.79324508811315542, 12], [72, 36, 0.76051142371529434, 24], [96, 24, 0.89431146052142174, 18], [114, 24, 0.74712120245718527, 12], [126, 34, 0.71047155674477969, 6]],
+[[0, 38, 0.94140723033413853, 12], [12, 36, 0.84185786959241837, 12], [24, 36, 0.87801818228263784, 12], [36, 48, 0.89070626849920198, 12], [48, 46, 0.87944064369033725, 6], [54, 24, 0.71960004496644803, 12], [66, 38, 0.6790838654535053, 24], [90, 36, 0.71104636760625317, 12], [102, 36, 0.70180636076818792, 6], [108, 48, 0.85785775029702283, 24], [132, 46, 0.77785447319961853, 12]],
+[[0, 31, 0.99189411569703057, 12], [12, 38, 0.83001504115504399, 18], [30, 36, 0.74404157477514354, 12], [42, 24, 0.67283423256633601, 18], [60, 36, 0.89861065991754807, 12], [72, 38, 0.88314586497155656, 12], [84, 31, 0.85086709279339956, 18], [102, 38, 0.73920864301071754, 18], [120, 36, 0.87262426224370149, 12], [132, 24, 0.79322737058623005, 12], [144, 36, 0.87787191342437565, 12]],
+[[0, 31, 0.99396717868234918, 24], [24, 36, 0.82649144686186116, 12], [36, 36, 0.84636520526586911, 18], [54, 36, 0.73374468087494071, 18], [72, 26, 0.89294833927686368, 24], [96, 43, 0.81330904866414855, 12], [108, 31, 0.8528385967850004, 6], [114, 36, 0.67353234426652864, 24], [138, 36, 0.70915350881533679, 18], [156, 36, 0.81403971022032373, 6], [162, 26, 0.68023556218675918, 6]],
+[[0, 48, 0.93167602994982657, 18], [18, 43, 0.74561739030167007, 12], [30, 46, 0.67665470319990728, 12], [42, 48, 0.73851786387154794, 18], [60, 44, 0.75352126014453424, 12], [72, 46, 0.75590937199845964, 12], [84, 48, 0.8726524645273871, 24], [108, 43, 0.79414220458528362, 24], [132, 46, 0.8598346073676274, 18], [150, 48, 0.66261025791260963, 18], [168, 44, 0.88062785962456802, 12]],
+[[0, 43, 0.93901206412714844, 24], [24, 46, 0.79461956207575446, 12], [36, 48, 0.8536148773884813, 12], [48, 26, 0.77699901346010314, 12], [60, 38, 0.80201927443745236, 12], [72, 46, 0.8824256777989099, 18], [90, 43, 0.66315154329541037, 18], [108, 46, 0.75016329321047814, 24], [132, 48, 0.75189134738586749, 12], [144, 26, 0.78681239233281164, 24], [168, 38, 0.88189368494428921, 12], [180, 46, 0.89247235190963536, 12]]],
+45: [[[0, 44, 0.94518011772794652, 12], [12, 44, 0.7830987484625983, 12]],
+[[0, 46, 0.90290157319075504, 12], [12, 48, 0.86467319246923313, 12], [24, 48, 0.78680262296835513, 12]],
+[[0, 24, 0.96798263466509227, 6], [6, 24, 0.65818567220197688, 12], [18, 24, 0.73908977882088944, 6], [24, 24, 0.82487302557597897, 12], [36, 26, 0.86430561725912269, 12]],
+[[0, 38, 0.90647083194752109, 6], [6, 36, 0.70560977074726849, 12], [18, 41, 0.69958018755318219, 18], [36, 48, 0.82169575818820051, 24]],
+[[0, 31, 0.99860424539456261, 12], [12, 31, 0.82183433042147824, 6], [18, 32, 0.65070866181947695, 12], [30, 32, 0.69905866942133588, 12], [42, 29, 0.72838506173658346, 12], [54, 24, 0.71850797197710214, 18]],
+[[0, 29, 0.91596825589630426, 24], [24, 29, 0.82985385666137657, 18], [42, 26, 0.72742602236538489, 12], [54, 29, 0.66912018256160621, 6], [60, 29, 0.78500748670903264, 18], [78, 26, 0.6881865381976181, 6]],
+[[0, 48, 0.91109124045338852, 12], [12, 43, 0.83779434486013782, 12], [24, 29, 0.89932742780191233, 12], [36, 48, 0.87285699721950749, 18], [54, 48, 0.66667755083210567, 6], [60, 31, 0.77364510838250133, 6], [66, 34, 0.68121017665797934, 18], [84, 48, 0.75458189142889587, 12]],
+[[0, 24, 0.91610988067583499, 6], [6, 24, 0.69283383931976206, 18], [24, 31, 0.86954960388291525, 6], [30, 41, 0.70964172763759636, 24], [54, 41, 0.66869042186439875, 18], [72, 26, 0.85554679935647227, 6], [78, 44, 0.7452593301417868, 12], [90, 24, 0.70230156355309659, 18]],
+[[0, 38, 0.91572604900421906, 12], [12, 24, 0.85669267742049171, 24], [36, 32, 0.75305512563237198, 12], [48, 36, 0.82850275998701117, 12], [60, 43, 0.83752493216328128, 6], [66, 48, 0.69291496385445939, 6], [72, 29, 0.77399872521900726, 18], [90, 38, 0.74717264226707192, 12], [102, 24, 0.70543413934708088, 12], [114, 32, 0.69392877841708356, 6]],
+[[0, 46, 0.97472005688917795, 12], [12, 46, 0.84194119398767975, 18], [30, 43, 0.66555036381555965, 24], [54, 43, 0.74324307756224406, 12], [66, 46, 0.73380256622282092, 6], [72, 46, 0.84708920511565566, 12], [84, 43, 0.84284461264370403, 18], [102, 46, 0.66939371879901843, 18], [120, 46, 0.85476657834858305, 6], [126, 43, 0.7178341263302449, 6]],
+[[0, 26, 0.98477962058813506, 24], [24, 34, 0.80939568735824552, 12], [36, 38, 0.81361073583542709, 18], [54, 32, 0.70869496523362796, 18], [72, 24, 0.84849881576388253, 12], [84, 26, 0.8448979295194714, 24], [108, 34, 0.86787145957287393, 6], [114, 26, 0.69594654735848593, 6], [120, 34, 0.89064174225004222, 6], [126, 38, 0.6513207010090184, 12], [138, 32, 0.71588406162575979, 6]],
+[[0, 36, 0.99299083189814874, 12], [12, 26, 0.7793757352389723, 12], [24, 26, 0.87891262851006913, 12], [36, 26, 0.79508658025197543, 24], [60, 24, 0.78774932578170209, 12], [72, 29, 0.84436565395358665, 6], [78, 29, 0.67047539788121191, 6], [84, 36, 0.85070865648335614, 12], [96, 26, 0.81291157668203173, 12], [108, 26, 0.81137644053328883, 6], [114, 26, 0.7070908405665155, 6], [120, 24, 0.88732118605781773, 18], [138, 29, 0.71363255423629335, 12], [150, 29, 0.6562551224096419, 6]],
+[[0, 48, 0.9145300914728598, 18], [18, 26, 0.65478737597866565, 12], [30, 26, 0.74336143186174841, 18], [48, 24, 0.84832197704222434, 18], [66, 38, 0.66659050215889804, 18], [84, 38, 0.78577271653952674, 18], [102, 36, 0.71240931788152573, 12], [114, 48, 0.72252957409017815, 6], [120, 26, 0.85151588910719545, 12], [132, 26, 0.80101498704787144, 12], [144, 24, 0.75795094023862775, 18], [162, 38, 0.69834423836178239, 6]],
+[[0, 24, 0.93926641458085136, 12], [12, 36, 0.77948389082140968, 24], [36, 36, 0.81289668893186617, 12], [48, 41, 0.75005418101981447, 6], [54, 43, 0.7402004647180116, 12], [66, 36, 0.72028460159357122, 6], [72, 36, 0.82194999205376285, 12], [84, 24, 0.84117002163248311, 12], [96, 36, 0.84614119281567446, 12], [108, 36, 0.79298520925066185, 18], [126, 41, 0.68017066195947329, 6], [132, 43, 0.88204412169984758, 12], [144, 36, 0.85107812256406445, 6], [150, 36, 0.69048958195214882, 18], [168, 24, 0.85921334939658633, 6], [174, 36, 0.68223510218825367, 6]],
+[[0, 31, 0.93020373177928939, 12], [12, 44, 0.7774141704623323, 12], [24, 44, 0.77668890968678994, 6], [30, 34, 0.7008398648588019, 6], [36, 31, 0.75180785152119389, 12], [48, 44, 0.88814818559213593, 6], [54, 44, 0.71784084812885407, 24], [78, 31, 0.7454287952418448, 12], [90, 44, 0.67673745972669574, 24], [114, 44, 0.69200031002048668, 12], [126, 34, 0.7269866015235491, 24], [150, 31, 0.65458208183563982, 12], [162, 44, 0.66738698532035112, 6], [168, 44, 0.76108243126768671, 12], [180, 31, 0.78696367769738274, 6], [186, 44, 0.65426009077752789, 6]]],
+46: [[[0, 24, 0.98936795500214048, 12], [12, 26, 0.8725857199028878, 6], [18, 26, 0.74945130936475657, 6]],
+[[0, 26, 0.91342714955476889, 18], [18, 24, 0.73600634216578031, 18]],
+[[0, 41, 0.92197061830769611, 12], [12, 44, 0.76813597123404553, 6], [18, 48, 0.71965709161257196, 12], [30, 44, 0.74736208209228783, 12], [42, 48, 0.72138004467284511, 6]],
+[[0, 48, 0.96150228874234056, 12], [12, 43, 0.80538313467204981, 6], [18, 34, 0.74763178647986428, 18], [36, 29, 0.86138907624828687, 12], [48, 31, 0.7713336458116129, 6], [54, 32, 0.74059310746856022, 3], [57, 32, 0.74168012043862785, 3]],
+[[0, 43, 0.90267126167564915, 6], [6, 48, 0.68550762338300752, 6], [12, 38, 0.76126051705800368, 6], [18, 24, 0.72658312669571978, 6], [24, 32, 0.82272268436261542, 12], [36, 31, 0.80055989612808154, 6], [42, 34, 0.71512219794000553, 12], [54, 43, 0.67618490654574792, 12], [66, 48, 0.73331563951514755, 6]],
+[[0, 32, 0.90084162354046626, 18], [18, 36, 0.6962202313571485, 6], [24, 44, 0.75228358268274065, 12], [36, 36, 0.89150873779349349, 18], [54, 46, 0.70105755626552368, 6], [60, 46, 0.78080578981485371, 12], [72, 48, 0.77446004801761426, 12]],
+[[0, 29, 0.97922264872346088, 6], [6, 29, 0.72624134929249529, 6], [12, 29, 0.89532351953993428, 6], [18, 44, 0.70807811513951047, 6], [24, 24, 0.8174486196182863, 6], [30, 31, 0.69482363461232732, 12], [42, 24, 0.68288720675014736, 12], [54, 29, 0.74007681157863026, 18], [72, 29, 0.75914951581065127, 12], [84, 29, 0.86976201584168966, 12]],
+[[0, 36, 0.90459510602016191, 12], [12, 46, 0.83499262044908307, 12], [24, 48, 0.79834116807130384, 6], [30, 26, 0.72441664918901216, 6], [36, 44, 0.86919260703192891, 3], [39, 36, 0.70674521984748007, 3], [42, 24, 0.66086469769999889, 12], [54, 36, 0.69522290805382292, 6], [60, 46, 0.84446781753633171, 18], [78, 48, 0.66086658227759887, 18], [96, 26, 0.80897513163593149, 6], [102, 44, 0.73459407489365303, 6]],
+[[0, 43, 0.93924794632572528, 6], [6, 32, 0.6945591611020695, 6], [12, 34, 0.80949229767959985, 18], [30, 46, 0.72919046836919421, 18], [48, 48, 0.8134717788585355, 12], [60, 46, 0.82838615030891716, 18], [78, 46, 0.71028310964592689, 12], [90, 43, 0.68937364956843228, 12], [102, 32, 0.73027000218772553, 6], [108, 34, 0.86475237617393352, 12]],
+[[0, 48, 0.96566111301749458, 6], [6, 32, 0.72917047570486515, 12], [18, 32, 0.71148252742944496, 12], [30, 29, 0.70679605502998832, 18], [48, 26, 0.75584518483053598, 6], [54, 34, 0.6811621127306261, 12], [66, 32, 0.68833408725878464, 6], [72, 48, 0.82235365824929163, 6], [78, 32, 0.66591095525241761, 3], [81, 32, 0.66021028495125067, 3], [84, 29, 0.79173440490329239, 3], [87, 26, 0.67368047069234582, 3], [90, 34, 0.73272042962618922, 6], [96, 32, 0.79542685466292851, 12], [108, 48, 0.82806466407964363, 6], [114, 32, 0.68414571547298542, 18]],
+[[0, 34, 0.97982131352186275, 12], [12, 46, 0.76663601549914517, 12], [24, 46, 0.79522963632211419, 12], [36, 44, 0.87563518029394205, 12], [48, 43, 0.87004933235590276, 12], [60, 38, 0.75515434305697648, 18], [78, 44, 0.73502834003347151, 18], [96, 34, 0.81050043794001714, 6], [102, 46, 0.68458323374698293, 6], [108, 46, 0.75798345906799847, 18], [126, 44, 0.71039049275098332, 12], [138, 43, 0.67242007737444498, 6]],
+[[0, 46, 0.99576252550471833, 6], [6, 46, 0.65428187477849453, 6], [12, 48, 0.79191439619625525, 6], [18, 38, 0.72196581686389361, 3], [21, 38, 0.73848265695895554, 3], [24, 48, 0.78839507949966714, 18], [42, 43, 0.69283161812632166, 6], [48, 46, 0.77057075699121091, 6], [54, 46, 0.67268040267709106, 6], [60, 48, 0.75715342455569856, 12], [72, 38, 0.76865345125453155, 6], [78, 38, 0.71621452637210103, 12], [90, 48, 0.67575520105082076, 12], [102, 43, 0.65545693460725085, 12], [114, 46, 0.68594615809584081, 18], [132, 46, 0.85089178854885861, 12], [144, 48, 0.7775819136615717, 12]],
+[[0, 26, 0.91204589862776331, 6], [6, 24, 0.65725226436622575, 12], [18, 38, 0.70589520354606983, 6], [24, 24, 0.85428233582616908, 12], [36, 36, 0.8210926817074965, 6], [42, 34, 0.72735330726704661, 6], [48, 24, 0.82236616446931021, 6], [54, 26, 0.69523663005024861, 18], [72, 24, 0.77037034472791677, 18], [90, 38, 0.66650664743846366, 6], [96, 24, 0.86557375572850714, 6], [102, 36, 0.71464924511763483, 12], [114, 34, 0.66045460501773134, 18], [132, 24, 0.83215740371008551, 6], [138, 26, 0.65675244007484346, 3], [141, 24, 0.65217040181631092, 3], [144, 38, 0.79095619602758349, 6], [150, 24, 0.72792690053110287, 18]],
+[[0, 48, 0.91353414447482584, 12], [12, 38, 0.80723220783918959, 6], [18, 46, 0.69970937995729621, 18], [36, 48, 0.80601266074097278, 12], [48, 41, 0.78903273705012478, 18], [66, 46, 0.71641414111740565, 6], [72, 46, 0.75028740499683833, 6], [78, 48, 0.65994887433315086, 12], [90, 38, 0.65924310117492835, 12], [102, 46, 0.73345768424869884, 12], [114, 48, 0.71252845506308693, 12], [126, 41, 0.73208435584190035, 18], [144, 46, 0.89875653999865279, 3], [147, 46, 0.73230694567723975, 3], [150, 48, 0.67213046457170633, 18], [168, 38, 0.84145146755179412, 12]],
+[[0, 44, 0.92056142034809041, 12], [12, 36, 0.78341582320301939, 12], [24, 41, 0.86742257622018359, 18], [42, 34, 0.66524939146368733, 6], [48, 36, 0.87145223538443806, 3], [51, 36, 0.69934000929309625, 3], [54, 36, 0.65357590086799888, 6], [60, 44, 0.75669508915750949, 6], [66, 36, 0.67509691447151443, 18], [84, 41, 0.7702148463400027, 12], [96, 34, 0.76626806236210954, 6], [102, 36, 0.71883392128680645, 18], [120, 36, 0.8607349482392016, 18], [138, 36, 0.66983240788185805, 12], [150, 44, 0.69310617366290528, 6], [156, 36, 0.76328775296649676, 18], [174, 41, 0.66317185089445119, 6], [180, 34, 0.82202580930023839, 6], [186, 36, 0.72000925128923243, 6]]],
+47: [[[0, 24, 0.96436166550371705, 12], [12, 36, 0.89596858005994284, 12]],
+[[0, 31, 0.97984081066535356, 6], [6, 24, 0.65050021275323744, 12], [18, 24, 0.66074812271835204, 6], [24, 31, 0.81595555542728559, 3], [27, 38, 0.6814378442138096, 3], [30, 44, 0.65465035832766061, 3], [33, 46, 0.71934609827667628, 3]],
+[[0, 31, 0.92654893791600468, 6], [6, 36, 0.67944996686385473, 3], [9, 34, 0.70392356962536462, 3], [12, 41, 0.78222076421122189, 3], [15, 41, 0.73844016515663435, 3], [18, 34, 0.74932329005321885, 6], [24, 41, 0.85868574917435181, 18], [42, 41, 0.65567752839536675, 6]],
+[[0, 29, 0.95631996032378352, 6], [6, 32, 0.71616432108529993, 12], [18, 31, 0.69983787556030508, 12], [30, 24, 0.6741017619665518, 12], [42, 31, 0.71593320085734369, 12], [54, 29, 0.72130870749001708, 6]],
+[[0, 48, 0.98078574674845964, 12], [12, 48, 0.76321202443526037, 3], [15, 26, 0.67215518427261489, 3], [18, 26, 0.65394749242537942, 12], [30, 26, 0.6535350502919629, 6], [36, 48, 0.87193943203092017, 3], [39, 48, 0.71808674210353562, 3], [42, 26, 0.67600051341633594, 12], [54, 48, 0.72123495667941184, 6], [60, 48, 0.89321034135597643, 6], [66, 26, 0.74578526232041265, 6]],
+[[0, 48, 0.93712811177439304, 6], [6, 43, 0.66564870435097201, 12], [18, 48, 0.74028380083875733, 3], [21, 36, 0.68860784075824222, 3], [24, 24, 0.7802966297096281, 12], [36, 26, 0.86421789340290067, 6], [42, 24, 0.73832915461163307, 18], [60, 43, 0.75718696867154889, 12], [72, 48, 0.77679523252284222, 6], [78, 43, 0.7089038041814234, 6]],
+[[0, 44, 0.96011118545875962, 12], [12, 48, 0.80958581796983653, 6], [18, 29, 0.66166116341307057, 6], [24, 26, 0.81291843015095178, 12], [36, 26, 0.83623976512626863, 12], [48, 48, 0.76597244988267643, 18], [66, 29, 0.69817447895364459, 6], [72, 26, 0.77894655905344223, 6], [78, 44, 0.66191683505768184, 12], [90, 48, 0.68688489955518506, 6]],
+[[0, 26, 0.91403835744678918, 12], [12, 31, 0.82432824074420863, 6], [18, 48, 0.7426177213348174, 3], [21, 41, 0.7104698141081166, 3], [24, 44, 0.81381540617798098, 6], [30, 48, 0.66155237631957042, 6], [36, 41, 0.85785233344621081, 6], [42, 44, 0.68916768861534361, 6], [48, 26, 0.77360390681604285, 12], [60, 31, 0.77104632253770133, 12], [72, 48, 0.79003221372953225, 6], [78, 41, 0.72844679892540587, 3], [81, 44, 0.69195903746608267, 3], [84, 48, 0.84361875554256582, 3], [87, 41, 0.71422509136568124, 3], [90, 44, 0.68104538609955145, 6], [96, 26, 0.8623827696214057, 6], [102, 31, 0.74453671117172249, 6]],
+[[0, 41, 0.99800919268824373, 12], [12, 38, 0.86581234932815587, 12], [24, 48, 0.87579888319654553, 6], [30, 46, 0.66792267472180389, 12], [42, 46, 0.6993955554171144, 6], [48, 38, 0.84723370646891383, 12], [60, 31, 0.7505539215069259, 6], [66, 31, 0.74656554325840685, 6], [72, 41, 0.87223688150903989, 12], [84, 38, 0.7856888122902681, 12], [96, 48, 0.86124015585108871, 6], [102, 46, 0.65428663621264305, 6], [108, 46, 0.76907935042708864, 6], [114, 38, 0.69636050598628829, 6]],
+[[0, 29, 0.99697833355308418, 6], [6, 26, 0.67460788226697121, 6], [12, 24, 0.78045698236785921, 6], [18, 24, 0.69621873294570424, 18], [36, 36, 0.84455295772741079, 3], [39, 36, 0.65587409691953691, 3], [42, 48, 0.74122068767493676, 6], [48, 38, 0.83433637629965007, 6], [54, 29, 0.68138331955117426, 6], [60, 26, 0.83099295045240273, 12], [72, 24, 0.84712521357478177, 6], [78, 24, 0.67390547683173652, 12], [90, 36, 0.66822044867779107, 12], [102, 36, 0.68252019570944111, 6], [108, 48, 0.77988724409287391, 6], [114, 38, 0.70423632263040159, 6], [120, 29, 0.88149376688498593, 6], [126, 26, 0.65490319484847337, 6]],
+[[0, 24, 0.93017094330195482, 6], [6, 41, 0.74807489402756966, 12], [18, 24, 0.66753009486824688, 6], [24, 32, 0.79809166086615801, 12], [36, 41, 0.77314292075660851, 12], [48, 41, 0.88070763408231278, 6], [54, 24, 0.70095422289303155, 6], [60, 32, 0.86435696971092979, 6], [66, 24, 0.66646358407027384, 12], [78, 41, 0.68036199190656155, 6], [84, 24, 0.87954038764659437, 6], [90, 32, 0.73951623472144168, 18], [108, 41, 0.82835069143262463, 6], [114, 41, 0.70549966732057079, 12], [126, 24, 0.74223773650726577, 6], [132, 32, 0.84946088209079007, 12]],
+[[0, 46, 0.90297908855009956, 12], [12, 26, 0.79866419118484133, 6], [18, 26, 0.66913338202691175, 6], [24, 24, 0.77347882923146871, 12], [36, 26, 0.81203140007423813, 6], [42, 24, 0.73539798684034385, 12], [54, 46, 0.71194781810941854, 6], [60, 26, 0.85433963692556647, 12], [72, 46, 0.87689445657447951, 12], [84, 26, 0.84196260448168403, 12], [96, 26, 0.87644670007251124, 12], [108, 24, 0.7549210210990851, 12], [120, 26, 0.76643046199902609, 18], [138, 24, 0.71634106230086525, 6], [144, 46, 0.85359482772541573, 6], [150, 26, 0.67240668470239728, 3], [153, 46, 0.69567792876667001, 3]],
+[[0, 36, 0.96768870078758251, 6], [6, 38, 0.68656724560009963, 3], [9, 43, 0.65546829443655541, 3], [12, 36, 0.80274060698965111, 6], [18, 38, 0.69585012436327243, 12], [30, 43, 0.74718930906061842, 12], [42, 48, 0.69197537366554862, 6], [48, 43, 0.86636613482671421, 3], [51, 36, 0.744467246104074, 3], [54, 38, 0.73609346610103676, 6], [60, 43, 0.83199451794032453, 6], [66, 36, 0.6658128355304358, 12], [78, 38, 0.73439343116763378, 3], [81, 43, 0.65666429101882384, 3], [84, 48, 0.78075183708432538, 12], [96, 43, 0.86322716544829858, 6], [102, 36, 0.72889155937294903, 6], [108, 38, 0.84441202926089609, 12], [120, 43, 0.7792597750446173, 6], [126, 36, 0.66183471258142346, 3], [129, 38, 0.68690149986916704, 3], [132, 43, 0.77484017024605367, 12], [144, 48, 0.86382172928033463, 12], [156, 43, 0.82845496352022174, 12]],
+[[0, 24, 0.95877589814905928, 12], [12, 24, 0.86402668645625536, 6], [18, 38, 0.67654671626649709, 6], [24, 31, 0.75469335642480484, 12], [36, 44, 0.75338304394865629, 6], [42, 36, 0.68532548312939268, 12], [54, 24, 0.65460204182087589, 12], [66, 24, 0.69055422573613345, 6], [72, 24, 0.76571365104017142, 12], [84, 24, 0.87876484135603161, 6], [90, 38, 0.66006265123033936, 12], [102, 31, 0.66784321990659001, 12], [114, 44, 0.66460955797330634, 6], [120, 36, 0.79361056032448984, 6], [126, 24, 0.65863282519248267, 6], [132, 24, 0.7779794960700277, 12], [144, 24, 0.86039971962788286, 6], [150, 24, 0.69794868928649756, 6], [156, 38, 0.75701145978860662, 12], [168, 31, 0.81903747049107334, 12]],
+[[0, 26, 0.92731505235156875, 6], [6, 26, 0.70830731594634944, 6], [12, 38, 0.79439268104124594, 6], [18, 36, 0.66580040303799148, 18], [36, 26, 0.83225693639708787, 12], [48, 38, 0.82408337171411206, 12], [60, 36, 0.76165812649061437, 12], [72, 26, 0.89726190068072686, 6], [78, 26, 0.66681232448147632, 6], [84, 26, 0.84865751983676052, 6], [90, 38, 0.72314954409401377, 12], [102, 36, 0.65118800561733181, 12], [114, 26, 0.65187584402129273, 6], [120, 38, 0.89343952953417505, 12], [132, 36, 0.77214997613009773, 12], [144, 26, 0.87759314660843568, 6], [150, 26, 0.68770781842881901, 12], [162, 26, 0.69421605418181964, 12], [174, 38, 0.73609851193703324, 6], [180, 36, 0.79062766692084263, 6], [186, 26, 0.66180998753627396, 6]]],
+48: [[[0, 31, 0.9519845782009323, 6], [6, 31, 0.66148664109175825, 18]],
+[[0, 43, 0.91532500492313373, 6], [6, 34, 0.7403339511644994, 12], [18, 32, 0.6779900839320373, 6], [24, 38, 0.82051823313134731, 3], [27, 38, 0.65974821012589824, 3], [30, 29, 0.67086094101346394, 6]],
+[[0, 24, 0.94247397519817111, 12], [12, 29, 0.84199947027876887, 3], [15, 36, 0.72689179924952474, 3], [18, 46, 0.7411628066580358, 12], [30, 44, 0.74555256350167287, 6], [36, 46, 0.89146323822368334, 6], [42, 48, 0.65549927868472324, 6]],
+[[0, 24, 0.9808503761982903, 12], [12, 48, 0.77450328215074549, 3], [15, 46, 0.70615547638190712, 3], [18, 46, 0.7454969641584982, 12], [30, 46, 0.74678547682851204, 6], [36, 38, 0.78077895797871344, 3], [39, 48, 0.72198828244836766, 3], [42, 44, 0.72417041099996959, 6], [48, 24, 0.87403047743884932, 3], [51, 48, 0.69486989229810248, 3], [54, 46, 0.7042507192325661, 6]],
+[[0, 44, 0.91188180781469952, 6], [6, 26, 0.7366927499671333, 6], [12, 26, 0.86348436022561226, 6], [18, 24, 0.6756743242488169, 6], [24, 31, 0.78033470861633958, 12], [36, 26, 0.77496034322686391, 18], [54, 26, 0.72419806101814177, 12], [66, 41, 0.68294371531280296, 6]],
+[[0, 46, 0.92798151101057813, 6], [6, 24, 0.72061416945619705, 12], [18, 29, 0.72949356728269543, 6], [24, 34, 0.79280389990678279, 3], [27, 36, 0.69421662656233474, 3], [30, 48, 0.67682744149388785, 6], [36, 36, 0.85250439618108365, 6], [42, 24, 0.71510916671607383, 3], [45, 46, 0.73873132201074709, 3], [48, 24, 0.81948744555493125, 12], [60, 29, 0.79548553736625749, 6], [66, 34, 0.72452034163708356, 12], [78, 36, 0.68536000884940451, 6]],
+[[0, 46, 0.90342579335593731, 6], [6, 46, 0.66490476575762192, 6], [12, 48, 0.80292287003408092, 12], [24, 24, 0.86221231313468571, 6], [30, 38, 0.69099375209944935, 6], [36, 26, 0.80589866931009446, 12], [48, 43, 0.87526374789588757, 12], [60, 48, 0.78721411230441674, 18], [78, 46, 0.66001437891244952, 6], [84, 46, 0.84718022231797663, 6], [90, 48, 0.74438818227729919, 6]],
+[[0, 34, 0.93770175168675274, 12], [12, 29, 0.77090498921403972, 6], [18, 44, 0.68849327491827483, 6], [24, 29, 0.86242519755135338, 6], [30, 41, 0.73533731287626813, 3], [33, 31, 0.71575422366178032, 3], [36, 48, 0.85276040811569664, 6], [42, 32, 0.7397355390011191, 3], [45, 34, 0.67409129361889775, 3], [48, 29, 0.88016497508424241, 6], [54, 44, 0.7497812048863457, 3], [57, 29, 0.68301316873471796, 3], [60, 41, 0.77186513410567581, 6], [66, 31, 0.69429290594744519, 3], [69, 48, 0.74667857629133527, 3], [72, 32, 0.86112461242461691, 6], [78, 34, 0.66333971667947988, 6], [84, 29, 0.75624000582403739, 3], [87, 44, 0.74821289732267859, 3], [90, 29, 0.70020528791581549, 12], [102, 41, 0.73932247740689339, 6]],
+[[0, 48, 0.99724344651642349, 6], [6, 31, 0.69475186417773549, 12], [18, 26, 0.66804122941437505, 3], [21, 36, 0.67715293702264201, 3], [24, 24, 0.82444607529031788, 12], [36, 24, 0.86737774266482226, 12], [48, 34, 0.80470232571193012, 12], [60, 44, 0.76852323168203951, 3], [63, 48, 0.65248258870905151, 3], [66, 31, 0.67080283101652238, 6], [72, 26, 0.82800046156540985, 6], [78, 36, 0.66089124432250068, 6], [84, 24, 0.78068807481894831, 6], [90, 24, 0.71241677172969764, 6], [96, 34, 0.82314485719462338, 12], [108, 44, 0.88205060634196275, 6], [114, 48, 0.66121512628784396, 3], [117, 31, 0.6869402406581181, 3]],
+[[0, 29, 0.98114302925233732, 12], [12, 24, 0.86032943343795687, 12], [24, 26, 0.75186332506936671, 6], [30, 24, 0.70905655529709044, 6], [36, 29, 0.77032812359988923, 6], [42, 29, 0.74640723995290414, 6], [48, 29, 0.88666734900794419, 12], [60, 41, 0.85101348459529869, 6], [66, 29, 0.74511174373503108, 12], [78, 24, 0.66051747217393508, 12], [90, 26, 0.72687112102642848, 6], [96, 24, 0.88250841970159766, 3], [99, 29, 0.74143059236535069, 3], [102, 29, 0.67239561775642986, 6], [108, 29, 0.88191725154236456, 6], [114, 41, 0.73560140482856129, 12], [126, 29, 0.7081332126576193, 3], [129, 24, 0.68983794788026498, 3]],
+[[0, 36, 0.96595818273256528, 12], [12, 31, 0.84436398777525179, 3], [15, 36, 0.72450729579584827, 3], [18, 29, 0.74438957992389043, 6], [24, 34, 0.8768189634671848, 12], [36, 26, 0.85743207173718183, 3], [39, 44, 0.69008383418869457, 3], [42, 24, 0.70944847757565099, 6], [48, 36, 0.81499371421277444, 6], [54, 31, 0.72947094220567699, 6], [60, 36, 0.89655275133783419, 6], [66, 29, 0.7187511681399904, 12], [78, 34, 0.6933835554429989, 3], [81, 26, 0.74111496686863243, 3], [84, 44, 0.83978279767798858, 6], [90, 24, 0.66137695908950145, 12], [102, 36, 0.732209492112884, 6], [108, 31, 0.75056348828755237, 6], [114, 36, 0.74022393982853973, 6], [120, 29, 0.8087512982510201, 6], [126, 34, 0.65364047126839175, 3], [129, 26, 0.73727881786794847, 3], [132, 44, 0.78855945462701182, 12]],
+[[0, 44, 0.91464355200880987, 12], [12, 26, 0.89190697112402662, 12], [24, 26, 0.77056561125832623, 12], [36, 24, 0.88359184969486471, 3], [39, 24, 0.7249299538781746, 3], [42, 34, 0.68282535051255366, 12], [54, 36, 0.66975070693284722, 3], [57, 36, 0.72285153108276079, 3], [60, 44, 0.86685826038148983, 6], [66, 26, 0.67323082698532211, 6], [72, 26, 0.87931775084878305, 6], [78, 24, 0.73870864878076481, 12], [90, 24, 0.73244848057180389, 12], [102, 34, 0.71103604967480161, 12], [114, 36, 0.6707548109158028, 6], [120, 36, 0.87436863593253322, 3], [123, 44, 0.74708637155716939, 3], [126, 26, 0.68600327879947898, 6], [132, 26, 0.8961768994620104, 3], [135, 24, 0.71746522902882126, 3], [138, 24, 0.73932198976408259, 6], [144, 34, 0.79988535620524992, 6], [150, 36, 0.66619714499791627, 6]],
+[[0, 41, 0.95463348434194217, 6], [6, 26, 0.70851865153930138, 3], [9, 43, 0.70222886795777006, 3], [12, 36, 0.75132011300729218, 6], [18, 36, 0.74375444208246821, 6], [24, 43, 0.85718822108503701, 3], [27, 29, 0.73563350547849959, 3], [30, 26, 0.71017541202023149, 12], [42, 41, 0.74962435400571248, 18], [60, 26, 0.82997355917312854, 3], [63, 43, 0.67078704439485903, 3], [66, 36, 0.70237730017512046, 3], [69, 36, 0.65362282475543176, 3], [72, 43, 0.88755913713788015, 3], [75, 29, 0.67546352280279975, 3], [78, 26, 0.68103639567219509, 3], [81, 41, 0.71968625907625206, 3], [84, 26, 0.7899489720240308, 6], [90, 43, 0.72544169148392346, 12], [102, 36, 0.72720827241034625, 12], [114, 36, 0.72693697364201459, 3], [117, 43, 0.66684702262945905, 3], [120, 29, 0.88998305373736775, 3], [123, 26, 0.66204492866375064, 3], [126, 41, 0.71500172487711045, 6], [132, 26, 0.81860063306260966, 12], [144, 43, 0.85908584938115973, 6], [150, 36, 0.69749876493385643, 12], [162, 36, 0.74902807931348048, 6]],
+[[0, 36, 0.90307095049117447, 3], [3, 48, 0.72610164917878661, 3], [6, 44, 0.72977750551822052, 3], [9, 36, 0.68591572662251998, 3], [12, 36, 0.78068176970337999, 6], [18, 44, 0.74405365765520026, 18], [36, 48, 0.79850326213735845, 12], [48, 29, 0.87713229787566283, 6], [54, 36, 0.74418860979845081, 6], [60, 48, 0.81422308476884964, 12], [72, 44, 0.85065876317830047, 12], [84, 36, 0.75690865842308042, 3], [87, 36, 0.6990783435665251, 3], [90, 44, 0.67301633338681688, 6], [96, 48, 0.8276138327257383, 6], [102, 29, 0.68049226775505456, 6], [108, 36, 0.7966531044521572, 6], [114, 48, 0.74435834505880594, 6], [120, 44, 0.8565903479322643, 6], [126, 36, 0.67188137483548993, 18], [144, 36, 0.8647502488189025, 3], [147, 44, 0.67659905220269156, 3], [150, 48, 0.6620787364639551, 12], [162, 29, 0.68878643582028176, 12], [174, 36, 0.7028283501011624, 3], [177, 48, 0.74951708626591462, 3]],
+[[0, 24, 0.93436078191478544, 6], [6, 43, 0.67580812458692985, 6], [12, 44, 0.82866586482264748, 18], [30, 48, 0.67143260653238224, 6], [36, 24, 0.77169242534726412, 12], [48, 24, 0.88151519667429012, 12], [60, 43, 0.86159247507435643, 6], [66, 43, 0.65446589153881629, 3], [69, 24, 0.65834482751684675, 3], [72, 43, 0.86991463923783929, 3], [75, 44, 0.7028434141085188, 3], [78, 48, 0.73463539580328008, 12], [90, 24, 0.74275872107052898, 18], [108, 24, 0.86860947895014051, 6], [114, 43, 0.74634760633904884, 6], [120, 43, 0.75575254291387484, 3], [123, 24, 0.72417709780114592, 3], [126, 43, 0.72629007614077001, 18], [144, 44, 0.884582212278059, 6], [150, 48, 0.67857423305759201, 6], [156, 24, 0.80769295784005646, 6], [162, 24, 0.72307184943733394, 6], [168, 43, 0.83998167334502072, 18], [186, 43, 0.68771023215321669, 3], [189, 24, 0.74879753520920977, 3]]],
+51: [[[0, 36, 0.99541106009076363, 6], [6, 46, 0.73260915769346213, 18]],
+[[0, 36, 0.95686326372439812, 6], [6, 29, 0.66803852617132675, 12], [18, 43, 0.69620494584044779, 3], [21, 48, 0.71732205090126322, 3], [24, 43, 0.87837728290941208, 6], [30, 34, 0.66855319815863457, 3], [33, 48, 0.7204477918766885, 3]],
+[[0, 41, 0.98441254489755303, 12], [12, 24, 0.83875070200413304, 3], [15, 34, 0.67858661840639345, 3], [18, 36, 0.72718943244090883, 6], [24, 41, 0.77340447855700356, 3], [27, 24, 0.66548175645723961, 3], [30, 34, 0.66650306595873321, 6], [36, 36, 0.76605460892682264, 3], [39, 36, 0.74891609241534274, 3], [42, 41, 0.72996864216851987, 6]],
+[[0, 36, 0.93173094953488189, 3], [3, 43, 0.74073950691436141, 3], [6, 48, 0.70072348146699315, 6], [12, 41, 0.76569067925602818, 6], [18, 31, 0.69922249726037244, 3], [21, 26, 0.68786064845143091, 3], [24, 24, 0.76026064513566438, 12], [36, 31, 0.85690315396728145, 18], [54, 48, 0.66886452291774134, 6]],
+[[0, 24, 0.93884332604277865, 6], [6, 44, 0.69197509491892684, 12], [18, 26, 0.7483747098573984, 12], [30, 36, 0.6558579311285917, 12], [42, 36, 0.73335616918422786, 12], [54, 24, 0.65320763147080885, 6], [60, 41, 0.84820638534294346, 12]],
+[[0, 31, 0.96383778280217647, 3], [3, 32, 0.6827880150714456, 3], [6, 29, 0.70447053132698045, 6], [12, 31, 0.87367112434651306, 6], [18, 32, 0.74348275851346324, 6], [24, 29, 0.77360797269140757, 12], [36, 31, 0.79043953832063374, 6], [42, 32, 0.72627113577016511, 6], [48, 29, 0.84376500788700848, 12], [60, 31, 0.81462177207714259, 18], [78, 32, 0.68169125425191512, 6]],
+[[0, 31, 0.96068171090739762, 6], [6, 26, 0.65861447380552907, 12], [18, 26, 0.74101651247292311, 6], [24, 26, 0.78726048069792942, 12], [36, 46, 0.83565851088859266, 6], [42, 38, 0.73391584839476232, 6], [48, 44, 0.82934710206140072, 3], [51, 26, 0.72444014962606285, 3], [54, 46, 0.67278460617157154, 6], [60, 31, 0.77345755765203228, 3], [63, 26, 0.67551175192672341, 3], [66, 26, 0.68034946847861044, 6], [72, 26, 0.82150284683550578, 12], [84, 46, 0.7948886836198481, 6], [90, 38, 0.7037327477333748, 6]],
+[[0, 46, 0.91853925086365051, 6], [6, 48, 0.71034375361418967, 6], [12, 26, 0.80642025296922737, 6], [18, 44, 0.66175212491105695, 6], [24, 48, 0.76165156043098392, 18], [42, 32, 0.70579875836028549, 12], [54, 34, 0.70550361289299857, 6], [60, 44, 0.83584841426872336, 12], [72, 48, 0.78773502919200367, 3], [75, 46, 0.71030351931987157, 3], [78, 48, 0.73706171261138342, 6], [84, 26, 0.76436734995810229, 3], [87, 44, 0.65720279263841008, 3], [90, 48, 0.67912438999196589, 18]],
+[[0, 43, 0.97231796897286327, 3], [3, 26, 0.72658244613224088, 3], [6, 48, 0.73681970189006962, 12], [18, 36, 0.68032126142051519, 3], [21, 24, 0.67535741140257477, 3], [24, 26, 0.78389505191830122, 3], [27, 48, 0.70788715139682046, 3], [30, 36, 0.70687613347167932, 3], [33, 24, 0.70361798003115472, 3], [36, 43, 0.80560120866659679, 3], [39, 26, 0.72308872983396277, 3], [42, 48, 0.68206261793670431, 12], [54, 36, 0.7323321047104826, 3], [57, 24, 0.74968366579280366, 3], [60, 26, 0.75527865850601394, 6], [66, 48, 0.7342044083489675, 3], [69, 36, 0.6672363054315491, 3], [72, 24, 0.89189183056065324, 6], [78, 43, 0.67292403795720823, 6], [84, 26, 0.75614257965761245, 12], [96, 48, 0.84013511294014387, 12], [108, 36, 0.82043615367446099, 12]],
+[[0, 44, 0.94162462678270076, 6], [6, 48, 0.70758802315634106, 6], [12, 43, 0.7712703029104484, 12], [24, 26, 0.80228725499455, 12], [36, 24, 0.79627887815800358, 6], [42, 46, 0.73384835033396267, 3], [45, 48, 0.66943773616310254, 3], [48, 43, 0.81503270622407853, 6], [54, 26, 0.7026295837129779, 3], [57, 44, 0.72849293289411399, 3], [60, 48, 0.84241732215133736, 6], [66, 43, 0.72272501393930599, 6], [72, 26, 0.77484508677855668, 6], [78, 24, 0.70336201048446545, 3], [81, 46, 0.66362489844933381, 3], [84, 48, 0.79850379562086116, 6], [90, 43, 0.70560593407415961, 6], [96, 26, 0.87901638630403822, 6], [102, 44, 0.74054388969005958, 12], [114, 48, 0.73235687793300708, 3], [117, 43, 0.68422042763291202, 3], [120, 26, 0.86692578940904619, 6], [126, 24, 0.72068804918849294, 6]],
+[[0, 29, 0.96256192704686339, 12], [12, 43, 0.83644191013924363, 12], [24, 48, 0.87365209097936702, 3], [27, 29, 0.67152519733045435, 3], [30, 43, 0.68707777109903168, 12], [42, 48, 0.67147736168069372, 12], [54, 29, 0.73243234399052037, 3], [57, 43, 0.65776330067453748, 3], [60, 48, 0.7725591356173247, 6], [66, 29, 0.69106262611054892, 6], [72, 43, 0.79738795870023782, 12], [84, 48, 0.81298152427672787, 3], [87, 29, 0.6892770578442734, 3], [90, 43, 0.67301082230280085, 3], [93, 48, 0.74249401425620687, 3], [96, 29, 0.81091557267987957, 3], [99, 43, 0.66546631289543168, 3], [102, 48, 0.67623614844894886, 6], [108, 29, 0.8676349042942858, 6], [114, 43, 0.74316735913931642, 3], [117, 48, 0.71928697423910515, 3], [120, 29, 0.76838043481181306, 3], [123, 43, 0.67806300432936784, 3], [126, 48, 0.66559009320239737, 3], [129, 29, 0.70113644402896613, 3], [132, 43, 0.82894103239279027, 12]],
+[[0, 46, 0.92776096885657522, 6], [6, 24, 0.73134122605612739, 3], [9, 31, 0.68345375915203654, 3], [12, 44, 0.87420851960683199, 12], [24, 48, 0.8678492318367711, 6], [30, 32, 0.71144667301571618, 6], [36, 24, 0.75153428220284213, 6], [42, 46, 0.71993570546108121, 6], [48, 48, 0.77902857360954858, 18], [66, 46, 0.73711284553879119, 12], [78, 24, 0.71195028564497043, 3], [81, 31, 0.67424411174773646, 3], [84, 44, 0.78512044332988085, 3], [87, 48, 0.70818997136283768, 3], [90, 32, 0.7466392526898834, 6], [96, 24, 0.81655116865225519, 12], [108, 46, 0.80546194638380708, 3], [111, 48, 0.68944727354868562, 3], [114, 46, 0.72776658462333998, 12], [126, 24, 0.66664584210135303, 6], [132, 31, 0.76820075138106436, 6], [138, 44, 0.73942218197476839, 3], [141, 48, 0.68662434669989458, 3], [144, 32, 0.75600496647433579, 12]],
+[[0, 24, 0.94447346683772171, 12], [12, 24, 0.82748642311994747, 3], [15, 26, 0.68771656411080606, 3], [18, 31, 0.72752749656233118, 6], [24, 36, 0.79974025112004887, 3], [27, 34, 0.66923137260807042, 3], [30, 36, 0.67953027812430822, 6], [36, 24, 0.76028612519095962, 3], [39, 24, 0.6906262033787155, 3], [42, 24, 0.65053940906441554, 12], [54, 24, 0.6863614318272907, 12], [66, 26, 0.71947974017820226, 18], [84, 31, 0.76856508797784928, 12], [96, 36, 0.87348145059144677, 6], [102, 34, 0.73171436916605759, 3], [105, 36, 0.74978579055393968, 3], [108, 24, 0.86589898897346063, 6], [114, 24, 0.65715155321904162, 6], [120, 24, 0.82559794401373443, 12], [132, 24, 0.75907585472953332, 6], [138, 26, 0.67966513594643874, 12], [150, 31, 0.72189614576130379, 12], [162, 36, 0.66348043156904546, 3], [165, 34, 0.71246288969432103, 3]],
+[[0, 24, 0.96476677851370174, 18], [18, 24, 0.73153489970804675, 12], [30, 46, 0.65526862093698579, 6], [36, 38, 0.75770643465602272, 3], [39, 38, 0.70502630976199332, 3], [42, 26, 0.65905345820305283, 3], [45, 24, 0.71426954141581767, 3], [48, 24, 0.86442336284178423, 12], [60, 46, 0.86693010636499335, 3], [63, 24, 0.68033137658618004, 3], [66, 24, 0.72012878410836212, 6], [72, 46, 0.85651709516576457, 12], [84, 38, 0.76191899481707759, 3], [87, 38, 0.68513576862496905, 3], [90, 26, 0.65480239055086376, 3], [93, 24, 0.73468527194735422, 3], [96, 24, 0.82671042584779708, 6], [102, 46, 0.74888888911233664, 12], [114, 24, 0.70018194130598388, 6], [120, 24, 0.78554771433546955, 3], [123, 46, 0.70367003907937842, 3], [126, 38, 0.69971125676923995, 12], [138, 38, 0.66326329961671582, 6], [144, 26, 0.84248706140873242, 3], [147, 24, 0.7061422673494, 3], [150, 24, 0.72738625432801973, 3], [153, 46, 0.73857255301164837, 3], [156, 24, 0.82155527238585901, 12], [168, 24, 0.7689170266375428, 3], [171, 46, 0.70917658857947652, 3], [174, 38, 0.71683146061854774, 3], [177, 38, 0.73060733591262572, 3]],
+[[0, 44, 0.90594953197942985, 12], [12, 48, 0.84427460948140198, 12], [24, 24, 0.89938337425993853, 3], [27, 46, 0.73462690905700456, 3], [30, 48, 0.72714428931624742, 12], [42, 41, 0.69231330443415939, 6], [48, 41, 0.89895809465945908, 12], [60, 48, 0.84483983739107837, 12], [72, 41, 0.85755605437050186, 12], [84, 44, 0.78539378658510373, 6], [90, 48, 0.69481376986701071, 18], [108, 24, 0.83558669338406344, 18], [126, 46, 0.70632773695847928, 6], [132, 48, 0.86059238425530005, 3], [135, 41, 0.71512272400183474, 3], [138, 41, 0.74878235700842599, 3], [141, 48, 0.68347688078001578, 3], [144, 41, 0.86236412036937615, 6], [150, 44, 0.68695711055368791, 3], [153, 48, 0.69574560451383161, 3], [156, 24, 0.89574453585474556, 3], [159, 46, 0.68917137441437382, 3], [162, 48, 0.67197177122195872, 3], [165, 41, 0.74566437758167992, 3], [168, 41, 0.76346738520215651, 3], [171, 48, 0.71775023190012277, 3], [174, 41, 0.65393495050357608, 6], [180, 44, 0.82028773327358029, 6], [186, 48, 0.74754757317857623, 3], [189, 24, 0.73598852398275449, 3]]],
+60: [[[0, 46, 0.95495846582732946, 6], [6, 46, 0.7056084509580911, 6], [12, 46, 0.7979565175650446, 6], [18, 48, 0.67692159599480106, 3], [21, 24, 0.70041613490042598, 3]],
+[[0, 24, 0.93457689485656936, 12], [12, 36, 0.82833675359799286, 12], [24, 36, 0.81253761435252581, 3], [27, 24, 0.69315158189008297, 3], [30, 46, 0.66162730059443342, 3], [33, 46, 0.74582388744615435, 3]],
+[[0, 36, 0.95938443142216379, 6], [6, 44, 0.6794744896786209, 3], [9, 31, 0.71929919286346189, 3], [12, 29, 0.88909861618976249, 3], [15, 46, 0.74280227615973171, 3], [18, 34, 0.74877365184948597, 3], [21, 38, 0.70274444701105809, 3], [24, 48, 0.83617335414506033, 6], [30, 43, 0.65304856153150093, 3], [33, 36, 0.66501869909462263, 3], [36, 44, 0.81838608169605209, 3], [39, 31, 0.70396149897103577, 3], [42, 29, 0.69719769574389612, 3], [45, 46, 0.69533207200944447, 3]],
+[[0, 31, 0.94162850716559854, 3], [3, 36, 0.73927224108025391, 3], [6, 44, 0.69802016311305115, 6], [12, 48, 0.77540430982500119, 12], [24, 43, 0.76997809185589494, 3], [27, 48, 0.66223273985824416, 3], [30, 46, 0.66197369510057735, 12], [42, 24, 0.70163447237983689, 6], [48, 24, 0.86834836307232066, 6], [54, 31, 0.71872191656751983, 6]],
+[[0, 43, 0.91990245843783669, 3], [3, 43, 0.74146083463324775, 3], [6, 43, 0.65616352270449152, 6], [12, 41, 0.80722069117291395, 3], [15, 43, 0.72546810029235431, 3], [18, 41, 0.68495197506119287, 6], [24, 29, 0.84031825774509628, 6], [30, 31, 0.74035791924198469, 6], [36, 41, 0.80060477487501536, 3], [39, 43, 0.72329467184807805, 3], [42, 43, 0.67913373726121318, 3], [45, 43, 0.67708116605044721, 3], [48, 41, 0.8351548502246976, 3], [51, 43, 0.71618704381116172, 3], [54, 41, 0.68355808636980042, 3], [57, 29, 0.74261228242457278, 3], [60, 31, 0.89713367585101245, 3], [63, 41, 0.74176998820545847, 3], [66, 43, 0.73811445627502681, 6]],
+[[0, 43, 0.95390602181960815, 6], [6, 38, 0.65981083294909981, 12], [18, 26, 0.66962965674500186, 12], [30, 36, 0.74887415781650646, 3], [33, 31, 0.68610290352329928, 3], [36, 31, 0.75122687499895768, 12], [48, 32, 0.81004220690444317, 3], [51, 26, 0.67828388012894858, 3], [54, 29, 0.69979429218023792, 3], [57, 43, 0.70649727014136543, 3], [60, 38, 0.82259012639831453, 6], [66, 26, 0.68720690881875934, 6], [72, 36, 0.86601093478524205, 3], [75, 31, 0.67226652037962376, 3], [78, 31, 0.69981199664909566, 6]],
+[[0, 34, 0.9152305719509124, 12], [12, 34, 0.86726762262772328, 6], [18, 26, 0.71782087186082666, 3], [21, 26, 0.66074340576680357, 3], [24, 41, 0.79588140214535097, 3], [27, 24, 0.7058420861964666, 3], [30, 41, 0.70968146774175189, 3], [33, 48, 0.74532080425996106, 3], [36, 46, 0.82594126990237027, 3], [39, 34, 0.71394838806424943, 3], [42, 34, 0.74851180681998386, 3], [45, 26, 0.70189165563611711, 3], [48, 26, 0.77142501248406936, 3], [51, 41, 0.72184112190763905, 3], [54, 24, 0.66749799254881259, 12], [66, 41, 0.66916612150586097, 6], [72, 48, 0.8520252879536846, 6], [78, 46, 0.692495161394167, 12], [90, 34, 0.74019235425106189, 3], [93, 34, 0.66649610390608838, 3]],
+[[0, 31, 0.93013831013676551, 3], [3, 26, 0.68116299845483019, 3], [6, 34, 0.65158585617521825, 3], [9, 26, 0.6698563308488612, 3], [12, 24, 0.81930097247203637, 12], [24, 38, 0.86605999717021098, 6], [30, 32, 0.66174295107555625, 6], [36, 24, 0.81048002858834756, 6], [42, 32, 0.67007908310433661, 3], [45, 31, 0.72158537488757135, 3], [48, 26, 0.78043252256917062, 12], [60, 34, 0.80017904216987834, 3], [63, 26, 0.72360203760035968, 3], [66, 24, 0.66759031118370293, 6], [72, 38, 0.88342637365234766, 6], [78, 32, 0.66727459791970334, 3], [81, 24, 0.70976903255313506, 3], [84, 32, 0.75092232713714069, 3], [87, 31, 0.70151180971639759, 3], [90, 26, 0.67298176401612708, 6], [96, 34, 0.76939155851770946, 3], [99, 26, 0.71697205067147529, 3], [102, 24, 0.7110923629003465, 6]],
+[[0, 41, 0.96961028998622656, 6], [6, 36, 0.66521162314572002, 6], [12, 24, 0.86853060093968859, 3], [15, 44, 0.69604624007517679, 3], [18, 44, 0.6620327489008192, 6], [24, 44, 0.78056141734105799, 3], [27, 41, 0.67223179924124066, 3], [30, 24, 0.70314020879854366, 6], [36, 38, 0.88745994431864916, 3], [39, 41, 0.65484492053875998, 3], [42, 36, 0.73957029421457365, 6], [48, 24, 0.83389558812188336, 3], [51, 44, 0.71089476921474981, 3], [54, 44, 0.65064178632498171, 6], [60, 44, 0.85876550861078704, 6], [66, 41, 0.72596804151246874, 3], [69, 24, 0.7348130106333417, 3], [72, 38, 0.81155225760882133, 6], [78, 41, 0.72514282950241093, 6], [84, 36, 0.78841569616598339, 3], [87, 24, 0.67692208275158749, 3], [90, 44, 0.69307008892762434, 3], [93, 44, 0.72701779393814836, 3], [96, 44, 0.75717832604320257, 3], [99, 41, 0.71783239221773709, 3], [102, 24, 0.66216193230899889, 6], [108, 38, 0.82669208944527039, 3], [111, 41, 0.71662804546238112, 3], [114, 36, 0.67816773923692297, 6]],
+[[0, 32, 0.92306828295908494, 6], [6, 41, 0.70180864471674009, 3], [9, 24, 0.65010217166548412, 3], [12, 41, 0.85181440091428151, 6], [18, 44, 0.70524582017888293, 6], [24, 44, 0.77929225760542442, 6], [30, 26, 0.67143643144438148, 6], [36, 38, 0.82427933308272361, 3], [39, 24, 0.7434286582112567, 3], [42, 32, 0.69330549294846378, 3], [45, 41, 0.71464720778213031, 3], [48, 24, 0.89090103695402501, 6], [54, 41, 0.68623041480483804, 6], [60, 44, 0.8976401178784752, 6], [66, 44, 0.74788282309998955, 6], [72, 26, 0.85767968349603674, 12], [84, 38, 0.85374073797558558, 3], [87, 24, 0.65883587139052746, 3], [90, 32, 0.74128669214965215, 6], [96, 41, 0.82957970630471323, 3], [99, 24, 0.73344116891227751, 3], [102, 41, 0.71815419433696415, 3], [105, 44, 0.71174961453864294, 3], [108, 44, 0.89954876784322713, 12], [120, 26, 0.84016982724441513, 12]],
+[[0, 36, 0.94553305377293628, 12], [12, 26, 0.76094322603233466, 6], [18, 43, 0.73120142043478076, 3], [21, 46, 0.71310758397384699, 3], [24, 36, 0.84893761258814182, 6], [30, 24, 0.68033879675520248, 12], [42, 24, 0.68867160184771459, 3], [45, 36, 0.65482839070614995, 3], [48, 44, 0.88911705967638366, 3], [51, 36, 0.68187241405626497, 3], [54, 26, 0.73113811028371611, 3], [57, 43, 0.67340922287161242, 3], [60, 46, 0.82334871836145185, 6], [66, 36, 0.6580581781631849, 12], [78, 24, 0.6812455968723965, 3], [81, 24, 0.72390505378029368, 3], [84, 36, 0.81086632722879981, 6], [90, 44, 0.66906801328995646, 6], [96, 36, 0.76699447419334077, 3], [99, 26, 0.7330186837123307, 3], [102, 43, 0.74563268994297127, 3], [105, 46, 0.74176504016888722, 3], [108, 36, 0.8616703462140598, 6], [114, 24, 0.74786137093126803, 3], [117, 24, 0.66911309312650058, 3], [120, 36, 0.75034948834169379, 6], [126, 44, 0.71018078210400226, 3], [129, 36, 0.70183798240815087, 3], [132, 26, 0.83415853230865933, 6], [138, 43, 0.72578962060430929, 3], [141, 46, 0.71060221653616396, 3]],
+[[0, 31, 0.96542784331595743, 12], [12, 26, 0.87067247938038994, 3], [15, 24, 0.66401779230099056, 3], [18, 48, 0.69880020289757461, 12], [30, 32, 0.69171595681094333, 3], [33, 48, 0.70094088985511316, 3], [36, 31, 0.79738776716302062, 6], [42, 24, 0.71796274483245393, 12], [54, 26, 0.66158243839699749, 3], [57, 31, 0.7420639622600308, 3], [60, 26, 0.85314918570101739, 3], [63, 24, 0.70101750216660674, 3], [66, 48, 0.71645193469440749, 3], [69, 32, 0.67305259558254715, 3], [72, 48, 0.85240116079438266, 12], [84, 31, 0.81830149576320776, 3], [87, 24, 0.65388685799195689, 3], [90, 26, 0.67762848970134737, 12], [102, 31, 0.66384956572364828, 6], [108, 26, 0.87104818532365069, 12], [120, 24, 0.82592190154122591, 6], [126, 48, 0.73725416254133935, 3], [129, 32, 0.67854654499105327, 3], [132, 48, 0.84738866045578709, 3], [135, 31, 0.65367380991184354, 3], [138, 24, 0.66500541177793715, 3], [141, 26, 0.65591637322564367, 3], [144, 31, 0.8671078105575255, 3], [147, 26, 0.71415405591114578, 3], [150, 24, 0.74129039174474842, 3], [153, 48, 0.73043213963564924, 3]],
+[[0, 34, 0.93306849774480394, 3], [3, 26, 0.74389924397748142, 3], [6, 36, 0.70259617708168565, 3], [9, 44, 0.71099554222713968, 3], [12, 48, 0.75584192009825835, 6], [18, 41, 0.73819455213333318, 12], [30, 32, 0.68874352794321869, 3], [33, 43, 0.65349790081353976, 3], [36, 46, 0.78478386648358622, 3], [39, 34, 0.68563555575897661, 3], [42, 26, 0.68749379578998582, 3], [45, 36, 0.66621428925087545, 3], [48, 44, 0.80631038315076486, 3], [51, 48, 0.73839869262249669, 3], [54, 41, 0.7218621947806072, 12], [66, 32, 0.69549067158883193, 3], [69, 43, 0.72586812535028433, 3], [72, 46, 0.82843523835132071, 3], [75, 34, 0.66385996607503861, 3], [78, 26, 0.71924390782459147, 6], [84, 36, 0.8643122705720937, 6], [90, 44, 0.69596098323899502, 12], [102, 48, 0.67881701760834368, 3], [105, 41, 0.6740656203370391, 3], [108, 32, 0.77713400688746803, 3], [111, 43, 0.72042567506467659, 3], [114, 46, 0.66299263547593001, 6], [120, 34, 0.7711400180025928, 6], [126, 26, 0.66882604503784993, 6], [132, 36, 0.87706876804263567, 6], [138, 44, 0.70186304531239674, 6], [144, 48, 0.77648688963809276, 3], [147, 41, 0.65911195466649197, 3], [150, 32, 0.66226834432954984, 6], [156, 43, 0.85964773585449561, 3], [159, 46, 0.67038742151708652, 3], [162, 34, 0.66331990073290137, 6]],
+[[0, 43, 0.90664147192760403, 12], [12, 36, 0.79952726712850075, 3], [15, 36, 0.68558192316178446, 3], [18, 34, 0.69917146760668492, 6], [24, 46, 0.85255805955198571, 3], [27, 46, 0.74168743150396743, 3], [30, 46, 0.73443970527639713, 12], [42, 46, 0.68932574761938403, 6], [48, 46, 0.79373049646638427, 3], [51, 43, 0.67808816973563502, 3], [54, 36, 0.68525199331956321, 3], [57, 36, 0.69825902422093222, 3], [60, 34, 0.75954693700330367, 6], [66, 46, 0.67969727738305208, 6], [72, 46, 0.77443033649191118, 6], [78, 46, 0.74659144431576474, 12], [90, 46, 0.73134829201031859, 3], [93, 46, 0.74753221771174927, 3], [96, 43, 0.80586664077438475, 6], [102, 36, 0.65780858904927475, 3], [105, 36, 0.67552631139181885, 3], [108, 34, 0.84180279745963471, 3], [111, 46, 0.65713417743274738, 3], [114, 46, 0.736732334062141, 3], [117, 46, 0.65399027824636113, 3], [120, 46, 0.84772590011502735, 6], [126, 46, 0.73411222701899936, 6], [132, 43, 0.80006047667252211, 3], [135, 36, 0.70924971280541593, 3], [138, 36, 0.65900034511939087, 12], [150, 34, 0.69552556837490409, 3], [153, 46, 0.6729546286068333, 3], [156, 46, 0.82100778633617288, 6], [162, 46, 0.65360579958931941, 3], [165, 46, 0.72931502646591573, 3], [168, 46, 0.88153252924071035, 6], [174, 43, 0.68411262478542367, 6]],
+[[0, 36, 0.97845489568362931, 3], [3, 43, 0.73125567882132003, 3], [6, 43, 0.69999784120559672, 3], [9, 44, 0.70267003971250386, 3], [12, 24, 0.87973063928893946, 6], [18, 24, 0.72931337377297778, 3], [21, 43, 0.65566042287435122, 3], [24, 36, 0.87877625963396944, 3], [27, 36, 0.66966598508489872, 3], [30, 36, 0.65270846644541758, 3], [33, 43, 0.72884159680076344, 3], [36, 43, 0.87008875879423453, 3], [39, 44, 0.65764793319182624, 3], [42, 24, 0.66886538177213617, 6], [48, 24, 0.80756635302101754, 3], [51, 43, 0.70291327235943823, 3], [54, 36, 0.67814305974099431, 12], [66, 36, 0.7025410516766678, 3], [69, 36, 0.68687658945427787, 3], [72, 43, 0.83653698182410285, 6], [78, 43, 0.74880607623200934, 3], [81, 44, 0.66854817206348593, 3], [84, 24, 0.76598588922790611, 3], [87, 24, 0.74916771510856139, 3], [90, 43, 0.73254023054626449, 3], [93, 36, 0.67381498556189423, 3], [96, 36, 0.85858802556502289, 3], [99, 36, 0.7221239443500872, 3], [102, 43, 0.74599245462773256, 6], [108, 43, 0.81637567767558572, 6], [114, 44, 0.67073548261616578, 3], [117, 24, 0.71787559007408008, 3], [120, 24, 0.79353098610740702, 3], [123, 43, 0.69701026336316774, 3], [126, 36, 0.71973861435642295, 6], [132, 36, 0.86003150790852267, 6], [138, 36, 0.68419751384706384, 3], [141, 43, 0.6819861183006255, 3], [144, 43, 0.89650848323404442, 3], [147, 44, 0.67204674116811658, 3], [150, 24, 0.69689869465092735, 6], [156, 24, 0.78400166906312219, 6], [162, 43, 0.65969217648667067, 6], [168, 36, 0.86497713443635826, 3], [171, 36, 0.66933076119842261, 3], [174, 36, 0.72399491256618242, 3], [177, 43, 0.71407410668327287, 3], [180, 43, 0.83699679422133544, 6], [186, 44, 0.7118423810891551, 3], [189, 24, 0.66908571367439851, 3]]],
+61: [[[0, 31, 0.99851735977950673, 3], [3, 24, 0.70580912393691986, 3], [6, 26, 0.70457302615082384, 3], [9, 43, 0.73418437681674265, 3], [12, 48, 0.7625353123880696, 3], [15, 41, 0.7018653790798165, 3], [18, 43, 0.68938367311179305, 3], [21, 46, 0.74320442835965839, 3]],
+[[0, 26, 0.90876456195162358, 3], [3, 24, 0.66955702224632752, 3], [6, 44, 0.70304114313472243, 3], [9, 34, 0.7339580399675063, 3], [12, 46, 0.76477904444732592, 3], [15, 26, 0.71292504609563523, 3], [18, 24, 0.65378312465455024, 6], [24, 44, 0.84818887438316415, 3], [27, 34, 0.71423054314776091, 3], [30, 46, 0.67614034659764732, 6]],
+[[0, 36, 0.97954345067512949, 3], [3, 26, 0.66342001686621055, 3], [6, 24, 0.73990421863775024, 3], [9, 38, 0.71166826307081654, 3], [12, 24, 0.83723030510408714, 3], [15, 24, 0.6610436069686022, 3], [18, 26, 0.72261671710082853, 3], [21, 26, 0.68972541216839778, 3], [24, 29, 0.81527322800809243, 3], [27, 26, 0.69789256190350346, 3], [30, 36, 0.71872667736365747, 3], [33, 26, 0.69948555095823817, 3], [36, 24, 0.83087205648070228, 3], [39, 38, 0.7004492990969553, 3], [42, 24, 0.7249891819419273, 3], [45, 24, 0.71655955774579072, 3]],
+[[0, 36, 0.97332015779837888, 6], [6, 44, 0.66694284388058256, 3], [9, 44, 0.65685000351051492, 3], [12, 36, 0.76004002272580096, 3], [15, 46, 0.70433763221665269, 3], [18, 38, 0.70542166552203733, 3], [21, 26, 0.73644039204896183, 3], [24, 26, 0.85432915664547082, 3], [27, 24, 0.67773385468490743, 3], [30, 43, 0.68634994250555481, 3], [33, 36, 0.74101734297756472, 3], [36, 44, 0.81746109421506641, 12], [48, 44, 0.77473165951111944, 3], [51, 36, 0.74899338631982104, 3], [54, 46, 0.67778542449124746, 6]],
+[[0, 36, 0.95903451755152014, 3], [3, 24, 0.73278030003642736, 3], [6, 24, 0.70346694462365589, 12], [18, 46, 0.67743514393069615, 6], [24, 48, 0.84989613793009655, 3], [27, 38, 0.73871788959566587, 3], [30, 38, 0.68594231659974014, 3], [33, 46, 0.72271629674329063, 3], [36, 48, 0.76124379159498368, 3], [39, 38, 0.70644193351098827, 3], [42, 36, 0.72699553270336137, 12], [54, 24, 0.72084926809366157, 3], [57, 24, 0.73670002539055013, 3], [60, 46, 0.78257116177731312, 6], [66, 48, 0.70451959296038658, 3], [69, 38, 0.69155692621731846, 3]],
+[[0, 48, 0.92297868437535335, 3], [3, 46, 0.67707908194119804, 3], [6, 41, 0.68215150986870798, 6], [12, 46, 0.84015199321188905, 3], [15, 29, 0.69718414748368163, 3], [18, 41, 0.67116538451906882, 12], [30, 46, 0.6774648244958924, 3], [33, 29, 0.72472129379632799, 3], [36, 29, 0.78492969092219012, 6], [42, 36, 0.66584518187199038, 6], [48, 48, 0.79721329209022906, 3], [51, 46, 0.65738895690561783, 3], [54, 41, 0.70813436377123706, 12], [66, 46, 0.70870329814084987, 3], [69, 29, 0.66202104153935593, 3], [72, 41, 0.84775262232508553, 12]],
+[[0, 36, 0.95028741369132574, 3], [3, 26, 0.71145868170842264, 3], [6, 43, 0.72247169482483442, 6], [12, 44, 0.79129356773228099, 3], [15, 44, 0.67762983643470154, 3], [18, 48, 0.65845426976343691, 6], [24, 29, 0.80265164863551108, 3], [27, 43, 0.74745741160720924, 3], [30, 44, 0.65009520875997606, 3], [33, 44, 0.68466887908141971, 3], [36, 36, 0.89246293037921354, 6], [42, 26, 0.69218682249654817, 3], [45, 43, 0.66259788349916704, 3], [48, 44, 0.799623608978416, 6], [54, 44, 0.68030596051844372, 3], [57, 48, 0.72632804688972519, 3], [60, 29, 0.81671320508980227, 3], [63, 43, 0.74373476583153131, 3], [66, 44, 0.72451758280030465, 6], [72, 44, 0.86677679761023263, 3], [75, 36, 0.66144155023913631, 3], [78, 26, 0.67744069516362793, 6], [84, 43, 0.83125209822496393, 3], [87, 44, 0.68376740119069979, 3], [90, 44, 0.66455523911753445, 3], [93, 48, 0.74245906620961766, 3]],
+[[0, 34, 0.94675607912541471, 3], [3, 29, 0.66751617156867249, 3], [6, 29, 0.65891888509924501, 3], [9, 29, 0.71827214584442556, 3], [12, 43, 0.83365538538333017, 3], [15, 29, 0.65436404866591691, 3], [18, 29, 0.73395829703103799, 3], [21, 29, 0.70760862113339118, 3], [24, 43, 0.85881700726860788, 3], [27, 29, 0.65019703963970588, 3], [30, 34, 0.73555409466820953, 3], [33, 29, 0.72074844868676924, 3], [36, 29, 0.8713815530330058, 3], [39, 29, 0.67048921036741471, 3], [42, 43, 0.71463176375996351, 3], [45, 29, 0.6571743109201349, 3], [48, 29, 0.78145409363862273, 3], [51, 29, 0.71162120329963774, 3], [54, 43, 0.70672989237350026, 6], [60, 29, 0.76744838809926219, 3], [63, 34, 0.68035408064017755, 3], [66, 29, 0.71942915603442603, 3], [69, 29, 0.65321699917015119, 3], [72, 29, 0.88601570009198927, 3], [75, 43, 0.66210892236010499, 3], [78, 29, 0.68756807776516882, 3], [81, 29, 0.74381548166520617, 3], [84, 29, 0.83348877831409496, 3], [87, 43, 0.67425009832344374, 3], [90, 29, 0.72224993291237871, 3], [93, 34, 0.66423324834655439, 3], [96, 29, 0.82328223412815671, 3], [99, 29, 0.65404132947773996, 3], [102, 29, 0.69831822752766914, 3], [105, 43, 0.69884420524403956, 3]],
+[[0, 34, 0.94497862634720597, 3], [3, 26, 0.69728412414033958, 3], [6, 26, 0.66551491173706478, 6], [12, 26, 0.84264970149538554, 3], [15, 32, 0.74855872475349239, 3], [18, 26, 0.66520829339567178, 3], [21, 26, 0.66023784135984798, 3], [24, 26, 0.76108852065160726, 3], [27, 32, 0.71757222790144026, 3], [30, 26, 0.6749591121156886, 3], [33, 34, 0.68093274339028975, 3], [36, 26, 0.80043619542073507, 3], [39, 26, 0.74496110134219018, 3], [42, 26, 0.73823532771978806, 3], [45, 32, 0.69488274792241178, 3], [48, 26, 0.87698938512574953, 3], [51, 26, 0.73138903323754312, 3], [54, 26, 0.74880940106260907, 3], [57, 32, 0.66620317738028845, 3], [60, 26, 0.89817547068969916, 6], [66, 34, 0.74295461985462119, 3], [69, 26, 0.65282412239749787, 3], [72, 26, 0.8819208921790882, 6], [78, 26, 0.748830914219063, 3], [81, 32, 0.68375098806273193, 3], [84, 26, 0.89565988628562898, 3], [87, 26, 0.68434263823676844, 3], [90, 26, 0.72323843021760081, 6], [96, 32, 0.84234459588138499, 3], [99, 26, 0.74918595530226884, 3], [102, 34, 0.70504342210222903, 6], [108, 26, 0.8880359542830325, 6], [114, 26, 0.67601620002740648, 3], [117, 26, 0.723692012436292, 3]],
+[[0, 26, 0.91276084995405327, 3], [3, 26, 0.73288366382170933, 3], [6, 26, 0.67318573513755808, 3], [9, 24, 0.70538062715357674, 3], [12, 46, 0.88753356968650432, 12], [24, 26, 0.88676849535443736, 3], [27, 24, 0.74553024587223282, 3], [30, 46, 0.69951767525037079, 3], [33, 26, 0.72723963802205394, 3], [36, 24, 0.80775248427104784, 3], [39, 26, 0.73677537150693317, 3], [42, 26, 0.65345021049676899, 3], [45, 26, 0.65788466617126895, 3], [48, 24, 0.86095014722436169, 3], [51, 46, 0.65237740074469253, 3], [54, 26, 0.72335625113738067, 3], [57, 24, 0.74022901542739583, 3], [60, 46, 0.87843294486316159, 3], [63, 26, 0.70110453260349337, 3], [66, 24, 0.66511696138670251, 3], [69, 26, 0.722917288022904, 3], [72, 26, 0.83588577593956526, 3], [75, 26, 0.71751680262439166, 3], [78, 24, 0.73473257323300811, 3], [81, 46, 0.7070444398354635, 3], [84, 26, 0.76894281524276131, 6], [90, 24, 0.74031487711854171, 3], [93, 46, 0.71703390201221806, 3], [96, 26, 0.81067747545656721, 3], [99, 24, 0.66296539554780676, 3], [102, 26, 0.72173657717310624, 3], [105, 26, 0.7052136807060625, 3], [108, 26, 0.87006763169196333, 3], [111, 24, 0.70696534405786593, 3], [114, 46, 0.71810825503337239, 3], [117, 26, 0.71084694326717301, 3], [120, 24, 0.79430930779491138, 6], [126, 46, 0.65408944103482469, 3], [129, 26, 0.70305241596065005, 3]],
+[[0, 38, 0.90393022747088414, 3], [3, 32, 0.65012287486116482, 3], [6, 41, 0.69837871855735834, 3], [9, 46, 0.67856291761000065, 3], [12, 26, 0.89138510612608779, 6], [18, 24, 0.74701371784138793, 6], [24, 48, 0.81589995930052994, 6], [30, 36, 0.69511968638863098, 3], [33, 36, 0.67941212539748019, 3], [36, 31, 0.77031603079832955, 6], [42, 38, 0.67328271769132664, 3], [45, 32, 0.67449045449873768, 3], [48, 41, 0.86878396893065524, 3], [51, 46, 0.67916089721541462, 3], [54, 26, 0.66751511796930452, 3], [57, 24, 0.65516251534457715, 3], [60, 48, 0.80799900281736492, 3], [63, 36, 0.67586891926871728, 3], [66, 36, 0.69387935381350918, 3], [69, 31, 0.72005264453935192, 3], [72, 38, 0.75494459446625761, 6], [78, 32, 0.65396727981937852, 3], [81, 41, 0.65505355552087885, 3], [84, 46, 0.79988123573794123, 6], [90, 26, 0.68895490395896275, 6], [96, 24, 0.82954336650295812, 3], [99, 48, 0.70716338804962164, 3], [102, 36, 0.74719099793247101, 12], [114, 36, 0.67247109147314954, 6], [120, 31, 0.81181740134643388, 6], [126, 38, 0.70616879978879188, 3], [129, 32, 0.72128937501382628, 3], [132, 41, 0.76985427936339934, 3], [135, 46, 0.74377270909820825, 3], [138, 26, 0.72763857811911714, 3], [141, 24, 0.6877042483129201, 3]],
+[[0, 32, 0.97931472909186512, 6], [6, 29, 0.71306706667874808, 3], [9, 32, 0.68576955125031225, 3], [12, 44, 0.79991851645360168, 3], [15, 44, 0.67979283411989144, 3], [18, 26, 0.65689458724006278, 3], [21, 29, 0.74514479691793456, 3], [24, 32, 0.87119398627483313, 3], [27, 44, 0.6997230074758507, 3], [30, 44, 0.74386314075148552, 6], [36, 32, 0.87527894188020228, 12], [48, 29, 0.78579710802013869, 3], [51, 32, 0.65174615031964578, 3], [54, 44, 0.72021863635270078, 6], [60, 44, 0.82964499416641191, 6], [66, 26, 0.69777113330744511, 6], [72, 29, 0.87821223628551048, 6], [78, 32, 0.698655314708297, 3], [81, 44, 0.68718899379500498, 3], [84, 44, 0.78128338135643327, 3], [87, 32, 0.73441649689807054, 3], [90, 29, 0.67499829576152692, 12], [102, 32, 0.67201175275973835, 6], [108, 44, 0.76675260280518542, 6], [114, 44, 0.6788059080268013, 12], [126, 26, 0.74297523689208533, 6], [132, 29, 0.84549320745669665, 3], [135, 32, 0.74949160166202566, 3], [138, 44, 0.73810676830932975, 3], [141, 44, 0.65093217422489325, 3], [144, 32, 0.75420763512385958, 3], [147, 29, 0.7280870273118869, 3], [150, 32, 0.7239806295491632, 3], [153, 44, 0.66917272089810886, 3]],
+[[0, 38, 0.92372170367072759, 3], [3, 48, 0.68091440993037144, 3], [6, 34, 0.65166173668696892, 3], [9, 24, 0.65194426139935646, 3], [12, 44, 0.88633020644748917, 3], [15, 38, 0.71851448158011644, 3], [18, 48, 0.66079161065780401, 12], [30, 34, 0.67184123405936513, 3], [33, 24, 0.71797445655929815, 3], [36, 44, 0.84754861543977911, 3], [39, 38, 0.73878057098566385, 3], [42, 48, 0.72683986886609708, 3], [45, 34, 0.72217548926200048, 3], [48, 24, 0.77813773171867251, 3], [51, 44, 0.6539043713143009, 3], [54, 38, 0.73298694676843101, 3], [57, 48, 0.69175767143116207, 3], [60, 34, 0.81249273879036488, 3], [63, 24, 0.67075158710132476, 3], [66, 44, 0.69156020875726032, 3], [69, 38, 0.69279141016036583, 3], [72, 48, 0.76490259166864338, 3], [75, 34, 0.710057745193169, 3], [78, 24, 0.65395531917625305, 3], [81, 44, 0.69138680883694326, 3], [84, 38, 0.76205189797225004, 3], [87, 48, 0.69873302778624202, 3], [90, 34, 0.65594443528532631, 3], [93, 24, 0.69770247736595237, 3], [96, 44, 0.88204728252114739, 3], [99, 38, 0.68575644734700769, 3], [102, 48, 0.67497182129293298, 3], [105, 34, 0.6710743209755119, 3], [108, 24, 0.77846804361313682, 3], [111, 44, 0.74392404656699407, 3], [114, 38, 0.70932648930503639, 6], [120, 48, 0.7700303967283274, 3], [123, 34, 0.7454007213450482, 3], [126, 24, 0.67327017963678193, 3], [129, 44, 0.70589713283721045, 3], [132, 38, 0.880507910838077, 3], [135, 48, 0.68278958704276815, 3], [138, 34, 0.65619110687812288, 6], [144, 24, 0.76529663840128137, 3], [147, 44, 0.67855374283687064, 3], [150, 38, 0.65977189438115746, 6], [156, 48, 0.7517908529996038, 3], [159, 34, 0.7294196310392127, 3], [162, 24, 0.67662259882044884, 3], [165, 44, 0.74889355923330325, 3]],
+[[0, 46, 0.91762193749006549, 3], [3, 48, 0.70032015387768587, 3], [6, 32, 0.68636543809498951, 12], [18, 43, 0.72088760916536021, 6], [24, 46, 0.80513456623341983, 3], [27, 46, 0.70899637727095732, 3], [30, 46, 0.71093028496443378, 3], [33, 48, 0.73256620571156206, 3], [36, 32, 0.79645955879654295, 3], [39, 43, 0.65574477735219727, 3], [42, 46, 0.74945373945022598, 3], [45, 48, 0.7119573508758168, 3], [48, 32, 0.82376374737810765, 3], [51, 43, 0.72070078138378435, 3], [54, 46, 0.7173428852348378, 12], [66, 46, 0.66761392950937204, 6], [72, 46, 0.78154035076545969, 3], [75, 48, 0.70500474422730053, 3], [78, 32, 0.73591180417760116, 3], [81, 43, 0.73406955699554954, 3], [84, 46, 0.75179068985633235, 3], [87, 48, 0.67554147042505241, 3], [90, 32, 0.65253874611771767, 6], [96, 43, 0.78542675770944625, 6], [102, 46, 0.71533231834397415, 6], [108, 46, 0.8986158322314679, 3], [111, 46, 0.72751454153192063, 3], [114, 48, 0.67222036506267435, 3], [117, 32, 0.74842679613867014, 3], [120, 43, 0.84461456887311903, 3], [123, 46, 0.6938815301347836, 3], [126, 48, 0.68213616514221309, 12], [138, 32, 0.72417460293224345, 3], [141, 43, 0.73266095795444464, 3], [144, 46, 0.83810905578395123, 6], [150, 46, 0.73683858008856917, 6], [156, 46, 0.82167226614044386, 3], [159, 48, 0.7233680536045215, 3], [162, 32, 0.69441552632194525, 6], [168, 43, 0.8403550125625342, 3], [171, 46, 0.70790325265868592, 3], [174, 48, 0.74700495514609444, 3], [177, 32, 0.67822040124378946, 3]],
+[[0, 41, 0.90749112369152007, 6], [6, 44, 0.68508196767065499, 3], [9, 24, 0.66717388707033054, 3], [12, 24, 0.78750122741427653, 3], [15, 44, 0.68175269597842658, 3], [18, 24, 0.66704450201538978, 3], [21, 24, 0.66197590004638796, 3], [24, 44, 0.79387083714507367, 3], [27, 24, 0.7265095259828267, 3], [30, 24, 0.69664176362830887, 3], [33, 41, 0.66632996950197809, 3], [36, 44, 0.88865815727771846, 3], [39, 24, 0.73068655333518051, 3], [42, 24, 0.69988978292309578, 12], [54, 44, 0.72005706841248895, 3], [57, 24, 0.68224891301849977, 3], [60, 24, 0.85200725622729323, 3], [63, 44, 0.74944706921332382, 3], [66, 24, 0.66611908995459601, 3], [69, 24, 0.73708796669115784, 3], [72, 41, 0.83566638754822753, 3], [75, 44, 0.67968293794852408, 3], [78, 24, 0.66468795662074787, 3], [81, 24, 0.65696765683891378, 3], [84, 44, 0.79419235576389646, 3], [87, 24, 0.68099109416724579, 3], [90, 24, 0.69043795663447072, 3], [93, 44, 0.71400815090169212, 3], [96, 24, 0.7852518919608229, 3], [99, 24, 0.72155047953854523, 3], [102, 41, 0.71895551265217406, 3], [105, 44, 0.67267812617384704, 3], [108, 24, 0.88878494409916087, 12], [120, 24, 0.85630096458349636, 3], [123, 44, 0.70120192832100581, 3], [126, 24, 0.65664531103638279, 3], [129, 24, 0.72531067110367498, 3], [132, 44, 0.83619454871007504, 6], [138, 24, 0.74363823449954958, 12], [150, 24, 0.73659705693463506, 6], [156, 41, 0.80936672110417818, 3], [159, 44, 0.6527125079174031, 3], [162, 24, 0.73930231736876195, 12], [174, 24, 0.72892089801938209, 3], [177, 44, 0.68072925711402577, 3], [180, 24, 0.76243271274091484, 3], [183, 24, 0.71699422396049095, 3], [186, 44, 0.74550675874850303, 6]]]
+} \ No newline at end of file