lambdasim

Python utilities to interact with Lambda (FDTD acoustic simulations)


Keywords
lambdasim
License
BSD-3-Clause
Install
pip install lambdasim==0.1.1

Documentation

pics/lambdaicon128.png

lambdasim

Python library to interact with Lambda (FDTD acoustic simulations)

pics/muffle.gif

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

  1. Install Lambda. Download binaries or install from source

  2. Clone this repo:

    $ git clone https://github.com/gesellkammer/lambdasim
    
  3. 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