Permalink
Browse files

first commit

  • Loading branch information...
1 parent 0cebcd0 commit e4f297717d14329fb6d5811d22bc418f1c65f305 mt committed Oct 9, 2012
Showing with 40,499 additions and 0 deletions.
  1. +84 −0 project/Build.scala
  2. +3 −0 project/plugins.sbt
  3. +21 −0 src/main/AndroidManifest.xml
  4. BIN src/main/assets/dejavu.ttf
  5. +24 −0 src/main/jni/Android.mk
  6. +3 −0 src/main/jni/Application.mk
  7. +263 −0 src/main/jni/OpenSLES_pcm_out.h
  8. +102 −0 src/main/jni/glue.cpp
  9. +53 −0 src/main/jni/glue.h
  10. +51 −0 src/main/jni/lock.h
  11. +264 −0 src/main/jni/tsynth/command_dispatcher.h
  12. +38 −0 src/main/jni/tsynth/constants.h
  13. +108 −0 src/main/jni/tsynth/eg.cpp
  14. +143 −0 src/main/jni/tsynth/eg.h
  15. +1,294 −0 src/main/jni/tsynth/inv_exp_table.cpp
  16. +140 −0 src/main/jni/tsynth/midi_utility.cpp
  17. +119 −0 src/main/jni/tsynth/midi_utility.h
  18. +27 −0 src/main/jni/tsynth/mixer.cpp
  19. +26 −0 src/main/jni/tsynth/mod_factory.cpp
  20. +95 −0 src/main/jni/tsynth/mod_factory.h
  21. +183 −0 src/main/jni/tsynth/mono_synth.cpp
  22. +72 −0 src/main/jni/tsynth/mono_synth.h
  23. +595 −0 src/main/jni/tsynth/mpl_utility.hpp
  24. +53 −0 src/main/jni/tsynth/mutex.h
  25. +52 −0 src/main/jni/tsynth/port_dispatcher.h
  26. +11 −0 src/main/jni/tsynth/synth_mod.h
  27. +467 −0 src/main/jni/tsynth/synth_mod_base.h
  28. +198 −0 src/main/jni/tsynth/tree.cpp
  29. +834 −0 src/main/jni/tsynth/tree.h
  30. +135 −0 src/main/jni/tsynth/tsynth.cpp
  31. +48 −0 src/main/jni/tsynth/tsynth.h
  32. +163 −0 src/main/jni/tsynth/type.h
  33. +113 −0 src/main/jni/tsynth/vca.cpp
  34. +283 −0 src/main/jni/tsynth/vcf.cpp
  35. +300 −0 src/main/jni/tsynth/vco.cpp
  36. BIN src/main/jni/tsynth/waf
  37. +20,000 −0 src/main/jni/tsynth/wave.txt
  38. +33 −0 src/main/jni/tsynth/wscript
  39. BIN src/main/libs/armeabi-v7a/libtsynth.so
  40. BIN src/main/libs/armeabi/libtsynth.so
  41. BIN src/main/libs/x86/libtsynth.so
  42. BIN src/main/obj/local/armeabi-v7a/libgnustl_static.a
  43. BIN src/main/obj/local/armeabi-v7a/libtsynth.so
  44. BIN src/main/obj/local/armeabi-v7a/objs/tsynth/glue.o
  45. +1,741 −0 src/main/obj/local/armeabi-v7a/objs/tsynth/glue.o.d
  46. BIN src/main/obj/local/armeabi-v7a/objs/tsynth/tsynth/eg.o
  47. +59 −0 src/main/obj/local/armeabi-v7a/objs/tsynth/tsynth/eg.o.d
  48. BIN src/main/obj/local/armeabi-v7a/objs/tsynth/tsynth/inv_exp_table.o
  49. +59 −0 src/main/obj/local/armeabi-v7a/objs/tsynth/tsynth/inv_exp_table.o.d
  50. BIN src/main/obj/local/armeabi-v7a/objs/tsynth/tsynth/midi_utility.o
  51. +13 −0 src/main/obj/local/armeabi-v7a/objs/tsynth/tsynth/midi_utility.o.d
  52. BIN src/main/obj/local/armeabi-v7a/objs/tsynth/tsynth/mixer.o
  53. +71 −0 src/main/obj/local/armeabi-v7a/objs/tsynth/tsynth/mixer.o.d
  54. BIN src/main/obj/local/armeabi-v7a/objs/tsynth/tsynth/mod_factory.o
  55. +54 −0 src/main/obj/local/armeabi-v7a/objs/tsynth/tsynth/mod_factory.o.d
  56. BIN src/main/obj/local/armeabi-v7a/objs/tsynth/tsynth/mono_synth.o
  57. +74 −0 src/main/obj/local/armeabi-v7a/objs/tsynth/tsynth/mono_synth.o.d
  58. BIN src/main/obj/local/armeabi-v7a/objs/tsynth/tsynth/tree.o
  59. +19 −0 src/main/obj/local/armeabi-v7a/objs/tsynth/tsynth/tree.o.d
  60. BIN src/main/obj/local/armeabi-v7a/objs/tsynth/tsynth/tsynth.o
  61. +1,645 −0 src/main/obj/local/armeabi-v7a/objs/tsynth/tsynth/tsynth.o.d
  62. BIN src/main/obj/local/armeabi-v7a/objs/tsynth/tsynth/vca.o
  63. +76 −0 src/main/obj/local/armeabi-v7a/objs/tsynth/tsynth/vca.o.d
  64. BIN src/main/obj/local/armeabi-v7a/objs/tsynth/tsynth/vcf.o
  65. +78 −0 src/main/obj/local/armeabi-v7a/objs/tsynth/tsynth/vcf.o.d
  66. BIN src/main/obj/local/armeabi-v7a/objs/tsynth/tsynth/vco.o
  67. +75 −0 src/main/obj/local/armeabi-v7a/objs/tsynth/tsynth/vco.o.d
  68. BIN src/main/obj/local/armeabi/libgnustl_static.a
  69. BIN src/main/obj/local/armeabi/libtsynth.so
  70. BIN src/main/obj/local/armeabi/objs/tsynth/glue.o
  71. +1,741 −0 src/main/obj/local/armeabi/objs/tsynth/glue.o.d
  72. BIN src/main/obj/local/armeabi/objs/tsynth/tsynth/eg.o
  73. +59 −0 src/main/obj/local/armeabi/objs/tsynth/tsynth/eg.o.d
  74. BIN src/main/obj/local/armeabi/objs/tsynth/tsynth/inv_exp_table.o
  75. +59 −0 src/main/obj/local/armeabi/objs/tsynth/tsynth/inv_exp_table.o.d
  76. BIN src/main/obj/local/armeabi/objs/tsynth/tsynth/midi_utility.o
  77. +13 −0 src/main/obj/local/armeabi/objs/tsynth/tsynth/midi_utility.o.d
  78. BIN src/main/obj/local/armeabi/objs/tsynth/tsynth/mixer.o
  79. +71 −0 src/main/obj/local/armeabi/objs/tsynth/tsynth/mixer.o.d
  80. BIN src/main/obj/local/armeabi/objs/tsynth/tsynth/mod_factory.o
  81. +54 −0 src/main/obj/local/armeabi/objs/tsynth/tsynth/mod_factory.o.d
  82. BIN src/main/obj/local/armeabi/objs/tsynth/tsynth/mono_synth.o
  83. +74 −0 src/main/obj/local/armeabi/objs/tsynth/tsynth/mono_synth.o.d
  84. BIN src/main/obj/local/armeabi/objs/tsynth/tsynth/tree.o
  85. +19 −0 src/main/obj/local/armeabi/objs/tsynth/tsynth/tree.o.d
  86. BIN src/main/obj/local/armeabi/objs/tsynth/tsynth/tsynth.o
  87. +1,645 −0 src/main/obj/local/armeabi/objs/tsynth/tsynth/tsynth.o.d
  88. BIN src/main/obj/local/armeabi/objs/tsynth/tsynth/vca.o
  89. +76 −0 src/main/obj/local/armeabi/objs/tsynth/tsynth/vca.o.d
  90. BIN src/main/obj/local/armeabi/objs/tsynth/tsynth/vcf.o
  91. +78 −0 src/main/obj/local/armeabi/objs/tsynth/tsynth/vcf.o.d
  92. BIN src/main/obj/local/armeabi/objs/tsynth/tsynth/vco.o
  93. +75 −0 src/main/obj/local/armeabi/objs/tsynth/tsynth/vco.o.d
  94. BIN src/main/obj/local/x86/libgnustl_static.a
  95. BIN src/main/obj/local/x86/libtsynth.so
  96. BIN src/main/obj/local/x86/objs/tsynth/glue.o
  97. +1,744 −0 src/main/obj/local/x86/objs/tsynth/glue.o.d
  98. BIN src/main/obj/local/x86/objs/tsynth/tsynth/eg.o
  99. +59 −0 src/main/obj/local/x86/objs/tsynth/tsynth/eg.o.d
  100. BIN src/main/obj/local/x86/objs/tsynth/tsynth/inv_exp_table.o
  101. +59 −0 src/main/obj/local/x86/objs/tsynth/tsynth/inv_exp_table.o.d
  102. BIN src/main/obj/local/x86/objs/tsynth/tsynth/midi_utility.o
  103. +13 −0 src/main/obj/local/x86/objs/tsynth/tsynth/midi_utility.o.d
  104. BIN src/main/obj/local/x86/objs/tsynth/tsynth/mixer.o
  105. +71 −0 src/main/obj/local/x86/objs/tsynth/tsynth/mixer.o.d
  106. BIN src/main/obj/local/x86/objs/tsynth/tsynth/mod_factory.o
  107. +54 −0 src/main/obj/local/x86/objs/tsynth/tsynth/mod_factory.o.d
  108. BIN src/main/obj/local/x86/objs/tsynth/tsynth/mono_synth.o
  109. +73 −0 src/main/obj/local/x86/objs/tsynth/tsynth/mono_synth.o.d
  110. BIN src/main/obj/local/x86/objs/tsynth/tsynth/tree.o
  111. +19 −0 src/main/obj/local/x86/objs/tsynth/tsynth/tree.o.d
  112. BIN src/main/obj/local/x86/objs/tsynth/tsynth/tsynth.o
  113. +1,648 −0 src/main/obj/local/x86/objs/tsynth/tsynth/tsynth.o.d
  114. BIN src/main/obj/local/x86/objs/tsynth/tsynth/vca.o
  115. +76 −0 src/main/obj/local/x86/objs/tsynth/tsynth/vca.o.d
  116. BIN src/main/obj/local/x86/objs/tsynth/tsynth/vcf.o
  117. +78 −0 src/main/obj/local/x86/objs/tsynth/tsynth/vcf.o.d
  118. BIN src/main/obj/local/x86/objs/tsynth/tsynth/vco.o
  119. +75 −0 src/main/obj/local/x86/objs/tsynth/tsynth/vco.o.d
  120. BIN src/main/res/drawable/icon.png
  121. BIN src/main/res/drawable/key.png
  122. BIN src/main/res/drawable/key_pushed.png
  123. +11 −0 src/main/res/layout/main.xml
  124. +7 −0 src/main/res/values-en/strings.xml
  125. +7 −0 src/main/res/values-ja/strings.xml
  126. +7 −0 src/main/res/values/strings.xml
  127. +427 −0 src/main/scala/Drawer.scala
  128. +46 −0 src/main/scala/GLRenderer.scala
  129. +13 −0 src/main/scala/Glue.scala
  130. +254 −0 src/main/scala/MainActivity.scala
  131. +36 −0 src/main/scala/Shape.scala
  132. +180 −0 src/main/scala/ShapeDrawer.scala
  133. +149 −0 src/main/scala/TextDrawer.scala
  134. +39 −0 src/main/scala/Touch.scala
  135. +111 −0 src/main/scala/Vec2.scala
  136. +565 −0 src/main/scala/View.scala
  137. +263 −0 src/main/scala/Widget.scala
  138. +38 −0 src/main/scala/WidgetDrawer.scala
  139. +10 −0 src/test/scala/Specs.scala
  140. +18 −0 tests/src/main/AndroidManifest.xml
  141. +3 −0 tests/src/main/res/values/strings.xml
  142. +20 −0 tests/src/main/scala/Tests.scala
