Skip to content

Play library (WIP)#1076

Open
oskostenko wants to merge 2 commits intoboriel-basic:mainfrom
oskostenko:play-lib
Open

Play library (WIP)#1076
oskostenko wants to merge 2 commits intoboriel-basic:mainfrom
oskostenko:play-lib

Conversation

@oskostenko
Copy link
Copy Markdown

This library provides the Play routine similar to the one that exists in Sinclair Basic 128K.

It is not completed yet, but is already functional.

The following commands are already implemented:

  • cdefgab, CDEFGAB - note pitch
  • $, # - flats and sharps
  • & - rest
  • 1-12 - note length
  • O, V, T - set octave, volume, tempo
  • N - separate two numbers (actually, any unexpected character does this, including space)

The following commands are not implemented yet:

  • W, U, X - set volume effects
  • () - repetition
  • !! - comments
  • H - stop
  • M, Y, Z - MIDI control (also you can't pass more than 3 parameters to Play).

Some examples are also included.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant