Csound Csound-dev Csound-tekno Search About

[Csnd-dev] Issues with reverb bus instruments

Date2015-10-30 16:23
FromPeter Burgess
Subject[Csnd-dev] Issues with reverb bus instruments
Hi there. Sorry to pick your brains yet again, but I have finally added some send effects to my program, currently just with some reverb. When I add score events for the bus instruments to the score string in my c++ program (which I send using ReadScore), I get some warnings:

sread: unexpected char i
  section 1:  at position 22
WARNING: Internal error in print_input_backtrace()
      remainder of line flushed
sread: unexpected char i
  section 1:  at position 22
WARNING: Internal error in print_input_backtrace()
      remainder of line flushed

That's two warnings, one for each of my bus' score statement. I have fiddled around adding and removing the amount of bus score statements, and it directly affects how many warnings i get.

As this is all done from within my program, which is huge now, I can't really isolate a small enough working section to give a good example. I have tried repeating the error in a simple .csd so I can post an example, but I have had no luck so far. The best I can probably do is paste examples of what I think are the relevant sections:

The global bus variables and reverb buses from the instrument string:

/// GLOBAL BUS CHANNELS
"gasnaresig init 0\n"
"galeadsig init 0\n"

// Snare Reverb Bus
"instr 2000\n"
"ireverbtime = 2\n"
"ireverbhighdiffusion = 0.2\n"
"iwet = 0.05\n"
"idry = 1.0 - iwet\n"
"arevb nreverb gasnaresig, ireverbtime, ireverbhighdiffusion\n"
"aout = (arevb * iwet) + (gasnaresig * idry)\n"
"outs aout, aout\n"
"gasnaresig = 0\n"
"endin\n"

// Lead Reverb Bus
"instr 8000\n"
"ireverbtime = 3\n"
"ireverbhighdiffusion = 0.7\n"
"iwet = 0.3\n"
"idry = 1.0 - iwet\n"
"arevb nreverb galeadsig, ireverbtime, ireverbhighdiffusion\n"
"aout = ((arevb * iwet) + (galeadsig * idry)) / 2\n"
"outs aout, aout\n"
"galeadsig = 0\n"
"endin\n"

brief and condensed c++ exerts:

string measureScore;
// If a snare drum is in the track:
measureScore += "i2000 0 20"
// If a lead synth is in the track:
measureScore += "i8000 0 20";
// Lots of instrument score events added to measureScore here...
csound.ReadScore(measureScore.c_str());

Date2015-10-30 16:26
FromPeter Burgess
SubjectRe: [Csnd-dev] Issues with reverb bus instruments
sorry, I sent that message before I meant to...

I have to note that my program seems to run fine despite the warnings, so is it worth me worrying about?

Cheers for any help, Pete

On Fri, Oct 30, 2015 at 4:23 PM, Peter Burgess <pete.soundtechnician@gmail.com> wrote:
Hi there. Sorry to pick your brains yet again, but I have finally added some send effects to my program, currently just with some reverb. When I add score events for the bus instruments to the score string in my c++ program (which I send using ReadScore), I get some warnings:

sread: unexpected char i
  section 1:  at position 22
WARNING: Internal error in print_input_backtrace()
      remainder of line flushed
sread: unexpected char i
  section 1:  at position 22
WARNING: Internal error in print_input_backtrace()
      remainder of line flushed

That's two warnings, one for each of my bus' score statement. I have fiddled around adding and removing the amount of bus score statements, and it directly affects how many warnings i get.

As this is all done from within my program, which is huge now, I can't really isolate a small enough working section to give a good example. I have tried repeating the error in a simple .csd so I can post an example, but I have had no luck so far. The best I can probably do is paste examples of what I think are the relevant sections:

The global bus variables and reverb buses from the instrument string:

/// GLOBAL BUS CHANNELS
"gasnaresig init 0\n"
"galeadsig init 0\n"

// Snare Reverb Bus
"instr 2000\n"
"ireverbtime = 2\n"
"ireverbhighdiffusion = 0.2\n"
"iwet = 0.05\n"
"idry = 1.0 - iwet\n"
"arevb nreverb gasnaresig, ireverbtime, ireverbhighdiffusion\n"
"aout = (arevb * iwet) + (gasnaresig * idry)\n"
"outs aout, aout\n"
"gasnaresig = 0\n"
"endin\n"

// Lead Reverb Bus
"instr 8000\n"
"ireverbtime = 3\n"
"ireverbhighdiffusion = 0.7\n"
"iwet = 0.3\n"
"idry = 1.0 - iwet\n"
"arevb nreverb galeadsig, ireverbtime, ireverbhighdiffusion\n"
"aout = ((arevb * iwet) + (galeadsig * idry)) / 2\n"
"outs aout, aout\n"
"galeadsig = 0\n"
"endin\n"

brief and condensed c++ exerts:

