From 0ed7a8b68dd73e2b0473b8127aeca99f3bac9061 Mon Sep 17 00:00:00 2001 From: Thomas Grill Date: Wed, 1 Apr 2009 21:13:09 +0000 Subject: cleaned up grill externals - replaced with svn:externals to svn.grrrr.org/ext/trunk/ svn path=/trunk/; revision=10951 --- externals/grill/flext/tutorial/stk1/Makefile.am | 51 ------- externals/grill/flext/tutorial/stk1/main.cpp | 89 ------------ externals/grill/flext/tutorial/stk1/package.txt | 2 - externals/grill/flext/tutorial/stk1/stk1.vcproj | 177 ------------------------ 4 files changed, 319 deletions(-) delete mode 100644 externals/grill/flext/tutorial/stk1/Makefile.am delete mode 100644 externals/grill/flext/tutorial/stk1/main.cpp delete mode 100644 externals/grill/flext/tutorial/stk1/package.txt delete mode 100644 externals/grill/flext/tutorial/stk1/stk1.vcproj (limited to 'externals/grill/flext/tutorial/stk1') diff --git a/externals/grill/flext/tutorial/stk1/Makefile.am b/externals/grill/flext/tutorial/stk1/Makefile.am deleted file mode 100644 index 3449f410..00000000 --- a/externals/grill/flext/tutorial/stk1/Makefile.am +++ /dev/null @@ -1,51 +0,0 @@ -# -# automake template -# added by tim blechmann -# - -NAME = stk1 - -BUILT_SOURCES = main.cpp - -EXTRA_DIST = main.cpp \ - $(NAME).mcp \ - $(NAME).vcproj - -CXXFLAGS = @CXXFLAGS@ \ - @OPT_FLAGS@ \ - @INCLUDEDIR@ \ - -I../../source \ - $(DEFS) \ - -DFLEXT_SHARED - -LDFLAGS = @DYNAMIC_LDFLAGS@ @LDFLAGS@ \ - $(patsubst %,-framework %,$(FRAMEWORKS)) - -LIBS = @LIBS@ -lflext-pd - -FRAMEWORKS = @FRAMEWORKS@ - -TARGETDIR = @TARGETDIR@ - -TARGET =$(NAME).@EXTENSION@ - -OBJECTS = $(patsubst %.cpp,./%.@OBJEXT@,$(BUILT_SOURCES)) - -SYSDIR = @SYSDIR@ - - -# ----------------------------- targets -------------------------------- - -all-local: $(OBJECTS) - $(CXX) $(LDFLAGS) ./*.@OBJEXT@ $(LIBS) -o ../$(TARGETDIR)/$(TARGET) - strip --strip-unneeded ../$(TARGETDIR)/$(TARGET) - -./%.@OBJEXT@ : %.cpp - $(CXX) -c $(CXXFLAGS) $< -o $@ - -clean-local: - rm -f ../$(TARGETDIR)/$(TARGET) - rm -f ./$(OBJECTS) - -install-exec-local: - install ../$(TARGET) $(SYSDIR)extra diff --git a/externals/grill/flext/tutorial/stk1/main.cpp b/externals/grill/flext/tutorial/stk1/main.cpp deleted file mode 100644 index 45f39cd9..00000000 --- a/externals/grill/flext/tutorial/stk1/main.cpp +++ /dev/null @@ -1,89 +0,0 @@ -/* -flext tutorial - stk 1 - -Copyright (c) 2002-2006 Thomas Grill (gr@grrrr.org) -For information on usage and redistribution, and for a DISCLAIMER OF ALL -WARRANTIES, see the file, "license.txt," in this distribution. - -------------------------------------------------------------------------- - -This is an example of an external using the STK ("synthesis toolkit") library. -For STK see http://ccrma-www.stanford.edu/software/stk - -STK needs C++ exceptions switched on. - -The STK tutorial examples assume that a static stk library exists which contains all the -source files (except rt*.cpp) of the stk/src directory. -The library should be compiled multithreaded and with the appropriate compiler flags for -the respective platform (e.g. __OS_WINDOWS__ and __LITTLE_ENDIAN__ for Windows) - -*/ - -#include - -#if !defined(FLEXT_VERSION) || (FLEXT_VERSION < 401) -#error You need at least flext version 0.4.1 with STK support -#endif - -#include "Noise.h" - - -class stk1: - public flext_stk -{ - FLEXT_HEADER(stk1,flext_stk) - -public: - stk1(); - -protected: - // these are obligatory! - virtual bool NewObjs(); // create STK instruments - virtual void FreeObjs(); // destroy STK instruments - virtual void ProcessObjs(int n); // do DSP processing - -private: - Noise *inst; -}; - -FLEXT_NEW_DSP("stk1~",stk1) - - -stk1::stk1(): - inst(NULL) -{ - AddInAnything(); - AddOutSignal(); -} - - -// create STK instruments -bool stk1::NewObjs() -{ - bool ok = true; - - // set up objects - try { - inst = new Noise; - } - catch (StkError &) { - post("%s - Noise() setup failed!",thisName()); - ok = false; - } - return ok; -} - - -// destroy the STK instruments -void stk1::FreeObjs() -{ - if(inst) delete inst; -} - -// this is called on every DSP block -void stk1::ProcessObjs(int n) -{ - while(n--) Outlet(0).tick(inst->tick()); -} - - diff --git a/externals/grill/flext/tutorial/stk1/package.txt b/externals/grill/flext/tutorial/stk1/package.txt deleted file mode 100644 index 5f31c5af..00000000 --- a/externals/grill/flext/tutorial/stk1/package.txt +++ /dev/null @@ -1,2 +0,0 @@ -NAME=stk1~ -SRCS=main.cpp diff --git a/externals/grill/flext/tutorial/stk1/stk1.vcproj b/externals/grill/flext/tutorial/stk1/stk1.vcproj deleted file mode 100644 index b1d9edfa..00000000 --- a/externals/grill/flext/tutorial/stk1/stk1.vcproj +++ /dev/null @@ -1,177 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -- cgit v1.2.1