Skip to content

Commit c9365ed

Browse files
feat:sonification architecture update. updating again with formatted code to trigger release.
1 parent f7ace27 commit c9365ed

File tree

3 files changed

+5
-7
lines changed

3 files changed

+5
-7
lines changed

src/sonification/DataSource.ts

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -147,14 +147,13 @@ export class DataSource {
147147

148148
/**
149149
* Assign display objects and/or filter or transform the new arrival
150-
* @todo this doesn't exit if handleDatum false
150+
* @todo this doesn't exit if handleDatum false
151151
* @param datum The datum to display
152152
*/
153153
protected updateDisplays(datum: Datum) {
154154
this._templates.map((template) => {
155-
let result= template.handleDatum(datum, this)
156-
if (!result)
157-
return;
155+
let result = template.handleDatum(datum, this)
156+
if (!result) return
158157
console.log(`calculatied note ${template} for ${datum}`)
159158
})
160159
}

src/sonification/Sonifier.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -191,8 +191,8 @@ export class Sonifier {
191191

192192
/**
193193
* Triggers all existing audio nodes to play.
194-
*
195-
* @todo if a new source is added after onPlay it won't get connected
194+
*
195+
* @todo if a new source is added after onPlay it won't get connected
196196
* @todo what about visually displaying things
197197
*/
198198
public startSources() {

src/views/demos/DemoSimple.tsx

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,6 @@ export class DemoSimple<DemoSimpleProps, DemoSimpleState>
109109
setTimeout(() => {
110110
console.log(`streaming ${dummyData[i]}`)
111111
if (this.isStreamInProgress) {
112-
113112
// SONIFICATION
114113
this.sonifierInstance.pushPoint(dummyData[i], this.getSource().id)
115114
}

0 commit comments

Comments
 (0)