Initial commit. Nothing interesting yet
authorslack <slack@codemaniacs.com>
Wed, 3 Jun 2009 01:22:46 +0000 (03:22 +0200)
committerslack <slack@codemaniacs.com>
Wed, 3 Jun 2009 01:22:46 +0000 (03:22 +0200)
Makefile [new file with mode: 0644]
lolailo.pro [new file with mode: 0644]
lolailo.pro.user [new file with mode: 0644]
main.cpp [new file with mode: 0644]
mainwindow.cpp [new file with mode: 0644]
mainwindow.h [new file with mode: 0644]
mainwindow.ui [new file with mode: 0644]
play.cpp [new file with mode: 0644]
play.h [new file with mode: 0644]
synth.cpp [new file with mode: 0644]
synth.h [new file with mode: 0644]

diff --git a/Makefile b/Makefile
new file mode 100644 (file)
index 0000000..4773754
--- /dev/null
+++ b/Makefile
@@ -0,0 +1,226 @@
+#############################################################################
+# Makefile for building: lolailo
+# Generated by qmake (2.01a) (Qt 4.5.0) on: miĆ© jun 3 02:08:55 2009
+# Project:  lolailo.pro
+# Template: app
+# Command: /usr/bin/qmake-qt4 -spec /usr/share/qt4/mkspecs/linux-g++ -unix CONFIG+=debug -o Makefile lolailo.pro
+#############################################################################
+
+####### Compiler, tools and options
+
+CC            = gcc
+CXX           = g++
+DEFINES       = -DQT_GUI_LIB -DQT_CORE_LIB -DQT_SHARED
+CFLAGS        = -pipe -g -Wall -W -D_REENTRANT $(DEFINES)
+CXXFLAGS      = -pipe -g -Wall -W -D_REENTRANT $(DEFINES)
+INCPATH       = -I/usr/share/qt4/mkspecs/linux-g++ -I. -I/usr/include/qt4/QtCore -I/usr/include/qt4/QtGui -I/usr/include/qt4 -I. -I.
+LINK          = g++
+LFLAGS        = 
+LIBS          = $(SUBLIBS)  -L/usr/lib -lSDL -lQtGui -lQtCore -lpthread
+AR            = ar cqs
+RANLIB        = 
+QMAKE         = /usr/bin/qmake-qt4
+TAR           = tar -cf
+COMPRESS      = gzip -9f
+COPY          = cp -f
+SED           = sed
+COPY_FILE     = $(COPY)
+COPY_DIR      = $(COPY) -r
+INSTALL_FILE  = install -m 644 -p
+INSTALL_DIR   = $(COPY_DIR)
+INSTALL_PROGRAM = install -m 755 -p
+DEL_FILE      = rm -f
+SYMLINK       = ln -sf
+DEL_DIR       = rmdir
+MOVE          = mv -f
+CHK_DIR_EXISTS= test -d
+MKDIR         = mkdir -p
+
+####### Output directory
+
+OBJECTS_DIR   = ./
+
+####### Files
+
+SOURCES       = main.cpp \
+               mainwindow.cpp \
+               synth.cpp \
+               play.cpp moc_mainwindow.cpp
+OBJECTS       = main.o \
+               mainwindow.o \
+               synth.o \
+               play.o \
+               moc_mainwindow.o
+DIST          = /usr/share/qt4/mkspecs/common/g++.conf \
+               /usr/share/qt4/mkspecs/common/unix.conf \
+               /usr/share/qt4/mkspecs/common/linux.conf \
+               /usr/share/qt4/mkspecs/qconfig.pri \
+               /usr/share/qt4/mkspecs/features/qt_functions.prf \
+               /usr/share/qt4/mkspecs/features/qt_config.prf \
+               /usr/share/qt4/mkspecs/features/exclusive_builds.prf \
+               /usr/share/qt4/mkspecs/features/default_pre.prf \
+               /usr/share/qt4/mkspecs/features/debug.prf \
+               /usr/share/qt4/mkspecs/features/default_post.prf \
+               /usr/share/qt4/mkspecs/features/link_pkgconfig.prf \
+               /usr/share/qt4/mkspecs/features/warn_on.prf \
+               /usr/share/qt4/mkspecs/features/qt.prf \
+               /usr/share/qt4/mkspecs/features/unix/thread.prf \
+               /usr/share/qt4/mkspecs/features/moc.prf \
+               /usr/share/qt4/mkspecs/features/resources.prf \
+               /usr/share/qt4/mkspecs/features/uic.prf \
+               /usr/share/qt4/mkspecs/features/yacc.prf \
+               /usr/share/qt4/mkspecs/features/lex.prf \
+               lolailo.pro
+QMAKE_TARGET  = lolailo
+DESTDIR       = 
+TARGET        = lolailo
+
+first: all
+####### Implicit rules
+
+.SUFFIXES: .o .c .cpp .cc .cxx .C
+
+.cpp.o:
+       $(CXX) -c $(CXXFLAGS) $(INCPATH) -o "$@" "$<"
+
+.cc.o:
+       $(CXX) -c $(CXXFLAGS) $(INCPATH) -o "$@" "$<"
+
+.cxx.o:
+       $(CXX) -c $(CXXFLAGS) $(INCPATH) -o "$@" "$<"
+
+.C.o:
+       $(CXX) -c $(CXXFLAGS) $(INCPATH) -o "$@" "$<"
+
+.c.o:
+       $(CC) -c $(CFLAGS) $(INCPATH) -o "$@" "$<"
+
+####### Build rules
+
+all: Makefile $(TARGET)
+
+$(TARGET): ui_mainwindow.h $(OBJECTS)  
+       $(LINK) $(LFLAGS) -o $(TARGET) $(OBJECTS) $(OBJCOMP) $(LIBS)
+
+Makefile: lolailo.pro  /usr/share/qt4/mkspecs/linux-g++/qmake.conf /usr/share/qt4/mkspecs/common/g++.conf \
+               /usr/share/qt4/mkspecs/common/unix.conf \
+               /usr/share/qt4/mkspecs/common/linux.conf \
+               /usr/share/qt4/mkspecs/qconfig.pri \
+               /usr/share/qt4/mkspecs/features/qt_functions.prf \
+               /usr/share/qt4/mkspecs/features/qt_config.prf \
+               /usr/share/qt4/mkspecs/features/exclusive_builds.prf \
+               /usr/share/qt4/mkspecs/features/default_pre.prf \
+               /usr/share/qt4/mkspecs/features/debug.prf \
+               /usr/share/qt4/mkspecs/features/default_post.prf \
+               /usr/share/qt4/mkspecs/features/link_pkgconfig.prf \
+               /usr/share/qt4/mkspecs/features/warn_on.prf \
+               /usr/share/qt4/mkspecs/features/qt.prf \
+               /usr/share/qt4/mkspecs/features/unix/thread.prf \
+               /usr/share/qt4/mkspecs/features/moc.prf \
+               /usr/share/qt4/mkspecs/features/resources.prf \
+               /usr/share/qt4/mkspecs/features/uic.prf \
+               /usr/share/qt4/mkspecs/features/yacc.prf \
+               /usr/share/qt4/mkspecs/features/lex.prf \
+               /usr/lib/libQtGui.prl \
+               /usr/lib/libQtCore.prl
+       $(QMAKE) -spec /usr/share/qt4/mkspecs/linux-g++ -unix CONFIG+=debug -o Makefile lolailo.pro
+/usr/share/qt4/mkspecs/common/g++.conf:
+/usr/share/qt4/mkspecs/common/unix.conf:
+/usr/share/qt4/mkspecs/common/linux.conf:
+/usr/share/qt4/mkspecs/qconfig.pri:
+/usr/share/qt4/mkspecs/features/qt_functions.prf:
+/usr/share/qt4/mkspecs/features/qt_config.prf:
+/usr/share/qt4/mkspecs/features/exclusive_builds.prf:
+/usr/share/qt4/mkspecs/features/default_pre.prf:
+/usr/share/qt4/mkspecs/features/debug.prf:
+/usr/share/qt4/mkspecs/features/default_post.prf:
+/usr/share/qt4/mkspecs/features/link_pkgconfig.prf:
+/usr/share/qt4/mkspecs/features/warn_on.prf:
+/usr/share/qt4/mkspecs/features/qt.prf:
+/usr/share/qt4/mkspecs/features/unix/thread.prf:
+/usr/share/qt4/mkspecs/features/moc.prf:
+/usr/share/qt4/mkspecs/features/resources.prf:
+/usr/share/qt4/mkspecs/features/uic.prf:
+/usr/share/qt4/mkspecs/features/yacc.prf:
+/usr/share/qt4/mkspecs/features/lex.prf:
+/usr/lib/libQtGui.prl:
+/usr/lib/libQtCore.prl:
+qmake:  FORCE
+       @$(QMAKE) -spec /usr/share/qt4/mkspecs/linux-g++ -unix CONFIG+=debug -o Makefile lolailo.pro
+
+dist: 
+       @$(CHK_DIR_EXISTS) .tmp/lolailo1.0.0 || $(MKDIR) .tmp/lolailo1.0.0 
+       $(COPY_FILE) --parents $(SOURCES) $(DIST) .tmp/lolailo1.0.0/ && $(COPY_FILE) --parents mainwindow.h synth.h play.h .tmp/lolailo1.0.0/ && $(COPY_FILE) --parents main.cpp mainwindow.cpp synth.cpp play.cpp .tmp/lolailo1.0.0/ && $(COPY_FILE) --parents mainwindow.ui .tmp/lolailo1.0.0/ && (cd `dirname .tmp/lolailo1.0.0` && $(TAR) lolailo1.0.0.tar lolailo1.0.0 && $(COMPRESS) lolailo1.0.0.tar) && $(MOVE) `dirname .tmp/lolailo1.0.0`/lolailo1.0.0.tar.gz . && $(DEL_FILE) -r .tmp/lolailo1.0.0
+
+
+clean:compiler_clean 
+       -$(DEL_FILE) $(OBJECTS)
+       -$(DEL_FILE) *~ core *.core
+
+
+####### Sub-libraries
+
+distclean: clean
+       -$(DEL_FILE) $(TARGET) 
+       -$(DEL_FILE) Makefile
+
+
+mocclean: compiler_moc_header_clean compiler_moc_source_clean
+
+mocables: compiler_moc_header_make_all compiler_moc_source_make_all
+
+compiler_moc_header_make_all: moc_mainwindow.cpp
+compiler_moc_header_clean:
+       -$(DEL_FILE) moc_mainwindow.cpp
+moc_mainwindow.cpp: mainwindow.h
+       /usr/bin/moc-qt4 $(DEFINES) $(INCPATH) mainwindow.h -o moc_mainwindow.cpp
+
+compiler_rcc_make_all:
+compiler_rcc_clean:
+compiler_image_collection_make_all: qmake_image_collection.cpp
+compiler_image_collection_clean:
+       -$(DEL_FILE) qmake_image_collection.cpp
+compiler_moc_source_make_all:
+compiler_moc_source_clean:
+compiler_uic_make_all: ui_mainwindow.h
+compiler_uic_clean:
+       -$(DEL_FILE) ui_mainwindow.h
+ui_mainwindow.h: mainwindow.ui
+       /usr/bin/uic-qt4 mainwindow.ui -o ui_mainwindow.h
+
+compiler_yacc_decl_make_all:
+compiler_yacc_decl_clean:
+compiler_yacc_impl_make_all:
+compiler_yacc_impl_clean:
+compiler_lex_make_all:
+compiler_lex_clean:
+compiler_clean: compiler_moc_header_clean compiler_uic_clean 
+
+####### Compile
+
+main.o: main.cpp mainwindow.h \
+               synth.h \
+               play.h
+       $(CXX) -c $(CXXFLAGS) $(INCPATH) -o main.o main.cpp
+
+mainwindow.o: mainwindow.cpp mainwindow.h \
+               ui_mainwindow.h
+       $(CXX) -c $(CXXFLAGS) $(INCPATH) -o mainwindow.o mainwindow.cpp
+
+synth.o: synth.cpp synth.h
+       $(CXX) -c $(CXXFLAGS) $(INCPATH) -o synth.o synth.cpp
+
+play.o: play.cpp play.h
+       $(CXX) -c $(CXXFLAGS) $(INCPATH) -o play.o play.cpp
+
+moc_mainwindow.o: moc_mainwindow.cpp 
+       $(CXX) -c $(CXXFLAGS) $(INCPATH) -o moc_mainwindow.o moc_mainwindow.cpp
+
+####### Install
+
+install:   FORCE
+
+uninstall:   FORCE
+
+FORCE:
+
diff --git a/lolailo.pro b/lolailo.pro
new file mode 100644 (file)
index 0000000..ff3476c
--- /dev/null
@@ -0,0 +1,16 @@
+# -------------------------------------------------
+# Project created by QtCreator 2009-06-03T01:10:35
+# -------------------------------------------------
+TARGET = lolailo
+TEMPLATE = app
+SOURCES += main.cpp \
+    mainwindow.cpp \
+    synth.cpp \
+    play.cpp
+HEADERS += mainwindow.h \
+    synth.h \
+    play.h
+FORMS += mainwindow.ui
+CONFIG += link_pkgconfig
+LIBS += -lSDL
+PKG_CONFIG += sdl
diff --git a/lolailo.pro.user b/lolailo.pro.user
new file mode 100644 (file)
index 0000000..c551d7a
--- /dev/null
@@ -0,0 +1,331 @@
+<!DOCTYPE QtCreatorProject>
+<qtcreator>
+ <data>
+  <variable>RunConfiguration0-BaseEnvironmentBase</variable>
+  <value type="int" >2</value>
+ </data>
+ <data>
+  <variable>RunConfiguration0-CommandLineArguments</variable>
+  <valuelist type="QVariantList" />
+ </data>
+ <data>
+  <variable>RunConfiguration0-ProFile</variable>
+  <value type="QString" >lolailo.pro</value>
+ </data>
+ <data>
+  <variable>RunConfiguration0-RunConfiguration.name</variable>
+  <value type="QString" >lolailo</value>
+ </data>
+ <data>
+  <variable>RunConfiguration0-UseDyldImageSuffix</variable>
+  <value type="bool" >false</value>
+ </data>
+ <data>
+  <variable>RunConfiguration0-UseTerminal</variable>
+  <value type="bool" >false</value>
+ </data>
+ <data>
+  <variable>RunConfiguration0-UserEnvironmentChanges</variable>
+  <valuelist type="QVariantList" />
+ </data>
+ <data>
+  <variable>RunConfiguration0-UserSetName</variable>
+  <value type="bool" >false</value>
+ </data>
+ <data>
+  <variable>RunConfiguration0-type</variable>
+  <value type="QString" >Qt4ProjectManager.Qt4RunConfiguration</value>
+ </data>
+ <data>
+  <variable>activeRunConfiguration</variable>
+  <value type="int" >0</value>
+ </data>
+ <data>
+  <variable>activebuildconfiguration</variable>
+  <value type="QString" >Debug</value>
+ </data>
+ <data>
+  <variable>buildConfiguration-Debug</variable>
+  <valuemap type="QVariantMap" >
+   <value key="ProjectExplorer.BuildConfiguration.DisplayName" type="QString" >Debug</value>
+   <value key="QtVersionId" type="int" >0</value>
+   <value key="addQDumper" type="" ></value>
+  </valuemap>
+ </data>
+ <data>
+  <variable>buildConfiguration-Release</variable>
+  <valuemap type="QVariantMap" >
+   <value key="ProjectExplorer.BuildConfiguration.DisplayName" type="QString" >Release</value>
+   <value key="QtVersionId" type="int" >0</value>
+   <value key="addQDumper" type="" ></value>
+  </valuemap>
+ </data>
+ <data>
+  <variable>buildconfiguration-Debug-buildstep0</variable>
+  <valuemap type="QVariantMap" >
+   <value key="ProjectExplorer.BuildConfiguration.DisplayName" type="QString" >Debug</value>
+   <valuelist key="abstractProcess.Environment" type="QVariantList" >
+    <value type="QString" >COLORTERM=gnome-terminal</value>
+    <value type="QString" >DBUS_SESSION_BUS_ADDRESS=unix:abstract=/tmp/dbus-e9WQoxtZb2,guid=326f2445091ad0a27309de634a25ac3c</value>
+    <value type="QString" >DESKTOP_SESSION=default</value>
+    <value type="QString" >DESKTOP_STARTUP_ID=</value>
+    <value type="QString" >DEVKITARM=/home/slack/devkitPro/devkitARM</value>
+    <value type="QString" >DEVKITPPC=/home/slack/devkitPro/devkitPPC</value>
+    <value type="QString" >DEVKITPRO=/home/slack/devkitPro</value>
+    <value type="QString" >DISPLAY=:0.0</value>
+    <value type="QString" >EDITOR=/usr/bin/vim</value>
+    <value type="QString" >GDMSESSION=default</value>
+    <value type="QString" >GDM_LANG=es_ES.UTF-8</value>
+    <value type="QString" >GDM_XSERVER_LOCATION=local</value>
+    <value type="QString" >GNOME_DESKTOP_SESSION_ID=this-is-deprecated</value>
+    <value type="QString" >GNOME_KEYRING_PID=22024</value>
+    <value type="QString" >GNOME_KEYRING_SOCKET=/tmp/keyring-oI8emD/socket</value>
+    <value type="QString" >GPG_AGENT_INFO=/tmp/seahorse-7JJz7C/S.gpg-agent:22210:1</value>
+    <value type="QString" >GTK_MODULES=canberra-gtk-module</value>
+    <value type="QString" >GTK_RC_FILES=/etc/gtk/gtkrc:/home/slack/.gtkrc-1.2-gnome2</value>
+    <value type="QString" >HISTCONTROL=ignoredups</value>
+    <value type="QString" >HOME=/home/slack</value>
+    <value type="QString" >LANG=es_ES.UTF-8</value>
+    <value type="QString" >LD_LIBRARY_PATH=/home/slack/soft/qt-creator/build/lib/qtcreator::/home/slack/local/lib:/home/slack/local/usr/lib:/home/slack/local/lib64:/home/slack/local/lib32</value>
+    <value type="QString" >LESSCLOSE=/usr/bin/lesspipe %s %s</value>
+    <value type="QString" >LESSOPEN=| /usr/bin/lesspipe %s</value>
+    <value type="QString" >LIBNDS=/home/slack/devkitPro/libnds</value>
+    <value type="QString" >LIBNDS_INCLUDE=/home/slack/devkitPro/libnds/include</value>
+    <value type="QString" >LIBNDS_LIB=/home/slack/devkitPro/libnds/lib</value>
+    <value type="QString" >LOGNAME=slack</value>
+    <value type="QString" >LS_COLORS=no=00:fi=00:di=01;34:ln=01;36:pi=40;33:so=01;35:do=01;35:bd=40;33;01:cd=40;33;01:or=40;31;01:su=37;41:sg=30;43:tw=30;42:ow=34;42:st=37;44:ex=01;32:*.tar=01;31:*.tgz=01;31:*.svgz=01;31:*.arj=01;31:*.taz=01;31:*.lzh=01;31:*.lzma=01;31:*.zip=01;31:*.z=01;31:*.Z=01;31:*.dz=01;31:*.gz=01;31:*.bz2=01;31:*.bz=01;31:*.tbz2=01;31:*.tz=01;31:*.deb=01;31:*.rpm=01;31:*.jar=01;31:*.rar=01;31:*.ace=01;31:*.zoo=01;31:*.cpio=01;31:*.7z=01;31:*.rz=01;31:*.jpg=01;35:*.jpeg=01;35:*.gif=01;35:*.bmp=01;35:*.pbm=01;35:*.pgm=01;35:*.ppm=01;35:*.tga=01;35:*.xbm=01;35:*.xpm=01;35:*.tif=01;35:*.tiff=01;35:*.png=01;35:*.svg=01;35:*.mng=01;35:*.pcx=01;35:*.mov=01;35:*.mpg=01;35:*.mpeg=01;35:*.m2v=01;35:*.mkv=01;35:*.ogm=01;35:*.mp4=01;35:*.m4v=01;35:*.mp4v=01;35:*.vob=01;35:*.qt=01;35:*.nuv=01;35:*.wmv=01;35:*.asf=01;35:*.rm=01;35:*.rmvb=01;35:*.flc=01;35:*.avi=01;35:*.fli=01;35:*.gl=01;35:*.dl=01;35:*.xcf=01;35:*.xwd=01;35:*.yuv=01;35:*.aac=00;36:*.au=00;36:*.flac=00;36:*.mid=00;36:*.midi=00;36:*.mka=00;36:*.mp3=00;36:*.mpc=00;36:*.ogg=00;36:*.ra=00;36:*.wav=00;36:</value>
+    <value type="QString" >OLDPWD=/home/slack/soft/qt-creator</value>
+    <value type="QString" >ORBIT_SOCKETDIR=/tmp/orbit-slack</value>
+    <value type="QString" >PAPATH=/home/slack/NDS/devkitPro/PAlib</value>
+    <value type="QString" >PATH=/usr/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/bin/X11:/usr/games:/home/slack/local/sbin:/home/slack/local/bin:/home/slack/local/usr/bin:/home/slack/devkitPro/devkitARM/bin:/home/slack/devkitPro/devkitPPC/bin:/home/slack/psp/bin:/home/slack/psp/pspsdk/bin</value>
+    <value type="QString" >PSPDEV=/home/slack/psp</value>
+    <value type="QString" >PSPSDK=/home/slack/psp/pspsdk</value>
+    <value type="QString" >PWD=/home/slack/soft/qt-creator/build</value>
+    <value type="QString" >QTDIR=/usr</value>
+    <value type="QString" >SESSION_MANAGER=local/ommadawn:/tmp/.ICE-unix/22036</value>
+    <value type="QString" >SHELL=/bin/bash</value>
+    <value type="QString" >SHLVL=1</value>
+    <value type="QString" >SSH_AGENT_PID=22150</value>
+    <value type="QString" >SSH_AUTH_SOCK=/tmp/keyring-oI8emD/socket.ssh</value>
+    <value type="QString" >TERM=xterm</value>
+    <value type="QString" >USER=slack</value>
+    <value type="QString" >USERNAME=slack</value>
+    <value type="QString" >WINDOWID=60861899</value>
+    <value type="QString" >WINDOWPATH=7:10</value>
+    <value type="QString" >XAUTHORITY=/home/slack/.Xauthority</value>
+    <value type="QString" >XDG_DATA_DIRS=/usr/local/share/:/usr/share/:/usr/share/gdm/</value>
+    <value type="QString" >XDG_SESSION_COOKIE=b95e9de5c0255c87d4458400462bf263-1243982908.518998-392587063</value>
+    <value type="QString" >_=bin/qtcreator</value>
+   </valuelist>
+   <valuelist key="abstractProcess.arguments" type="QVariantList" >
+    <value type="QString" >/home/slack/soft/lolailo/lolailo.pro</value>
+    <value type="QString" >-spec</value>
+    <value type="QString" >/usr/share/qt4/mkspecs/linux-g++</value>
+    <value type="QString" >-r</value>
+    <value type="QString" >CONFIG+=debug</value>
+   </valuelist>
+   <value key="abstractProcess.command" type="QString" >/usr/bin/qmake-qt4</value>
+   <value key="abstractProcess.enabled" type="bool" >false</value>
+   <value key="abstractProcess.workingDirectory" type="QString" >/home/slack/soft/lolailo</value>
+   <value key="buildConfiguration" type="int" >2</value>
+  </valuemap>
+ </data>
+ <data>
+  <variable>buildconfiguration-Debug-buildstep1</variable>
+  <valuemap type="QVariantMap" >
+   <value key="ProjectExplorer.BuildConfiguration.DisplayName" type="QString" >Debug</value>
+   <valuelist key="abstractProcess.Environment" type="QVariantList" >
+    <value type="QString" >COLORTERM=gnome-terminal</value>
+    <value type="QString" >DBUS_SESSION_BUS_ADDRESS=unix:abstract=/tmp/dbus-e9WQoxtZb2,guid=326f2445091ad0a27309de634a25ac3c</value>
+    <value type="QString" >DESKTOP_SESSION=default</value>
+    <value type="QString" >DESKTOP_STARTUP_ID=</value>
+    <value type="QString" >DEVKITARM=/home/slack/devkitPro/devkitARM</value>
+    <value type="QString" >DEVKITPPC=/home/slack/devkitPro/devkitPPC</value>
+    <value type="QString" >DEVKITPRO=/home/slack/devkitPro</value>
+    <value type="QString" >DISPLAY=:0.0</value>
+    <value type="QString" >EDITOR=/usr/bin/vim</value>
+    <value type="QString" >GDMSESSION=default</value>
+    <value type="QString" >GDM_LANG=es_ES.UTF-8</value>
+    <value type="QString" >GDM_XSERVER_LOCATION=local</value>
+    <value type="QString" >GNOME_DESKTOP_SESSION_ID=this-is-deprecated</value>
+    <value type="QString" >GNOME_KEYRING_PID=22024</value>
+    <value type="QString" >GNOME_KEYRING_SOCKET=/tmp/keyring-oI8emD/socket</value>
+    <value type="QString" >GPG_AGENT_INFO=/tmp/seahorse-7JJz7C/S.gpg-agent:22210:1</value>
+    <value type="QString" >GTK_MODULES=canberra-gtk-module</value>
+    <value type="QString" >GTK_RC_FILES=/etc/gtk/gtkrc:/home/slack/.gtkrc-1.2-gnome2</value>
+    <value type="QString" >HISTCONTROL=ignoredups</value>
+    <value type="QString" >HOME=/home/slack</value>
+    <value type="QString" >LANG=es_ES.UTF-8</value>
+    <value type="QString" >LD_LIBRARY_PATH=/home/slack/soft/qt-creator/build/lib/qtcreator::/home/slack/local/lib:/home/slack/local/usr/lib:/home/slack/local/lib64:/home/slack/local/lib32</value>
+    <value type="QString" >LESSCLOSE=/usr/bin/lesspipe %s %s</value>
+    <value type="QString" >LESSOPEN=| /usr/bin/lesspipe %s</value>
+    <value type="QString" >LIBNDS=/home/slack/devkitPro/libnds</value>
+    <value type="QString" >LIBNDS_INCLUDE=/home/slack/devkitPro/libnds/include</value>
+    <value type="QString" >LIBNDS_LIB=/home/slack/devkitPro/libnds/lib</value>
+    <value type="QString" >LOGNAME=slack</value>
+    <value type="QString" >LS_COLORS=no=00:fi=00:di=01;34:ln=01;36:pi=40;33:so=01;35:do=01;35:bd=40;33;01:cd=40;33;01:or=40;31;01:su=37;41:sg=30;43:tw=30;42:ow=34;42:st=37;44:ex=01;32:*.tar=01;31:*.tgz=01;31:*.svgz=01;31:*.arj=01;31:*.taz=01;31:*.lzh=01;31:*.lzma=01;31:*.zip=01;31:*.z=01;31:*.Z=01;31:*.dz=01;31:*.gz=01;31:*.bz2=01;31:*.bz=01;31:*.tbz2=01;31:*.tz=01;31:*.deb=01;31:*.rpm=01;31:*.jar=01;31:*.rar=01;31:*.ace=01;31:*.zoo=01;31:*.cpio=01;31:*.7z=01;31:*.rz=01;31:*.jpg=01;35:*.jpeg=01;35:*.gif=01;35:*.bmp=01;35:*.pbm=01;35:*.pgm=01;35:*.ppm=01;35:*.tga=01;35:*.xbm=01;35:*.xpm=01;35:*.tif=01;35:*.tiff=01;35:*.png=01;35:*.svg=01;35:*.mng=01;35:*.pcx=01;35:*.mov=01;35:*.mpg=01;35:*.mpeg=01;35:*.m2v=01;35:*.mkv=01;35:*.ogm=01;35:*.mp4=01;35:*.m4v=01;35:*.mp4v=01;35:*.vob=01;35:*.qt=01;35:*.nuv=01;35:*.wmv=01;35:*.asf=01;35:*.rm=01;35:*.rmvb=01;35:*.flc=01;35:*.avi=01;35:*.fli=01;35:*.gl=01;35:*.dl=01;35:*.xcf=01;35:*.xwd=01;35:*.yuv=01;35:*.aac=00;36:*.au=00;36:*.flac=00;36:*.mid=00;36:*.midi=00;36:*.mka=00;36:*.mp3=00;36:*.mpc=00;36:*.ogg=00;36:*.ra=00;36:*.wav=00;36:</value>
+    <value type="QString" >OLDPWD=/home/slack/soft/qt-creator</value>
+    <value type="QString" >ORBIT_SOCKETDIR=/tmp/orbit-slack</value>
+    <value type="QString" >PAPATH=/home/slack/NDS/devkitPro/PAlib</value>
+    <value type="QString" >PATH=/usr/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/bin/X11:/usr/games:/home/slack/local/sbin:/home/slack/local/bin:/home/slack/local/usr/bin:/home/slack/devkitPro/devkitARM/bin:/home/slack/devkitPro/devkitPPC/bin:/home/slack/psp/bin:/home/slack/psp/pspsdk/bin</value>
+    <value type="QString" >PSPDEV=/home/slack/psp</value>
+    <value type="QString" >PSPSDK=/home/slack/psp/pspsdk</value>
+    <value type="QString" >PWD=/home/slack/soft/qt-creator/build</value>
+    <value type="QString" >QTDIR=/usr</value>
+    <value type="QString" >SESSION_MANAGER=local/ommadawn:/tmp/.ICE-unix/22036</value>
+    <value type="QString" >SHELL=/bin/bash</value>
+    <value type="QString" >SHLVL=1</value>
+    <value type="QString" >SSH_AGENT_PID=22150</value>
+    <value type="QString" >SSH_AUTH_SOCK=/tmp/keyring-oI8emD/socket.ssh</value>
+    <value type="QString" >TERM=xterm</value>
+    <value type="QString" >USER=slack</value>
+    <value type="QString" >USERNAME=slack</value>
+    <value type="QString" >WINDOWID=60861899</value>
+    <value type="QString" >WINDOWPATH=7:10</value>
+    <value type="QString" >XAUTHORITY=/home/slack/.Xauthority</value>
+    <value type="QString" >XDG_DATA_DIRS=/usr/local/share/:/usr/share/:/usr/share/gdm/</value>
+    <value type="QString" >XDG_SESSION_COOKIE=b95e9de5c0255c87d4458400462bf263-1243982908.518998-392587063</value>
+    <value type="QString" >_=bin/qtcreator</value>
+   </valuelist>
+   <valuelist key="abstractProcess.arguments" type="QVariantList" >
+    <value type="QString" >-w</value>
+   </valuelist>
+   <value key="abstractProcess.command" type="QString" >/usr/bin/make</value>
+   <value key="abstractProcess.enabled" type="bool" >true</value>
+   <value key="abstractProcess.workingDirectory" type="QString" >/home/slack/soft/lolailo</value>
+  </valuemap>
+ </data>
+ <data>
+  <variable>buildconfiguration-Debug-cleanstep0</variable>
+  <valuemap type="QVariantMap" >
+   <value key="ProjectExplorer.BuildConfiguration.DisplayName" type="QString" >Debug</value>
+   <valuelist key="abstractProcess.Environment" type="QVariantList" >
+    <value type="QString" >COLORTERM=gnome-terminal</value>
+    <value type="QString" >DBUS_SESSION_BUS_ADDRESS=unix:abstract=/tmp/dbus-e9WQoxtZb2,guid=326f2445091ad0a27309de634a25ac3c</value>
+    <value type="QString" >DESKTOP_SESSION=default</value>
+    <value type="QString" >DESKTOP_STARTUP_ID=</value>
+    <value type="QString" >DEVKITARM=/home/slack/devkitPro/devkitARM</value>
+    <value type="QString" >DEVKITPPC=/home/slack/devkitPro/devkitPPC</value>
+    <value type="QString" >DEVKITPRO=/home/slack/devkitPro</value>
+    <value type="QString" >DISPLAY=:0.0</value>
+    <value type="QString" >EDITOR=/usr/bin/vim</value>
+    <value type="QString" >GDMSESSION=default</value>
+    <value type="QString" >GDM_LANG=es_ES.UTF-8</value>
+    <value type="QString" >GDM_XSERVER_LOCATION=local</value>
+    <value type="QString" >GNOME_DESKTOP_SESSION_ID=this-is-deprecated</value>
+    <value type="QString" >GNOME_KEYRING_PID=22024</value>
+    <value type="QString" >GNOME_KEYRING_SOCKET=/tmp/keyring-oI8emD/socket</value>
+    <value type="QString" >GPG_AGENT_INFO=/tmp/seahorse-7JJz7C/S.gpg-agent:22210:1</value>
+    <value type="QString" >GTK_MODULES=canberra-gtk-module</value>
+    <value type="QString" >GTK_RC_FILES=/etc/gtk/gtkrc:/home/slack/.gtkrc-1.2-gnome2</value>
+    <value type="QString" >HISTCONTROL=ignoredups</value>
+    <value type="QString" >HOME=/home/slack</value>
+    <value type="QString" >LANG=es_ES.UTF-8</value>
+    <value type="QString" >LD_LIBRARY_PATH=/home/slack/soft/qt-creator/build/lib/qtcreator::/home/slack/local/lib:/home/slack/local/usr/lib:/home/slack/local/lib64:/home/slack/local/lib32</value>
+    <value type="QString" >LESSCLOSE=/usr/bin/lesspipe %s %s</value>
+    <value type="QString" >LESSOPEN=| /usr/bin/lesspipe %s</value>
+    <value type="QString" >LIBNDS=/home/slack/devkitPro/libnds</value>
+    <value type="QString" >LIBNDS_INCLUDE=/home/slack/devkitPro/libnds/include</value>
+    <value type="QString" >LIBNDS_LIB=/home/slack/devkitPro/libnds/lib</value>
+    <value type="QString" >LOGNAME=slack</value>
+    <value type="QString" >LS_COLORS=no=00:fi=00:di=01;34:ln=01;36:pi=40;33:so=01;35:do=01;35:bd=40;33;01:cd=40;33;01:or=40;31;01:su=37;41:sg=30;43:tw=30;42:ow=34;42:st=37;44:ex=01;32:*.tar=01;31:*.tgz=01;31:*.svgz=01;31:*.arj=01;31:*.taz=01;31:*.lzh=01;31:*.lzma=01;31:*.zip=01;31:*.z=01;31:*.Z=01;31:*.dz=01;31:*.gz=01;31:*.bz2=01;31:*.bz=01;31:*.tbz2=01;31:*.tz=01;31:*.deb=01;31:*.rpm=01;31:*.jar=01;31:*.rar=01;31:*.ace=01;31:*.zoo=01;31:*.cpio=01;31:*.7z=01;31:*.rz=01;31:*.jpg=01;35:*.jpeg=01;35:*.gif=01;35:*.bmp=01;35:*.pbm=01;35:*.pgm=01;35:*.ppm=01;35:*.tga=01;35:*.xbm=01;35:*.xpm=01;35:*.tif=01;35:*.tiff=01;35:*.png=01;35:*.svg=01;35:*.mng=01;35:*.pcx=01;35:*.mov=01;35:*.mpg=01;35:*.mpeg=01;35:*.m2v=01;35:*.mkv=01;35:*.ogm=01;35:*.mp4=01;35:*.m4v=01;35:*.mp4v=01;35:*.vob=01;35:*.qt=01;35:*.nuv=01;35:*.wmv=01;35:*.asf=01;35:*.rm=01;35:*.rmvb=01;35:*.flc=01;35:*.avi=01;35:*.fli=01;35:*.gl=01;35:*.dl=01;35:*.xcf=01;35:*.xwd=01;35:*.yuv=01;35:*.aac=00;36:*.au=00;36:*.flac=00;36:*.mid=00;36:*.midi=00;36:*.mka=00;36:*.mp3=00;36:*.mpc=00;36:*.ogg=00;36:*.ra=00;36:*.wav=00;36:</value>
+    <value type="QString" >OLDPWD=/home/slack/soft/qt-creator</value>
+    <value type="QString" >ORBIT_SOCKETDIR=/tmp/orbit-slack</value>
+    <value type="QString" >PAPATH=/home/slack/NDS/devkitPro/PAlib</value>
+    <value type="QString" >PATH=/usr/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/bin/X11:/usr/games:/home/slack/local/sbin:/home/slack/local/bin:/home/slack/local/usr/bin:/home/slack/devkitPro/devkitARM/bin:/home/slack/devkitPro/devkitPPC/bin:/home/slack/psp/bin:/home/slack/psp/pspsdk/bin</value>
+    <value type="QString" >PSPDEV=/home/slack/psp</value>
+    <value type="QString" >PSPSDK=/home/slack/psp/pspsdk</value>
+    <value type="QString" >PWD=/home/slack/soft/qt-creator/build</value>
+    <value type="QString" >QTDIR=/usr</value>
+    <value type="QString" >SESSION_MANAGER=local/ommadawn:/tmp/.ICE-unix/22036</value>
+    <value type="QString" >SHELL=/bin/bash</value>
+    <value type="QString" >SHLVL=1</value>
+    <value type="QString" >SSH_AGENT_PID=22150</value>
+    <value type="QString" >SSH_AUTH_SOCK=/tmp/keyring-oI8emD/socket.ssh</value>
+    <value type="QString" >TERM=xterm</value>
+    <value type="QString" >USER=slack</value>
+    <value type="QString" >USERNAME=slack</value>
+    <value type="QString" >WINDOWID=60861899</value>
+    <value type="QString" >WINDOWPATH=7:10</value>
+    <value type="QString" >XAUTHORITY=/home/slack/.Xauthority</value>
+    <value type="QString" >XDG_DATA_DIRS=/usr/local/share/:/usr/share/:/usr/share/gdm/</value>
+    <value type="QString" >XDG_SESSION_COOKIE=b95e9de5c0255c87d4458400462bf263-1243982908.518998-392587063</value>
+    <value type="QString" >_=bin/qtcreator</value>
+   </valuelist>
+   <valuelist key="abstractProcess.arguments" type="QVariantList" >
+    <value type="QString" >clean</value>
+    <value type="QString" >-w</value>
+   </valuelist>
+   <value key="abstractProcess.command" type="QString" >/usr/bin/make</value>
+   <value key="abstractProcess.enabled" type="bool" >true</value>
+   <value key="abstractProcess.workingDirectory" type="QString" >/home/slack/soft/lolailo</value>
+  </valuemap>
+ </data>
+ <data>
+  <variable>buildconfiguration-Release-buildstep0</variable>
+  <valuemap type="QVariantMap" >
+   <value key="ProjectExplorer.BuildConfiguration.DisplayName" type="QString" >Release</value>
+   <value key="buildConfiguration" type="int" >0</value>
+  </valuemap>
+ </data>
+ <data>
+  <variable>buildconfiguration-Release-buildstep1</variable>
+  <valuemap type="QVariantMap" >
+   <value key="ProjectExplorer.BuildConfiguration.DisplayName" type="QString" >Release</value>
+  </valuemap>
+ </data>
+ <data>
+  <variable>buildconfiguration-Release-cleanstep0</variable>
+  <valuemap type="QVariantMap" >
+   <value key="ProjectExplorer.BuildConfiguration.DisplayName" type="QString" >Release</value>
+  </valuemap>
+ </data>
+ <data>
+  <variable>buildconfigurations</variable>
+  <valuelist type="QVariantList" >
+   <value type="QString" >Debug</value>
+   <value type="QString" >Release</value>
+  </valuelist>
+ </data>
+ <data>
+  <variable>buildstep0</variable>
+  <valuemap type="QVariantMap" >
+   <value key="ProjectExplorer.BuildConfiguration.DisplayName" type="QString" ></value>
+   <value key="mkspec" type="QString" ></value>
+  </valuemap>
+ </data>
+ <data>
+  <variable>buildstep1</variable>
+  <valuemap type="QVariantMap" >
+   <value key="ProjectExplorer.BuildConfiguration.DisplayName" type="QString" ></value>
+  </valuemap>
+ </data>
+ <data>
+  <variable>buildsteps</variable>
+  <valuelist type="QVariantList" >
+   <value type="QString" >trolltech.qt4projectmanager.qmake</value>
+   <value type="QString" >trolltech.qt4projectmanager.make</value>
+  </valuelist>
+ </data>
+ <data>
+  <variable>cleanstep0</variable>
+  <valuemap type="QVariantMap" >
+   <value key="ProjectExplorer.BuildConfiguration.DisplayName" type="QString" ></value>
+   <value key="clean" type="bool" >true</value>
+  </valuemap>
+ </data>
+ <data>
+  <variable>cleansteps</variable>
+  <valuelist type="QVariantList" >
+   <value type="QString" >trolltech.qt4projectmanager.make</value>
+  </valuelist>
+ </data>
+ <data>
+  <variable>defaultFileEncoding</variable>
+  <value type="QByteArray" >System</value>
+ </data>
+ <data>
+  <variable>project</variable>
+  <valuemap type="QVariantMap" />
+ </data>
+</qtcreator>
diff --git a/main.cpp b/main.cpp
new file mode 100644 (file)
index 0000000..b2f5e4a
--- /dev/null
+++ b/main.cpp
@@ -0,0 +1,31 @@
+#include <QtGui/QApplication>
+#include <SDL/SDL.h>
+#include "mainwindow.h"
+#include "synth.h"
+#include "play.h"
+
+Song song;
+
+SDL_AudioSpec desired={44100,
+                       AUDIO_S16SYS,
+                       1,
+                       0,
+                       BUFFER_SIZE,
+                       0,
+                       0,
+                       (void (*)(void *, Uint8 *, int)) play,
+                       &song};
+
+int main(int argc, char *argv[])
+{
+    SDL_Init(SDL_INIT_AUDIO);
+    SDL_OpenAudio(&desired, NULL);
+    SDL_PauseAudio(0);
+
+    QApplication a(argc, argv);
+    MainWindow w;
+    w.show();
+    int error = a.exec();
+    SDL_Quit();
+    return error;
+}
diff --git a/mainwindow.cpp b/mainwindow.cpp
new file mode 100644 (file)
index 0000000..d5841f4
--- /dev/null
@@ -0,0 +1,13 @@
+#include "mainwindow.h"
+#include "ui_mainwindow.h"
+
+MainWindow::MainWindow(QWidget *parent)
+    : QMainWindow(parent), ui(new Ui::MainWindow)
+{
+    ui->setupUi(this);
+}
+
+MainWindow::~MainWindow()
+{
+    delete ui;
+}
diff --git a/mainwindow.h b/mainwindow.h
new file mode 100644 (file)
index 0000000..c86b51a
--- /dev/null
@@ -0,0 +1,23 @@
+#ifndef MAINWINDOW_H
+#define MAINWINDOW_H
+
+#include <QtGui/QMainWindow>
+
+namespace Ui
+{
+    class MainWindow;
+}
+
+class MainWindow : public QMainWindow
+{
+    Q_OBJECT
+
+public:
+    MainWindow(QWidget *parent = 0);
+    ~MainWindow();
+
+private:
+    Ui::MainWindow *ui;
+};
+
+#endif // MAINWINDOW_H
diff --git a/mainwindow.ui b/mainwindow.ui
new file mode 100644 (file)
index 0000000..b1aab85
--- /dev/null
@@ -0,0 +1,46 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<ui version="4.0">
+ <class>MainWindow</class>
+ <widget class="QMainWindow" name="MainWindow">
+  <property name="geometry">
+   <rect>
+    <x>0</x>
+    <y>0</y>
+    <width>662</width>
+    <height>491</height>
+   </rect>
+  </property>
+  <property name="windowTitle">
+   <string>MainWindow</string>
+  </property>
+  <widget class="QWidget" name="centralWidget">
+   <layout class="QHBoxLayout" name="horizontalLayout_2">
+    <item>
+     <layout class="QHBoxLayout" name="horizontalLayout"/>
+    </item>
+   </layout>
+  </widget>
+  <widget class="QMenuBar" name="menuBar">
+   <property name="geometry">
+    <rect>
+     <x>0</x>
+     <y>0</y>
+     <width>662</width>
+     <height>25</height>
+    </rect>
+   </property>
+  </widget>
+  <widget class="QToolBar" name="mainToolBar">
+   <attribute name="toolBarArea">
+    <enum>TopToolBarArea</enum>
+   </attribute>
+   <attribute name="toolBarBreak">
+    <bool>false</bool>
+   </attribute>
+  </widget>
+  <widget class="QStatusBar" name="statusBar"/>
+ </widget>
+ <layoutdefault spacing="6" margin="11"/>
+ <resources/>
+ <connections/>
+</ui>
diff --git a/play.cpp b/play.cpp
new file mode 100644 (file)
index 0000000..3e1a0db
--- /dev/null
+++ b/play.cpp
@@ -0,0 +1,10 @@
+#include "play.h"
+
+#include <cstdio>
+
+void play(void *songdata, Uint8* stream, int len)
+{
+    memset(stream, 0, len);
+    printf("Sound callback\n");
+}
+
diff --git a/play.h b/play.h
new file mode 100644 (file)
index 0000000..8d72d4c
--- /dev/null
+++ b/play.h
@@ -0,0 +1,12 @@
+#ifndef PLAY_H
+#define PLAY_H
+
+#include <SDL/SDL.h>
+
+struct Song
+{
+};
+
+void play(void *songdata, Uint8 *stream, int len);
+
+#endif // PLAY_H
diff --git a/synth.cpp b/synth.cpp
new file mode 100644 (file)
index 0000000..7569467
--- /dev/null
+++ b/synth.cpp
@@ -0,0 +1,2 @@
+#include "synth.h"
+
diff --git a/synth.h b/synth.h
new file mode 100644 (file)
index 0000000..ad1b963
--- /dev/null
+++ b/synth.h
@@ -0,0 +1,39 @@
+#ifndef SYNTH_H
+#define SYNTH_H
+
+#include <SDL/SDL.h>
+
+#define BUFFER_SIZE 1024
+
+/*
+    An instrument is defined by the concatenation of several operations, possibly with parameters
+    For example:
+
+    square_osc(wet=100%, pulse_width=50%) -> LP_filter(cutoff=4000 Hz, Q=0.1) -> Delay (5ms)
+
+    These operations are encoded as sequences of bytes. The first byte in the sequence selects the
+    operation, and the corresponding function reads as many parameter bytes as it needs, updating
+    the pointer. Any non-existant operation ends the sequence.
+*/
+
+struct Voice
+{
+        float pitch;
+        float vol;
+        Uint8 *ins;  // instrument definition
+
+        int pos;     // position in samples since the start
+        Uint8 active;   // { 0 ==> inactive, (not 0) ==> active }
+
+        // data buffer to store, for example, previous inputs/outputs for filtering.
+        // 50 bytes should be enough for everyone. Anyway, voices will be created
+        // at bss, so they don't count for the file size :)
+        Uint8 status[50];
+};
+
+
+void synth(Voice *v, int len, float *mix_buf);
+
+
+
+#endif // SYNTH_H