We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 25cd2f8 commit dcf7b0dCopy full SHA for dcf7b0d
src/app/services/sound.service.ts
@@ -74,7 +74,7 @@ export class SoundService {
74
const tickLength = this.getTickLength();
75
const offlineContext: OfflineAudioContext = new OfflineAudioContext(1, 16 * 2 * tickLength * 44100, 44100);
76
this.tracks.forEach((track: Track) => {
77
- let trackSteps = this.getDuplicatedTrackSteps(track);
+ const trackSteps = this.getDuplicatedTrackSteps(track);
78
trackSteps.forEach((beat: boolean, i: number) => {
79
if (!beat)
80
return;
@@ -97,7 +97,7 @@ export class SoundService {
97
98
99
private getDuplicatedTrackSteps(track: Track) {
100
- let duplicatedTracks = [...track.steps]
+ const duplicatedTracks = [...track.steps]
101
duplicatedTracks.push(...track.steps);
102
return duplicatedTracks;
103
}
0 commit comments