Coder Social home page Coder Social logo

go-csperfthread's Introduction

Go Binding for the Csound helper class CsoundPerformanceThread

This wrapper is still very experimental. It has been tested only on Linux. It needs a proper installation of Csound with header files in the include path in the csound directory (e.g. csound/csound.h). libcsound64 and libcsnd6 have to be in the PATH.

You can install this package with go get:

go get github.com/fggp/go-csperfthread

Or you can download a zip archive of the project using the 'Download ZIP' button on the right. You'll get a zip file named 'go-csperfthread-master.zip'. Decompressing it you'll get a directory named 'go-csperfthread-master'. Rename this directory to 'go-csperfthread' and move it to '$GOPATH/src/github/fggp'. Enter into the '$GOPATH/src/github/fggp/go-csperfthread' directory. You can eventually adapt the #cgo directives in csnd.go to your system. Finally install the package with go install.

This wrapper is intended to be used with a double build of Csound.

Go version 1.2 or higher is needed for the C++ support of go build

go-csperfthread's People

Contributors

fggp avatar

Watchers

 avatar

go-csperfthread's Issues

Installing csperfthred

I get error when running go install in csperfthred, also when running example04.go(same error).

src/github.com/fggp/go-csperfthread

./csound_pt.cpp: In function ‘void CsoundPTrecord(Cpt, const char*, int)’:
./csound_pt.cpp:83:3: error: ‘string’ is not a member of ‘std’
std::string fname(filename);
^
./csound_pt.cpp:83:15: error: expected ‘;’ before ‘fname’
std::string fname(filename);
^
./csound_pt.cpp:84:8: error: ‘class CsoundPerformanceThread’ has no member named ‘Record’
cpt->Record(fname, numbufs);
^
./csound_pt.cpp:84:15: error: ‘fname’ was not declared in this scope
cpt->Record(fname, numbufs);
^
./csound_pt.cpp: In function ‘void CsoundPTstopRecord(Cpt)’:
./csound_pt.cpp:90:8: error: ‘class CsoundPerformanceThread’ has no member named ‘StopRecord’
cpt->StopRecord();
^

But go-csnd6 works perfectly on my computer. Im using Fedora 20.

Anyway, thanks for this API for go, Im exploring the possibilities of go with csound :)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.