Csound Csound-dev Csound-tekno Search About

Re; HUBI Loopback where?

Date1997-12-31 03:16
From"A. Archias"
SubjectRe; HUBI Loopback where?
Ref;
I have used the HUBIE MIDI loopback utility to run one application
generating MIDI msgs, and directed them to a simultaneously running
CSound process. I did this under Win95 and proved (yet again) what a
sorry OS it is. It "worked", but the sound was breaking up horribly
and no tweaking of buffer sizes was going to fix the fundamental
scheduling problem.


<> Does anyone know a site for the HUBI MIDI Loop Util, I cannot
  find it using various search utilities. It was archived as
  MDLPBK11.ZIP
                               Andy
                                 




Received: from stork.maths.bath.ac.uk by omphalos.maths.Bath.AC.UK id aa21706;
          31 Dec 97 3:53 GMT
Received: from pat.bath.ac.uk by stork.maths.Bath.AC.UK id aa09917;
          31 Dec 97 3:55 GMT
Received: (qmail 26684 invoked from network); 31 Dec 1997 03:55:51 -0000
Received: from hermes.ex.ac.uk (HELO exeter.ac.uk) (144.173.6.14)
  by pat.bath.ac.uk with SMTP; 31 Dec 1997 03:55:51 -0000
Received: from noether [144.173.8.10] by hermes via SMTP (DAA17909); Wed, 31 Dec 1997 03:49:48 GMT
Received: from hermes.ex.ac.uk by maths.exeter.ac.uk; Wed, 31 Dec 97 03:49:30 GMT
Received: from howl.werewolf.net [206.103.224.20] by hermes via SMTP (DAA14930); Wed, 31 Dec 1997 03:49:24 GMT
Received: from lizard by howl.werewolf.net via SMTP (950413.SGI.8.6.12/940406.SGI)
	for  id VAA15420; Tue, 30 Dec 1997 21:52:55 -0600
Message-Id: <3.0.3.16.19971223172931.31a71c84@werewolf.net>
X-Sender: hljmm@werewolf.net
X-Mailer: QUALCOMM Windows Eudora Light Version 3.0.3 (16)
Date: Tue, 23 Dec 1997 17:29:31
To: csound@maths.ex.ac.uk
From: Hans Mikelson 
Subject: Low Pass Resonant Filter Stuff
Mime-Version: 1.0
Content-Type: text/plain; charset="us-ascii"
Sender: owner-csound-outgoing@maths.ex.ac.uk
Precedence: bulk

Hello all,

I've been experimenting with filters (again) and have learned how to use
Matlab.  The following two Matlab functions work fairly well for evaluating
the frequency response a tuned resonant low pass filter.

The variable "band" controls the band-pass nature of the filter to some
extent.  A band of 1 has a pass band gain of 1.  Values of band less than 1
(but greater than 0) have reduced gain in the pass band.  The Moog VCF
behaves somewhat like this.

x is the angle, fco is the frequency cut off, rez controls the amount of
resonance (rez should be >~.5) and sr is the sample rate.

The 1+exp(fco/11000) term came about because of a problem with resonance.
The peak resonance stays pretty flat at low frequencies with the value of
resonance approximating the gain of the peak.  Above ~3kHz the resonance
value starts to take off and attenuation of the high frequencies lessens.
The 1+exp(fco/11000) fixes the climb in resonance pretty well.  The reduced
attenuation of high frequencies was not fixed, but who can hear up there
anyway?  Over sampling would help to solve these problems.

As far as I can tell it does not self oscillate.  I think there needs to be
a zero in the denominator to do that.  The tuning is only approximate but I
think it is close.  (In other words fco is in Hz).

I don't have time to post a Csound version right now but it should be
pretty easy to implement using John Fitch's nlfilter.  I haven't been able
to figure out how to generate an equivalent high pass version yet.

function [omega] = rezfilter(x, fco, rez, band, sr)
fqc=66/441*sr;
c=fqc/fco;
rez2=rez/(1+exp(fco/11000));
a0=c/rez2+c^2;
a1=-(1+rez2*(1-band))+c/rez2+2*c^2;
a2=c^2;
omega=abs(1./(a0-a1*exp(-i*x)+a2*exp(-2*i*x)));

function [] = rzgraph(rez, band)

x0=-4:.05:.56;
x=10.^x0;
y0=rezfilter(x, 30, rez, band, 44100);
y1=rezfilter(x, 100, rez, band, 44100);
y2=rezfilter(x, 300, rez, band, 44100);
y3=rezfilter(x, 1000, rez, band, 44100);
y4=rezfilter(x, 3000, rez, band, 44100);
y5=rezfilter(x, 10000, rez, band, 44100);
y6=rezfilter(x, 10, rez, band, 44100);
semilogx(x, y0,'b',x, y1,'b',x, y2,'b',x, y3,'b',x, y4,'b',x, y5,'b',x,
y6,'b');





Received: from stork.maths.bath.ac.uk by omphalos.maths.Bath.AC.UK id aa21834;
          31 Dec 97 5:19 GMT
