Skip to content

Commit

Permalink
debug for #47. commented all my code.
Browse files Browse the repository at this point in the history
  • Loading branch information
vberthiaume committed Jun 16, 2016
1 parent 6373230 commit 7c82532
Show file tree
Hide file tree
Showing 3 changed files with 50 additions and 26 deletions.
Binary file modified Classeur1.xlsx
Binary file not shown.
69 changes: 44 additions & 25 deletions Source/PluginProcessor.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -390,10 +390,10 @@ void SpatGrisAudioProcessor::sendOscSpatValues(){
message.addFloat32(elevspan_osc);
message.addFloat32(gain_osc);
JUCE_COMPILER_WARNING("NOT SENDING MESSAGES BECAUSE SENDING ON 0.0.0.0")
if (!mOscSpatSender.send(message)) {
DBG("Error: could not send OSC message.");
return;
}
// if (!mOscSpatSender.send(message)) {
// DBG("Error: could not send OSC message.");
// return;
// }
}
}

Expand Down Expand Up @@ -1426,28 +1426,18 @@ void SpatGrisAudioProcessor::ProcessDataPanVolumeMode(float **p_ppfInputs, float
//
//
//
//




//BYPASSING ALL THIS
// float fNewTheta = fCurSampleT;



//
//
// // PRINTING THINGS
// if (iCurSource == 0){
// allThetas.push_back(fNewTheta);
// float sampleRate = 1 * getSampleRate();
// if (allThetas.size() >= sampleRate && !bThetasPrinted ){
//
// cout << "\n\n\n\n";
// float prev = -1.f;
// for (int i=0; i<allThetas.size(); ++i) {
// float cur = allThetas[i];
// if (cur != prev){
// cout << i << ": " << cur << newLine;
// prev = cur;
// }
//
// }
// bThetasPrinted = true;
// }
//
// }




Expand Down Expand Up @@ -1525,6 +1515,35 @@ void SpatGrisAudioProcessor::ProcessDataPanVolumeMode(float **p_ppfInputs, float

addToOutput(fCurSampleValue * back, p_ppfOutputs, o, iSampleId);
}



// PRINTING THINGS
// if (iCurSource == 0){
// allThetas.push_back(fNewTheta);
// float fTotalSamples = 2
// * getSampleRate(); //10000;
// if (allThetas.size() >= fTotalSamples && !bThetasPrinted ){
//
// cout << "\n\n\n\n";
// float prev = -1.f;
// for (int i=0; i<allThetas.size(); ++i) {
// float cur = allThetas[i];
// if (cur != prev){
// cout << i << ": " << cur << "\t" << frontLeft << "\t" << frontRight << "\t" << backLeft << "\t" << backRight << newLine;
//// cout << i << ": " << cur << "\t" << dFrontLeft << "\t" << dFrontRight << "\t" << dBackLeft << "\t" << dBackRight << newLine;
// prev = cur;
// }
//
// }
// bThetasPrinted = true;
// }
//
// }




}
}
}
Expand Down
7 changes: 6 additions & 1 deletion dev_notes.txt
Original file line number Diff line number Diff line change
Expand Up @@ -209,7 +209,12 @@ So. Here's how the algorithm should go:

continuing this on 2016-06-13. I created a reaper file with a crazy sharp automation on x position. I get clicks when the source oscillates over the center, but not when it oscillates over a non-center mid point.

so I did a bunch of excel plots, and my algorithm doesn't work at all! Need to find a way to make it smoother when transitioning.
so I did a bunch of excel plots, and my algorithm doesn't work at all! Need to find a way to make it smoother when transitioning. .

06-16. I added Antoine's algo to my excel plot and it is weird! Je pense que son algo n'est peut-[etre pas tant pour gerer les clicks que pour empecher les delta thetas trop grands au centre du cercle. Right. Si je bypass le truc au complet, j'ai une belle progression sinusoidale. Il y a peut-etre quelque chose d'autre qui se passe directement au centre... genre avec le code qui suit?
------ NOW HERE ------
J<Ai ajouté du code qui print les speakers qui jouent du son, et c'est toujours les mêmes. Les speakers et les delta speakers sont toujours les memes, donc il y a quelque chose que je ne comprends pas ici.

----------------- 2016-06-15 -------------------
Looking into future general directions.
Robert sent a new version of the zirkonium, alpha 12. Il n'est pas compatible avec jack, mais il est compatible avec soundflower. J'ai cloné le code de soundflower, et ça compile sur nicolai. J'ai aussi le code PD de vbap.
Expand Down

0 comments on commit 7c82532

Please sign in to comment.