Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Jonathan Wilkes
flext
Commits
4f695da9
Commit
4f695da9
authored
Nov 19, 2002
by
thomas
Browse files
no message
git-svn-id:
https://svn.grrrr.org/ext/trunk@377
4d9ac71a-51e6-0310-8455-cad1006bcd31
parent
7490e860
Changes
16
Hide whitespace changes
Inline
Side-by-side
build-pd-cygwin.sh
View file @
4f695da9
...
...
@@ -4,7 +4,7 @@
make
-f
makefile.pd-cygwin
&&
{
if
[
$INST
ALL
=
"yes
"
]
;
then
if
[
$INST
DIR
!=
"
"
]
;
then
make
-f
makefile.pd-cygwin
install
fi
}
build-pd-darwin.sh
View file @
4f695da9
...
...
@@ -4,9 +4,8 @@
make
-f
makefile.pd-darwin
&&
{
if
[
$INSTALL
=
"yes"
]
;
then
# echo Now install as root
# sudo make -f makefile.pd-darwin install
make
-f
makefile.pd-darwin
install
if
[
$INSTDIR
!=
""
]
;
then
echo
Now
install
as root
sudo
make
-f
makefile.pd-darwin
install
fi
}
build-pd-linux.sh
View file @
4f695da9
...
...
@@ -4,7 +4,7 @@
make
-f
makefile.pd-linux
&&
{
if
[
$INST
ALL
=
"yes
"
]
;
then
if
[
$INST
DIR
!=
"
"
]
;
then
echo
Now
install
as root
su
-c
"make -f makefile.pd-linux install"
fi
...
...
config-pd-bcc.txt
View file @
4f695da9
...
...
@@ -8,16 +8,15 @@ PDPATH=c:\programme\audio\pd
# where is BorlandC++?
BCCPATH=c:\programme\prog\bcc55
# where is the SndObj include directory? (leave blank to disable SndObj support)
# where is the SndObj include directory?
# (leave blank to disable SndObj support)
SNDOBJ=f:\prog\packs\sndobj\include
# build directory for flext libraries?
OUTPATH=.\pd-bcc
# should the flext stuff be installed? (yes/no)
INSTALL=yes
# where should flext libraries be installed?
# (leave blank to omit installation)
INSTDIR=$(PDPATH)\flext
...
...
config-pd-cygwin.txt
View file @
4f695da9
...
...
@@ -5,15 +5,14 @@
# where is PD?
PDPATH=/cygdrive/c/programme/audio/pd
# where is the SndObj include directory? (leave blank to disable SndObj support)
# where is the SndObj include directory?
# (leave blank to disable SndObj support)
SNDOBJ=/cygdrive/f/prog/packs/sndobj/include
# where should flext libraries be built?
TARGDIR=./pd-cygwin
# should the flext stuff be installed? (yes/no)
INSTALL=yes
# where should flext libraries be installed?
# (leave blank to omit installation)
INSTDIR=${PDPATH}/flext
config-pd-darwin.txt
View file @
4f695da9
...
...
@@ -5,16 +5,15 @@
# where are the PD header files?
PDPATH=/usr/local/pd/src
# where is the SndObj include directory? (leave blank to disable SndObj support)
# where is the SndObj include directory?
# (leave blank to disable SndObj support)
# SNDOBJ=/usr/src/sndobj/include
# where should flext libraries be built?
TARGDIR=./pd-darwin
# should the flext stuff be installed? (yes/no)
INSTALL=yes
# where should flext libraries be installed?
# (leave blank to omit installation)
INSTDIR=/usr/local/pd/flext
config-pd-linux.txt
View file @
4f695da9
...
...
@@ -3,23 +3,22 @@
#
# your c++ compiler (normally g++)
CXX=g++
#-3.2
CXX=g++
# where are the PD header files?
# if it is a system include path (like /usr/local/include)
# you should leave it blank (as e.g. g++ 3.2 complains about it)
PDPATH=
# where is the SndObj include directory? (leave blank to disable SndObj support)
# where is the SndObj include directory?
# (leave blank to disable SndObj support)
SNDOBJ=/usr/local/include/SndObj
# where should flext libraries be built?
TARGDIR=./pd-linux
# should the flext stuff be installed? (yes/no)
INSTALL=yes
# where should flext libraries be installed?
# (leave blank to omit installation)
INSTDIR=/usr/local/lib/pd/flext
...
...
config-pd-msvc.txt
View file @
4f695da9
...
...
@@ -8,17 +8,16 @@ PDPATH=c:\programme\audio\pd
# where is MS VC++?
MSVCPATH="c:\programme\prog\microsoft visual studio\VC98"
# where is the SndObj include directory? (leave blank to disable SndObj support)
# where is the SndObj include directory?
# (leave blank to disable SndObj support)
SNDOBJ=f:\prog\packs\sndobj\include
# where should flext libraries be built?
# object files will be placed in subfolders
OUTPATH=".\pd-msvc"
# should the flext stuff be installed? (yes/no)
INSTALL=yes
# where should flext libraries be installed?
# (leave blank to omit installation)
INSTDIR=$(PDPATH)\flext
make-files.txt
View file @
4f695da9
SRCS=flbase.cpp flext.cpp flbuf.cpp fldsp.cpp fllib.cpp flxlet.cpp flattr.cpp flsupport.cpp \
flutil.cpp flatom.cpp flatom-pr.cpp flthr.cpp flout.cpp
HDRS=flstdc.h flbase.h flclass.h fldefs.h flext.h flsupport.h fldsp.h flinternal.h
IHDRS=
SRCS_SNDOBJ=flsndobj.cpp
HDRS_SNDOBJ=flsndobj.h
make-inc.pd-msvc
View file @
4f695da9
...
...
@@ -58,8 +58,8 @@ OBJPATH=sd
!include make-files.txt
!ifdef SNDOBJ
SRCS=$(SRCS)
flsndobj.cpp
HDRS=$(HDRS)
flsndobj.h
SRCS=$(SRCS)
$(SRCS_SNDOBJ)
HDRS=$(HDRS)
$(HDRS_SNDOBJ)
!endif
#default target
...
...
@@ -89,11 +89,9 @@ $(OUTPATH)\$(NAME)-$(TARGET).lib: $(OBJS)
@cd $(OUTPATH)\$(OBJPATH)
lib /OUT:..\$(NAME)-$(TARGET).lib $**
@cd ..\..
!ifdef INSTALL
!if "$(INSTALL)" == "yes"
!ifdef INSTDIR
@-if not exist $(OBJPATH) mkdir $(INSTDIR)
copy $(OUTPATH)\$(NAME)-$(TARGET).lib $(INSTDIR) > nul
copy $(SOURCE)\*.h $(INSTDIR) > nul
!endif
!endif
makefile.pd-bcc
View file @
4f695da9
...
...
@@ -38,8 +38,8 @@ CFLAGS=-6 -O2 -OS -ff -tWD
!
include
make-files.txt
!
ifdef
SNDOBJ
SRCS
=
$(SRCS)
flsndobj.cpp
HDRS
=
$(HDRS)
flsndobj.h
SRCS
=
$(SRCS)
$(SRCS_SNDOBJ)
HDRS
=
$(HDRS)
$(HDRS_SNDOBJ)
!
endif
#default target
...
...
@@ -69,13 +69,11 @@ $(OUTPATH)\$(NAME)-$(TARGET).lib:: $(OBJS)
cd
$(OUTPATH)
tlib
"..
\$
<"
+
$
(
**
:
=
+
)
cd
..
!
ifdef
INSTALL
!if
"$(INSTALL)"
==
"yes"
!
ifdef
INSTDIR
@-if
not
exist
$(INSTDIR)
mkdir
$(INSTDIR)
copy
$<
$(INSTDIR)
>nul
copy
$(SOURCE)\*.h
$(INSTDIR)
>nul
!
endif
!
endif
...
...
makefile.pd-cygwin
View file @
4f695da9
...
...
@@ -36,8 +36,8 @@ NAME=flext
include
make-files.txt
ifdef
SNDOBJ
_SRCS
=
$(SRCS)
flsndobj.cpp
_HDRS
=
$(HDRS)
flsndobj.h
_SRCS
=
$(SRCS)
$(SRCS_SNDOBJ)
_HDRS
=
$(HDRS)
$(HDRS_SNDOBJ)
else
_SRCS
=
$(SRCS)
_HDRS
=
$(HDRS)
...
...
@@ -89,10 +89,12 @@ $(TARGET_TD) : $(patsubst %.cpp,$(TARGDIR)/%.tdo,$(_SRCS))
clean
:
rm
-f
$(TARGDIR)
/
*
.o
$(TARGET)
$(TARGET_D)
ifdef
INSTDIR
$(INSTDIR)
:
-
mkdir
$(INSTDIR)
install
::
$(INSTDIR)
endif
install
::
$(TARGET) $(TARGET_D) $(patsubst %
,
source/%
,
$(_HDRS))
#
$(TARGET_T) $(TARGET_TD)
cp
$^
$(INSTDIR)
...
...
makefile.pd-darwin
View file @
4f695da9
...
...
@@ -31,8 +31,8 @@ NAME=flext
include
make-files.txt
ifdef
SNDOBJ
_SRCS
=
$(SRCS)
flsndobj.cpp
_HDRS
=
$(HDRS)
flsndobj.h
_SRCS
=
$(SRCS)
$(SRCS_SNDOBJ)
_HDRS
=
$(HDRS)
$(HDRS_SNDOBJ)
else
_SRCS
=
$(SRCS)
_HDRS
=
$(HDRS)
...
...
@@ -81,10 +81,12 @@ $(TARGET_TD) : $(patsubst %.cpp,$(TARGDIR)/%.tdo,$(_SRCS))
clean
:
rm
-f
$(TARGDIR)
/
*
.
{
o,do,to,tdo
}
$(TARGET)
$(TARGET_D)
$(TARGET_T)
$(TARGET_TD)
ifdef
INSTDIR
$(INSTDIR)
:
-
mkdir
$(INSTDIR)
install
::
$(INSTDIR)
endif
install
::
$(TARGET) $(TARGET_D) $(TARGET_T) $(TARGET_TD) $(patsubst %
,
source/%
,
$(_HDRS))
cp
$^
$(INSTDIR)
...
...
makefile.pd-linux
View file @
4f695da9
...
...
@@ -30,8 +30,8 @@ NAME=flext
include
make-files.txt
ifdef
SNDOBJ
_SRCS
=
$(SRCS)
flsndobj.cpp
_HDRS
=
$(HDRS)
flsndobj.h
_SRCS
=
$(SRCS)
$(SRCS_SNDOBJ)
_HDRS
=
$(HDRS)
$(HDRS_SNDOBJ)
else
_SRCS
=
$(SRCS)
_HDRS
=
$(HDRS)
...
...
@@ -84,10 +84,12 @@ $(TARGET_TD) : $(patsubst %.cpp,$(TARGDIR)/%.tdo,$(_SRCS))
clean
:
rm
-f
$(TARGDIR)
/
*
.
{
o,do,to,tdo
}
$(TARGET)
$(TARGET_D)
$(TARGET_T)
$(TARGET_TD)
ifdef
INSTDIR
$(INSTDIR)
:
-
mkdir
$(INSTDIR)
install
::
$(INSTDIR)
endif
install
::
$(TARGET) $(TARGET_D) $(TARGET_T) $(TARGET_TD) $(patsubst %
,
source/%
,
$(_HDRS))
cp
$^
$(INSTDIR)
...
...
readme.txt
View file @
4f695da9
...
...
@@ -16,12 +16,12 @@ Package files:
- gpl.txt,license.txt: GPL license stuff
- flext.h: main include file
- flstdc.h: Basic definitions in classic C - some common vocabulary for the different platforms
- flbase.h,flbase.cpp:
GEM-like
C++ interface
- flbase.h,flbase.cpp: C++ interface
- flclass.h,flext.cpp: actual base classes for message (flext_base) and dsp (flext_dsp) processing
- fldsp.h,fldsp.cpp: code for signal externals
- flthr.h,flthr.cpp: code for threaded methods
- flsupport.h,flsupport.cpp: various flext support functions and classes
- flatom.cpp: code for functions dealing with lists of atoms
- flatom.cpp
flatom-pr.cpp
: code for functions dealing with lists of atoms
- flutil.cpp: additional utility functions
- flxlet.cpp: code for variable inlet/outlet stuff
- flattr.cpp: code for attribute stuff
...
...
@@ -247,11 +247,12 @@ general:
- check that SetupInOut is only called once
- feed assist function with in/outlet description
- MaxMSP: how to call separate help files for objects in a library?
- MaxMSP for OSX: add support (maybe someone donates a CodeWarrior 8?)
bugs:
- PD: problems with timed buffer redrawing (takes a lot of cpu time)
- hard thread termination upon object destruction doesn't seem to work properly -> crash
- Max rounding bug
(at least version 4.0.5)
... buffer resize could be one sample less!
- Max rounding bug ... buffer resize could be one sample less!
- flext_dsp: Max/MSP doesn't correctly report in/out channel counts
tests:
...
...
source/flatom_pr.cpp
View file @
4f695da9
...
...
@@ -81,7 +81,7 @@ bool flext::ScanAtom(t_atom &a,const char *buf)
break
;
#endif
case
1
:
// float
SetFloat
(
a
,
atof
(
tmp
));
SetFloat
(
a
,
(
float
)
atof
(
tmp
));
break
;
default:
{
// anything else is a symbol
char
t
=
*
c
;
*
c
=
0
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment