Skip to content

Commit

Permalink
Atk kernel encoders and decoders: remove CtkScore class dependency.
Browse files Browse the repository at this point in the history
 Fixes #66. Thanks @davidgranstrom
  • Loading branch information
mtmccrea committed Mar 28, 2018
1 parent b2d7509 commit 4562424
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
9 changes: 5 additions & 4 deletions Classes/ATKMatrix.sc
Original file line number Diff line number Diff line change
Expand Up @@ -2070,7 +2070,7 @@ FoaDecoderKernel {
})
});

score.isKindOf(CtkScore).if({
(\CtkScore.asClass.notNil and:{score.isKindOf(\CtkScore.asClass)}).if({
kernel = subjectPath.files.collect({ arg kernelPath;
chans.collect({ arg chan;
var buf = CtkBuffer(kernelPath.fullPath, channels: [chan]);
Expand All @@ -2096,7 +2096,7 @@ FoaDecoderKernel {
score.add(kernelBundle)
});

(score.isKindOf(CtkScore).not && score.isKindOf(Score).not && score.notNil).if( {
(kernel.isNil && score.notNil).if( {
Error(
"Score is not a Score or a CtkScore. Score is a %.".format(
score.class.asString
Expand Down Expand Up @@ -2396,7 +2396,8 @@ FoaEncoderKernel {
})
})
});
score.isKindOf(CtkScore).if({

(\CtkScore.asClass.notNil and:{score.isKindOf(\CtkScore.asClass)}).if({
kernel = subjectPath.files.collect({ arg kernelPath;
chans.collect({ arg chan;
var buf = CtkBuffer(kernelPath.fullPath, channels: [chan]);
Expand All @@ -2422,7 +2423,7 @@ FoaEncoderKernel {
score.add(kernelBundle)
});

(score.isKindOf(CtkScore).not && score.isKindOf(Score).not && score.notNil).if({
(kernel.isNil && score.notNil).if({
Error(
"Score is not a Score or a CtkScore. Score is a %.".format(
score.class.asString
Expand Down
1 change: 0 additions & 1 deletion Classes/FoaAudition.sc
Original file line number Diff line number Diff line change
Expand Up @@ -333,7 +333,6 @@ FoaAudition {

inbus ?? {
// assign internally to free if created
// internalInbus = CtkAudio.play( 4 );
internalInbus = server.audioBusAllocator.alloc( 4 );
inbus = internalInbus;
};
Expand Down

0 comments on commit 4562424

Please sign in to comment.