login

online now

We have 66 guests and no members online

search

 
Welcome, Guest
Username: Password: Remember me
  • Page:
  • 1

TOPIC: AllVoices error

AllVoices error 4 years 5 months ago #451

Hello,
When using poly mode I was trying to get AllVoices to release the voices like so:
poly->release ( AllVoices );
as in the Reference Guide page 37 example.
But I get an error when compiling stating:'AllVoices' was not declared in this scope.
It is include in the GinSingPoly.h file:
// polyphonic voice slots
	
	enum PolyParams
	{
		NumVoices = 6   ,															// number of avialable simultaneous voices
		AllVoices = 0xff ,															// special voice index that applies to all voices
	};
Any suggestions?
Last Edit: 4 years 5 months ago by administrator.
The administrator has disabled public write access.

Re: AllVoices error 4 years 5 months ago #453

Sorry for the late response. There is a documentation error that you have discovered. The PolyParams enumeration was moved into the GinSingPoly class instead of GinSingDefs.h where it would be visible to all. To correct this, just specify the explicit class to the enumeration:

GinSingPoly::AllVoices
The administrator has disabled public write access.

Re: AllVoices error 4 years 5 months ago #455

Ok, thanks.
This works fine.
poly->release ( GinSingPoly::AllVoices );
The administrator has disabled public write access.
  • Page:
  • 1
Time to create page: 0.144 seconds