annotate host/README @ 35:2ba482378038
vampy2
* Fix compile error with VC++. I am totally at a loss to explain
why this should have compiled with any other compiler!
* Update VC project file.
This code does now build with VC++ without HAVE_NUMPY -- I haven't
installed Numpy yet
author |
cannam |
date |
Thu, 24 Sep 2009 08:52:04 +0000 |
parents |
4610f2b8477d |
children |
|
rev |
line source |
fazekasgy@11
|
1
|
fazekasgy@11
|
2 This is the place for Vampy-host.
|
fazekasgy@11
|
3 For now there is one object: pyRealTime which implements a wrapper around Vamp::RealTime.
|
fazekasgy@11
|
4
|
fazekasgy@11
|
5 Using pyRealTime:
|
fazekasgy@11
|
6
|
fazekasgy@11
|
7 (1) Compile: make pyRealTime.so
|
fazekasgy@11
|
8 (2) Test it in Python:
|
fazekasgy@11
|
9
|
fazekasgy@11
|
10 >>>import pyRealTime
|
fazekasgy@11
|
11 >>>from pyRealTime import *
|
fazekasgy@11
|
12 >>> dir(pyRealTime)
|
fazekasgy@11
|
13 ['__doc__', '__file__', '__name__', 'frame2RealTime', 'realtime']
|
fazekasgy@11
|
14 >>>t = realtime(2,0)
|
fazekasgy@11
|
15 >>>t.sec
|
fazekasgy@11
|
16 2
|
fazekasgy@11
|
17 >>>t.nsec
|
fazekasgy@11
|
18 0
|
fazekasgy@11
|
19 >>> dir(realtime())
|
fazekasgy@11
|
20 ['test', 'toFloat', 'toFrame', 'toText', 'values']
|
fazekasgy@11
|
21 >>> frame2RealTime(22050*10,22050).values()
|
fazekasgy@11
|
22 (10, 0)
|