unionize note scratch

master
Zithia Satazaki 2022-03-27 20:44:04 -04:00
parent e007063e92
commit 7e495b5645
6 changed files with 4 additions and 6 deletions

View File

@ -45,7 +45,10 @@ namespace Xybrid::NodeLib {
double adsrTime = 0;
uint8_t adsrPhase = 0;
std::array<double, 5> scratch{0.0};
union {
std::array<double, 5> scratch {0.0};
std::array<void*, 5> ptr;
};
Note() = default;
Note(InstrumentCore*, uint16_t id);

View File

@ -41,4 +41,3 @@ namespace Xybrid::Instruments {
//void drawCustomChrome(QPainter*, const QStyleOptionGraphicsItem*) override;
};
}

View File

@ -29,4 +29,3 @@ namespace Xybrid::Instruments {
void onGadgetCreated() override;
};
}

View File

@ -25,4 +25,3 @@ namespace Xybrid::Instruments {
void onGadgetCreated() override;
};
}

View File

@ -51,4 +51,3 @@ namespace Xybrid::Instruments {
void initUI(UI::NodeUIScene*) override;
};
}

View File

@ -47,4 +47,3 @@ namespace Xybrid::Instruments {
//void initUI(UI::NodeUIScene*) override;
};
}