[Csnd] named and numbered instruments few questions
Date | 2012-04-05 09:05 |
From | francesco |
Subject | [Csnd] named and numbered instruments few questions |
Hello All, just to know; i usually use instrument with number and name, for example instr 1, Sine; i see that parser interpret a name and assign a number and that this is, obviously, different from the number already assigned to same instrument. I mean, in example instr 1, Sine the parser (is it?) use number 1 and another number for Sine. I would like to know: 1. is this memory consuming, i.e. it is like using two instruments? 2. should not be more obvious to assign same already used number, i.e. if instrument has a number then name is assigned to same number? Or is there a reason for have different numbers for same instrument? thanks, ciao, francesco. -- View this message in context: http://csound.1045644.n5.nabble.com/named-and-numbered-instruments-few-questions-tp5619763p5619763.html Sent from the Csound - General mailing list archive at Nabble.com. |
Date | 2012-04-05 12:18 |
From | Iain McCurdy |
Subject | RE: [Csnd] named and numbered instruments few questions |
Hello Francesco, What you are using here (instr 1, sine) is a Csound mechanism for creating multiple instruments that contain the same code. This can be useful on some occasions. I don't think the number assigned to named instruments can be set explicity. Instead Csound assigns it automatically using the next number available ascending. If you just require one instrument I suggest you just use 'instr sine' and reveal the number assigned by reading p1 or using nstrnum opcode. Hope this helps, Iain > Date: Thu, 5 Apr 2012 01:05:50 -0700 > From: ilterzouomo@fastwebnet.it > To: csound@lists.bath.ac.uk > Subject: [Csnd] named and numbered instruments few questions > > Hello All, > just to know; i usually use instrument with number and name, for example > instr 1, Sine; i see that parser interpret a name and assign a number and > that > this is, obviously, different from the number already assigned to same > instrument. > I mean, in example instr 1, Sine the parser (is it?) use number 1 and > another number > for Sine. I would like to know: > > 1. is this memory consuming, i.e. it is like using two instruments? > > 2. should not be more obvious to assign same already used number, i.e. if > instrument > has a number then name is assigned to same number? Or is there a reason for > have different numbers for same instrument? > > thanks, > ciao, > francesco. > > > > -- > View this message in context: http://csound.1045644.n5.nabble.com/named-and-numbered-instruments-few-questions-tp5619763p5619763.html > Sent from the Csound - General mailing list archive at Nabble.com. > > > Send bugs reports to the Sourceforge bug tracker > https://sourceforge.net/tracker/?group_id=81968&atid=564599 > Discussions of bugs and features can be posted here > To unsubscribe, send email sympa@lists.bath.ac.uk with body "unsubscribe csound" > |