Skip to content

Commit c4be9cf

Browse files
authored
Merge pull request #94 from d3cod3/0.7.3-pre-release
0.7.3 pre release published
2 parents ac203a1 + 3c6a3ee commit c4be9cf

File tree

10 files changed

+110
-94
lines changed

10 files changed

+110
-94
lines changed

CHANGELOG.md

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,15 @@
11
# Mosaic CHANGELOG
22

3+
### 0.7.3
4+
5+
- **update** : switched to pugiXML, added ofxVP xml engine based on pugiXML
6+
- **addition** : added internal Fft implementation, reduced addons dependencies
7+
- **addition** : added A-Chaos non-linear strange attractors library
8+
- **addition** : added OrderedMap class, original code from Memo Akten, updated for ofxVP
9+
- **code cleaning** : added std:: namespace where needed ( readability )
10+
- **addition** : added new object category GENERATIVE, whit his first new object, **strange attractors**
11+
- **update** : standard texture resolution set at HD res. 1920x1080 ( it was time )
12+
313
### 0.7.2
414

515
- **addition** : Added new sound objects, **quantizer**, **parametric eq**, **address sequencer**, **polyphonic oscillator**, **summing mixer**

Mosaic.qbs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,8 @@ Project{
3030
]
3131

3232
of.addons: [
33-
'ofxInfiniteCanvas','ofxVisualProgramming'
33+
'ofxVisualProgramming',
34+
'ofxInfiniteCanvas','ofxXmlSettings'
3435
]
3536

3637
// additional flags for the project. the of module sets some

README.md

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -102,8 +102,6 @@ Mosaic, ofxVisualProgramming, openframeworks, linux, macOS, windows, creative-co
102102

103103
#### [ofxFFmpegRecorder](https://github.com/d3cod3/ofxFFmpegRecorder) -- Fork
104104

105-
#### [ofxFft](https://github.com/kylemcdonald/ofxFft)
106-
107105
#### [ofxGLEditor](https://github.com/Akira-Hayasaka/ofxGLEditor)
108106

109107
#### [ofxImGui](https://github.com/d3cod3/ofxImGui) -- Fork
@@ -167,7 +165,6 @@ git clone https://github.com/d3cod3/ofxBTrack
167165
git clone https://github.com/kylemcdonald/ofxCv
168166
git clone https://github.com/arturoc/ofxEasing
169167
git clone https://github.com/d3cod3/ofxFFmpegRecorder
170-
git clone https://github.com/kylemcdonald/ofxFft
171168
git clone https://github.com/Akira-Hayasaka/ofxGLEditor
172169
git clone https://github.com/d3cod3/ofxImGui
173170
git clone https://github.com/d3cod3/ofxInfiniteCanvas

addons.make

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,3 @@
11
ofxInfiniteCanvas
22
ofxVisualProgramming
3+
ofxXmlSettings

addons.txt

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ ofxBTrack https://github.com/d3cod3/ofxBTrack master
1313
ofxCv https://github.com/kylemcdonald/ofxCv master
1414
ofxEasing https://github.com/arturoc/ofxEasing master
1515
ofxFFmpegRecorder https://github.com/d3cod3/ofxFFmpegRecorder master
16-
ofxFft https://github.com/kylemcdonald/ofxFft master
16+
ofxGlEditor https://github.com/Akira-Hayasaka/ofxGLEditor master
1717
ofxImGui https://github.com/d3cod3/ofxImGui master
1818
ofxInfiniteCanvas https://github.com/d3cod3/ofxInfiniteCanvas master
1919
ofxLua https://github.com/danomatika/ofxLua master
@@ -23,6 +23,7 @@ ofxNDI https://github.com/d3cod3/ofxNDI NDI5
2323
ofxOpenDHT https://github.com/d3cod3/ofxOpenDHT master
2424
ofxPd https://github.com/danomatika/ofxPd master
2525
ofxPDSP https://github.com/d3cod3/ofxPDSP master
26+
ofxScheme https://github.com/d3cod3/ofxScheme master
2627
ofxSyphon https://github.com/d3cod3/ofxSyphon master
2728
ofxTimeline https://github.com/d3cod3/ofxTimeline master
2829
ofxVisualProgramming https://github.com/d3cod3/ofxVisualProgramming master

bin/data/empty_patch.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<?xml version="1.0"?>
22
<github>https://github.com/d3cod3/mosaic</github>
33
<www>https://mosaic.d3cod3.org</www>
4-
<release>072</release>
4+
<release>073</release>
55
<settings>
66
<output_width>1280</output_width>
77
<output_height>720</output_height>

bin/data/release.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
0.7.2
1+
0.7.3

src/TextEditor.cpp

Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -250,8 +250,10 @@ void TextEditor::Advance(Coordinates & aCoordinates) const
250250

