libpd-go

Package libpd provides an idiomatic Go-lang wrapper for Pure Data embeddable audio synthesis library.

  • 所有者: xlab/libpd-go
  • 平台:
  • 许可证:
  • 分类:
  • 主题:
  • 喜欢:
    0
      比较:

Github星跟踪图

libpd-go GoDoc

This project provides Go bindings for Pure Data wrapper z_libpd.h — a Pure Data embeddable audio synthesis library.
All the binding code has automatically been generated with rules defined in core.yml. There is also a high-level
Go package libpd implemented over the core, it introduces threadsafe access to PD, some idiomatic helpers and allows to run multiple instances of PD.

Before start you must install libpd library. Don't worry, it installs fine and
that's the fastest way to begin using PD as an embedded DSP.

Usage

$ go get github.com/xlab/libpd-go/libpd

Demo

There is a minimal Pure Data player implemented in Go that can read patches, including extras, and play them via portaudio-go. It's about 100 lines of code. You will need to get PortAudio installed first.

$ brew install portaudio
$ go get github.com/xlab/libpd-go/cmd/pdplay

$ pdplay -h

Usage: pdplay [OPTIONS] PATCHDIR

A minimal PureData player implemented in Go.

Arguments:
  PATCHDIR=""   Path to the patch dir.

Options:
  --name="main.pd"   Name of the main file.

$ pdplay $GOPATH/src/github.com/xlab/libpd-go/assets/patch01

# an atmospheric meditation synthesis sound goes...
# by freezemode - http://soundcloud.com/freezemode

Try this patch for example too: PerotinusRandom on pdpatchrepo.info (also a precompiled version with freeverb~ extra for OS X 64-bit located here: PerotinusRandom.zip). Awesome chorus!

Rebuilding the package

You will need to get the cgogen tool installed first.

$ git clone https://github.com/xlab/libpd-go && cd libpd-go
$ make clean
$ make

主要指标

概览
名称与所有者xlab/libpd-go
主编程语言Go
编程语言Makefile (语言数: 4)
平台
许可证
所有者活动
创建于2016-08-19 21:03:31
推送于2016-09-22 20:20:14
最后一次提交2016-09-22 23:20:04
发布数0
用户参与
星数19
关注者数3
派生数1
提交数21
已启用问题?
问题数1
打开的问题数1
拉请求数0
打开的拉请求数0
关闭的拉请求数0
项目设置
已启用Wiki?
已存档?
是复刻?
已锁定?
是镜像?
是私有?