Permalink
Browse files

remove test.c

  • Loading branch information...
1 parent 9efffd2 commit f0b121c83e9595afefe4799f1815da354ebbba3d @yaxu yaxu committed Dec 2, 2012
Showing with 0 additions and 85 deletions.
  1. +0 −85 test.c
View
@@ -1,85 +0,0 @@
-#include <stdio.h>
-#include <stdlib.h>
-#include <unistd.h>
-#include <lo/lo.h>
-#include <time.h>
-
-#define STRENGTH 64
-
-int main(int argc, char *argv[]) {
- lo_address t = lo_address_new(NULL, "7771");
- int result;
- int i;
- struct timeval tv;
- gettimeofday(&tv, NULL);
- if (argc <= 1) {
- printf("sample name?");
- exit(-1);
- }
- lo_send(t, "/play", "iisfffff",
- tv.tv_sec, tv.tv_usec,
- argv[1], /* sample_name */
- 0.0f, /* offset */
- 1.0f, /* duration */
- 1.0f, /* speed */
- 0.0f, /* pan */
- 0.0f /* velocity */
- );
-
- lo_send(t, "/play", "iisfffff",
- tv.tv_sec + 1, tv.tv_usec,
- argv[1], /* sample_name */
- 0.0f, /* offset */
- 1.0f, /* duration */
- 1.0f, /* speed */
- 1.0f, /* pan */
- 0.0f /* velocity */
- );
-
-
- lo_send(t, "/play", "iisfffff",
- tv.tv_sec + 2, tv.tv_usec,
- argv[1], /* sample_name */
- 0.0f, /* offset */
- 1.0f, /* duration */
- 1.0f, /* speed */
- 2.0f, /* pan */
- 0.0f /* velocity */
- );
-
-
- lo_send(t, "/play", "iisfffff",
- tv.tv_sec + 3, tv.tv_usec,
- argv[1], /* sample_name */
- 0.0f, /* offset */
- 1.0f, /* duration */
- 1.0f, /* speed */
- 3.0f, /* pan */
- 0.0f /* velocity */
- );
-
-
- lo_send(t, "/play", "iisfffff",
- tv.tv_sec + 4, tv.tv_usec,
- argv[1], /* sample_name */
- 0.0f, /* offset */
- 1.0f, /* duration */
- 1.0f, /* speed */
- 4.0f, /* pan */
- 0.0f /* velocity */
- );
-
- /* for(i = 0; i < STRENGTH; ++i) {
- tv.tv_usec += 8000 + 100 * i;
-
- while (tv.tv_usec > 1000000) {
- tv.tv_usec -= 1000000;
- tv.tv_sec++;
- }
- result = lo_send(t, "/play", "iis", tv.tv_sec, tv.tv_usec, "chin/0");
- }
- */
- printf("result: %d\n", result);
-
- return(0);
-}

0 comments on commit f0b121c

Please sign in to comment.