[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [sc-dev] Score helpfile issues

There was a discussion on about this in the bug tracker recently. This is my suggestion - adding the SD to the Score:

var f, o, sd;
sd = z = SynthDef("helpscore",{ arg freq = 440;
        SinOsc.ar(freq, 0, 0.2) * Line.kr(1, 0, 0.5, doneAction: 2)

g = [
// add the SynthDef
[0, [\d_recv, sd]],
    [0.1, [\s_new, \helpscore, 1000, 0, 0, \freq, 440]],
    [0.2, [\s_new, \helpscore, 1001, 0, 0, \freq, 660],
        [\s_new, \helpscore, 1002, 0, 0, \freq, 880]],
    [0.3, [\s_new, \helpscore, 1003, 0, 0, \freq, 220]],
    [1, [\c_set, 0, 0]] // finish
o = ServerOptions.new.numOutputBusChannels = 1; // mono output
Score.recordNRT(g, "/tmp/help-oscFile", "~/Desktop/helpNRT.aiff".standardizePath, options: o); // synthesize


/* Joshua D. Parmenter

“Every composer – at all times and in all cases – gives his own interpretation of how modern society is structured: whether actively or passively, consciously or unconsciously, he makes choices in this regard. He may be conservative or he may subject himself to continual renewal; or he may strive for a revolutionary, historical or social palingenesis." - Luigi Nono

On Dec 10, 2014, at 2:34 PM, Daniel Mayer <daniel-mayer@xxxxxxxx> wrote:

I've sent that to users list some days ago, but should have sent it here probably:

Under 'NRT Examples' the SynthDef \helpscore is 'add'ed.
This doesn't work in general for the following example,
it should be 'store' or 'writeDefFile'.
It might work by accident if you had written SynthDef \helpscore to file before
(as I did, not sure why, maybe I stumbled upon this before or
it is written to file in the code of another helpfile ?)

The following realtime example on the other hand also works with 'add'ed
SynthDef \helpscore.

The last example with pattern rendering also supposes SynthDef \default
to be included in the synthdefs folder.
As no options arg is passed, the number of output channels
would default to the server's numOutputBusChannels (8),
so we get an interleaved 8 channel file which is confusing.
As in the first NRT example an options object should be passed.




sc-dev mailing list

info (subscription, etc.): http://www.beast.bham.ac.uk/research/sc_mailing_lists.shtml
archive: https://listarc.bham.ac.uk/marchives/sc-dev/
search: https://listarc.bham.ac.uk/lists/sc-dev/search/