| My impression is that with iflag=0 inotenum is only used to select samples
from their range, having nothing to do with the actual pitch of the sound.
So you could in theory use a middle-range sample with a very high or low
fundamental by setting diverging inotenum and xfreq values.
I don't see a converter, but if you want to locate the nearest
equal-tempered note number you should be able to apply
the expression
12*log2(cps/440.) + 69
to get it.
Victor
----- Original Message -----
From: "Tobiah"
To:
Sent: Thursday, November 12, 2009 6:42 PM
Subject: [Csnd] sfplay
> I'm using sfplay to play a piano soundfont.
> I want to use it with arbitrary frequencies, so I'm setting iflag to 1,
> and
> bringing the note pitch into xfreq. Do I still need to send the correct
> note number into inotenum, or will sfplay calculate that for me? If I
> do need to send it in, is there a concise way to get the notenumber
> from a cps value?
>
> Thanks,
>
> Tobiah
>
>
> Send bugs reports to this list.
> To unsubscribe, send email sympa@lists.bath.ac.uk with body "unsubscribe
> csound"
Send bugs reports to this list.
To unsubscribe, send email sympa@lists.bath.ac.uk with body "unsubscribe csound" |