Koen Dejonghe wrote:
> In the score file, all parameters are static, they are hardcoded. If
> they would be part of the program, then you could generate them on the
> fly, dynamically. (Of course, now with CSound/SAOL you can write a
> small C or Perl program that generates this kind of sco files for you.)
>
> E.g. you could write something like this:
>
> main ()
> {
> int i;
>
> InitCSound (16000, 1000, 1);
> ftSine = gen (0, 4096, 10, 1);
>
> for (i=0, i < 9, i++)
> {
> Toot4 (i, 1, 75, (8 + i * .01), .1, (10 - i)*.1);
> }
> }
You can do this with the 'instr' statement in SAOL:
instr main() {
ivar i;
table ftSine(harm,4096,1);
while (i < 9) {
instr toot4(i,1,75,...);
i = i + 1;
}
}
Then you just have to call the 'main' instrument from the score.
You can combine these two methods (score-based and dynamic note
generation) freely in SAOL.
This isn't a SAOL list; this discussion should probably
move onto saol-users.
Best to all,
-- Eric
-- +-----------------+ | Eric Scheirer |A-7b5 D7b9|G-7 C7|Cb C-7b5 F7#9|Bb |B-7 E7| |eds@media.mit.edu| < http://sound.media.mit.edu/~eds > | 617 253 0112 |A A/G# F#-7 F#-/E|Eb-7b5 D7b5|Db|C7b5 B7b5|Bb| +-----------------+
This archive was generated by hypermail 2b29 : Mon Jan 28 2002 - 11:46:33 EST