Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
J
juce6_test2
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Per Lindgren
juce6_test2
Commits
03ffd371
Commit
03ffd371
authored
5 years ago
by
Per Lindgren
Browse files
Options
Downloads
Patches
Plain Diff
DBG instead of logger
parent
7281f6f9
No related branches found
No related tags found
No related merge requests found
Changes
4
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
Source/PluginEditor.cpp
+3
-9
3 additions, 9 deletions
Source/PluginEditor.cpp
Source/PluginEditor.h
+5
-5
5 additions, 5 deletions
Source/PluginEditor.h
Source/PluginProcessor.cpp
+8
-14
8 additions, 14 deletions
Source/PluginProcessor.cpp
Source/PluginProcessor.h
+0
-5
0 additions, 5 deletions
Source/PluginProcessor.h
with
16 additions
and
33 deletions
Source/PluginEditor.cpp
+
3
−
9
View file @
03ffd371
...
@@ -34,11 +34,8 @@ Test2AudioProcessorEditor::Test2AudioProcessorEditor(Test2AudioProcessor &p)
...
@@ -34,11 +34,8 @@ Test2AudioProcessorEditor::Test2AudioProcessorEditor(Test2AudioProcessor &p)
setResizable
(
true
,
true
);
setResizable
(
true
,
true
);
setResizeLimits
(
400
,
300
,
1024
,
1024
);
setResizeLimits
(
400
,
300
,
1024
,
1024
);
setSize
(
400
,
300
);
setSize
(
400
,
300
);
if
(
processor
.
m_flogger
)
{
processor
.
m_flogger
->
logMessage
(
"Editor initialized"
);
DBG
(
"Editor initialized"
);
}
}
}
Test2AudioProcessorEditor
::~
Test2AudioProcessorEditor
()
Test2AudioProcessorEditor
::~
Test2AudioProcessorEditor
()
...
@@ -69,9 +66,6 @@ void Test2AudioProcessorEditor::resized()
...
@@ -69,9 +66,6 @@ void Test2AudioProcessorEditor::resized()
timecodeDisplayLabel
.
setBounds
(
bounds
.
removeFromTop
(
26
));
timecodeDisplayLabel
.
setBounds
(
bounds
.
removeFromTop
(
26
));
posSlider
.
setBounds
(
100
,
30
,
getWidth
()
-
120
,
20
);
posSlider
.
setBounds
(
100
,
30
,
getWidth
()
-
120
,
20
);
if
(
processor
.
m_flogger
)
DBG
(
"bounds "
+
bounds
.
toString
());
{
DBG
(
"buf_size"
+
std
::
to_string
(
processor
.
buf_size
));
processor
.
m_flogger
->
logMessage
(
bounds
.
toString
());
processor
.
m_flogger
->
logMessage
(
std
::
to_string
(
processor
.
buf_size
));
}
}
}
This diff is collapsed.
Click to expand it.
Source/PluginEditor.h
+
5
−
5
View file @
03ffd371
...
@@ -32,11 +32,11 @@ private:
...
@@ -32,11 +32,11 @@ private:
void
sliderValueChanged
(
juce
::
Slider
*
slider
)
override
void
sliderValueChanged
(
juce
::
Slider
*
slider
)
override
{
{
if
(
slider
==
&
posSlider
)
DBG
(
"
slider
changed"
);
{
// if (slider == &posSlider)
if
(
processor
.
m_flogger
)
// durationSlider.setValue(1.0 / frequencySlider.getValue(), dontSendNotification);
processor
.
m_flogger
->
logMessage
(
"slider changed"
);
// else if (slider == &durationSlider)
}
// frequencySlider.setValue(1.0 / durationSlider.getValue(), dontSendNotification);
}
}
// is this the way
// is this the way
...
...
This diff is collapsed.
Click to expand it.
Source/PluginProcessor.cpp
+
8
−
14
View file @
03ffd371
...
@@ -15,7 +15,6 @@ Test2AudioProcessor::Test2AudioProcessor()
...
@@ -15,7 +15,6 @@ Test2AudioProcessor::Test2AudioProcessor()
.
withInput
(
"Input"
,
juce
::
AudioChannelSet
::
stereo
(),
true
)
.
withInput
(
"Input"
,
juce
::
AudioChannelSet
::
stereo
(),
true
)
.
withOutput
(
"Output"
,
juce
::
AudioChannelSet
::
stereo
(),
true
))
.
withOutput
(
"Output"
,
juce
::
AudioChannelSet
::
stereo
(),
true
))
{
{
m_flogger
=
std
::
unique_ptr
<
juce
::
FileLogger
>
(
juce
::
FileLogger
::
createDateStampedLogger
(
"foo"
,
"mylog"
,
".txt"
,
"Welcome to plugin"
));
position
=
0
;
position
=
0
;
lastPosInfo
.
resetToDefault
();
lastPosInfo
.
resetToDefault
();
...
@@ -26,8 +25,7 @@ Test2AudioProcessor::Test2AudioProcessor()
...
@@ -26,8 +25,7 @@ Test2AudioProcessor::Test2AudioProcessor()
1.0
f
,
// maximum value
1.0
f
,
// maximum value
0.5
f
));
// default value
0.5
f
));
// default value
if
(
m_flogger
)
DBG
(
"PluginProcessor"
);
m_flogger
->
logMessage
(
"PluginProcessor"
);
}
}
Test2AudioProcessor
::~
Test2AudioProcessor
()
Test2AudioProcessor
::~
Test2AudioProcessor
()
...
@@ -47,7 +45,6 @@ bool Test2AudioProcessor::acceptsMidi() const
...
@@ -47,7 +45,6 @@ bool Test2AudioProcessor::acceptsMidi() const
bool
Test2AudioProcessor
::
producesMidi
()
const
bool
Test2AudioProcessor
::
producesMidi
()
const
{
{
// Should that be true for automation parameters?
return
true
;
return
true
;
}
}
...
@@ -171,10 +168,8 @@ void Test2AudioProcessor::processBlock(juce::AudioBuffer<float> &buffer, juce::M
...
@@ -171,10 +168,8 @@ void Test2AudioProcessor::processBlock(juce::AudioBuffer<float> &buffer, juce::M
break
;
break
;
}
}
};
};
if
(
m_flogger
)
DBG
(
"Desc"
+
msg
.
getDescription
());
{
DBG
(
"pos "
+
std
::
to_string
(
position
));
m_flogger
->
logMessage
(
msg
.
getDescription
());
m_flogger
->
logMessage
(
"pos "
+
std
::
to_string
(
position
));
//for (int i = 0; i < msg.getRawDataSize(); i++)
//for (int i = 0; i < msg.getRawDataSize(); i++)
//{
//{
// juce::uint8 val = msg.getRawData()[i];
// juce::uint8 val = msg.getRawData()[i];
...
@@ -182,7 +177,6 @@ void Test2AudioProcessor::processBlock(juce::AudioBuffer<float> &buffer, juce::M
...
@@ -182,7 +177,6 @@ void Test2AudioProcessor::processBlock(juce::AudioBuffer<float> &buffer, juce::M
//};
//};
};
};
};
};
};
// update time info
// update time info
updateCurrentTimeInfoFromHost
();
updateCurrentTimeInfoFromHost
();
...
...
This diff is collapsed.
Click to expand it.
Source/PluginProcessor.h
+
0
−
5
View file @
03ffd371
...
@@ -23,11 +23,7 @@ public:
...
@@ -23,11 +23,7 @@ public:
//==============================================================================
//==============================================================================
void
prepareToPlay
(
double
sampleRate
,
int
samplesPerBlock
)
override
;
void
prepareToPlay
(
double
sampleRate
,
int
samplesPerBlock
)
override
;
void
releaseResources
()
override
;
void
releaseResources
()
override
;
#ifndef JucePlugin_PreferredChannelConfigurations
bool
isBusesLayoutSupported
(
const
BusesLayout
&
layouts
)
const
override
;
bool
isBusesLayoutSupported
(
const
BusesLayout
&
layouts
)
const
override
;
#endif
void
processBlock
(
juce
::
AudioBuffer
<
float
>
&
,
juce
::
MidiBuffer
&
)
override
;
void
processBlock
(
juce
::
AudioBuffer
<
float
>
&
,
juce
::
MidiBuffer
&
)
override
;
//==============================================================================
//==============================================================================
...
@@ -53,7 +49,6 @@ public:
...
@@ -53,7 +49,6 @@ public:
void
getStateInformation
(
juce
::
MemoryBlock
&
destData
)
override
;
void
getStateInformation
(
juce
::
MemoryBlock
&
destData
)
override
;
void
setStateInformation
(
const
void
*
data
,
int
sizeInBytes
)
override
;
void
setStateInformation
(
const
void
*
data
,
int
sizeInBytes
)
override
;
std
::
unique_ptr
<
juce
::
FileLogger
>
m_flogger
;
int
position
;
int
position
;
// this keeps a copy of the last set of time info that was acquired during an audio
// this keeps a copy of the last set of time info that was acquired during an audio
// callback - the UI component will read this and display it.
// callback - the UI component will read this and display it.
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment