question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

NRT in lang.interpret

See original GitHub issue

Hello! Are there plans to implement NRT in lang.interpret? I try to do something like this:

const sc = require("supercolliderjs");

sc.lang.boot({debug: true, echo: true, stdin: true, stdout: true}).then(async function (lang) {
    try {
        const res = await lang.interpret(`
SynthDef(\\pad, {
    arg freq = 440, dur = 1, amp = 1, feedback = 1, out = 0;
    var sig, local, env;
    sig = SinOsc.ar(freq);
    env = EnvGen.kr(
        Env.new([0, 1, 1, 0], [0, dur / 2, dur + 5], 'sin'),
        doneAction: 2
    );
    sig = sig * env;
    
    
    Out.ar(out, Pan2.ar(sig, SinOsc.kr([1, 2, 0.2, 0.5].choose, 0, [1, 0.5, 0.7].choose)));
}).store;


a = Scale.minorPentatonic;

p = Pbind(
    \\instrument, \\bass,
    \\ctranspose, 0,
    \\dur, Prand([1,2,4,8], inf),
    \\sustain, 1,
    \\degree, Pxrand(a.degrees, inf),
    \\out, 0
).asScore(duration: 8);


p.recordNRT(
    outputFilePath: "~/Desktop/111/test.wav".asAbsolutePath,
    headerFormat: "WAV",
    duration: 8
);

`);

        console.log(res)
    } catch (e) {
        console.log(e)
    }

    await lang.quit();
});

But i get test.wav with 44 bytes length. 😦

Issue Analytics

  • State:open
  • Created 3 years ago
  • Comments:9 (4 by maintainers)

github_iconTop GitHub Comments

2reactions
VictorKolbcommented, Nov 1, 2020

@Catsvilles hey! I setting interval and every second looking at file size with fs.statSync if the file size is didn’t changed for 3 times I conclude which rendering is has been done. This tactic good works for me.

0reactions
Catsvillescommented, Nov 1, 2020

@VictorKolb Hey, did you had any success with this? I’m looking for a way to fully compose SC’s score with JS

Read more comments on GitHub >

github_iconTop Results From Across the Web

TYPES AND USES OF LANGUAGE TESTS: NORM ...
On an NRT, testers interpret each student's performance in relationship to the performances of the other students in the norm group in relative...
Read more >
Uses and interpretations of non-word repetition tasks in ... - NCBI
The non-word repetition task (NRT) has gained wide acceptance in describing language acquisition in both children with normal language development (NL) and ...
Read more >
Interpreter Skills Assessment Test - LanguageLine Solutions
Interpreter Readiness Assessment (IRA). Recommended for bilingual employees with documented proficiency in two languages. Also available online (eIRA).
Read more >
Norm-Referenced Test Definition
... interpret raw scores, and determine performance levels. ... These tests may be designed to measure oral-language ability, visual-motor ...
Read more >
HANDOUT FOR NORM-REFERENCED TEST SCORE ...
Perhaps the best way to learn about norm-referenced test interpretation is to ... Mrs. Smith is concerned because he reached his language milestones...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found