Csound Csound-dev Csound-tekno Search About

Re: -L stdin restriction in RTsound

Date1998-01-29 17:13
FromGabriel Maldonado
SubjectRe: -L stdin restriction in RTsound
seither wrote:

> Hello!
> I use RTsound1.9 and win95
> and I want to issue score events to csound with the keyboard of my pc
> in order to use csound as a real-time tone generator.
> The command line is:
>
> .orc\sinus.orc .sco\sinus.sco -odevaudio -b4410 -L stdin
>
> Among other messages from the compiler i get the following warning:
>
> WARNING: -L stdin: system has no fcntl function to get stdin
> stdmode = 00000000 Linefd = 0
>
> Then I try to type in an event:
> i1      0       2
>
> And apart from hearing nothing this message follows:
>
> sensLine 7 CHARS
>         rtevent: T 0.002 TT 0.002 M:19996.8
> new alloc for instr 1:
>
> Then all I can do is ^C.        :-C
>
> What am I doing wrong?          stefan
>

In your executable the -Lstdin flag accepts only a redirection from a
text file, not from console keyboard (or from a piped program in
realtime).

In fact RTsound suffers of some problem when attempt to write the event
directly to its console.
Now I have implemented a partial patch for this problem, which operates
pretty well with console keyboard input, but it doesn't with lines
generated from another concurrent application. With this patch it is
possible to type a note event and to hear it after pressing RETURN, but
it is not possible to generate the events from another program and pipe
them to RTsound in realtime. In fact Win95 does not seems to allow
piping of two programs in realtime. To generate realtime events with
another program, use MIDI together with a routing utility such as HUBI's
Loopback.

I have just finished to implement the -Lstdin patch , but it will be
avalable with next upload of executable, maybe within few days. 


--
Gabriel Maldonado

mailto:g.maldonado@agora.stm.it
http://www.agora.stm.it/G.Maldonado/home2.htm
http://www.geocities.com/SiliconValley/Way/7041/home2.htm




Received: from stork.maths.bath.ac.uk by omphalos.maths.Bath.AC.UK id aa27817;
          29 Jan 98 18:20 GMT
Received: from pat.bath.ac.uk by stork.maths.Bath.AC.UK id aa09270;
          29 Jan 98 18:20 GMT
Received: (qmail 8593 invoked from network); 29 Jan 1998 18:20:54 -0000
Received: from hermes.ex.ac.uk (HELO exeter.ac.uk) (144.173.6.14)
  by pat.bath.ac.uk with SMTP; 29 Jan 1998 18:20:54 -0000
Received: from noether [144.173.8.10] by hermes via SMTP (SAA14129); Thu, 29 Jan 1998 18:11:13 GMT
Received: from hermes.ex.ac.uk by maths.ex.ac.uk; Thu, 29 Jan 98 18:10:56 GMT
Received: from mercury.anglia.ac.uk [193.63.55.68] by hermes via SMTP (SAA08541); Thu, 29 Jan 1998 18:10:50 GMT
Received: from Anglia-Message_Server by mercury.anglia.ac.uk
	with Novell_GroupWise; Thu, 29 Jan 1998 18:08:17 +0000
Message-Id: 
X-Mailer: Novell GroupWise 4.1
Date: Thu, 29 Jan 1998 18:07:51 +0000
From: Olivier Pasquet 
To: csound@maths.ex.ac.uk
Subject: Re: Ambisonics and Multichannel for PC?
Mime-Version: 1.0
Content-Type: text/plain
Content-Disposition: inline
Sender: owner-csound-outgoing@maths.ex.ac.uk
Precedence: bulk

Hello,

Thank you Richard Dobson and sorry for my mistake...

You wrote:"I have always understood it was not possible to add an
ambisonic opcode, as such, into Csound, as it is still a proprietary
system."

If you mean that it is not possible to do it for legal reasons, why do
people are still continuing to compile the CSound file with new opcodes
(Cf Gabriel Maldonaldo, (hello and thanks to you))? Must there be a
special autorisation to "diffuse" THE Csound file with your own
opcodes? There are things (a lot) that I do not understand.
Bye Bye.

Olivier.
op101@mercury.anglia.ac.uk
www.sinclair.anglia.ac.uk/~op101.student.cambridge.anglia

> I am more and more interested with Ambisonic systems. I had a look
> "around" if I could get an opcode compiled for PC. There was only one
> that were running under Linux (Leeds server - Richard Furse) ...
> I'm a bit sad not to find an ambisonic coder into the last CSound
> version
> for PC. After all, there is a hrtf one...
> Isn't it possible to link the Linux version on PC? Therefore, I would
> need
> the C code.
>
> OK, then comes the multiphonic output problem. Is not there a way to
> compile one channel after the other for a multichannel orchestra? This
>
> would then be easy to synchronise the channels by hand with a click
in
>
> the beginning of each track. I usually do it with two stereo
> orchestras.
>
>
>
> Olivier.
> op101@mercury.anglia.ac.uk
> www.sinclair.anglia.ac.uk/~op101.student.cambridge.anglia





