annotate host/README @ 29:e80caada79a8
* Remove nonportable and unnecessary opendir features test (originally
inherited from the Vamp SDK's implementation of a similar plugin lookup,
but it's been gone from the SDK for ages now)
* Comment out some excessive debug output
author |
cannam |
date |
Tue, 22 Sep 2009 15:20:44 +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)
|