From b0bc20cb830bcc820ce68da3c63235e06e3d6844 Mon Sep 17 00:00:00 2001 From: Felix Roos Date: Tue, 13 Dec 2022 22:10:09 +0100 Subject: [PATCH] hotfix: code format - PR was issued before prettier check, now ci fails --- packages/csound/csound.mjs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/csound/csound.mjs b/packages/csound/csound.mjs index 65d53ed5..b9e26391 100644 --- a/packages/csound/csound.mjs +++ b/packages/csound/csound.mjs @@ -158,13 +158,13 @@ export const csoundm = register('csoundm', (instrument, pat) => { let octave = Math.log(frequency / C4) / Math.log(2.0) + 8.0; const p4 = octave * 12.0 - 36.0; // We prefer floating point precision, but over the MIDI range [0, 127]. - const p5 = 127. * (hap.context?.velocity ?? 0.9); + const p5 = 127 * (hap.context?.velocity ?? 0.9); // The Strudel controls as a string. const p6 = Object.entries({ ...hap.value, frequency }) .flat() .join('/'); const i_statement = `i ${p1} ${p2} ${p3} ${p4} ${p5} "${p6}"`; - console.log("[csoundm]:", i_statement) + console.log('[csoundm]:', i_statement); _csound.inputMessage(i_statement); }); });