Skip to content

Commit 5dcfb35

Browse files
committed
Update
1 parent 8e81547 commit 5dcfb35

File tree

3 files changed

+13
-4
lines changed

3 files changed

+13
-4
lines changed

assets/css/gitter.css

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -304,7 +304,7 @@ svg.new-parent {
304304
z-index: 100000;
305305
top: 0;
306306
left: 0;
307-
background: rgba(255, 255, 255, 0.5);
307+
/* background: rgba(255, 255, 255, 0.5); */
308308
color: blue;
309309
font-size: 18px;
310310
}

src/core/Audio.js

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,8 +26,8 @@ class Audio extends CommandInterceptor {
2626
this.phrases = {};
2727

2828
this.mainPart = new p5.Part();
29-
this.mainPart.loop();
30-
this.mainPart.start();
29+
// this.mainPart.loop();
30+
// this.mainPart.start();
3131

3232
const phrase = new p5.Phrase('loopStart', (time, playbackRate) => {
3333
eventBus.fire('gitter.audio.loopStart');
@@ -114,6 +114,15 @@ class Audio extends CommandInterceptor {
114114
getAllPhrases() {
115115
return this.phrases;
116116
}
117+
118+
start() {
119+
this.mainPart.loop();
120+
this.mainPart.start();
121+
}
122+
123+
stop() {
124+
this.mainPart.stop();
125+
}
117126
}
118127

119128
Audio.$inject = [ 'commandStack', 'elementRegistry', 'eventBus', 'sounds' ];

src/core/GitterRenderer.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ class CustomRenderer extends BaseRenderer {
6969
svgAttr(text, {
7070
transform: 'translate(' + translateX + ', 12)',
7171
fill: color,
72-
fontSize: '6'
72+
fontSize: '6px'
7373
});
7474

7575
return circle;

0 commit comments

Comments
 (0)