Debian Codegraph @

artsynth/Artword_Speaker.cpp

raw symbols SCIP
1 /* Artword_Speaker.cpp
2 *
3 * Copyright (C) 1992-2005,2011,2015-2017,2019-2021 Paul Boersma
4 *
5 * This code is free software; you can redistribute it and/or modify
6 * it under the terms of the GNU General Public License as published by
7 * the Free Software Foundation; either version 2 of the License, or (at
8 * your option) any later version.
9 *
10 * This code is distributed in the hope that it will be useful, but
11 * WITHOUT ANY WARRANTY; without even the implied warranty of
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
13 * See the GNU General Public License for more details.
14 *
15 * You should have received a copy of the GNU General Public License
16 * along with this work. If not, see <http://www.gnu.org/licenses/>.
17 */
18
19 #include "Art_Speaker.h"cxx . . $ `<file>/artsynth/Art_Speaker.h`/
20 #include "Artword_Speaker.h"cxx . . $ `<file>/artsynth/Artword_Speaker.h`/
21
22 void Artword_Speaker_drawcxx . . $ Artword_Speaker_draw(37c3a7ddae064). (Artwordcxx . . $ Artword# artword, Speakercxx . . $ Speaker# speaker, Graphicscxx . . $ Graphics# graphics, integercxx . . $ integer# numberOfSteps) {
23 const double oldLineWidth = Graphics_inqLineWidthcxx . . $ Graphics_inqLineWidth(f906975acce41a59). (graphics);
24 autoArtcxx . . $ autoArt# art = Art_createcxx . . $ Art_create(23bf0cc812f7d3d7). ();
25 for (integercxx . . $ integer# i = 0; i <= numberOfSteps; i ++) {
26 Artword_intoArtcxx . . $ Artword_intoArt(f7b57e22445e6228). (artword, art.getcxx . . $ autoSomeThing#get(34d6acfd341ba7ab).(), i * artword -> totalTimecxx . . $ structArtword#totalTime. / numberOfSteps);
27 Graphics_setLineWidthcxx . . $ Graphics_setLineWidth(2514a1c07b6be5e2). (graphics, 2 + i + i);
28 Art_Speaker_drawcxx . . $ Art_Speaker_draw(f3b734e345fa3399). (art.getcxx . . $ autoSomeThing#get(34d6acfd341ba7ab).(), speaker, graphics);
29 }
30 Graphics_setLineWidthcxx . . $ Graphics_setLineWidth(2514a1c07b6be5e2). (graphics, oldLineWidth);
31 }
32
33 void Artword_Speaker_playMoviecxx . . $ Artword_Speaker_playMovie(eae4289dfb7ba243). (Artwordcxx . . $ Artword# artword, Speakercxx . . $ Speaker# speaker, Graphicscxx . . $ Graphics# graphics) {
34 constexpr double timeStep = 0.03;
35 autoArtcxx . . $ autoArt# art = Art_createcxx . . $ Art_create(23bf0cc812f7d3d7). ();
36 for (double tim = 0.0; tim < artword -> totalTimecxx . . $ structArtword#totalTime.; tim += timeStep) {
37 Artword_intoArtcxx . . $ Artword_intoArt(f7b57e22445e6228). (artword, art.getcxx . . $ autoSomeThing#get(34d6acfd341ba7ab).(), tim);
38 Graphics_beginMovieFramecxx . . $ Graphics_beginMovieFrame(39e73bcf122a4f1d). (graphics, & Melder_WHITEcxx . . $ Melder_WHITE.);
39 Graphics_setWindowcxx . . $ Graphics_setWindow(72bdb7937dbb13da). (graphics, 0.0, 1.0, 0.0, 1.0);
40 Art_Speaker_drawcxx . . $ Art_Speaker_draw(f3b734e345fa3399). (art.getcxx . . $ autoSomeThing#get(34d6acfd341ba7ab).(), speaker, graphics);
41 Graphics_endMovieFramecxx . . $ Graphics_endMovieFrame(2514a1c07b6be5e2). (graphics, timeStep);
42 }
43 }
44
45 /* End of file Artword_Speaker.cpp */