string measureScore;
// If a snare drum is in the track:
measureScore += "i2000 0 20"
// If a lead synth is in the track:
measureScore += "i8000 0 20";
// Lots of instrument score events added to measureScore here...
csound.ReadScore(measureScore.c_str());


Date2015-10-30 16:38
Fromjpff
SubjectRe: [Csnd-dev] Issues with reverb bus instruments
aout is not a variable so the = after it is an error]

On Fri, 30 Oct 2015, Peter Burgess wrote:

> Hi there. Sorry to pick your brains yet again, but I have finally added some
> send effects to my program, currently just with some reverb. When I add score
> events for the bus instruments to the score string in my c++ program (which I
> send using ReadScore), I get some warnings:
> 
> sread: unexpected char i
>   section 1:  at position 22
> WARNING: Internal error in print_input_backtrace()
>       remainder of line flushed
> sread: unexpected char i
>   section 1:  at position 22
> WARNING: Internal error in print_input_backtrace()
>       remainder of line flushed
> 
> That's two warnings, one for each of my bus' score statement. I have fiddled
> around adding and removing the amount of bus score statements, and it directly
> affects how many warnings i get.
> 
> As this is all done from within my program, which is huge now, I can't really
> isolate a small enough working section to give a good example. I have tried
> repeating the error in a simple .csd so I can post an example, but I have had
> no luck so far. The best I can probably do is paste examples of what I think
> are the relevant sections:
> 
> The global bus variables and reverb buses from the instrument string:
> 
> /// GLOBAL BUS CHANNELS
> "gasnaresig init 0\n"
> "galeadsig init 0\n"
> 
> // Snare Reverb Bus
> "instr 2000\n"
> "ireverbtime = 2\n"
> "ireverbhighdiffusion = 0.2\n"
> "iwet = 0.05\n"
> "idry = 1.0 - iwet\n"
> "arevb nreverb gasnaresig, ireverbtime, ireverbhighdiffusion\n"
> "aout = (arevb * iwet) + (gasnaresig * idry)\n"
> "outs aout, aout\n"
> "gasnaresig = 0\n"
> "endin\n"
> 
> // Lead Reverb Bus
> "instr 8000\n"
> "ireverbtime = 3\n"
> "ireverbhighdiffusion = 0.7\n"
> "iwet = 0.3\n"
> "idry = 1.0 - iwet\n"
> "arevb nreverb galeadsig, ireverbtime, ireverbhighdiffusion\n"
> "aout = ((arevb * iwet) + (galeadsig * idry)) / 2\n"
> "outs aout, aout\n"
> "galeadsig = 0\n"
> "endin\n"
> 
> brief and condensed c++ exerts:
> 
> string measureScore;
> // If a snare drum is in the track:
> measureScore += "i2000 0 20"
> // If a lead synth is in the track:
> measureScore += "i8000 0 20";
> // Lots of instrument score events added to measureScore here...
> csound.ReadScore(measureScore.c_str());
> 
>

Date2015-10-30 17:11
FromPeter Burgess
SubjectRe: [Csnd-dev] Issues with reverb bus instruments
why, is aout a reserved keyword? It doesn't seem to make any difference if I change that variable's name

On Fri, Oct 30, 2015 at 4:38 PM, jpff <jpff@codemist.co.uk> wrote:
aout is not a variable so the = after it is an error]


On Fri, 30 Oct 2015, Peter Burgess wrote:

Hi there. Sorry to pick your brains yet again, but I have finally added some
send effects to my program, currently just with some reverb. When I add score
events for the bus instruments to the score string in my c++ program (which I
send using ReadScore), I get some warnings:

sread: unexpected char i
  section 1:  at position 22
WARNING: Internal error in print_input_backtrace()
      remainder of line flushed
sread: unexpected char i
  section 1:  at position 22
WARNING: Internal error in print_input_backtrace()
      remainder of line flushed

That's two warnings, one for each of my bus' score statement. I have fiddled
around adding and removing the amount of bus score statements, and it directly
affects how many warnings i get.

As this is all done from within my program, which is huge now, I can't really
isolate a small enough working section to give a good example. I have tried
repeating the error in a simple .csd so I can post an example, but I have had
no luck so far. The best I can probably do is paste examples of what I think
are the relevant sections:

The global bus variables and reverb buses from the instrument string:

/// GLOBAL BUS CHANNELS
"gasnaresig init 0\n"
"galeadsig init 0\n"

// Snare Reverb Bus
"instr 2000\n"
"ireverbtime = 2\n"
"ireverbhighdiffusion = 0.2\n"
"iwet = 0.05\n"
"idry = 1.0 - iwet\n"
"arevb nreverb gasnaresig, ireverbtime, ireverbhighdiffusion\n"
"aout = (arevb * iwet) + (gasnaresig * idry)\n"
"outs aout, aout\n"
"gasnaresig = 0\n"
"endin\n"