Received: from stork.maths.bath.ac.uk by omphalos.maths.Bath.AC.UK id aa27875;
          29 Jan 98 18:37 GMT
Received: from pat.bath.ac.uk by stork.maths.Bath.AC.UK id aa10246;
          29 Jan 98 18:37 GMT
Received: (qmail 9684 invoked from network); 29 Jan 1998 18:38:00 -0000
Received: from hermes.ex.ac.uk (HELO exeter.ac.uk) (144.173.6.14)
  by pat.bath.ac.uk with SMTP; 29 Jan 1998 18:38:00 -0000
Received: from noether [144.173.8.10] by hermes via SMTP (SAA15063); Thu, 29 Jan 1998 18:31:26 GMT
Received: from hermes.ex.ac.uk by maths.ex.ac.uk; Thu, 29 Jan 98 18:31:08 GMT
Received: from portal.dx.net [199.190.65.2] by hermes via ESMTP (SAA13939); Thu, 29 Jan 1998 18:31:01 GMT
Received: from nmol.com ([206.162.11.2])
	by portal.dx.net (8.8.7/8.8.7) with SMTP id NAA27974
	for ; Thu, 29 Jan 1998 13:31:39 -0500 (EST)
X-Routed: Thu, 29 Jan 1998 11:33:12 -0500
X-Tcp-Identity: Mikeb
Received: from nmol.com [206.162.11.156] by nmol.com with smtp
	id ALCADFDG ; Thu, 29 Jan 1998 11:32:54 -0500
Message-Id: <34D0CBF0.15197229@nmol.com>
Date: Thu, 29 Jan 1998 11:35:34 -0700
From: Mike Berry 
X-Mailer: Mozilla 4.04 (Macintosh; I; PPC)
Mime-Version: 1.0
To: csound@maths.ex.ac.uk
Subject: Re: Ambisonics and Multichannel for PC?
References: 
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
Sender: owner-csound-outgoing@maths.ex.ac.uk
Precedence: bulk

I believe he meant that Ambisonics was proprietary....
-- 
Mike Berry
mikeb@nmol.com
http://www.nmol.com/users/mikeb





Received: from stork.maths.bath.ac.uk by omphalos.maths.Bath.AC.UK id aa28700;
          30 Jan 98 0:56 GMT
Received: from mercury.bath.ac.uk by stork.maths.Bath.AC.UK id aa03171;
          30 Jan 98 0:57 GMT
Received: (qmail 22026 invoked from network); 30 Jan 1998 00:57:08 -0000
Received: from hermes.ex.ac.uk (HELO exeter.ac.uk) (144.173.6.14)
  by mercury.bath.ac.uk with SMTP; 30 Jan 1998 00:57:08 -0000
Received: from noether [144.173.8.10] by hermes via SMTP (AAA01318); Fri, 30 Jan 1998 00:52:49 GMT
Received: from hermes.ex.ac.uk by maths.ex.ac.uk; Fri, 30 Jan 98 00:52:33 GMT
Received: from davinci.cnart.mx [200.15.13.1] by hermes via SMTP (AAA04523); Fri, 30 Jan 1998 00:52:26 GMT
Received: from gandhi by davinci.cnart.mx via SMTP (951211.SGI.8.6.12.PATCH1502/940406.SGI.AUTO)
	for  id SAA09625; Thu, 29 Jan 1998 18:46:09 -0800
Message-Id: <34D13EF1.41C6@correo.cnart.mx>
Date: Thu, 29 Jan 1998 18:46:09 -0800
From: Armando Conteras Labarga 
Organization: Centro Multimedia, CNA.
X-Mailer: Mozilla 3.01SC-SGI (X11; I; IRIX 5.3 IP22)
Mime-Version: 1.0
To: csound@maths.ex.ac.uk
Subject: installing 3.47 at SGI
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
Sender: owner-csound-outgoing@maths.ex.ac.uk
Precedence: bulk

How are you all sounding, answering and asking people?

	Recently I've installed 3.47 version at a INDY
	with 6.2 OSystem.
	I'm yet a beginner in both wordls, UNIX and Csound.
	The configuration I'm used is depending on another machine that
	has enough memory for my files, and because of that all the 		
applications are installed there. When I tried to install 3.47
	version inside my machine, not depending from another, and run 			any
pvanal, sndinfo, hetro process I receive a message saying: 			"Execut
error, wrong architecture".
	What else do you need to know about this configuration
	for giving me some help?

	Thanks in advance.



Received: from stork.maths.bath.ac.uk by omphalos.maths.Bath.AC.UK id aa00310;
          30 Jan 98 11:59 GMT
Received: from pat.bath.ac.uk by stork.maths.Bath.AC.UK id aa19166;
          30 Jan 98 11:59 GMT
