Re: vowels demo

From: Eric Scheirer (eds@media.mit.edu)
Date: Thu Jan 29 1998 - 10:48:02 EST


> Has anyone tried to run the vowel/vowels demo on Windows? I get a page
> fault every time I try to run it, although the short/simple demo works
fine
> and has been a model for my own instrument development. Also for some
> reason every line that is read in the orc file prints the line
> 'ine 1: Unknown character: '
> Is this just the Windows version that does this?

Yes, this is a known bug. The Windows version doesn't deal with
CR/LF properly, and can't handle that character. I'll fix it as soon as
I get back from MPEG. If you put your whole orchestra on one line,
it won't occur. :)

> Other than that instrument development is coming along OK, although I'm
> having to get used to tables being declared in the orc file and actually
> having to declare my variables :). It's nice to be able to name a table
> but it makes it hard to make it a numerical parameter to an instrument.

This is what the 'tablemap' construction is for. Do this:

global {
  srate 32000;
  ...
  table t1(...);
  table t2(...);
  table my_table(...);
}

instr map(p1, p2, p3) {
  imports table t1, t2, my_table;
  tablemap tmap(t1,my_table,t2);
  asig x;

  x = oscil(tmap[p1],p2,-1) * p3;
  output(x);
}

Can you share any of the instruments you're working on?

Best,

 -- Eric



This archive was generated by hypermail 2b29 : Mon Jan 28 2002 - 11:46:32 EST