Received: from pat.bath.ac.uk by stork.maths.Bath.AC.UK id aa12657;
          31 Dec 97 5:19 GMT
Received: (qmail 27899 invoked from network); 31 Dec 1997 05:19:09 -0000
Received: from mail-out-1.tiac.net (199.0.65.12)
  by pat.bath.ac.uk with SMTP; 31 Dec 1997 05:19:09 -0000
Received: from ppp0.mass-usr.com (isro.tiac.net [206.119.87.88])
	by mail-out-1.tiac.net (8.8.7/8.8.7) with SMTP id AAA11971;
	Wed, 31 Dec 1997 00:16:32 -0500 (EST)
Message-ID: <34A9D3F3.503B@tiac.net>
Date: Wed, 31 Dec 1997 00:11:15 -0500
From: Sreenivasa R Inukoti 
Reply-To: isro@tiac.net
Organization: Analog Devices Inc
X-Mailer: Mozilla 3.0Gold (Win95; U)
MIME-Version: 1.0
To: Gabriel Maldonado 
CC: J P Fitch , 
    Csound Mailing List 
Subject: Re: 'ftgen' and 'turnon' opcodes in csound 3.47 beta
References: <34A8C261.56FC5106@agora.stm.it>
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit

Gabriel Maldonado wrote:
> 
> Some question.
> 
> 1)  'turnon' opcode activates an instrument with a different number of
> the one of the note call. Why the following orc example does not
> generate any sound?
> Is it possible to use turnon as a subroutine call?
> 
> 2) the new opcodes manual says  turnon activates an instrument for an
> indefinite time. Is the new instrument deactivated at the same time
> (when the old one is deactivated)?
>

As far as i know, turnon has to be declared as a part of a header, not
inside an insturment.

> 3) Is it possible to use 'ftgen' opcode in the header section of the
> orchestra instead of within an instr body? If not, do the tables
> allocated within an instr survive when the generating instr is turned
> off?
> 

Infact, ftgen has to be declared in the header section like turnon.
These opcodes are performed at instr 0(header) execution time. ftgen is
simillar to 'f' statement in the score file.

for example your orc header contains
  gifno   ftgen   0,0,1024, 10, 1

you can use gifno in your instruments to refer the above table.

> thank you and happy new year!

happy new year to you too..

Thanks and Regards,
isro
> 
> ;********** ftgen and turnon test.orc
> 
>  sr = 44100
>  kr = 8820
>  ksmps = 5
>  nchnls = 1
> 
>  instr 2
>  turnon 1,0
>  endin
> 
>  instr 1
> iafno   ftgen   0,0,1024, 10, 1
> a1 oscili 1000,440,iafno
> out a1
>  endin
> 
> ;********** score
> i2 0 5
> 
> --
> 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 aa22081;
          31 Dec 97 8:56 GMT
Received: from pat.bath.ac.uk by stork.maths.Bath.AC.UK id aa20028;
          31 Dec 97 8:56 GMT
Received: (qmail 1319 invoked from network); 31 Dec 1997 08:56:07 -0000
Received: from hermes.ex.ac.uk (HELO exeter.ac.uk) (144.173.6.14)
  by pat.bath.ac.uk with SMTP; 31 Dec 1997 08:56:07 -0000
Received: from noether [144.173.8.10] by hermes via SMTP (IAA27396); Wed, 31 Dec 1997 08:49:23 GMT
Received: from hermes.ex.ac.uk by maths.exeter.ac.uk; Wed, 31 Dec 97 08:49:06 GMT
Received: from root@DCXLVI.dyn.sci.fi [195.74.3.46] by hermes via ESMTP (IAA27259); Wed, 31 Dec 1997 08:48:58 GMT
Received: from fingerprint (root@localhost [127.0.0.1]) by fingerprint.sci.fi (8.7.5/8.7.3) with SMTP id KAA00144 for ; Wed, 31 Dec 1997 10:52:08 +0200
Message-Id: <34AA07B7.534EE129@sci.fi>
Date: Wed, 31 Dec 1997 10:52:08 +0200
From: Matti Koskinen 
X-Mailer: Mozilla 3.01 (X11; I; Linux 2.0.33 i586)
Mime-Version: 1.0
To: csound@maths.ex.ac.uk
Subject: Simple script for generating sound from image
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
Sender: owner-csound-outgoing@maths.ex.ac.uk
Precedence: bulk

Hi

Last weeks there has been discussion in this mailing list about
generating sound from images. I've tried Ceres and the javoice
and they inspired me of writing a script in tk/tcl. It just converts
a gif-image to csound score/orc using the same approach as Ceres.
If there are any willing takers to try it, I can send it by email
(its only 18k in source, compressed of course less)

Happy New Year to all

-matti

mjkoskin@sci.fi



Received: from stork.maths.bath.ac.uk by omphalos.maths.Bath.AC.UK id aa22342;
          31 Dec 97 11:50 GMT
Received: from pat.bath.ac.uk by stork.maths.Bath.AC.UK id aa26222;
          31 Dec 97 11:50 GMT
