...
 
Commits (2)
......@@ -19,7 +19,8 @@ pricess =
(+ (2.947),_) :
// This is where the magic happens.
// What is delread in pd is ( ... ~ _ ) this loop in faust.
// What is delread in pd is this loop ( ... ~ _ ) in faust
// plus a de.delay or its interpolated counterpart de.fdalay.
// The opening braces is the beginning of the loop
// and the ~-Symbol is forking the signal to feed it back as an additional input to the block.
((no.noise:fi.lowpass(1,2000): * (10.5)), (no.noise:fi.lowpass(1,100): + (1) : * (0.75)),_,_) :
......
......@@ -13,9 +13,12 @@ ctl2 = hslider("psi[midi:ctrl 13]",0.5,0.0001,1,0.00001) : si.smoo;
mx(psi,damp) =
(cos(psi),_, sin(psi) * (-1),_, sin(psi),_, cos(psi),_) : (*,*,*,*) : g(damp);
process =
chair.dc_offset :
allp(dc) =
(_<:(_,_)) :
(((_,chair.x,_) : (+,+) : (_,_) <: mx((ctl2 * ma.PI),(1-(ctl1/10))) : (+,+)) ~
(de.delay(ma.SR/5, ctl0*5*ma.SR/1000),de.delay(ma.SR/5, 5*ma.SR/1000))) :
(fi.allpassn(5, (-0.1,0.1,-0.1,0.1,-0.11)), fi.allpassn(5, (0.1,-0.1,0.1,-0.1,0.1))) :
(de.delay(ma.SR/5, dc * 5 * ma.SR/1000), de.delay(ma.SR/5, dc * 5 * ma.SR/1000))) :
//(fi.allpassn(5, (-0.1,0.1,-0.1,0.1,-0.11)), fi.allpassn(5, (0.1,-0.1,0.1,-0.1,0.1))) :
+ ;
process =
chair.dc_offset : allp;
DESTDIR=./build
dspsrc := $(wildcard *.dsp)
cppsrc := $(dspsrc:.dsp=.cpp)
......@@ -7,7 +8,7 @@ jconsole := $(dspsrc:.dsp=)
#xml := $(dspsrc:.dsp=.dsp.xml)
#pd := $(dspsrc:.dsp=.pd)
all: $(jconsole) $(svg)
all: $(jconsole) $(svg) install
graphics: $(svg)
......@@ -22,6 +23,11 @@ clean:
% : %.dsp
faust2jackconsole -midi $<
install:
install -d $(DESTDIR)
install $(jconsole) $(DESTDIR)
rm $(jconsole)
#%.cpp %-svg: %.dsp
# faust -xml -svg -sd -a puredata.cpp $< -o $@
......
......@@ -19,5 +19,3 @@ If you would like to contribute, please get in touch via the issue tracker on gi
This is the state of the port of Philipps snare drum from pd to faust. At the time the code should easily compile to a jack-console binary by typing 'make' in the console inside the directory.
The executable is installed in a build directory at the same place. So if you don't want, or cannot execute files from that place, you'll have to move it somewhere else.
What is lacking at the moment is the control interface. I want to implement it through midi. I'll dig into it later, most likely tomorrow.
......@@ -24,7 +24,7 @@ mx(psi,damp) =
udn(deltime, decay, gfactor) =
((_,x,_) : (+,+) : (_,_) <: mx((gfactor * ma.PI),(1-(decay/10))) : (+,+)) ~
(de.delay(ma.SR/5, deltime*5*ma.SR/1000),de.delay(ma.SR/5, 5*ma.SR/1000)) ;
(de.delay(ma.SR/5, deltime*5*ma.SR/1000),de.delay(ma.SR/5, 5*ma.SR/1000)) : + ;
allp =
(_,_,_) :
......