soul-lang / SOUL

The SOUL programming language and API
Other
1.71k stars 95 forks source link

SOUL Language Guide: unused variable audioSum in ExampleGraph #11

Closed dstrub18 closed 4 years ago

dstrub18 commented 5 years ago

We studied the documentation and the examples yesterday and found an unused / incorrectly named variable audioSum in an example. If we understood the example correctly, it should be named myOutput .

`

graph ExampleGraph
{
    output stream float audioSum;
    output stream float voiceOut[8];

let
{
    voices = SynthesiserVoice[8];   // 8 voices
    delays = Delay[4];              // 4 delays
}

connection
{
    voices[0].audioOut -> delays[0].audioIn;   // 1-to-1 first element of voices array feeds first delay
    voices[1].audioOut -> delays.audioIn;      // 1-to-many second voice feeds all delays
    delays.audioOut    -> myOutput;            // many-to-1 sum of all delay output feeds myOutput
    voices.audioOut    -> voiceOut;            // many-to-many each voice output feeds exactly one voiceOut stream

    voices.audioOut    -> delays.audioIn;      // ERROR - voices has 8 elements, delays has 4 elements
}

}

`

cesaref commented 5 years ago

indeed, that looks wrong. I'll update the documentation

cesaref commented 4 years ago

This is now resolved