mirror of
https://github.com/TomHarte/CLK.git
synced 2024-07-09 21:29:53 +00:00
Rearranges file.
This commit is contained in:
parent
3852e119aa
commit
39e6a28730
@ -17,6 +17,8 @@
|
|||||||
@implementation OPLTests {
|
@implementation OPLTests {
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// MARK: - Table tests
|
||||||
|
|
||||||
- (void)testSineLookup {
|
- (void)testSineLookup {
|
||||||
for(int c = 0; c < 1024; ++c) {
|
for(int c = 0; c < 1024; ++c) {
|
||||||
const auto logSin = Yamaha::OPL::negative_log_sin(c);
|
const auto logSin = Yamaha::OPL::negative_log_sin(c);
|
||||||
@ -29,6 +31,8 @@
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// MARK: - Two-operator FM tests
|
||||||
|
|
||||||
- (void)compareFMTo:(NSArray *)knownGood atAttenuation:(int)attenuation {
|
- (void)compareFMTo:(NSArray *)knownGood atAttenuation:(int)attenuation {
|
||||||
Yamaha::OPL::Operator modulator, carrier;
|
Yamaha::OPL::Operator modulator, carrier;
|
||||||
Yamaha::OPL::Channel channel;
|
Yamaha::OPL::Channel channel;
|
||||||
@ -83,6 +87,7 @@
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// MARK: - ADSR tests
|
||||||
|
|
||||||
- (void)testADSR {
|
- (void)testADSR {
|
||||||
Yamaha::OPL::Operator test_operator;
|
Yamaha::OPL::Operator test_operator;
|
||||||
|
Loading…
Reference in New Issue
Block a user