Received: (qmail 4591 invoked from network); 31 Dec 1997 11:50:45 -0000
Received: from hermes.ex.ac.uk (HELO exeter.ac.uk) (144.173.6.14)
  by pat.bath.ac.uk with SMTP; 31 Dec 1997 11:50:45 -0000
Received: from noether [144.173.8.10] by hermes via SMTP (LAA03914); Wed, 31 Dec 1997 11:44:08 GMT
Received: from hermes.ex.ac.uk by maths.exeter.ac.uk; Wed, 31 Dec 97 11:43:31 GMT
Received: from agora.stm.it [195.62.32.1] by hermes via ESMTP (LAA05008); Wed, 31 Dec 1997 11:43:19 GMT
Received: from default (ppp02-04.stm.it [195.62.37.68]) by agora.stm.it (8.8.8/8.8.5) with ESMTP id MAA17885; Wed, 31 Dec 1997 12:46:42 +0100 (ITA)
Message-Id: <34AA1C5F.A4229F41@agora.stm.it>
Date: Wed, 31 Dec 1997 11:20:16 +0100
From: Gabriel Maldonado 
X-Mailer: Mozilla 4.0 [en] (Win95; I)
Mime-Version: 1.0
To: "A. Archias" , 
    Csound Mailing List 
Subject: Re: Re; HUBI Loopback where?
X-Priority: 3 (Normal)
References: <199712310316.WAA12294@telnet.skyenet.net>
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
Sender: owner-csound-outgoing@maths.ex.ac.uk
Precedence: bulk

With my Pentium 133 I can run HUBI together with Cubase and two
instances of my version of Csound (with a reasonably simple orc) without
any problem other than a delay due to buffer length.
--
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

A. Archias wrote:

> Ref;
> I have used the HUBIE MIDI loopback utility to run one application
> generating MIDI msgs, and directed them to a simultaneously running
> CSound process. I did this under Win95 and proved (yet again) what a
> sorry OS it is. It "worked", but the sound was breaking up horribly
> and no tweaking of buffer sizes was going to fix the fundamental
> scheduling problem.
>
> <> Does anyone know a site for the HUBI MIDI Loop Util, I cannot
> find it using various search utilities. It was archived as
> MDLPBK11.ZIP
> Andy










Received: from stork.maths.bath.ac.uk by omphalos.maths.Bath.AC.UK id aa22349;
          31 Dec 97 11:50 GMT
Received: from pat.bath.ac.uk by stork.maths.Bath.AC.UK id aa26235;
          31 Dec 97 11:50 GMT
Received: (qmail 4594 invoked from network); 31 Dec 1997 11:50:50 -0000
Received: from hermes.ex.ac.uk (HELO exeter.ac.uk) (144.173.6.14)
  by pat.bath.ac.uk with SMTP; 31 Dec 1997 11:50:50 -0000
Received: from noether [144.173.8.10] by hermes via SMTP (LAA04870); Wed, 31 Dec 1997 11:44:06 GMT
Received: from hermes.ex.ac.uk by maths.exeter.ac.uk; Wed, 31 Dec 97 11:43:37 GMT
Received: from agora.stm.it [195.62.32.1] by hermes via ESMTP (LAA04726); Wed, 31 Dec 1997 11:43:22 GMT
Received: from default (ppp02-04.stm.it [195.62.37.68]) by agora.stm.it (8.8.8/8.8.5) with ESMTP id MAA17893; Wed, 31 Dec 1997 12:46:47 +0100 (ITA)
Message-Id: <34AA1EB5.C083D8B6@agora.stm.it>
Date: Wed, 31 Dec 1997 11:30:13 +0100
From: Gabriel Maldonado 
X-Mailer: Mozilla 4.0 [en] (Win95; I)
Mime-Version: 1.0
To: "A. Archias" , 
    Csound Mailing List 
Subject: Re: Re; HUBI Loopback where?
X-Priority: 3 (Normal)
References: <199712310316.WAA12294@telnet.skyenet.net>
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
Sender: owner-csound-outgoing@maths.ex.ac.uk
Precedence: bulk

With my Pentium 133 I can run HUBI together with Cubase and two
instances of my version of Csound (with a reasonably simple orc) without
any problem other than a delay due to buffer length.
Maybe direct-sound routines could improve Csound realtime performance.
Unfortunately the version of Visual C++ is 2.0, so at present time I
cannot implement an interface using directX.
--
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

A. Archias wrote:

> Ref;
> I have used the HUBIE MIDI loopback utility to run one application
> generating MIDI msgs, and directed them to a simultaneously running
> CSound process. I did this under Win95 and proved (yet again) what a
> sorry OS it is. It "worked", but the sound was breaking up horribly
> and no tweaking of buffer sizes was going to fix the fundamental
> scheduling problem.
>
> <> Does anyone know a site for the HUBI MIDI Loop Util, I cannot
> find it using various search utilities. It was archived as
> MDLPBK11.ZIP
> Andy