Received: (qmail 28493 invoked from network); 30 Jan 1998 11:59:32 -0000
Received: from hermes.ex.ac.uk (HELO exeter.ac.uk) (144.173.6.14)
  by pat.bath.ac.uk with SMTP; 30 Jan 1998 11:59:32 -0000
Received: from noether [144.173.8.10] by hermes via SMTP (LAA01841); Fri, 30 Jan 1998 11:46:55 GMT
Received: from hermes.ex.ac.uk by maths.ex.ac.uk; Fri, 30 Jan 98 11:46:32 GMT
Received: from [193.121.99.70] by hermes via ESMTP (LAA17065); Fri, 30 Jan 1998 11:46:22 GMT
Received: from nobody ([193.74.7.158]) by hurricane.netgate.be
          (post.office MTA v2.0 0813 ID# 0-32575U60) with ESMTP id AAA241
          for ; Fri, 30 Jan 1998 12:49:52 +0100
From: David Schuyeteneer 
To: csound mailing list 
Subject: overall score volume problem
Date: Fri, 30 Jan 1998 12:44:12 +0100
X-Msmail-Priority: Normal
X-Priority: 3
X-Mailer: Microsoft Internet Mail 4.70.1155
Mime-Version: 1.0
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: 7bit
Message-Id: <19980130114948409.AAA241@nobody>
Sender: owner-csound-outgoing@maths.ex.ac.uk
Precedence: bulk

How can I let Csound calculate to overall volume of it's SCORE in order to
avoid unwanted distortion ?
The problem arised when I tried 10 instances of the same instrument (
WGBOW) all starting
at the same time. Because they perform all at the same time, the volume is
too high.....
I don't how to solve this because it is a SCORE init time problem. Each
instrument instance should
be given automaticly a score amplification value (p4) based on how much
instances there are and the amount 
of synchronicity (overlapping).....any suggestions ??


David.

p.s. Csound really starts to get hot now, certainly due to Maldonado's
REALTIME modifications....
In march I have to do a party (techno/ambient), I guess I'll be the first
DJ that uses Csound and granular 
synthesis at an underground party ! ;-))  Finally the academic audio
experiments have found their 
way to a somewhat larger audience. ;-)











Received: from stork.maths.bath.ac.uk by omphalos.maths.Bath.AC.UK id aa00618;
          30 Jan 98 12:55 GMT
Received: from pat.bath.ac.uk by stork.maths.Bath.AC.UK id aa23220;
          30 Jan 98 12:56 GMT
Received: (qmail 4977 invoked from network); 30 Jan 1998 12:56:09 -0000
Received: from hermes.ex.ac.uk (HELO exeter.ac.uk) (144.173.6.14)
  by pat.bath.ac.uk with SMTP; 30 Jan 1998 12:56:09 -0000
Received: from noether [144.173.8.10] by hermes via SMTP (MAA16614); Fri, 30 Jan 1998 12:47:59 GMT
Received: from hermes.ex.ac.uk by maths.ex.ac.uk; Fri, 30 Jan 98 12:47:33 GMT
Received: from ns.lms.be [193.121.76.65] by hermes via ESMTP (MAA15327); Fri, 30 Jan 1998 12:47:16 GMT
Received: from lmsnit.be (jedi.lmsnit.be [192.168.1.20]) by ironman.lms.be with SMTP (8.7.1/8.7.1) id NAA06473; Fri, 30 Jan 1998 13:46:09 +0100 (MET)
Received: from jedi by lmsnit.be (4.1/SMI-4.1)
	id AA18526; Fri, 30 Jan 98 13:45:26 +0100
Message-Id: <34D1CB65.446B9B3D@ping.be>
Date: Fri, 30 Jan 1998 13:45:25 +0100
From: Marc Resibois 
Organization: Solar Flare
X-Mailer: Mozilla 2.0 (X11; I; SunOS 4.1.3_U1 sun4c)
Mime-Version: 1.0
To: David Schuyeteneer 
Cc: csound mailing list 
Subject: Re: overall score volume problem
References: <19980130114948409.AAA241@nobody>
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
Sender: owner-csound-outgoing@maths.ex.ac.uk
Precedence: bulk

Two solutions:

1) You compute the whole track, read the max amp value given at the end,
compute the multiplication factor so that it gets around 32500 (16bit
resolution/2) and modifiy the orchestra so that the left and right
channel gets scaled before output.

2) (Ready Rick ? ;-) You can use the dam opcode to work as a limiter and
avoid you sound volume gets ever over a given threshold. I don't have
the description handy but if you want, I can drop you a sample tonight.
If you also could drop me the orc/sco, I would be interested.

Hope this helps,

Marc.

David Schuyeteneer wrote:
> 
> How can I let Csound calculate to overall volume of it's 
> SCORE in order to avoid unwanted distortion ?