Mercurial > hg > vampy
comparison host/README @ 11:4610f2b8477d
added pyRealTime object impl to host
author | fazekasgy |
---|---|
date | Mon, 16 Jun 2008 09:44:48 +0000 |
parents | |
children |
comparison
equal
deleted
inserted
replaced
10:8e9fbe4dc94d | 11:4610f2b8477d |
---|---|
1 | |
2 This is the place for Vampy-host. | |
3 For now there is one object: pyRealTime which implements a wrapper around Vamp::RealTime. | |
4 | |
5 Using pyRealTime: | |
6 | |
7 (1) Compile: make pyRealTime.so | |
8 (2) Test it in Python: | |
9 | |
10 >>>import pyRealTime | |
11 >>>from pyRealTime import * | |
12 >>> dir(pyRealTime) | |
13 ['__doc__', '__file__', '__name__', 'frame2RealTime', 'realtime'] | |
14 >>>t = realtime(2,0) | |
15 >>>t.sec | |
16 2 | |
17 >>>t.nsec | |
18 0 | |
19 >>> dir(realtime()) | |
20 ['test', 'toFloat', 'toFrame', 'toText', 'values'] | |
21 >>> frame2RealTime(22050*10,22050).values() | |
22 (10, 0) |