home .. forth .. colorforth mail list archive ..

Re: [colorforth] Octal in ColorForth for Music Notation? (fwd)


Thanks, Robert, for pointing out which words in the asm are actual Huffman
coded Colorforth words (hence, I presume,  available as the cyan macros in
blocks 24 et seq).  So the rest, I presume,  are known only to the
assembler - and this includes the words 'base dd 10'  and 'octal: xor
current...'  But does this mean that one must go back to assembler?  That
is, redefine as  'octal: mov base, 8'  to be consistent with  'hex: mov base
16'  and 'decimal: mov base 10' ?  Also, rename the present 'octal:'  as
'togglekey:'
and put in some extra 'xors' to make a ring, as suggested by Mark Slicker
in his current dialogue with Jimmy Soederman (Re:  Numbering crunching).

    This seems pretty heavy compared to FigForth (8 base ! or 2 base !).
I don't mind doing the work, it's in a good cause - an improved musical
keyboard - but I wish to do it ColorForth, not to reassemble nor poke the
kernel.   Is there a way?

----- Original Message -----
From: Robert Patten <pattenre@xxxxxxxxxxx>
To: <colorforth@xxxxxxxxxxxxxxxxxx>
Sent: Monday, November 11, 2002 4:19 AM
Subject: Re: [colorforth] Octal in ColorForth for Music Notation? (fwd)


> The octal in the ColorForth assembler source is now actually a toggle
> between decimal and hex input.  The words in the comment after the ; in
the
> ColorForth assembler source starting with macro0 and ending with forth1 is
> the only words avalible from ColorForth.
> This means that you need to  create an  octal keyboard  and octal output
> words in ColorForth.
>     Octal  numbers in the assembler is used when the  assembler  assembles
> the source to create the color.com file
>
> ----- Original Message -----
> From: "Alice Maroudas" <alice@xxxxxxxxxxxxxxxxxxxxx>
> To: <colorforth@xxxxxxxxxxxxxxxxxx>
> Sent: Sunday, November 10, 2002 12:46 PM
> Subject: [colorforth] Octal in ColorForth for Music Notation? (fwd)
>
>
> >
> >
> > I use Forth to write a tune as a string of numbers in octal (8 Base !)
> > on one line - but a string of numbers are not so intuitive as the
> > conventional graphical notation, which uses 5 or more lines to show
> > whether the notes are going up or down, different icons for notes of
> > different duration, and vertical lines to separate bars.
> >
> > Now I would like to try whether Color Forth might improve readability
> > because preparsed colors would indicate immediately whether a
> > number represented pitch, duration, loudness or bar number.  Preparsed
> > words could be used as expression marks, key signature etc.
> >
> > Like MIDI in colour?  The difference being that in Colorforth "source is
> > all there is":  so the act of compiling a preparsed Colorforth score
> > might be the same as its performance?  Might speed things up?
> > Correct me if I'm wrong.
> >
> > As a modest start, can anybody kindly tell this newbie how to get octal
in
> > Colorforth?  The words 'base, octal, hex and decimal' exists in the asm
> > listing, but my attempts to use them in a ColorForth definition have
> > crashed.  I am probably missing something very simple, because
> > octal numbers are obviously used by asm macro0 to build the Huffman
> > codes for Chuck's '48 characters' eg 170o is octal for 1111 000
> > i.e ';'  173o is 1111 011 i.e. '+'  and (3 shl 4+1) is 31octal i.e.
> > 'or'.
> >
> > Please, somebody dispel my ignorance.
> >
> > Nick Maroudas
> >
> >
> >
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: colorforth-unsubscribe@xxxxxxxxxxxxxxxxxx
> > For additional commands, e-mail: colorforth-help@xxxxxxxxxxxxxxxxxx
> >
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: colorforth-unsubscribe@xxxxxxxxxxxxxxxxxx
> For additional commands, e-mail: colorforth-help@xxxxxxxxxxxxxxxxxx
>


---------------------------------------------------------------------
To unsubscribe, e-mail: colorforth-unsubscribe@xxxxxxxxxxxxxxxxxx
For additional commands, e-mail: colorforth-help@xxxxxxxxxxxxxxxxxx