View
@@ -0,0 +1,84 @@
+import sbt._
+
+import Keys._
+import AndroidKeys._
+
+object General {
+ val settings = Defaults.defaultSettings ++ Seq (
+ name := "tsynth_micro",
+ version := "0.1",
+ versionCode := 1,
+ scalaVersion := "2.9.2",
+ platformName in Android := "android-10",
+ scalacOptions ++=
+ Seq("-unchecked",
+ "-deprecation",
+ "-optimise")
+ )
+
+ val proguardSettings = Seq (
+ useProguard in Android := true,
+ proguardOptimizations in Android :=
+ Seq(
+ "-optimizationpasses 5",
+ "-dontusemixedcaseclassnames",
+ "-dontskipnonpubliclibraryclasses",
+ "-dontpreverify",
+ "-dontobfuscate",
+ "-verbose",
+ "-keep public class * extends android.app.Activity",
+ "-keep public class * extends android.app.Application",
+ "-keep public class * extends android.app.Service",
+ "-keep public class * extends android.content.BroadcastReceiver",
+ "-keep public class * extends android.content.ContentProvider",
+ "-keep public class * extends android.app.backup.BackupAgentHelper",
+ "-keep public class * extends android.preference.Preference",
+ "-keepclasseswithmembernames class * { native <methods>; }",
+ "-keepclasseswithmembers class * { public <init>(android.content.Context, android.util.AttributeSet); }",
+ "-keepclasseswithmembers class * { public <init>(android.content.Context, android.util.AttributeSet, int); }",
+ "-keepclassmembers class * extends android.app.Activity { public void *(android.view.View); }",
+ "-keepclassmembers enum * { public static **[] values(); public static ** valueOf(java.lang.String); }",
+ "-keep class * implements android.os.Parcelable { public static final android.os.Parcelable$Creator *; }",
+ "-keep public class android.opengl.GLSurfaceView",
+ "-keepclassmembers class * {** MODULE$;}",
+ "-keep class scala.Array",
+ "-keep class scala.Function0",
+ "-keep class scala.Function1",
+ "-keep class scala.Function2",
+ "-keep class scala.collection.*",
+ "-keep class scala.collection.immutable.*",
+ "-keep class scala.collection.mutable.*",
+ "-keep class scala.collection.generic.*",
+ "-keep class scala.runtime.*")
+ )
+
+ lazy val fullAndroidSettings =
+ General.settings ++
+ AndroidProject.androidSettings ++
+ TypedResources.settings ++
+ proguardSettings ++
+ AndroidManifestGenerator.settings ++
+ AndroidMarketPublish.settings ++ Seq (
+ keyalias in Android := "change-me",
+ libraryDependencies += "org.scalatest" %% "scalatest" % "1.8" % "test"
+ )
+}
+
+object AndroidBuild extends Build {
+ lazy val main = Project (
+ "tsynth_micro",
+ file("."),
+ settings = General.fullAndroidSettings ++
+ AndroidNdk.settings
+ )
+
+ lazy val tests = Project (
+ "tests",
+ file("tests"),
+ settings = General.settings ++
+ AndroidTest.androidSettings ++
+ General.proguardSettings ++ Seq (
+ name := "tsynth_microTests"
+ )
+ ) dependsOn main
+}
View
@@ -0,0 +1,3 @@
+resolvers += Resolver.url("scalasbt releases", new URL("http://scalasbt.artifactoryonline.com/scalasbt/sbt-plugin-releases"))(Resolver.ivyStylePatterns)
+
+addSbtPlugin("org.scala-sbt" % "sbt-android-plugin" % "0.6.2")
@@ -0,0 +1,21 @@
+<manifest xmlns:android="http://schemas.android.com/apk/res/android"
+ package="org.bigsleep.tsynth_micro">
+
+ <application
+ android:icon="@drawable/icon"
+ android:label="@string/app_name"
+ android:debuggable="false">
+
+ <activity
+ android:label="@string/app_name"
+ android:name=".MainActivity"
+ android:screenOrientation="landscape">
+ <intent-filter>
+ <action android:name="android.intent.action.MAIN"/>
+ <category android:name="android.intent.category.LAUNCHER"/>
+ </intent-filter>
+ </activity>
+ </application>
+
+ <uses-sdk android:minSdkVersion="10"/>
+</manifest>
View
Binary file not shown.
View
@@ -0,0 +1,24 @@
+LOCAL_PATH := $(call my-dir)
+
+include $(CLEAR_VARS)
+
+LOCAL_MODULE := tsynth
+LOCAL_SRC_FILES := \
+ tsynth/tree.cpp \
+ tsynth/inv_exp_table.cpp \
+ tsynth/midi_utility.cpp \
+ tsynth/mono_synth.cpp \
+ tsynth/mod_factory.cpp \
+ tsynth/vco.cpp \
+ tsynth/vca.cpp \
+ tsynth/vcf.cpp \
+ tsynth/mixer.cpp \
+ tsynth/eg.cpp \
+ tsynth/tsynth.cpp \
+ glue.cpp
+LOCAL_LDLIBS += -lOpenSLES -llog
+LOCAL_CPPFLAGS += -fexceptions -std=gnu++0x -DNDEBUG -O3
+LOCAL_C_INCLUDES += $(LOCAL_PATH)/tsynth \
+ /home/mt/source/boost_1_47_0
+
+include $(BUILD_SHARED_LIBRARY)
@@ -0,0 +1,3 @@
+APP_ABI := armeabi armeabi-v7a x86
+APP_STL := gnustl_static
+APP_PLATFORM := android-10
Oops, something went wrong.

0 comments on commit e4f2977

Please sign in to comment.