patterns: Updated pattern language
This commit is contained in:
parent
cde5940063
commit
ef9cb31204
2
lib/external/pattern_language
vendored
2
lib/external/pattern_language
vendored
@ -1 +1 @@
|
|||||||
Subproject commit b7ab96a1150b773e9408398a6125e8df5c29b02e
|
Subproject commit 70fc07d46f48901d79230ec9f45abd203dbe8f67
|
@ -55,7 +55,7 @@ namespace hex::plugin::builtin {
|
|||||||
|
|
||||||
if (shouldReset) {
|
if (shouldReset) {
|
||||||
values.clear();
|
values.clear();
|
||||||
values = sampleData(patternToArray<float>(dataPattern), ImPlot::GetPlotSize().x * 4);
|
values = sampleData(patternToArray<float>(dataPattern.get()), ImPlot::GetPlotSize().x * 4);
|
||||||
}
|
}
|
||||||
|
|
||||||
ImPlot::PlotLine("##line", values.data(), values.size());
|
ImPlot::PlotLine("##line", values.data(), values.size());
|
||||||
@ -75,8 +75,8 @@ namespace hex::plugin::builtin {
|
|||||||
|
|
||||||
if (shouldReset) {
|
if (shouldReset) {
|
||||||
xValues.clear(); yValues.clear();
|
xValues.clear(); yValues.clear();
|
||||||
xValues = sampleData(patternToArray<float>(xPattern), ImPlot::GetPlotSize().x * 4);
|
xValues = sampleData(patternToArray<float>(xPattern.get()), ImPlot::GetPlotSize().x * 4);
|
||||||
yValues = sampleData(patternToArray<float>(yPattern), ImPlot::GetPlotSize().x * 4);
|
yValues = sampleData(patternToArray<float>(yPattern.get()), ImPlot::GetPlotSize().x * 4);
|
||||||
}
|
}
|
||||||
|
|
||||||
ImPlot::PlotScatter("##scatter", xValues.data(), yValues.data(), xValues.size());
|
ImPlot::PlotScatter("##scatter", xValues.data(), yValues.data(), xValues.size());
|
||||||
@ -206,8 +206,8 @@ namespace hex::plugin::builtin {
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (shouldReset) {
|
if (shouldReset) {
|
||||||
vertices = patternToArray<float>(verticesPattern);
|
vertices = patternToArray<float>(verticesPattern.get());
|
||||||
indices = patternToArray<u32>(indicesPattern);
|
indices = patternToArray<u32>(indicesPattern.get());
|
||||||
|
|
||||||
normals.clear();
|
normals.clear();
|
||||||
normals.resize(vertices.size());
|
normals.resize(vertices.size());
|
||||||
@ -360,7 +360,7 @@ namespace hex::plugin::builtin {
|
|||||||
|
|
||||||
resetTask = TaskManager::createTask("Visualizing...", TaskManager::NoProgress, [=](Task &) {
|
resetTask = TaskManager::createTask("Visualizing...", TaskManager::NoProgress, [=](Task &) {
|
||||||
ma_device_stop(&audioDevice);
|
ma_device_stop(&audioDevice);
|
||||||
waveData = patternToArray<i16>(wavePattern);
|
waveData = patternToArray<i16>(wavePattern.get());
|
||||||
sampledData = sampleData(waveData, 300_scaled * 4);
|
sampledData = sampleData(waveData, 300_scaled * 4);
|
||||||
index = 0;
|
index = 0;
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user