|
On Thursday 11 December 2008, Florian Schmidt wrote: > Hi, during the debugging of ScGraph i found that Control UnitSpecs can > contain a special index != 0. What's the semantics of this? Ok, since Till asked for it in the other ScGraph-specific thread, here's a code example: {GCube.gr}.play scgraph -vvv output then shows [see UGenSpec[2]]: [GSynthDefFile]: Constructing from blob size: 215 id: "SCgf" version: 1 num_synthdefs: 1 [GSynthDef]: [Hexdump]: 0f 74 65 6d 70 5f 5f 36 30 30 38 33 30 32 37 37 00 02 3f 80 00 00 40 00 00 00 00 03 00 00 00 00 3c a3 d7 0a 3f 80 00 00 00 03 05 69 5f 6f 75 74 00 00 08 66 61 64 65 54 69 6d 65 00 01 04 67 61 74 65 00 02 00 06 07 43 6f 6e 74 72 6f 6c 00 00 00 00 01 00 00 00 05 47 43 75 62 65 02 00 01 00 01 00 00 ff ff 00 00 02 07 43 6f 6e 74 72 6f 6c 01 00 00 00 02 00 01 01 01 05 4c 69 6e 65 6e 01 00 05 00 01 00 00 00 02 00 01 00 02 00 00 ff ff 00 00 00 02 00 00 ff ff 00 01 01 0c 42 69 6e 61 72 79 4f 70 55 47 65 6e 02 00 02 00 01 00 02 00 03 00 00 00 01 00 00 02 03 4f 75 74 02 00 02 00 00 00 00 00 00 00 00 00 04 00 00 00 00 size: 205 name: temp__600830277 constants [2]: 1 2 parameters [3]: 0 0.02 1 parameter names [3]: [ParamName]: name: i_out index: 0 [ParamName]: name: fadeTime index: 1 [ParamName]: name: gate index: 2 ugen specs [6]: [0]:[UgenSpec]: name: Control calculation_rate: 0 num_ins: 0 nums_outs: 1 special_index: 0 [OutputSpec]: calculation_rate: 0 [1]:[UgenSpec]: name: GCube calculation_rate: 2 num_ins: 1 nums_outs: 1 special_index: 0 [InputSpec]: index_of_ugen: -1 index_of_constant: 0 [OutputSpec]: calculation_rate: 2 [2]:[UgenSpec]: name: Control calculation_rate: 1 num_ins: 0 nums_outs: 2 special_index: 1 [OutputSpec]: calculation_rate: 1 [OutputSpec]: calculation_rate: 1 [3]:[UgenSpec]: name: Linen calculation_rate: 1 num_ins: 5 nums_outs: 1 special_index: 0 [InputSpec]: index_of_ugen: 2 index_of_ugen_output: 1 [InputSpec]: index_of_ugen: 2 index_of_ugen_output: 0 [InputSpec]: index_of_ugen: -1 index_of_constant: 0 [InputSpec]: index_of_ugen: 2 index_of_ugen_output: 0 [InputSpec]: index_of_ugen: -1 index_of_constant: 1 [OutputSpec]: calculation_rate: 1 [4]:[UgenSpec]: name: BinaryOpUGen calculation_rate: 2 num_ins: 2 nums_outs: 1 special_index: 2 [InputSpec]: index_of_ugen: 3 index_of_ugen_output: 0 [InputSpec]: index_of_ugen: 1 index_of_ugen_output: 0 [OutputSpec]: calculation_rate: 2 [5]:[UgenSpec]: name: Out calculation_rate: 2 num_ins: 2 nums_outs: 0 special_index: 0 [InputSpec]: index_of_ugen: 0 index_of_ugen_output: 0 [InputSpec]: index_of_ugen: 4 index_of_ugen_output: 0 [SynthDefPool]: Adding SynthDef: temp__600830277 While a synthdef like this: SynthDef(\foo, {GCube.gr}).play [GSynthDefFile]: Constructing from blob size: 46 id: "SCgf" version: 1 num_synthdefs: 1 [GSynthDef]: [Hexdump]: 03 66 6f 6f 00 01 3f 80 00 00 00 00 00 00 00 01 05 47 43 75 62 65 02 00 01 00 01 00 00 ff ff 00 00 02 00 00 size: 36 name: foo constants [1]: 1 parameters [0]: parameter names [0]: ugen specs [1]: [0]:[UgenSpec]: name: GCube calculation_rate: 2 num_ins: 1 nums_outs: 1 special_index: 0 [InputSpec]: index_of_ugen: -1 index_of_constant: 0 [OutputSpec]: calculation_rate: 2 [SynthDefPool]: Adding SynthDef: foo Does not have such a Control.. Regards, Flo -- Palimm Palimm! http://tapas.affenbande.org |