lambdasim
Python library to interact with Lambda (FDTD acoustic simulations)
Features
- Read and write simulations
- Create complex simulation setups using vector shapes
- Embed sampled sources in a simulation
- Convert sensor data to audio
- Calculate real-world dimensions of simulation
- Preset shapes like tubes, bells, resonators
- Precalculation of dead nodes to speed-up calculations
Installation
-
Clone this repo:
$ git clone https://github.com/gesellkammer/lambdasim
-
Install it:
$ pip install -r requirements.txt $ python setup.py install
Dependencies
Examples
The simplest simulation:
import lambdasim
# a simulation space of 4mx3m with resolution of 1 cm
sim = lambdasim.Simulation((4, 3), resolution=0.01)
# attach a source
sim.source_point(2, 1.5, 'sin', freq=440, amp=0.3)
sim.write("simplesine")
sim.opensim()
See xxx for more examples