// Lead Reverb Bus
"instr 8000\n"
"ireverbtime = 3\n"
"ireverbhighdiffusion = 0.7\n"
"iwet = 0.3\n"
"idry = 1.0 - iwet\n"
"arevb nreverb galeadsig, ireverbtime, ireverbhighdiffusion\n"
"aout = ((arevb * iwet) + (galeadsig * idry)) / 2\n"
"outs aout, aout\n"
"galeadsig = 0\n"
"endin\n"

brief and condensed c++ exerts:

string measureScore;
// If a snare drum is in the track:
measureScore += "i2000 0 20"
// If a lead synth is in the track:
measureScore += "i8000 0 20";
// Lots of instrument score events added to measureScore here...
csound.ReadScore(measureScore.c_str());



Date2015-10-30 17:17
Fromjpff
SubjectRe: [Csnd-dev] Issues with reverb bus instruments
Apologies -- I was totally wrong.  I just failed to work out whivh was 
line 22

Just ignore me


On Fri, 30 Oct 2015, Peter Burgess wrote:

> why, is aout a reserved keyword? It doesn't seem to make any difference if I
> change that variable's name
> 
> On Fri, Oct 30, 2015 at 4:38 PM, jpff  wrote:
>       aout is not a variable so the = after it is an error]
>
>       On Fri, 30 Oct 2015, Peter Burgess wrote:
>
>             Hi there. Sorry to pick your brains yet again, but I
>             have finally added some
>             send effects to my program, currently just with some
>             reverb. When I add score
>             events for the bus instruments to the score string in
>             my c++ program (which I
>             send using ReadScore), I get some warnings:
>
>             sread: unexpected char i
>               section 1:  at position 22
>             WARNING: Internal error in print_input_backtrace()
>                   remainder of line flushed
>             sread: unexpected char i
>               section 1:  at position 22
>             WARNING: Internal error in print_input_backtrace()
>                   remainder of line flushed
>
>             That's two warnings, one for each of my bus' score
>             statement. I have fiddled
>             around adding and removing the amount of bus score
>             statements, and it directly
>             affects how many warnings i get.
>
>             As this is all done from within my program, which is
>             huge now, I can't really
>             isolate a small enough working section to give a good
>             example. I have tried
>             repeating the error in a simple .csd so I can post an
>             example, but I have had
>             no luck so far. The best I can probably do is paste
>             examples of what I think
>             are the relevant sections:
>
>             The global bus variables and reverb buses from the
>             instrument string:
>
>             /// GLOBAL BUS CHANNELS
>             "gasnaresig init 0\n"
>             "galeadsig init 0\n"
>
>             // Snare Reverb Bus
>             "instr 2000\n"
>             "ireverbtime = 2\n"
>             "ireverbhighdiffusion = 0.2\n"
>             "iwet = 0.05\n"
>             "idry = 1.0 - iwet\n"
>             "arevb nreverb gasnaresig, ireverbtime,
>             ireverbhighdiffusion\n"
>             "aout = (arevb * iwet) + (gasnaresig * idry)\n"
>             "outs aout, aout\n"
>             "gasnaresig = 0\n"
>             "endin\n"
>
>             // Lead Reverb Bus
>             "instr 8000\n"
>             "ireverbtime = 3\n"
>             "ireverbhighdiffusion = 0.7\n"
>             "iwet = 0.3\n"
>             "idry = 1.0 - iwet\n"
>             "arevb nreverb galeadsig, ireverbtime,
>             ireverbhighdiffusion\n"
>             "aout = ((arevb * iwet) + (galeadsig * idry)) / 2\n"
>             "outs aout, aout\n"
>             "galeadsig = 0\n"
>             "endin\n"
>
>             brief and condensed c++ exerts:
>
>             string measureScore;
>             // If a snare drum is in the track:
>             measureScore += "i2000 0 20"
>             // If a lead synth is in the track:
>             measureScore += "i8000 0 20";
>             // Lots of instrument score events added to
>             measureScore here...
>             csound.ReadScore(measureScore.c_str());
> 
> 
> 
>

Date2015-10-30 17:22
Fromjpff
SubjectRe: [Csnd-dev] Issues with reverb bus instruments
The warning about print_input_backtrace seems to mean it is not in a macro 
but was expecting one.
What I do not know is what the score event was that triggered it, and in 

Date2015-10-30 17:26
Fromjpff
SubjectRe: [Csnd-dev] Issues with reverb bus instruments
...and I see the error is unexpected i character which suggests that your 

Date2015-10-30 17:28
Fromjpff
SubjectRe: [Csnd-dev] Issues with reverb bus instruments

Date2015-10-30 17:46
FromPeter Burgess
SubjectRe: [Csnd-dev] Issues with reverb bus instruments
"and a \n in the score string ight help"

Boom! That's what it was, I forgot the /n at the end of the bus score statements. Sorry to both you with that :D Cheers very much

Pete

On Fri, Oct 30, 2015 at 5:28 PM, jpff <jpff@codemist.co.uk> wrote:
and a \n in the score string ight help