Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Numbers at end of Play strings
#4
(06-23-2023, 08:31 AM)PhilOfPerth Wrote: Edit: This is part of one of the lines (slightly modified): 
m$ = "o4e8f#8"
PLAY m$
which plays E F#. But without the "8" it shortens the last note, so it is having some effect on play.

Code: (Select All)
__________|||
__________VVV
m$ = "o4e8f#8"

Put in a "code" block in an attempt to be better seen.

This is a black key in a piano. This is not different from "e8" which is a white key. "e8" is two keys to the right-hand side of the "c" depending on which octave. The "8" in "e8" indicates the length to play, in this case 1/8-note, or half a beat at the current tempo. Meanwhile, "f#" is the black key nearest the "e". "f#8" then is to play that black key at half a beat at the current tempo. In the PLAY statement "f#8" could be also written "f+8" although it looks confusing.

Must use sharps only for the black keys of the piano. Must use minus sign for "flat" notation, the symbol that comes from sheet music cannot be used because it looks very much like lowercase "B" and therefore it would be confused with "b" note.

The Wiki page about PLAY should really say something about note lengths directly attached to notes.
Reply


Messages In This Thread
Numbers at end of Play strings - by PhilOfPerth - 06-23-2023, 05:41 AM
RE: Numbers at end of Play strings - by mnrvovrfc - 06-23-2023, 06:47 AM
RE: Numbers at end of Play strings - by mnrvovrfc - 06-23-2023, 10:05 AM
RE: Numbers at end of Play strings - by Jack - 06-23-2023, 01:53 PM
RE: Numbers at end of Play strings - by SMcNeill - 06-23-2023, 09:10 PM
RE: Numbers at end of Play strings - by bplus - 06-24-2023, 01:07 PM
RE: Numbers at end of Play strings - by mnrvovrfc - 06-24-2023, 02:55 PM
RE: Numbers at end of Play strings - by bplus - 06-24-2023, 03:12 PM



Users browsing this thread: 1 Guest(s)