Csound Csound-dev Csound-tekno Search About

Re: hidden MIDI functions

Date1997-02-13 02:43
FromLarry Troxler
SubjectRe: hidden MIDI functions
At 11:06 AM 2/10/97 -0800, Mike Berry wrote:
>	Does anyone have documentation on the "hidden" MIDI functions?

Yes, please! who knows about this?? There's for example, some voice-overlap
and release-time functionality there, it seems like. If this means that an
instrument doesn't have to turn off on the midi-note-off, this would be very
usefull.

>After poking around in the MIDI parser I found that there are some
>functions to set global values, like pitch bend range, using a combination
>of controller 101 and controller 6.  But there is very little in the way
>of comments as to how this is meant to be used.

I can only imagine that these globals would be intended for use by a
yet-to-be-written  ugen that makes use of them.

>	I want to update the MIDI interpreters to include some optional
>scaling and preset values, for, among other things, setting the pitch bend
>range in the ***midib functions.  For the sake of cleanliness and speed, I
>was going to remove these hidden functions and update the documentation on
>MIDI.  This shouldn't break anyone's orchestras since this aren't instr
>functions anyway.  But if there is anyone who does use these hidden
>functions, please let me know.

Well, I don't use them yet, since I don't understand them yet :-). But
presumably they were put there for a reason, and someone put a bit of effort
into coding it. So I'm not sure what harm it would do to leave them in. I
don't think speed is an issue - I think that the instrument setup times, and
the audio processing, would make any improvement negligable. And, for
cleanliness?? The CSound code IMHO will always be difficult to read until it
gets rewritten to use classes, or at the very least modularized in a way
that is more clear to the casual reader. I'm assuming that very platform
that CSound is running on has a C++ compiler - if not, I'd be surprised.
Now watch someone surprise me :-)


Larry 

                  
 --  Larry Troxler  --  lt@westnet.com  --  Patterson, NY  USA   --

        




Date1997-02-13 04:42
FromBradley James Lindseth
Subjectprettyness of code (was Re: hidden MIDI functions)
On Wed, 12 Feb 1997, Larry Troxler wrote:
> Well, I don't use them yet, since I don't understand them yet :-). But
> presumably they were put there for a reason, and someone put a bit of effort
> into coding it. So I'm not sure what harm it would do to leave them in. I
> don't think speed is an issue - I think that the instrument setup times, and
> the audio processing, would make any improvement negligable. And, for
> cleanliness?? The CSound code IMHO will always be difficult to read until it
> gets rewritten to use classes, or at the very least modularized in a way
> that is more clear to the casual reader. I'm assuming that very platform
> that CSound is running on has a C++ compiler - if not, I'd be surprised.
> Now watch someone surprise me :-)

use of GNU configure would be nice for the user and the code reader.


							Brad


# Brad Lindseth, EE Undergrad Student	    Mail:  6515 Wydown Boulevard 
# 		 Washington University	 	   Box 3895 
# Email:  bjl1@cec.wustl.edu			   Saint Louis, MO 63105
# Web:     http://cec.wustl.edu/~bjl1/	    Phone: (314) 935-1287
# Amateur Radio:  N0UAG

Date1997-02-13 14:07
FromSimon Kagedal
SubjectRe: prettyness of code (was Re: hidden MIDI functions)
Brad wrote:

> use of GNU configure would be nice for the user and the code reader.

Agreed, a lot... Also, speeking about the distribution: 

* it would be nice if all those *.c and *.h files that lays in 
  the top directory were moved to something like src/. 

* IMHO, the package should called something like Csound_3.45.tar.gz.
  So you know what you get..

Greetz,

-- 
/simon