Keenan Pepper escreveu:
[...]
> I'm looking at the source of abc2midi and I can't figure why you would
> say (1 to 4096) / (1 to 4096). The numerator and denominator can be
> larger than 4096.

Yep, I should be written that the *final* _quantised_ pitchbend is 
1/4096 semitone resolution. Thus one can use (1 to 8192) / (1 to 8192) 
in 0-2 semitones range to access the full range step by step.

[...]
>>Is ``NUM'' an integer? A float? What is its valid range?
> 
> 
> It should be an arbitrary-precision integer but in practice it would
> be unreasonable (and unnecessary) to expect applications to handle
> numbers larger than 32-bit ints.

Correct.

[...]
> What is the motivation for restricting the range of values in the ABC format?

Compatibility between applications. ABC standard should say the values 
normally a program can accept.

Is 'unsigned short int' your suggestion for ``NUM''?

>>Unfortunately, ``NUM'' from 1 to 4096 will call for 24 bits to store the
>>fraction. To store both numerator and denominator in a 16 bit variable
>>instead, the range must be 1 to 256.
> 
> 
> What format are you talking about here? In the ABC file they are
> stored as decimal numbers.

What about score generators like abcm2ps? The number of accidental 
glyphs is limited, should it quantise also the fractions? Currently, 
abcm2ps accepts (1 to 256) / (1 to 256) because it identifies the used 
accidentals with a single unsigned 16 bit integer. Of course, if we 
define that numerator and denominator are both 16 (or 32) bits length, 
that code shall be changed accordingly.

[...]
> I think the ABC format specification should be arbitrary fractions,
> perhaps with a reasonable limit to prevent integer overflow. What
> applications _do_ with information the ABC file is a different matter.
> For example, abc2midi will obviously have to round the pitches to the
> MIDI tuning standard. This should not affect the ABC format.

Agree.

Hudson

-- 
   '-------------------------------------------------------------------.
Hudson Lacerda <http://geocities.yahoo.com.br/hfmlacerda/>
*Não deixe seu voto sumir! http://www.votoseguro.org/
*Apóie o Manifesto:        http://www.votoseguro.com/alertaprofessores/

                     == THE WAR IN IRAQ COSTS ==
http://nationalpriorities.org/index.php?option=com_wrapper&Itemid=182
   .-------------------------------------------------------------------'
--


                
_______________________________________________________
Yahoo! Acesso Gr�tis - Internet r�pida e gr�tis. Instale o discador agora!
http://br.acesso.yahoo.com


 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/abcusers/

<*> To unsubscribe from this group, send an email to:
    [EMAIL PROTECTED]

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/
 


Reply via email to