i've been wanting to write my own softsynths for years, and i think PD is the tool i've been looking for, so i'm very excited about this. however, i can't get an IF statment to work to save my life; i've tried everything i can think of, and it always says:
"error: if: no method for 'float'"
(i've gotten IF statments to work before in Max, and when i change the number of input variables ($i1) the number of inlets change, so i think i'm on the right track)
i'm sorry if this is a dumb question.
if it matters, i'm running PD 0.37.0 on a pc w/ windows 2000.
also - i'm probably not going to be doing this for quite a while, but is it possible to compile PD programs into DX or VST pluggins?
-
Newbie question - if statments, audio
-
for IF ....type "expr" into an object box, and right click to get the help patch...
In the help patch, click on the bit that says "for expr examples, click here"
...that will show you how to use it.
also...there's an app. out there somewhere that will let you use pd patches as VST, but i'm on a mac, so i can't use it...someone who knows will come along soon though, so come back and check this forum again soon.
good luck with your synth. -
that's a weird way of doing IFs, but it works!
hardoff, you rock.
(for a while i was thinking maybe there were no if statments; how do you program without if statments?)
this is awesome. !
good luck with your synth.
thanks, i'm gonna need it! -
ok, i got it to "work" - it dosn't give me errors anymore. but it dosn't act how i'm thinking it should. in fact, this makes no sense to me at all. so rather than post a ton of questions on here:
is there some sort of manual for PD or something?
if not, would somebody mind explaining how if's work (espically with "and" and "or" operators)?
i also can't get it to output nothing if the conditions aren't met (it always seems to output something) -
to view some general explanation and documentation ,
go to the official website :
http://puredata.info/docs/
and http://puredata.info/docs/faq/