aboutsummaryrefslogtreecommitdiffhomepage
path: root/applause.lua
AgeCommit message (Collapse)AuthorFilesLines
2015-11-03fixed ZipStream for non-stream operands (like numbers)Robin Haberkorn1-1/+2
2015-05-03changed semantics of the __call metamethod: create VectorStreamRobin Haberkorn1-18/+25
* the call metamethod is most useful in compositions in order to evaluate a stream to save computing power at runtime. * this meant that in addition to adding () to a stream expression it was necessary to convert the table to a stream (e.g. using tostream()). * Now the totable() method converts to a pure table, while __call returns a VectorStream. This means it will be sufficient to add "()" in order to evaluate a stream eagerly
2015-04-30added Stream.save() and SndfileStream based on FFI wrapper around libsndfileRobin Haberkorn1-0/+56
2015-04-30use LuaJIT's FFI instead of lposix library for clock_gettime()Robin Haberkorn1-5/+33
2015-04-30added RavelStream and minor changes to make streams of non-numbers possibleRobin Haberkorn1-5/+68
2015-04-28optimizations, scalar operations and ZipStream as an abstraction of stream ↵Robin Haberkorn1-138/+211
operations
2015-04-20resample() and toplot() methodsRobin Haberkorn1-0/+49
2015-04-20added bit-crusher effectRobin Haberkorn1-0/+6
2015-04-20filters: handle input streams shorter than the frequency streamRobin Haberkorn1-18/+24
2015-04-20filtering: handle frequency streams short than the input streamRobin Haberkorn1-4/+16
2015-04-20added filter streams adapted from ChucK and revised wave form functionsRobin Haberkorn1-19/+373
* LPF, HPF, BPF, BRF filters are 2nd order Butterworth filters. Derived verbatim from ChucK's implementation. This can probably be optimized by caching the tan/cos functions. Also, they do not yet handle frequency streams shorter than the stream to filter. * Basic wave forms are now Stream methods to allow concatenative style of FM synthesis (or LFOs). To generate e.g. a sine wave with constant frequency, you can still write Stream.SinOsc(440); or tostream(440):SinOsc()
2015-04-11added custom interactive Lua interpreter for evaluating applause expressionsRobin Haberkorn1-1/+1
* implements Stream:play() using Jack as the audio backend
2015-04-09additional useful stream operationsRobin Haberkorn1-13/+54
2015-04-07replaced co-routine based implementation with closuresRobin Haberkorn1-72/+153
* this improves performance by 10 times (both lua5.1 and luajit) * also, when using luajit, there appears to be little peformance loss when using stream compositions instead of maps (which are sometimes even slower!?)
2015-04-07initial commit based on coroutinesRobin Haberkorn1-0/+462