251251
void TextEditor::DeleteRange(const Coordinates & aStart, const Coordinates & aEnd)
252252
{
253+
#ifndef OFXVP_DEBUG
253254
assert(aEnd >= aStart);
254255
assert(!mReadOnly);
256+
#endif
255257

256258
//printf("D(%d.%d)-(%d.%d)\n", aStart.mLine, aStart.mColumn, aEnd.mLine, aEnd.mColumn);
257259

@@ -290,13 +292,17 @@ void TextEditor::DeleteRange(const Coordinates & aStart, const Coordinates & aEn
290292

291293
int TextEditor::InsertTextAt(Coordinates& /* inout */ aWhere, const char * aValue)
292294
{
295+
#ifndef OFXVP_DEBUG
293296
assert(!mReadOnly);
297+
#endif
294298

295299
int cindex = GetCharacterIndex(aWhere);
296300
int totalLines = 0;
297301
while (*aValue != '\0')
298302
{
303+
#ifndef OFXVP_DEBUG
299304
assert(!mLines.empty());
305+
#endif
300306

301307
if (*aValue == '\r')
302308
{
@@ -339,7 +345,10 @@ int TextEditor::InsertTextAt(Coordinates& /* inout */ aWhere, const char * aValu
339345

340346
void TextEditor::AddUndo(UndoRecord& aValue)
341347
{
348+
#ifndef OFXVP_DEBUG
342349
assert(!mReadOnly);
350+
#endif
351+
343352
//printf("AddUndo: (@%d.%d) +\'%s' [%d.%d .. %d.%d], -\'%s', [%d.%d .. %d.%d] (@%d.%d)\n",
344353
// aValue.mBefore.mCursorPosition.mLine, aValue.mBefore.mCursorPosition.mColumn,
345354
// aValue.mAdded.c_str(), aValue.mAddedStart.mLine, aValue.mAddedStart.mColumn, aValue.mAddedEnd.mLine, aValue.mAddedEnd.mColumn,
@@ -605,9 +614,11 @@ bool TextEditor::IsOnWordBoundary(const Coordinates & aAt) const
605614

606615
void TextEditor::RemoveLine(int aStart, int aEnd)
607616
{
617+
#ifndef OFXVP_DEBUG
608618
assert(!mReadOnly);
609619
assert(aEnd >= aStart);
610620
assert(mLines.size() > (size_t)(aEnd - aStart));
621+
#endif
611622

612623
ErrorMarkers etmp;
613624
for (auto& i : mErrorMarkers)
@@ -629,15 +640,19 @@ void TextEditor::RemoveLine(int aStart, int aEnd)
629640
mBreakpoints = std::move(btmp);
630641

631642
mLines.erase(mLines.begin() + aStart, mLines.begin() + aEnd);
643+
#ifndef OFXVP_DEBUG
632644
assert(!mLines.empty());
645+
#endif
633646

634647
mTextChanged = true;
635648
}
636649

637650
void TextEditor::RemoveLine(int aIndex)
638651
{
652+
#ifndef OFXVP_DEBUG
639653
assert(!mReadOnly);
640654
assert(mLines.size() > 1);
655+
#endif
641656

642657
ErrorMarkers etmp;
643658
for (auto& i : mErrorMarkers)
@@ -659,14 +674,18 @@ void TextEditor::RemoveLine(int aIndex)
659674
mBreakpoints = std::move(btmp);
660675

661676
mLines.erase(mLines.begin() + aIndex);
677+
#ifndef OFXVP_DEBUG
662678
assert(!mLines.empty());
679+
#endif
663680

664681
mTextChanged = true;
665682
}
666683

667684
TextEditor::Line& TextEditor::InsertLine(int aIndex)
668685
{
686+
#ifndef OFXVP_DEBUG
669687
assert(!mReadOnly);
688+
#endif
670689

671690
auto& result = *mLines.insert(mLines.begin() + aIndex, Line());
672691

@@ -930,7 +949,9 @@ void TextEditor::RenderInternal(const char* aTitle)
930949
mPalette[i] = ImGui::ColorConvertFloat4ToU32(color);
931950
}
932951

952+
#ifndef OFXVP_DEBUG
933953
assert(mLineBuffer.empty());
954+
#endif
934955

935956
auto contentSize = ImGui::GetContentRegionAvail() - ImGui::GetCursorPos();
936957
auto drawList = ImGui::GetWindowDrawList();
@@ -974,7 +995,9 @@ void TextEditor::RenderInternal(const char* aTitle)
974995
float sstart = -1.0f;
975996
float ssend = -1.0f;
976997

998+
#ifndef OFXVP_DEBUG
977999
assert(mState.mSelectionStart <= mState.mSelectionEnd);
1000+
#endif
9781001
if (mState.mSelectionStart <= lineEndCoord)
9791002
sstart = mState.mSelectionStart > lineStartCoord ? TextDistanceToLineStart(mState.mSelectionStart) : 0.0f;
9801003
if (mState.mSelectionEnd > lineStartCoord)
@@ -1551,7 +1574,9 @@ void TextEditor::SetTextLines(const std::vector<std::string> & aLines)
15511574

15521575
void TextEditor::EnterCharacter(ImWchar aChar, bool aShift)
15531576
{
1577+
#ifndef OFXVP_DEBUG
15541578
assert(!mReadOnly);
1579+
#endif
15551580

15561581
UndoRecord u;
15571582

@@ -1658,7 +1683,9 @@ void TextEditor::EnterCharacter(ImWchar aChar, bool aShift)
16581683
auto coord = GetActualCursorCoordinates();
16591684
u.mAddedStart = coord;
16601685

1686+
#ifndef OFXVP_DEBUG
16611687
assert(!mLines.empty());
1688+
#endif
16621689

16631690
if (aChar == '\n')
16641691
{
@@ -1823,7 +1850,9 @@ void TextEditor::InsertText(const char * aValue)
18231850

18241851
void TextEditor::DeleteSelection()
18251852
{
1853+
#ifndef OFXVP_DEBUG
18261854
assert(mState.mSelectionEnd >= mState.mSelectionStart);
1855+
#endif
18271856

18281857
if (mState.mSelectionEnd == mState.mSelectionStart)
18291858
return;
@@ -1863,7 +1892,9 @@ void TextEditor::MoveUp(int aAmount, bool aSelect)
18631892

18641893
void TextEditor::MoveDown(int aAmount, bool aSelect)
18651894
{
1895+
#ifndef OFXVP_DEBUG
18661896
assert(mState.mCursorPosition.mColumn >= 0);
1897+
#endif
18671898
auto oldPos = mState.mCursorPosition;
18681899
mState.mCursorPosition.mLine = std::max(0, std::min((int)mLines.size() - 1, mState.mCursorPosition.mLine + aAmount));
18691900

@@ -1940,7 +1971,9 @@ void TextEditor::MoveLeft(int aAmount, bool aSelect, bool aWordMode)
19401971

19411972
mState.mCursorPosition = Coordinates(line, GetCharacterColumn(line, cindex));
19421973

1974+
#ifndef OFXVP_DEBUG
19431975
assert(mState.mCursorPosition.mColumn >= 0);
1976+
#endif
19441977
if (aSelect)
19451978
{
19461979
if (oldPos == mInteractiveStart)
@@ -2096,7 +2129,9 @@ void TextEditor::MoveEnd(bool aSelect)
20962129

20972130
void TextEditor::Delete()
20982131
{
2132+
#ifndef OFXVP_DEBUG
20992133
assert(!mReadOnly);
2134+
#endif
21002135

21012136
if (mLines.empty())
21022137
return;
@@ -2154,7 +2189,9 @@ void TextEditor::Delete()
21542189

21552190
void TextEditor::Backspace()
21562191
{
2192+
#ifndef OFXVP_DEBUG
21572193
assert(!mReadOnly);
2194+
#endif
21582195

21592196
if (mLines.empty())
21602197
return;
@@ -2901,8 +2938,10 @@ TextEditor::UndoRecord::UndoRecord(
29012938
, mAdded(aAdded)
29022939
, mRemoved(aRemoved)
29032940
{
2941+
#ifndef OFXVP_DEBUG
29042942
assert(mAddedStart <= mAddedEnd);
29052943
assert(mRemovedStart <= mRemovedEnd);
2944+
#endif
29062945
}
29072946

29082947
void TextEditor::UndoRecord::Undo(TextEditor * aEditor)

src/config.h

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -33,14 +33,14 @@
3333
#pragma mark once
3434

3535
#define PACKAGE "Mosaic"
36-
#define VERSION "0.7.2"
37-
#define VERSION_GRAPHIC "072"
36+
#define VERSION "0.7.3"
37+
#define VERSION_GRAPHIC "073"
3838
#define DESCRIPTION "Live Visual Patching Creative-Coding Platform"
3939
#define MOSAIC_WWW "https://mosaic.d3cod3.org/"
4040
#define MOSAIC_DEVELOPERS "Emanuele Mazza, Daan de Lange"
4141
#define TAGS "mosaic,openframeworks,macos,linux,windows,creative-coding,video,audio,graphics,live-coding,visual-programming,creative-coding,transmedia"
4242

43-
#define WINDOW_TITLE "Mosaic 0.7.2"
43+
#define WINDOW_TITLE "Mosaic 0.7.3"
4444
#define WINDOW_START_WIDTH 1280
4545
#define WINDOW_START_HEIGHT 720
4646

0 commit comments

Comments
 (0)