computerscare-vcv-modules

computerscare modules for VCV Rack
Log | Files | Refs

commit b121d41a227fde961d54dd1150832e6e4330e86d
parent 7e9fda7d805ededb57586bdac89ff71dfe375d1f
Author: Adam Malone <1319733+freddyz@users.noreply.github.com>
Date:   Thu, 15 Nov 2018 14:41:08 -0600

hook up the interleave to parseEntireString

Diffstat:
Dsrc/.dtpulse.cpp.swp | 0
Msrc/dtpulse.cpp | 7++++---
2 files changed, 4 insertions(+), 3 deletions(-)

diff --git a/src/.dtpulse.cpp.swp b/src/.dtpulse.cpp.swp Binary files differ. diff --git a/src/dtpulse.cpp b/src/dtpulse.cpp @@ -36,6 +36,7 @@ std::vector<int> parseEntireString(std::string input,std::string lookup,int type std::vector<std::string> atVec; std::vector<std::string> offsetVec; + std::string interleaved; std::string commaseg; std::string atseg; std::string offsetseg; @@ -82,12 +83,13 @@ std::vector<int> parseEntireString(std::string input,std::string lookup,int type else { offsetnum = (offsetVec.size() > 1 && is_digits(offsetVec[1]))? std::stoi(offsetVec[1]) : 0; commaVec.resize(0); + interleaved = splitRecur(offsetVec[0]); // below may be the only line that has to change for a by value parse if(type==0) { - commaVec = parseDt(atExpand(offsetVec[0],atnum,lookup),offsetnum,lookup); + commaVec = parseDt(atExpand(interleaved,atnum,lookup),offsetnum,lookup); } else { - commaVec = parseLookup(countExpand(offsetVec[0],atnum),offsetnum,lookup); + commaVec = parseLookup(countExpand(interleaved,atnum),offsetnum,lookup); } absoluteSequence.insert(absoluteSequence.end(),commaVec.begin(),commaVec.end()); @@ -134,7 +136,6 @@ std::vector<int> parseDt(std::string input, int offset, std::string lookup) { return absoluteSequence; } std::string splitRecur(std::string input) { - std::vector<std::string> tempVec; std::vector<std::vector<std::string>> stackVec; std::string tempString; std::string output;