refactoring in progress

This commit is contained in:
tth 2022-03-10 10:44:45 +01:00
parent 082fb8e671
commit 92f6e5cf23
3 changed files with 26 additions and 26 deletions

View File

@ -2,28 +2,9 @@
# tth@konrad:~/Devel/Fortraneries/SoundBrotching$
#
COPT = -Wall -Wextra -g -DDEBUG_LEVEL=1
GOPT = -Wall -Wextra -g
all: text2wav wav2text text2ao \
panoramix genwaves
# ----------------------------------------------------------
#
# C tools
#
CLIBS = -lsndfile support.o
support.o: support.c Makefile support.h
gcc $(COPT) -c $<
text2wav: text2wav.c Makefile support.h support.o
gcc $(COPT) $< $(CLIBS) -o $@
wav2text: wav2text.c Makefile support.h support.o
gcc $(COPT) $< $(CLIBS) -o $@
text2ao: text2ao.c Makefile support.h support.o
gcc $(COPT) $< $(CLIBS) -o $@
all: panoramix genwaves
# ----------------------------------------------------------
#
@ -31,14 +12,16 @@ text2ao: text2ao.c Makefile support.h support.o
#
FLIBS = soundbrotch.o
# support functions
soundbrotch.o: soundbrotch.f90 Makefile
gfortran $(COPT) -c $<
gfortran $(GOPT) -c $<
# main proggies
panoramix: panoramix.f90 Makefile $(FLIBS)
gfortran $(COPT) $< $(FLIBS) -o $@
gfortran $(GOPT) $< $(FLIBS) -o $@
genwaves: genwaves.f90 Makefile $(FLIBS)
gfortran $(COPT) $< $(FLIBS) -o $@
gfortran $(GOPT) $< $(FLIBS) -o $@
# ----------------------------------------------------------

View File

@ -4,8 +4,21 @@ Stay tuned, film at 11.
## Cheat Code
Certains composants de ce sous-projet fortranique sont
Certains composants [utiles](c-tools/)
de ce sous-projet fortranique sont
(pour le moment)
ecrits en C, pour un accès facile à des bibliothèques tierces
comme `libsndfile`, composant essentiel du SoundBrotching.
comme `libsndfile` ou `libao`, composants essentiels du SoundBrotching.
## Serious game
Quelques exemples simple, mais bruyants...
### genwaves
Génération de sons qui arrachent les oreilles.
### panoramix
Conversion de l'entrée en mono, et dépacement en sinus d'un
coté à l'autre.

4
SoundBrotching/c-tools/.gitignore vendored Normal file
View File

@ -0,0 +1,4 @@
*.wav