Csound Csound-dev Csound-tekno Search About

Re: cps2pch Opcode Unequal Temperament Fix

Date1997-12-23 10:05
FromErasmus Zipfel
SubjectRe: cps2pch Opcode Unequal Temperament Fix
Hans Mikelson wrote:
>> It also does not wrap around at 12;

jpff@maths.bath.ac.uk wrote:
> Indeed, nor should it.  What has 12 to do with tuning(!?)

Hans Mikelson wrote:

> It makes it a bit of a chore to code a wrap around at least the way I did
> it.  Perhaps there is an easier way?

You can write a second table with your division pattern:

f31 0 4 -2 	1  1.259921  1.587401
f32 0 32 -2	5. 5.01 5.02 
		6. 6.01 6.02
		7. 7.01 7.02
		8. 8.01 8.02
		9. 9.01 9.02
		10. 10.01 10.02
		11. 11.01 11.02
		12. 12.01 12.02

And now You can call cps2pch with integers:

index	table	p4,32
icps	cps2pch index,-31

print	icps